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_mul_panic() { let a = Primitive::from(&vec![Some(-100i8)]).to(DataType::Int8); let b = Primitive::from(&vec![Some(100i8)]).to(DataType::Int8); let _ = mul(&a, &b); }
rust_cleaned_test_functions.jsonl/12702
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24944, 620, 31270, 368, 341, 286, 1077, 264, 284, 51460, 486, 1499, 2099, 4083, 20703, 8373, 4080, 16, 15, 15, 72, 23, 7252, 568, 983, 63941, 486, 1072, 23, 317, 286, 1077, 293, 284, 51460, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_struct_kevent() { let udata: intptr_t = 12345; let actual = KEvent::new( 0xdead_beef, EventFilter::EVFILT_READ, EventFlag::EV_ONESHOT | EventFlag::EV_ADD, FilterFlag::NOTE_CHILD | FilterFlag::NOTE_EXIT, 0x1337, udata, ); assert_eq!...
rust_cleaned_test_functions.jsonl/69729
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 365 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 45476, 684, 368, 341, 262, 1077, 575, 691, 25, 43966, 528, 284, 220, 16, 17, 18, 19, 20, 401, 262, 1077, 5042, 284, 730, 1556, 486, 931, 1006, 286, 220, 15, 87, 33754, 21263, 823, 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...
1
#[test] fn test_cef_extensions() { let n1 = NameStruct { name: "WillBeRenamed".to_owned(), }; let mut collector = HashMap::<String, String>::new(); assert!(n1.cef_extensions(&mut collector).is_ok()); assert_eq!( collector.get(&"newname".to_owned()), Some(&"WillBeRenam...
rust_cleaned_test_functions.jsonl/3454
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 602 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50727, 69, 60498, 368, 341, 262, 1077, 308, 16, 284, 3988, 9422, 341, 286, 829, 25, 330, 9945, 3430, 34625, 3606, 3263, 983, 51973, 3148, 262, 2605, 262, 1077, 5206, 31953, 284, 10528, 27638, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_blake2s_constant_constraints() { let mut cs = TestConstraintSystem::<Bls12>::new(); let mut rng = XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); let input_bits: V...
rust_cleaned_test_functions.jsonl/11169
{ "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, 13141, 726, 17, 82, 34967, 60267, 368, 341, 286, 1077, 5206, 10532, 284, 3393, 17890, 2320, 27638, 33, 4730, 16, 17, 6831, 931, 543, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 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_to_upper_camel() { assert_eq!("", &to_upper_camel("")); assert_eq!("F", &to_upper_camel("F")); assert_eq!("Foo", &to_upper_camel("FOO")); assert_eq!("FooBar", &to_upper_camel("FOO_BAR")); assert_eq!("FooBar", &to_upper_camel("_FOO_BAR")); assert_eq...
rust_cleaned_test_functions.jsonl/86619
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 328 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 34445, 666, 35562, 368, 341, 286, 2060, 10714, 17223, 497, 609, 983, 34445, 666, 35562, 89744, 286, 2060, 10714, 17223, 37, 497, 609, 983, 34445, 666, 35562, 445, 37, 4010, 286, 2060, 10714,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rle_value_decode_int32_not_supported() { let mut decoder = RleValueDecoder::<Int32Type>::new(); decoder .set_data(ByteBufferPtr::new(vec![5, 0, 0, 0]), 1) .unwrap(); }
rust_cleaned_test_functions.jsonl/38514
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 273, 3142, 15227, 4042, 18, 17, 7913, 57885, 368, 341, 286, 1077, 5206, 24551, 284, 431, 273, 1130, 20732, 27638, 1072, 18, 17, 929, 6831, 931, 543, 286, 24551, 198, 310, 659, 746, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_valid_redshift_create_cluster_security_group() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "redshift-create-cluster-security-group.xml", ); let mock = MockRequestDispatcher::with_status(200).with...
rust_cleaned_test_functions.jsonl/12102
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 26058, 13418, 8657, 28441, 48726, 6288, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 330, 1151, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vec3_min_max() { let a = vec3(-1.0, 2.0, -3.0); let b = vec3(1.0, -2.0, 3.0); assert_eq!((-1.0, -2.0, -3.0), a.min(b).into()); assert_eq!((-1.0, -2.0, -3.0), b.min(a).into()); assert_eq!((1.0, 2.0, 3.0), a.max(b).into()); assert_eq!((1.0, 2.0, 3.0), b.max(a).into()); }
rust_cleaned_test_functions.jsonl/48588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 18, 7260, 6345, 368, 341, 262, 1077, 264, 284, 7486, 18, 4080, 16, 13, 15, 11, 220, 17, 13, 15, 11, 481, 18, 13, 15, 317, 262, 1077, 293, 284, 7486, 18, 7, 16, 13, 15, 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
#[test] fn test_parse_patch_vm_state() { let mut body = r#"{ "state": "Paused" }"#; assert!(parse_patch_vm_state(&Body::new(body)) .unwrap() .eq(&ParsedRequest::new_sync(VmmAction::Pause))); body = r#"{ "state": "Res...
rust_cleaned_test_functions.jsonl/67680
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 39643, 39008, 4387, 368, 341, 286, 1077, 5206, 2487, 284, 435, 55543, 515, 394, 330, 2454, 788, 330, 52749, 698, 1060, 335, 57676, 401, 286, 2060, 10297, 6400, 39643, 39008, 4387, 2099, 544...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_phonetic_alpha_lookup() { assert_eq!(phonetic_alphabet::lookup(0), "Alpha"); assert_eq!(phonetic_alphabet::lookup(14), "Oscar"); assert_eq!(phonetic_alphabet::lookup(25), "Zulu"); //It should also wrap around if the idx is higher than 25. assert_eq!(phonet...
rust_cleaned_test_functions.jsonl/23186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9782, 263, 5298, 26633, 27464, 368, 341, 286, 2060, 10714, 10297, 51701, 5298, 8418, 18485, 486, 21020, 7, 15, 701, 330, 19384, 797, 286, 2060, 10714, 10297, 51701, 5298, 8418, 18485, 486, 21020, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_month() { assert_eq!(month("months"), Ok(("", "months"))); assert_eq!(month("month"), Ok(("", "month"))); assert_eq!(month("mo"), Ok(("", "mo"))); }
rust_cleaned_test_functions.jsonl/71135
{ "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, 18933, 368, 341, 310, 2060, 10714, 10297, 10249, 445, 49714, 3975, 7622, 7, 19814, 330, 49714, 17621, 310, 2060, 10714, 10297, 10249, 445, 10249, 3975, 7622, 7, 19814, 330, 10249, 17621, 310, 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
#[test] fn test_example_xmas() -> Result<(), Error>{ let f = get_file(file!(), "1.txt"); let result = solve_puzzle(f.as_str(), 5); if result.is_err() { return Err(result.err().unwrap()); } assert_eq!(127, result.unwrap()); Ok(()) }
rust_cleaned_test_functions.jsonl/51113
{ "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, 39304, 3212, 6899, 368, 1464, 5714, 68843, 4600, 41446, 286, 1077, 282, 284, 633, 2458, 4866, 0, 1507, 330, 16, 3909, 797, 286, 1077, 1102, 284, 11625, 620, 14945, 955, 5357, 2895, 1507, 220, 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...
2
#[test] fn test_simple_round_trip() -> Result<(), Box<dyn std::error::Error>> { // Given let mut non_empty = NonEmpty::new(SimpleSerializable(42)); non_empty.push(SimpleSerializable(777)); let expected_value = non_empty.clone(); // When le...
rust_cleaned_test_functions.jsonl/17877
{ "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, 30015, 29896, 63883, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 310, 442, 16246, 198, 310, 1077, 5206, 2477, 15124, 284, 11581, 3522, 486, 931, 3759, 6456, 29268, 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_transaction_shared_connection() { let ctx = TestContext::new(); block_on_all(future::lazy(|| { ctx.shared_async_connection() .and_then(|con| { let cmds = (0..100).map(move |i| { let foo_val = i; let bar_val = for...
rust_cleaned_test_functions.jsonl/10906
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 897 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 20405, 15866, 368, 341, 262, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 262, 2504, 4470, 5705, 955, 2976, 486, 49013, 79453, 341, 286, 5635, 18062, 28346, 15866, 741, 310, 659, 437, 68367,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_exclude() -> Result<()> { let df = df![ "a" => [1, 2, 3], "b" => [1, 2, 3], "c" => [1, 2, 3] ]?; let out = df.lazy().select([col("*").exclude(&["b"])]).collect()?; assert_eq!(out.get_column_names(), &["a", "c"]); Ok(()) }
rust_cleaned_test_functions.jsonl/158
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88668, 368, 1464, 5714, 71698, 341, 262, 1077, 6764, 284, 6764, 90515, 262, 330, 64, 1, 589, 508, 16, 11, 220, 17, 11, 220, 18, 1259, 262, 330, 65, 1, 589, 508, 16, 11, 220, 17, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_llvm_pointertype() { unsafe { let ctx = mlirContextCreate(); let llvm = mlirGetDialectHandle__llvm__(); mlirDialectHandleRegisterDialect(llvm, ctx); mlirDialectHandleLoadDialect(llvm, ctx); let inttype = mlirIntegerTypeGet(ctx, ...
rust_cleaned_test_functions.jsonl/40532
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 29042, 6085, 45069, 368, 341, 286, 19860, 341, 310, 1077, 5635, 284, 15739, 404, 1972, 4021, 543, 310, 1077, 34664, 284, 15739, 404, 1949, 35, 55056, 6999, 563, 29042, 563, 543, 310, 15739, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mid_overlapping_constraint() { let mut cdt = CDT::new(); let v0 = cdt.insert(Point2::new(0.0, 0.5)); let v1 = cdt.insert(Point2::new(2.0, 0.5)); let v2 = cdt.insert(Point2::new(3.0, 0.5)); let v3 = cdt.insert(Point2::new(5.0, 0.5)); cdt.insert(Poin...
rust_cleaned_test_functions.jsonl/70752
{ "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, 43733, 15431, 90619, 46973, 368, 341, 286, 1077, 5206, 272, 8047, 284, 356, 10599, 486, 931, 543, 286, 1077, 348, 15, 284, 272, 8047, 7030, 32737, 17, 486, 931, 7, 15, 13, 15, 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...
1
#[test] fn test_valid_expressions_ex() -> std::result::Result<(), nom::Err<ParseError<'static>>> { use super::BinaryOperation as BinaryInner; use super::FunctionCall as FuncCallInner; use Expr::*; let tests = [ ( "-1 + 2", BinaryOperat...
rust_cleaned_test_functions.jsonl/878
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2469 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8337, 2702, 39873, 2702, 368, 1464, 1460, 486, 1382, 486, 2077, 68843, 9662, 486, 7747, 27, 14463, 1454, 18291, 1978, 20154, 341, 286, 990, 2256, 486, 21338, 8432, 438, 17718, 31597, 280, 286, 990...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_udp_stream_ipv4() { use crate::tests::udp_stream_test; let io_loop = Runtime::new().expect("failed to create tokio runtime"); io_loop.block_on(udp_stream_test::<TokioUdpSocket>(IpAddr::V4( Ipv4Addr::new(127, 0, 0, 1), ))); }
rust_cleaned_test_functions.jsonl/30362
{ "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, 69432, 12673, 49378, 19, 368, 341, 286, 990, 17717, 486, 23841, 486, 31101, 12673, 4452, 280, 286, 1077, 6399, 17198, 284, 10954, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 9628, 815, 15592, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_text() { let mut reader = ParserInput::new("This is a text"); let result = read_text("This")(&mut reader); assert_eq!(result, Ok("This")); let result = read_text(" is ")(&mut reader); assert_eq!(result, Ok(" is ")); let result = read_text("...
rust_cleaned_test_functions.jsonl/10084
{ "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, 6443, 4326, 368, 341, 286, 1077, 5206, 6604, 284, 21102, 2505, 486, 931, 445, 1986, 374, 264, 1467, 3071, 286, 1077, 1102, 284, 1349, 4326, 445, 1986, 899, 2099, 6984, 6604, 317, 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_invalid_nested() { let value = Annotated::from(Test { answer: Annotated::from_error("invalid type: string \"invalid\", expected i32"), other: 21, }); assert_eq_dbg!( value, serde_json::from_str(r#"{"answer":"invalid","other...
rust_cleaned_test_functions.jsonl/126363
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 66279, 368, 341, 286, 1077, 897, 284, 1527, 87029, 486, 1499, 31159, 341, 310, 4226, 25, 1527, 87029, 486, 1499, 4096, 445, 11808, 943, 25, 914, 7245, 11808, 16215, 3601, 600, 18, 17, 446...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_domain_type_string() { let ty = DomainType { annotation: Default::default(), id: "ty".to_string(), r#type: Type::String, }; let prog = Context::new_root(&Default::default()) .with_domain("foo") .render_with(&ty); let expect = quote! { ...
rust_cleaned_test_functions.jsonl/26901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20111, 1819, 3904, 368, 341, 262, 1077, 13580, 284, 21070, 929, 341, 286, 21223, 25, 7899, 486, 2258, 3148, 286, 877, 25, 330, 1881, 3263, 983, 3904, 3148, 286, 435, 2, 1313, 25, 3990, 486, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_at_point() { let points = create_random_points(1000, SEED_1); let mut tree = RTree::bulk_load(points.clone()); for point in &points { let size_before_removal = tree.size(); assert!(tree.remove_at_point(point).is_some()); assert!(...
rust_cleaned_test_functions.jsonl/24150
{ "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, 18193, 3752, 6085, 368, 341, 286, 1077, 3501, 284, 1855, 22644, 12928, 7, 16, 15, 15, 15, 11, 5052, 1479, 62, 16, 317, 286, 1077, 5206, 4916, 284, 431, 6533, 486, 67142, 12411, 32450, 15997, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_serialize_zeroes() { // Test that EthernetFrame::serialize properly zeroes memory before // serializing the header. let mut buf_0 = [0; ETHERNET_MIN_FRAME_LEN]; let _: Buf<&mut [u8]> = Buf::new(&mut buf_0[..], ETHERNET_HDR_LEN_NO_TAG..) .encapsulate(Et...
rust_cleaned_test_functions.jsonl/35168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 622 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 19359, 288, 368, 341, 286, 442, 3393, 429, 45408, 4369, 486, 24166, 10277, 97443, 4938, 1573, 198, 286, 442, 6146, 4849, 279, 4247, 624, 286, 1077, 5206, 6607, 62, 15, 284, 508, 15, 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_pop() { let mut item = Item::new(); item.push("start"); item.push(ComponentRef::Id(1)); item.push(ComponentRef::Id(2)); item.push("middle"); item.push(ComponentRef::Id(3)); item.push("end"); assert_eq!(item.pop(), Some("end".into_...
rust_cleaned_test_functions.jsonl/78648
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 329 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17061, 368, 341, 286, 1077, 5206, 1509, 284, 5739, 486, 931, 1428, 286, 1509, 2552, 445, 2468, 797, 286, 1509, 2552, 55064, 3945, 486, 764, 7, 16, 1106, 286, 1509, 2552, 55064, 3945, 486, 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_call_hierarchy_in_macros_incoming() { check_hierarchy( r#" macro_rules! define { ($ident:ident) => { fn $ident {} } } macro_rules! call { ($ident:ident) => { $ident() } } define!(callee) fn caller() { call!(call$0ee); } "#, expe...
rust_cleaned_test_functions.jsonl/38294
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 512 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 95043, 1243, 85904, 1243, 4959, 368, 341, 286, 1779, 95043, 1006, 310, 435, 2, 698, 32606, 21407, 0, 6979, 341, 262, 1711, 1713, 25, 1713, 8, 589, 341, 286, 5168, 400, 1713, 5613, 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_load_dtr_encode() { let ir = InstructionRegister { target: Target::Dtr, action: Action::Load, }; assert_eq!(ir.encode(), LOAD_DTR); }
rust_cleaned_test_functions.jsonl/61609
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 814, 376, 11224, 368, 341, 286, 1077, 6216, 284, 29051, 8690, 341, 310, 2169, 25, 13483, 486, 35, 376, 345, 310, 1917, 25, 5586, 486, 5879, 345, 286, 2605, 286, 2060, 10714, 10297, 404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cmd_arg_bad_nesting_brace_close() { cmd() .write_stdin("$ cmd arg={}}") .assert() .failure() .stderr( r#"<stdin>:1:13: error: command argument has unbalanced close brace | 1 | $ cmd arg={}} | ^ "#, ); }
rust_cleaned_test_functions.jsonl/120316
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11684, 6057, 34199, 1089, 59855, 17682, 578, 12704, 368, 341, 262, 5439, 741, 286, 659, 4934, 15656, 258, 20912, 5439, 1392, 1165, 3417, 1138, 286, 659, 2207, 741, 286, 659, 28939, 741, 286, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_store_ok() { solana_logger::setup(); let keys = vec![]; let (config_keypair, config_account) = create_config_account(keys.clone()); let config_pubkey = config_keypair.pubkey(); let my_config = MyConfig::new(42); let instruction = config_in...
rust_cleaned_test_functions.jsonl/74372
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 424 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 14809, 19817, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 6894, 284, 7486, 0, 15078, 286, 1077, 320, 1676, 3097, 12670, 11, 2193, 13500, 8, 284, 1855, 5332, 13500, 36131, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_slicebox_serialize() { let slice = [1u32, 2, 3, 4, 5]; let serialized = serialize_little(&Cow::Borrowed(&slice[..]), Infinite).unwrap(); println!("{:?}", serialized); let deserialized: Cow<'static, Vec<u32>> = deserialize_from_little(&mut &serialized[..], Infinite).unwrap...
rust_cleaned_test_functions.jsonl/11964
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26488, 2011, 88686, 368, 341, 262, 1077, 15983, 284, 508, 16, 84, 18, 17, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 32916, 284, 24235, 907, 2377, 2099, 89915, 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_wrap_bad_arg() { for wrap_param in &["-w", "--wrap"] { new_ucmd!() .arg(wrap_param) .arg("b") .fails() .stderr_only("base32: invalid wrap size: 'b'\n"); } }
rust_cleaned_test_functions.jsonl/23694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38550, 34199, 6057, 368, 341, 262, 369, 15061, 4090, 304, 609, 1183, 12, 86, 497, 14482, 10097, 1341, 341, 286, 501, 68887, 2277, 0, 741, 310, 659, 858, 3622, 4611, 4090, 340, 310, 659, 858, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_eight_hundred_and_ten_thousand() { assert_eq!( say::encode(810_000), String::from("eight hundred ten thousand") ); }
rust_cleaned_test_functions.jsonl/15981
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 491, 1523, 7114, 8378, 75827, 5854, 51849, 368, 341, 262, 2060, 10714, 33673, 286, 1977, 486, 6180, 7, 23, 16, 15, 62, 15, 15, 15, 1326, 286, 923, 486, 1499, 445, 67532, 7739, 5779, 1618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_joint_trajectory_clients() { const DEFAULT_PORT: u16 = 7777; let web_server = WebServer::new(DEFAULT_PORT); std::thread::spawn(move || web_server.start()); std::thread::sleep(std::time::Duration::from_secs(1)); // Wait for web server to start. let configs = vec![ ...
rust_cleaned_test_functions.jsonl/119544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 443 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 53158, 86031, 56899, 368, 341, 262, 733, 11955, 12377, 25, 575, 16, 21, 284, 220, 22, 22, 22, 22, 280, 262, 1077, 3482, 12015, 284, 4895, 5475, 486, 931, 43175, 12377, 317, 262, 1460, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_boolean() { let mut lexer = Cursor::new("#t #f"); assert_eq!(lexer.get_token(), Some(Token::new(Bool, 2))); assert_eq!(lexer.get_token(), Some(Token::new(Whitespace, 1))); assert_eq!(lexer.get_token(), Some(Token::new(Bool, 2))); }
rust_cleaned_test_functions.jsonl/25328
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 46642, 368, 341, 286, 1077, 5206, 53259, 284, 28067, 486, 931, 3584, 83, 671, 69, 797, 286, 2060, 10714, 10297, 38815, 670, 6458, 1507, 4329, 38584, 486, 931, 7, 11233, 11, 220, 17, 4945,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_max_shift_decimal() { assert_eq!(DecimalDigit(0u8).max_shift(), 7); assert_eq!(DecimalDigit(1u8).max_shift(), 6); assert_eq!(DecimalDigit(49u8).max_shift(), 1); assert_eq!(DecimalDigit(75u8).max_shift(), 0); assert_eq!(DecimalDigit(0u16).max_shift(), ...
rust_cleaned_test_functions.jsonl/26384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 22230, 74429, 741, 262, 341, 286, 2060, 10714, 10297, 11269, 36420, 7, 15, 84, 23, 568, 2810, 22230, 1507, 220, 22, 317, 286, 2060, 10714, 10297, 11269, 36420, 7, 16, 84, 23, 568, 2810, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_blkio_weight() { for cgroup_file in &[BLKIO_WEIGHT, BLKIO_BFQ_WEIGHT] { let (tmp, weight_file) = setup("test_set_blkio_weight", cgroup_file); let blkio = LinuxBlockIoBuilder::default() .weight(200_u16) .build() ....
rust_cleaned_test_functions.jsonl/130559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 51969, 815, 15876, 368, 341, 286, 369, 272, 4074, 2458, 304, 44590, 9389, 42, 3810, 60697, 11, 14850, 42, 3810, 1668, 37, 48, 60697, 60, 341, 310, 1077, 320, 5173, 11, 4680, 2458, 8, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_get_key() { let path = ActorPath::from("/acme/building/room/sensor"); println!("{:?}", path); assert_eq!(path.key(), "sensor".to_string()); }
rust_cleaned_test_functions.jsonl/32091
{ "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, 3062, 3097, 368, 341, 286, 1077, 1815, 284, 24718, 1820, 486, 1499, 4283, 580, 2660, 30593, 287, 14, 2966, 2687, 3805, 797, 286, 13751, 88928, 25, 52652, 1815, 317, 286, 2060, 10714, 10297, 2343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ioread (){ let bytes = [0, 1, 2, 3, 0xde, 0xed, 0xbe, 0xaf]; let data: Data4 = bytes.cread_with(0, LE); println!("data: {:?}", &data); assert_eq!(data.name, 50462976); assert_eq!(data.j, 0xedde); assert_eq!(data.arr, [0xbe, 0xaf]); }
rust_cleaned_test_functions.jsonl/51396
{ "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, 5318, 460, 329, 40653, 262, 1077, 5820, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 15, 56185, 11, 220, 15, 51319, 11, 220, 15, 42459, 11, 220, 15, 54795, 935, 262, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_json() { let keypair: KeyPair = generate_testkey(); let mut document: IotaDocument = IotaDocument::from_keypair(&keypair).unwrap(); let json_doc: String = document.to_string(); let document2: IotaDocument = IotaDocument::from_json(&json_doc).unwrap(); assert_eq!(document, do...
rust_cleaned_test_functions.jsonl/84335
{ "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, 9455, 368, 341, 262, 1077, 1376, 12670, 25, 5309, 12443, 284, 6923, 4452, 792, 543, 262, 1077, 5206, 2197, 25, 358, 6089, 7524, 284, 358, 6089, 7524, 486, 1499, 3097, 12670, 2099, 792, 12670, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_retrieve_credentials_emtpy() { init!("ledger"); let mut req = json!({ "nonce":"123432421212", "name":"proof_req_1", "version":"0.1", "requested_attributes": json!({}), "requested_predicates": json!({}), }); l...
rust_cleaned_test_functions.jsonl/106023
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 485 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 34216, 47396, 22504, 790, 88, 368, 341, 286, 2930, 17223, 50704, 3071, 286, 1077, 5206, 4232, 284, 2951, 0, 2262, 1843, 330, 39593, 3252, 16, 17, 18, 19, 18, 17, 19, 17, 16, 17, 16, 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_create_child_object() { let obj: ChildObject = Object::new(&[]).expect("Object::new failed"); let imp = imp::ChildObject::from_instance(&obj); assert_eq!(obj, imp.get_instance()); }
rust_cleaned_test_functions.jsonl/27399
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 17268, 5314, 368, 341, 286, 1077, 2839, 25, 9391, 1190, 284, 3002, 486, 931, 2099, 1294, 568, 17119, 445, 1190, 486, 931, 4641, 3071, 286, 1077, 3163, 284, 3163, 486, 3652, 1190, 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
#[test] fn test_no_padding_expected_for_plaintext() { let mut w = Writer::new(vec![]); w.write_gtk(&Gtk::new(2, GtkInfoTx::BothRxTx, &vec![2; 2])) .expect("failure writing GTK KDE"); let buf = w.finalize_for_plaintext().expect("failure finalizing key data"); assert_eq...
rust_cleaned_test_functions.jsonl/52429
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 427 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 40726, 32190, 5478, 6317, 1641, 427, 368, 341, 286, 1077, 5206, 289, 284, 29404, 486, 931, 25592, 0, 56703, 286, 289, 3836, 1889, 6242, 2099, 45103, 486, 931, 7, 17, 11, 27296, 1731, 31584...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_state_drop_path() { let mut state = State::new("GET", "www.example.com", "/path/to/something?foo=bar"); state.clear_value(); state.move_value_to_part(RequestPart::Path); assert_eq!(state.key(), "GET www.example.com /?foo=bar"); }
rust_cleaned_test_functions.jsonl/101349
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4387, 29584, 2638, 368, 341, 220, 1077, 5206, 1584, 284, 3234, 486, 931, 445, 3806, 497, 330, 2136, 7724, 905, 497, 3521, 2343, 32429, 2687, 11532, 30, 7975, 28, 2257, 3071, 220, 1584, 7426, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_func_wrong_number_of_args() { let function = Function::new( "function", &vec!["a".to_string()], &YolkExpr::Ident("a".to_string()), ) .unwrap(); function .call(&vec![ YolkExpr::Literal(YololNumber::from_str("0").unwrap()), Yo...
rust_cleaned_test_functions.jsonl/131957
{ "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, 9596, 75198, 5500, 3575, 8384, 368, 341, 262, 1077, 729, 284, 5712, 486, 931, 1006, 286, 330, 1688, 756, 286, 609, 4083, 0, 1183, 64, 3263, 983, 3904, 73845, 286, 609, 56, 22604, 16041, 486, 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_ccsds_parser_keep_footer() { let slice = [0x00,0x3,0xFF,0xFF,0x00,0x01,0xFF,0xFF, 0x12, 0x34]; let mut parser = CcsdsParser::new(); parser.config.keep_footer = true; parser.config.num_footer_bytes = 2; parser.recv_slice(&slice); assert_eq!(parser.current_status(),...
rust_cleaned_test_functions.jsonl/105751
{ "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, 28955, 82, 5356, 18517, 50293, 25966, 368, 972, 262, 1077, 15983, 284, 508, 15, 87, 15, 15, 11, 15, 87, 18, 11, 15, 9264, 11, 15, 9264, 11, 15, 87, 15, 15, 11, 15, 87, 15, 16, 11, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_phi_conversion() { let context = Context::create(); let module = context.create_module("phi"); let builder = context.create_builder(); let fn_type = context.void_type().fn_type(&[], false); let function = module.add_function("do_stuff", fn_type, None); let basic_block = ...
rust_cleaned_test_functions.jsonl/134455
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 368 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42009, 64132, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 543, 262, 1077, 4688, 284, 2266, 2520, 10750, 445, 16827, 797, 262, 1077, 7363, 284, 2266, 2520, 28532, 1428, 262, 1077, 5168, 1819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mem_reader_vectored() { let mut reader = Cursor::new(vec![0, 1, 2, 3, 4, 5, 6, 7]); let mut buf = []; assert_eq!(reader.read_vectored(&mut [IoSliceMut::new(&mut buf)]).unwrap(), 0); assert_eq!(reader.position(), 0); let mut buf = [0]; assert_eq!( ...
rust_cleaned_test_functions.jsonl/78187
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 592 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 22306, 59402, 3018, 368, 341, 286, 1077, 5206, 6604, 284, 28067, 486, 931, 25592, 20703, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty_datetime() { let datetime = Datetime::default(); assert_eq!(datetime.hours(), None); assert_eq!(datetime.minutes(), None); assert_eq!(datetime.seconds(), None); assert_eq!(datetime.milli_seconds(), None); assert_eq!(datetime.month(), None); ...
rust_cleaned_test_functions.jsonl/117264
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 28943, 368, 341, 286, 1077, 8874, 284, 21631, 4107, 486, 2258, 543, 286, 2060, 10714, 10297, 15450, 76092, 1507, 2240, 317, 286, 2060, 10714, 10297, 15450, 81494, 1507, 2240, 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...
1
#[test] fn test_attr_defaults() { let param: crate::parse::SketchParam = syn::parse_quote!(foo: u32); let attrs = param.param_attrs; assert_eq!(attrs.name, None); assert_eq!(attrs.desc, None); assert!(!attrs.internal); assert_eq!(attrs.default, None); ass...
rust_cleaned_test_functions.jsonl/22302
{ "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, 10422, 42290, 368, 341, 286, 1077, 1685, 25, 17717, 486, 6400, 486, 75288, 2001, 284, 6782, 486, 6400, 45236, 10297, 7975, 25, 575, 18, 17, 317, 286, 1077, 16204, 284, 1685, 6634, 39578, 401, 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_from_angle_x_rotate_vector2() { let rotation = Rotation3::from_angle_x(Degrees(90_f64)); let vector = Vector3::new(1_f64, 1_f64, 1_f64); let expected = Vector3::new(1_f64, -1_f64, 1_f64); let result = rotation.rotate_vector(&vector); assert!(relative_eq!(...
rust_cleaned_test_functions.jsonl/70487
{ "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, 5673, 21727, 3212, 60834, 12247, 17, 368, 341, 286, 1077, 12695, 284, 47528, 18, 486, 1499, 21727, 3212, 5432, 791, 7858, 7, 24, 15, 761, 21, 19, 1106, 286, 1077, 4621, 284, 4196, 18, 486, 931...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_report_parse_response_error() { block_on(async { let http = MockHttpRequest::new(HttpResponse::new("invalid response".into())); let mut state_machine = StateMachineBuilder::new_stub().http(http).build().await; let response = state_machine.oneshot().a...
rust_cleaned_test_functions.jsonl/59668
{ "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, 14813, 21039, 9655, 4096, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 1758, 284, 14563, 26362, 486, 931, 12286, 2582, 486, 931, 445, 11808, 2033, 3263, 18122, 25138, 310, 1077, 5206, 1584, 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_account_one() { let (_accounts_dirs, paths) = get_temp_accounts_paths(1).unwrap(); let db = AccountsDb::new(paths, &ClusterType::Development); let mut pubkeys: Vec<Pubkey> = vec![]; create_account(&db, &mut pubkeys, 0, 1, 0, 0); let ancestors = vec![(0, 0)...
rust_cleaned_test_functions.jsonl/1344
{ "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, 13500, 11667, 368, 341, 286, 1077, 5453, 26206, 44869, 11, 12716, 8, 284, 633, 11771, 55665, 24152, 7, 16, 568, 15454, 543, 286, 1077, 2927, 284, 40655, 7994, 486, 931, 54728, 11, 609, 28678, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_virtio_features() { let mut block = default_block(); assert_eq!(block.device_type(), TYPE_BLOCK); let features: u64 = (1u64 << VIRTIO_F_VERSION_1) | (1u64 << VIRTIO_BLK_F_FLUSH); assert_eq!(block.avail_features_by_page(0), features as u32); assert_eq!(b...
rust_cleaned_test_functions.jsonl/73914
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 2106, 815, 14965, 368, 341, 286, 1077, 5206, 2504, 284, 1638, 7113, 1428, 286, 2060, 10714, 10297, 4574, 18355, 1819, 1507, 12454, 18756, 626, 286, 1077, 4419, 25, 575, 21, 19, 284, 320, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_index() { match index().easy_parse(position::Stream::new("[ R2 ]")) { Ok((index, _)) => assert_eq!(index, (Reg::R2, 0, IndexType::PRE, (1, 12))), Err(_) => assert!(false), } match index().easy_parse(position::Stream::new("[ R1 , $3262 ...
rust_cleaned_test_functions.jsonl/103370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 701 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 368, 341, 286, 2432, 1922, 1005, 45022, 21039, 12470, 486, 3027, 486, 931, 10937, 257, 431, 17, 220, 2279, 2761, 341, 310, 7622, 1188, 1252, 11, 716, 593, 589, 2060, 10714, 10297, 1252, 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...
7
#[test] fn test_query_transfer_history() { let (init_result, mut deps) = init_helper(vec![InitialBalance { address: HumanAddr("bob".to_string()), amount: Uint128(5000), }]); assert!( init_result.is_ok(), "Init failed: {}", init_...
rust_cleaned_test_functions.jsonl/69631
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1799 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 35403, 19802, 368, 341, 286, 1077, 320, 2327, 5287, 11, 5206, 48178, 8, 284, 2930, 10418, 25592, 20703, 6341, 21190, 341, 310, 2621, 25, 11097, 13986, 445, 47086, 3263, 983, 3904, 14702, 310...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_read_shred_bytes() { let slot = 0; let (shreds, _) = make_slot_entries(slot, 0, 100); let num_shreds = shreds.len() as u64; let shred_bufs: Vec<_> = shreds.iter().map(|shred| shred.payload.clone()).collect(); let ledger_path = get_tmp_ledger_path!(); ...
rust_cleaned_test_functions.jsonl/7595
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 3712, 1151, 12524, 368, 341, 286, 1077, 9446, 284, 220, 15, 280, 286, 1077, 320, 927, 53369, 11, 27439, 284, 1281, 27563, 26092, 43724, 11, 220, 15, 11, 220, 16, 15, 15, 317, 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_map() { let data: &[u8] = &[0x2, 0, 0, 0, 0, 0, 0, 0, 0x12, 0x34, 0x56, 0x78]; let result: std::collections::HashMap<u8, u8> = from_bytes(data, PodType::TVM).unwrap(); let mut map = std::collections::HashMap::new(); map.insert(0x12, 0x34); map.insert(0x56,...
rust_cleaned_test_functions.jsonl/57366
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 368, 341, 286, 1077, 821, 25, 44590, 84, 23, 60, 284, 44590, 15, 87, 17, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 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_negation_zero_modulus() { let one: ModInt = ModInt::one(); let neg_one: ModInt = one.neg(); assert_eq!(BigInt::one().neg(), neg_one.value); assert_eq!(BigInt::zero(), neg_one.modulus); }
rust_cleaned_test_functions.jsonl/126144
{ "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, 28209, 367, 19359, 7480, 19425, 368, 341, 286, 1077, 825, 25, 5650, 1072, 284, 5650, 1072, 486, 603, 543, 286, 1077, 4184, 11667, 25, 5650, 1072, 284, 825, 79219, 1428, 286, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_qualify_path_fn_trait_notation() { check_assist( add_missing_impl_members, " mod foo { pub trait Fn<Args> { type Output; } trait Foo { fn foo(&self, bar: dyn Fn(u32) -> i32); } } struct S; impl foo::Foo for S { <|> }", " mod foo { pub trait...
rust_cleaned_test_functions.jsonl/106822
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64391, 1437, 2638, 15246, 78491, 7913, 367, 368, 341, 286, 1779, 12083, 380, 1006, 310, 912, 40447, 21007, 30397, 345, 310, 6228, 2593, 15229, 341, 262, 6675, 17567, 50182, 27, 4117, 29, 314, 943,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shuffle_contains_each_value() { let value: [u8; 16] = 0x00010203_04050607_08090A0B_0C0D0E0F_u128.convert(); let shuffled: [u8; 16] = shuffle(value.convert()).convert(); for index in 0..16_u8 { assert!(shuffled.contains(&index), "Value is missing {}", index); ...
rust_cleaned_test_functions.jsonl/109541
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73484, 63598, 32046, 3142, 368, 341, 286, 1077, 897, 25, 508, 84, 23, 26, 220, 16, 21, 60, 284, 220, 15, 87, 15, 15, 15, 16, 15, 17, 15, 18, 62, 15, 19, 15, 20, 15, 21, 15, 22, 62, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_error_with_cause() { use std::error::Error; let error = throws_error_with_description().unwrap_err(); assert_eq!( format!("{}", error.cause().unwrap()), "CustomError: err" ); }
rust_cleaned_test_functions.jsonl/30022
{ "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, 4096, 6615, 666, 3454, 368, 341, 262, 990, 1460, 486, 841, 486, 1454, 401, 262, 1077, 1465, 284, 3787, 4096, 6615, 11448, 1005, 15454, 9266, 543, 262, 2060, 10714, 33673, 286, 3561, 79878, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_newer_file() { let scenario = TestScenario::new(util_name!()); scenario.cmd("touch").arg("newer_file").succeeds(); scenario .cmd("touch") .args(&["-m", "-d", "last Thursday", "regular_file"]) .succeeds(); scenario .ucmd() .args(&["newer_f...
rust_cleaned_test_functions.jsonl/11006
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 261, 2458, 368, 341, 262, 1077, 15048, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 5231, 262, 15048, 25724, 445, 22020, 1827, 858, 445, 931, 261, 2458, 1827, 82, 29264, 82, 543, 262, 15048...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_client_stop_sending_decoder_stream() { let (mut client, mut server) = connect(); server .conn .stream_stop_sending(CLIENT_SIDE_DECODER_STREAM_ID, Error::HttpNoError.code()) .unwrap(); let out = server.conn.process(None, now()); ...
rust_cleaned_test_functions.jsonl/101878
{ "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, 8179, 19039, 643, 2459, 49843, 12673, 368, 341, 286, 1077, 320, 6984, 2943, 11, 5206, 3538, 8, 284, 4564, 543, 286, 3538, 198, 310, 659, 5148, 198, 310, 659, 4027, 19039, 643, 2459, 52991, 10757...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_returning_complex_type() { let ctx = TestContext::new(); block_on_all(future::lazy(|| { ctx.shared_async_connection().and_then(|con| { redis::Script::new("return {1, ARGV[1], true}") .arg("hello") .invoke_async(con) ...
rust_cleaned_test_functions.jsonl/10908
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 414 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14660, 12511, 287, 41522, 1819, 368, 341, 262, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 262, 2504, 4470, 5705, 955, 2976, 486, 49013, 79453, 341, 286, 5635, 18062, 28346, 15866, 1005, 437, 6836...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_classed_html_generator_prefixed() { let current_code = "x + y\n"; let syntax_set = SyntaxSet::load_defaults_newlines(); let syntax = syntax_set.find_syntax_by_name("R").unwrap(); let mut html_generator = ClassedHTMLGenerator::new_with_class_style( synt...
rust_cleaned_test_functions.jsonl/116427
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4790, 291, 9564, 25813, 43331, 3286, 368, 341, 286, 1077, 1482, 4136, 284, 330, 87, 488, 379, 1699, 876, 286, 1077, 19482, 2602, 284, 32117, 1649, 486, 1078, 42290, 5921, 7969, 543, 286, 1077, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_filter_by_tags() { timeout_ms( || { let mut p = setup_default_packet(); let mut p2 = p.clone(); // p tags - "DDDDD" memset(&mut p.data[..], 1, 68, 5); p2.metadata.pid = 0; p2.meta...
rust_cleaned_test_functions.jsonl/76998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 3710, 16333, 368, 341, 286, 9632, 21416, 1006, 310, 1369, 341, 394, 1077, 5206, 281, 284, 6505, 9993, 21078, 543, 394, 1077, 5206, 281, 17, 284, 281, 15997, 543, 394, 442, 281, 9492, 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...
2
#[test] fn test_parse_width_specifier() { use super::parse_width_specifier; let term_width = 12; let assert_failure_containing = |x, errmsg| { assert!(parse_width_specifier(x, term_width) .unwrap_err() .contains(errmsg)); }; a...
rust_cleaned_test_functions.jsonl/38123
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 720 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 7927, 13594, 3049, 368, 341, 286, 990, 2256, 486, 6400, 7927, 13594, 3049, 280, 286, 1077, 4647, 7927, 284, 220, 16, 17, 401, 286, 1077, 2060, 43618, 10260, 2056, 284, 760, 87, 11, 67045,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_formatting() { let input = r#"//! Module-level documentation //! written in two lines. #![warn(missing_copy_implementations)] #![allow(incomplete_features)] #![recursion_limit = "512"] pub use lib_f::item_1; pub mod mod1; use crate::prelude::*; use crate::lib_b; use lib_c; pub use crate::li...
rust_cleaned_test_functions.jsonl/106423
{ "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, 8955, 1280, 368, 341, 262, 1077, 1946, 284, 435, 55543, 13650, 13711, 11591, 9705, 198, 13650, 5326, 304, 1378, 5128, 382, 85366, 33481, 1255, 13577, 16096, 17895, 2764, 804, 5563, 85366, 7183, 5900...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sandbox_assert_status() { let sandbox = timestamping_sandbox(); sandbox.assert_state(Height(1), Round(1)); sandbox.add_time(Duration::from_millis(999)); sandbox.assert_state(Height(1), Round(1)); sandbox.add_time(Duration::from_millis(1)); sandbox....
rust_cleaned_test_functions.jsonl/77266
{ "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, 643, 31536, 16553, 4773, 368, 341, 286, 1077, 42754, 284, 11441, 287, 643, 31536, 543, 286, 42754, 3713, 4387, 7, 3640, 7, 16, 701, 17097, 7, 16, 1106, 286, 42754, 1364, 3009, 64114, 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_and_with_multiple_lt_to_string() { let name1 = _random_vector(10); let value1 = _random_string(10); let name2 = _random_vector(10); let value2 = _random_string(10); let name3 = _random_vector(10); let value3 = _random_string(10); let query...
rust_cleaned_test_functions.jsonl/11902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 747 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 6615, 45233, 39164, 2346, 3904, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 12247, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 829, 17, 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_store_resolve_with_illegal_tso() { let store = AssertionStorage::default(); let commit_ts = Some(4); let spacelike_ts = 5; store.prewrite_ok( vec![ Mutation::Put((Key::from_raw(b"primary"), b"p-5".to_vec())), Mutation::Put((Key::from_raw(b"secondar...
rust_cleaned_test_functions.jsonl/120730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14809, 77291, 6615, 26743, 6428, 528, 704, 368, 341, 262, 1077, 3553, 284, 46730, 5793, 486, 2258, 543, 262, 1077, 5266, 25023, 284, 4329, 7, 19, 317, 262, 1077, 99008, 301, 2970, 25023, 284, 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_two_idents() { check( r#" macro_rules! m { ($i:ident, $j:ident) => { fn foo() { let a = $i; let b = $j; } } } m! { foo, bar } "#, expect![[r#" macro_rules! m { ($i:ident, $j:ident) => { fn foo() { let a = $i; let b = $j; } } } fn foo() { let a = foo; let b = b...
rust_cleaned_test_functions.jsonl/85215
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 842, 805, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 341, 262, 1711, 72, 25, 1713, 11, 400, 73, 25, 1713, 8, 589, 314, 5168, 15229, 368, 314, 1077, 264, 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_wrap_return_type_option() { check_fix( r#" //- minicore: option, result fn div(x: i32, y: i32) -> Option<i32> { if y == 0 { return None; } x / y$0 } "#, r#" fn div(x: i32, y: i32) -> Option<i32> { if y == 0 { return None; } ...
rust_cleaned_test_functions.jsonl/51834
{ "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, 38550, 12511, 1819, 9672, 368, 341, 286, 1779, 36060, 1006, 310, 435, 2, 698, 61463, 1308, 292, 460, 25, 2999, 11, 1102, 198, 8822, 3429, 2075, 25, 600, 18, 17, 11, 379, 25, 600, 18, 17, 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...
1
#[test] fn test_convert_stoi() { let test = "ACGTN$"; let converted = convert_stoi(&test); assert_eq!(converted, vec![1, 2, 3, 5, 4, 0]); }
rust_cleaned_test_functions.jsonl/10015
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 1261, 6728, 368, 341, 286, 1077, 1273, 284, 330, 1706, 25388, 45, 3, 876, 286, 1077, 16099, 284, 5508, 1261, 6728, 2099, 1944, 317, 286, 2060, 10714, 10297, 76204, 11, 7486, 20703, 16, 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
#[test] fn test_insert_different_tables() { // Test for https://github.com/rusqlite/rusqlite/issues/171 let db = Connection::open_in_memory().unwrap(); db.execute_batch( r" CREATE TABLE foo(x INTEGER); CREATE TABLE bar(x INTEGER); ", ) ...
rust_cleaned_test_functions.jsonl/57180
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 431 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 82741, 35632, 368, 341, 286, 442, 3393, 369, 3703, 1110, 5204, 905, 7382, 355, 1470, 632, 7382, 355, 1470, 632, 38745, 14, 16, 22, 16, 198, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_kill() { let mut child = Command::new("perl").arg("-e").arg(SCRIPT).spawn().unwrap(); let mut reader = ProcReader::from_stdout(child.id()); let _ = child.kill(); thread::sleep(Duration::from_secs(4)); let mut buf = [0; 10]; let ret = reader.read_...
rust_cleaned_test_functions.jsonl/127261
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73327, 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, 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...
1
#[test] fn test_page_geometry() { START.call_once(|| { magick_wand_genesis(); }); let wand = MagickWand::new(); assert!(wand.read_image("tests/data/rust.gif").is_ok()); assert_eq!((156, 150, 39, 36), wand.get_image_page()); assert_eq!(80, wand.get_image_width()); assert_eq!(...
rust_cleaned_test_functions.jsonl/57702
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6129, 57022, 368, 341, 262, 20998, 8524, 7630, 79453, 341, 286, 4878, 865, 1670, 437, 16322, 13774, 543, 262, 1625, 262, 1077, 28710, 284, 87154, 54, 437, 486, 931, 543, 262, 2060, 10297, 79810, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decode_orr() { match decode_16(0x430b) { Instruction::ORR_reg { params, thumb32 } => { assert!(params.rd == Reg::R3); assert!(params.rn == Reg::R3); assert!(params.rm == Reg::R1); assert!(params.setflags == SetFlags::NotInITBlock);...
rust_cleaned_test_functions.jsonl/64762
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 8734, 81, 368, 341, 1066, 262, 2432, 16895, 62, 16, 21, 7, 15, 87, 19, 18, 15, 65, 8, 341, 286, 29051, 486, 868, 49, 4920, 314, 3628, 11, 24050, 18, 17, 335, 589, 341, 310, 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_octet_stream_http_get_request() { let port = start_server(); // Check that GET requests return a ok status let resp = reqwest::blocking::get(&format!("http://127.0.0.1:{}/core/data.dat", port)).unwrap(); assert_eq!(resp.status(), StatusCode::OK); ...
rust_cleaned_test_functions.jsonl/126003
{ "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, 70135, 295, 12673, 25888, 3062, 7893, 368, 341, 286, 1077, 2635, 284, 1191, 12015, 1428, 286, 442, 4248, 429, 7890, 7388, 470, 264, 5394, 2639, 198, 286, 1077, 9039, 4035, 310, 4232, 11039, 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_projective_addition() { { let a = G2Projective::identity(); let b = G2Projective::identity(); let c = a + b; assert!(bool::from(c.is_identity())); assert!(bool::from(c.is_on_curve())); } { let a = G2Projective::identity(); let m...
rust_cleaned_test_functions.jsonl/47804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3940 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16352, 533, 2891, 680, 368, 341, 262, 341, 286, 1077, 264, 284, 479, 17, 7849, 533, 486, 16912, 543, 286, 1077, 293, 284, 479, 17, 7849, 533, 486, 16912, 543, 286, 1077, 272, 284, 264, 488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_truncated() { let options = [0x01, 0x02, 0x00, 0x00]; let _ = Ipv6OptionsIterator::new(&options, 5); }
rust_cleaned_test_functions.jsonl/130725
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8743, 11723, 3547, 38007, 368, 341, 286, 1077, 2606, 284, 508, 15, 87, 15, 16, 11, 220, 15, 87, 15, 17, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 935, 286, 1077, 716, 284, 358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_zbi_extractor_empty_zbi() { let store_dir = tempdir().unwrap(); let uri = store_dir.into_path().into_os_string().into_string().unwrap(); let model = Arc::new(DataModel::connect(uri).unwrap()); let zbi_controller = ZbiExtractController::default(); let input...
rust_cleaned_test_functions.jsonl/25971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 365 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6415, 8221, 89821, 15124, 6415, 8221, 368, 341, 286, 1077, 3553, 4334, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 13071, 284, 3553, 4334, 39860, 2638, 1005, 18122, 29387, 3904, 1005, 18122, 3904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_into_string_small_string_with_no_excess_capacity() { let string = String::from("abcdef"); let str_addr = string.as_ptr(); let str_len = string.len(); let str_cap = string.capacity(); let compact = CompactString::from(string); let new_string = String::from(compact); l...
rust_cleaned_test_functions.jsonl/2807
{ "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, 45514, 3904, 31966, 3904, 6615, 6536, 2702, 1120, 35603, 368, 341, 262, 1077, 914, 284, 923, 486, 1499, 445, 41202, 797, 262, 1077, 607, 7387, 284, 914, 5357, 4348, 543, 262, 1077, 607, 6043, 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_raw_batch_put() { test_raw_batch_put_impl(ApiVersion::V1); test_raw_batch_put_impl(ApiVersion::V1ttl); test_raw_batch_put_impl(ApiVersion::V2); }
rust_cleaned_test_functions.jsonl/133280
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 14534, 15557, 368, 341, 286, 1273, 16067, 14534, 15557, 21007, 65830, 5637, 486, 53, 16, 317, 286, 1273, 16067, 14534, 15557, 21007, 65830, 5637, 486, 53, 16, 62858, 317, 286, 1273, 16067, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_selector() { macro_rules! test_sel { ($s:literal, $($tt:tt)+) => {{ let sel = sel!($($tt)*); let expected = Sel::register($s); assert_eq!(sel, expected); assert_eq!(sel.name(), $s); }} } ...
rust_cleaned_test_functions.jsonl/7119
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28890, 368, 341, 286, 18072, 21407, 0, 1273, 34153, 341, 310, 1711, 82, 25, 35785, 11, 93977, 5566, 25, 5566, 7257, 8, 589, 80505, 394, 1077, 11806, 284, 11806, 0, 699, 699, 5566, 4806, 317, 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_deserialize_integer_2() -> Result<()> { let input = "i-3e"; let i: i64 = from_slice(input.as_bytes())?; assert_eq!(i, -3); Ok(()) }
rust_cleaned_test_functions.jsonl/120773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 31725, 62, 17, 368, 1464, 5714, 71698, 341, 286, 1077, 1946, 284, 330, 72, 12, 18, 68, 876, 286, 1077, 600, 25, 600, 21, 19, 284, 504, 26488, 5384, 5357, 12524, 2140, 37445, 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 ]
2
#[test] fn test_parse_bad_syntax() { let req = TestRequest::default() .insert_header((header::CACHE_CONTROL, "foo=")) .finish(); let cache: Result<CacheControl, _> = Header::parse(&req); assert_eq!(cache.ok(), None) }
rust_cleaned_test_functions.jsonl/62434
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 34199, 78894, 368, 341, 286, 1077, 4232, 284, 3393, 1900, 486, 2258, 741, 310, 659, 4208, 8757, 1188, 2708, 486, 61736, 23680, 11, 330, 7975, 428, 1171, 310, 659, 30150, 543, 286, 1077, 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_list_equal() { let a = create_list_array(&[Some(&[1, 2, 3]), Some(&[4, 5, 6])]); let b = create_list_array(&[Some(&[1, 2, 3]), Some(&[4, 5, 6])]); test_equal(a.as_ref(), b.as_ref(), true); let b = create_list_array(&[Some(&[1, 2, 3]), Some(&[4, 5, 7])]); ...
rust_cleaned_test_functions.jsonl/46948
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 11478, 368, 341, 286, 1077, 264, 284, 1855, 2019, 3858, 2099, 58, 8373, 2099, 58, 16, 11, 220, 17, 11, 220, 18, 9719, 4329, 2099, 58, 19, 11, 220, 20, 11, 220, 21, 2467, 2558, 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...
1
#[test] fn test_fq2_squaring() { let a = Fq2 { c0: Fq::one(), c1: Fq::one(), }; // u + 1 assert_eq!( a.square(), Fq2 { c0: Fq::zero(), c1: Fq::from(2), } ); // 2u let a = Fq2 { c0: Fq::zero(), c1: Fq::one(), ...
rust_cleaned_test_functions.jsonl/45341
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1603 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 17, 643, 446, 3249, 368, 341, 262, 1077, 264, 284, 434, 80, 17, 341, 286, 272, 15, 25, 434, 80, 486, 603, 3148, 286, 272, 16, 25, 434, 80, 486, 603, 3148, 262, 20066, 442, 575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_user() { let spotify = Spotify::default() .client_credentials_manager(CLIENT_CREDENTIAL.lock().unwrap().clone()) .build(); dbg!(&spotify); let birdy_uri = String::from("tuggareutangranser"); let user = spotify.user(&birdy_uri); assert!(user.is_ok()); }
rust_cleaned_test_functions.jsonl/96522
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3317, 368, 341, 1066, 262, 1077, 87790, 284, 40537, 486, 2258, 741, 286, 659, 2972, 47396, 12144, 52991, 10757, 920, 81509, 21003, 1005, 15454, 1005, 19982, 2398, 286, 659, 5834, 543, 262, 47904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_next_leader_slot_blockstore() { let pubkey = solana_sdk::pubkey::new_rand(); let mut genesis_config = create_genesis_config_with_leader(42, &pubkey, bootstrap_validator_stake_lamports()) .genesis_config; genesis_config.epoch_schedule.warmup = f...
rust_cleaned_test_functions.jsonl/26071
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1621 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11257, 79991, 27563, 7113, 4314, 368, 341, 286, 1077, 95116, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 5206, 59366, 5332, 4035, 310, 1855, 16322, 13774, 5332, 6615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_device_stream_configuration() { if let Some(device) = test_get_default_device(Scope::Input) { let buffers = get_device_stream_configuration(device, DeviceType::INPUT).unwrap(); println!("input stream config: {:?}", buffers); dbg!(buffers); } else { pri...
rust_cleaned_test_functions.jsonl/113830
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 265 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 9204, 12673, 35726, 368, 341, 262, 421, 1077, 4329, 17848, 8, 284, 1273, 3062, 9993, 9204, 3759, 2417, 486, 2505, 8, 341, 286, 1077, 27389, 284, 633, 9204, 12673, 35726, 17848, 11, 13903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_str_radix() { fn test(z: Complex64, s: &str, radix: u32) { let res: Result<Complex64, <Complex64 as Num>::FromStrRadixErr> = Num::from_str_radix(s, radix); assert_eq!(res.unwrap(), z) } test(_4_2i, "4+2i", 10); test(Com...
rust_cleaned_test_functions.jsonl/105670
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 306 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 39764, 941, 368, 341, 286, 5168, 1273, 13174, 25, 22096, 21, 19, 11, 274, 25, 609, 495, 11, 75658, 25, 575, 18, 17, 8, 341, 310, 1077, 592, 25, 5714, 27, 31137, 21, 19, 11, 366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_valid_singleton() { let tx_outs = get_tx_outs(1); let tx_out = tx_outs.get(0).unwrap(); let hash = hash_leaf(tx_out); let elems = vec![TxOutMembershipElement { range: Range::new(0, 0).unwrap(), hash: hash.into(), }]; let ...
rust_cleaned_test_functions.jsonl/5262
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 225 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 8337, 82119, 368, 341, 286, 1077, 9854, 6068, 82, 284, 633, 17805, 6068, 82, 7, 16, 317, 286, 1077, 9854, 6068, 284, 9854, 6068, 82, 670, 7, 15, 568, 15454, 543, 286, 1077, 5175, 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_deserialization() { let dt = "2018-02-11T07:09:22.765Z".parse::<DateTime<Utc>>().unwrap(); let proposal = Proposal { msg_type: Type::Proposal, height: Height::from(12345_u32), round: Round::from(23456_u16), timestamp: Some(dt.into()...
rust_cleaned_test_functions.jsonl/90192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1296 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 50563, 368, 341, 286, 1077, 7594, 284, 330, 17, 15, 16, 23, 12, 15, 17, 12, 16, 16, 51, 15, 22, 25, 15, 24, 25, 17, 17, 13, 22, 21, 20, 57, 3263, 6400, 27638, 7689, 36397, 10413, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_load_def() { let definitions = DefinitionFields::new().definitions.unwrap(); assert_eq!(definitions.types.len(),20); assert_eq!(definitions.transaction_types.len(),31); assert_eq!(definitions.transaction_results.len(),127); let generic_field = DefinitionFi...
rust_cleaned_test_functions.jsonl/15175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 7844, 368, 341, 286, 1077, 17473, 284, 19709, 8941, 486, 931, 1005, 48563, 55395, 543, 286, 2060, 10714, 10297, 48563, 23226, 19406, 1507, 17, 15, 317, 286, 2060, 10714, 10297, 48563, 25706, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_config_serialization_errors() { let error: SerializerError = SerializerError::new(SerializerErrorKind::Syntax); assert!(error.msg.is_none()); assert_eq!(format!("{}", error), String::from("Syntax error")); let error: SerializerError = SerializerError::...
rust_cleaned_test_functions.jsonl/15998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 516 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 25602, 2022, 20196, 368, 341, 286, 1077, 1465, 25, 58822, 1454, 284, 58822, 1454, 486, 931, 3759, 41939, 1454, 10629, 486, 33890, 317, 286, 2060, 10297, 841, 15137, 2079, 31488, 1423, 286, 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_copy_format_text_parser() { let text = "\t\\nt e\t\\N\t\n\\x60\\xA\\x7D\\x4a\n\\44\\044\\123".as_bytes(); let mut parser = CopyTextFormatParser::new(text, "\t", "\\N"); assert!(parser.is_column_delimiter()); parser .expect_column_delimiter() ...
rust_cleaned_test_functions.jsonl/78888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 865 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 8955, 4326, 18517, 368, 341, 286, 1077, 1467, 284, 2917, 83, 3422, 406, 384, 4955, 3422, 45, 4955, 1699, 3422, 87, 21, 15, 3422, 14673, 3422, 87, 22, 35, 3422, 87, 19, 64, 1699, 3422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_has_reached() { let v1 = Vec::from([('B', 'A'), ('C', 'D')]); let v2 = Vec::from([('B', 'A'), ('C', 'D')]); assert_eq!(has_reached(&v1, &v2), true); }
rust_cleaned_test_functions.jsonl/59333
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21778, 1288, 3854, 368, 341, 286, 1077, 348, 16, 284, 11312, 486, 1499, 89543, 33, 516, 364, 32, 4567, 4319, 34, 516, 364, 35, 863, 2558, 286, 1077, 348, 17, 284, 11312, 486, 1499, 89543, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_criss_cross_merge_base() -> BitResult<()> { BitRepo::with_empty_repo(|repo| { let mut dag = DagBuilder::default(); let [a, b, c, d] = dag.mk_nodes(); dag.add_parents([(c, a), (c, b), (d, a), (d, b)]); let commits = CommitGraphBuilder::new(repo).apply(&dag)?; ...
rust_cleaned_test_functions.jsonl/94147
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32331, 1038, 35284, 20888, 7651, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 15124, 37784, 22428, 23476, 91, 341, 286, 1077, 5206, 28069, 284, 77027, 3297, 486, 2258, 543, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3