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_explicit_positive() { assert_eq!(decimal("+1"), decimal("1")); assert_eq!(decimal("+2.0") - decimal("-0002.0"), decimal("4")); }
rust_cleaned_test_functions.jsonl/58124
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14214, 6026, 54160, 368, 341, 262, 2060, 10714, 10297, 23289, 34973, 16, 3975, 12122, 445, 16, 4010, 262, 2060, 10714, 10297, 23289, 34973, 17, 13, 15, 899, 481, 12122, 13645, 15, 15, 15, 17, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_length2() { let buf = BytesMut::from(&[0b0000_0001u8, 126u8][..]); let mut buf = PayloadBuffer::new(once(Ok(buf.freeze()))); assert!(is_none(&Frame::parse(&mut buf, false, 1024))); let mut buf = BytesMut::from(&[0b0000_0001u8, 126u8][..]); buf.exten...
rust_cleaned_test_functions.jsonl/55889
{ "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, 21039, 5118, 17, 368, 341, 286, 1077, 6607, 284, 30024, 51440, 486, 1499, 2099, 58, 15, 65, 15, 15, 15, 15, 62, 15, 15, 15, 16, 84, 23, 11, 220, 16, 17, 21, 84, 23, 1457, 496, 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
#[test] fn test_intfastfield_permutation() { let path = Path::new("test"); let permutation = generate_permutation(); let n = permutation.len(); let mut directory = RAMDirectory::create(); { let write: WritePtr = directory.open_write(Path::new("test")).unwrap()...
rust_cleaned_test_functions.jsonl/12510
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 624 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 9349, 2566, 31961, 22705, 368, 341, 286, 1077, 1815, 284, 7933, 486, 931, 445, 1944, 797, 286, 1077, 58441, 284, 6923, 31961, 22705, 543, 286, 1077, 308, 284, 58441, 19406, 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...
3
#[test] fn test_swab_257_test() { new_ucmd!() .args(&["conv=swab"]) .pipe_in_fixture("seq-byte-values-odd.test") .succeeds() .stdout_is_fixture_bytes("seq-byte-values-odd.spec"); }
rust_cleaned_test_functions.jsonl/99857
{ "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, 32581, 370, 62, 17, 20, 22, 4452, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12027, 28, 2280, 370, 14108, 286, 659, 13768, 1243, 74409, 445, 13262, 53952, 69050, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_1_3() { assert_eq!( shuffle( 10, &r"deal with increment 7 deal with increment 9 cut -2" .parse() .unwrap(), ), vec![6, 3, 0, 7, 4, 1, 8, 5, 2, 9], ) }
rust_cleaned_test_functions.jsonl/104845
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39304, 62, 16, 62, 18, 368, 341, 286, 2060, 10714, 33673, 310, 25947, 1006, 394, 220, 16, 15, 345, 394, 609, 81, 1, 29639, 448, 16252, 220, 22, 198, 29639, 448, 16252, 220, 24, 198, 10242, 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_lazy_groupby_filter() -> Result<()> { let df = df! { "a" => ["a", "a", "a", "b", "b", "c"], "b" => [1, 2, 3, 4, 5, 6] }?; // We test if the filters work in the groupby context // and that the aggregations can deal with empty sets let out = df .lazy()...
rust_cleaned_test_functions.jsonl/22391
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 597 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 6288, 1694, 8727, 368, 1464, 5714, 71698, 341, 262, 1077, 6764, 284, 6764, 0, 341, 286, 330, 64, 1, 589, 4383, 64, 497, 330, 64, 497, 330, 64, 497, 330, 65, 497, 330, 65, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_math_non_mempership() { let rng = &mut ChaChaRng::from_seed([0u8; 32]); let int_size_bits = 32; let x = rng.gen_prime(int_size_bits); let s1 = rng.gen_prime(int_size_bits); let s2 = rng.gen_prime(int_size_bits); let n = BigUint::from_u32(43 * 67...
rust_cleaned_test_functions.jsonl/96048
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65561, 21637, 717, 3262, 388, 2151, 368, 341, 286, 1077, 28422, 284, 609, 6984, 27721, 95971, 49, 968, 486, 1499, 33809, 2561, 15, 84, 23, 26, 220, 18, 17, 10149, 286, 1077, 526, 2368, 20034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decimal_format() { assert_eq!("1002", Decimal::from(1002_i32, 0).to_string()); assert_eq!("-1002", Decimal::from(-1002_i32, 0).to_string()); assert_eq!("100.2", Decimal::from(1002_i32, 1).to_string()); assert_eq!("10.02", Decimal::from(1002_i32, 2).to_string()); ...
rust_cleaned_test_functions.jsonl/6358
{ "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, 74429, 8955, 368, 341, 286, 2060, 10714, 17223, 16, 15, 15, 17, 497, 26728, 486, 1499, 7, 16, 15, 15, 17, 5318, 18, 17, 11, 220, 15, 568, 983, 3904, 1423, 286, 2060, 10714, 0, 13645, 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_header_name_static_non_static() { let static_header = HeaderName::from_lowercase_str("hello"); let non_static_header = HeaderName::from_str("hello").unwrap(); let mut headers = Headers::new(); headers .append(STATIC_HEADER, &["foo0".parse().unwrap()][...
rust_cleaned_test_functions.jsonl/93920
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 741 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8757, 1269, 25360, 21637, 25360, 368, 341, 286, 1077, 1099, 8757, 284, 12104, 675, 486, 1499, 93129, 2895, 445, 14990, 797, 286, 1077, 2477, 25360, 8757, 284, 12104, 675, 486, 1499, 2895, 445, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_request() { let mut balloon = Balloon::new(0, true, true, 0, false).unwrap(); let mem = default_mem(); // Only initialize the inflate queue to demonstrate invalid request handling. let infq = VirtQueue::new(GuestAddress(0), &mem, 16); balloon.set_q...
rust_cleaned_test_functions.jsonl/133173
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1071 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 7893, 368, 341, 286, 1077, 5206, 46756, 284, 19420, 31335, 486, 931, 7, 15, 11, 830, 11, 830, 11, 220, 15, 11, 895, 568, 15454, 543, 286, 1077, 1833, 284, 1638, 12976, 543, 286, 442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unwrap() { assert_eq!(Some(1).unwrap(), 1); let s = Some("hello".to_string()).unwrap(); assert_eq!(s, "hello"); }
rust_cleaned_test_functions.jsonl/20238
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 10097, 368, 341, 262, 2060, 10714, 10297, 8373, 7, 16, 568, 15454, 1507, 220, 16, 317, 262, 1077, 274, 284, 4329, 445, 14990, 3263, 983, 3904, 6011, 15454, 543, 262, 2060, 10714, 10297, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_basic_restartability() { let (mut env, mut client_proxy) = setup_swarm_and_client_proxy(4, 0); client_proxy.create_next_account(false).unwrap(); client_proxy.create_next_account(false).unwrap(); client_proxy .mint_coins(&["mb", "0", "100", "Coin1"], true) .unwrap(...
rust_cleaned_test_functions.jsonl/62875
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 783 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 69392, 2897, 368, 341, 262, 1077, 320, 6984, 6105, 11, 5206, 2943, 29712, 8, 284, 6505, 32581, 2178, 8378, 8179, 29712, 7, 19, 11, 220, 15, 317, 262, 2943, 29712, 2520, 11257, 13500, 3576...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iter() { let mut bv: BitVec<usize> = BitVec::new(); bv.set(0, true); bv.set(7, true); bv.set(8, true); bv.set(9, true); bv.set(16, true); assert_eq!( bv.iter().collect_vec(), vec![0, 7, 8, 9, 16] ); }
rust_cleaned_test_functions.jsonl/206
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 368, 341, 286, 1077, 5206, 56937, 25, 6495, 10050, 90244, 29, 284, 6495, 10050, 486, 931, 1428, 286, 56937, 980, 7, 15, 11, 830, 317, 286, 56937, 980, 7, 22, 11, 830, 317, 286, 56937, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lpad() { let mut cases = vec![ ( Datum::Bytes("a多字节".as_bytes().to_vec()), Datum::I64(3), Datum::Bytes("测试".as_bytes().to_vec()), Datum::Bytes("a多字".as_bytes().to_vec()), ), ( ...
rust_cleaned_test_functions.jsonl/9125
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 13242, 368, 341, 286, 1077, 5206, 5048, 284, 7486, 90515, 310, 2399, 394, 68459, 486, 7078, 445, 64, 42140, 18600, 55502, 3263, 300, 12524, 1005, 983, 13251, 14702, 394, 68459, 486, 40, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_analyze_column_with_lock() { let data = vec![ (1, Some("name:0"), 2), (2, Some("name:4"), 3), (4, Some("name:3"), 1), (5, Some("name:1"), 4), ]; let product = ProductTable::new(); for &iso_level in &[IsolationLevel::SI, IsolationLevel::RC] { ...
rust_cleaned_test_functions.jsonl/56300
{ "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, 12008, 55856, 8744, 6615, 9818, 368, 341, 262, 1077, 821, 284, 7486, 90515, 286, 320, 16, 11, 4329, 445, 606, 25, 15, 3975, 220, 17, 1326, 286, 320, 17, 11, 4329, 445, 606, 25, 19, 3975, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sub_i128() { let d = Decimal::new_raw(501, 2); let i = 12345_i128; let r = d - i; assert_eq!(r.coefficient(), -i * 100 + 501); assert_eq!(r.coefficient(), (&d - i).coefficient()); assert_eq!(r.coefficient(), (d - &i).coefficient()); assert_...
rust_cleaned_test_functions.jsonl/29265
{ "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, 5228, 5318, 16, 17, 23, 368, 341, 286, 1077, 294, 284, 26728, 486, 931, 16067, 7, 20, 15, 16, 11, 220, 17, 317, 286, 1077, 600, 284, 220, 16, 17, 18, 19, 20, 5318, 16, 17, 23, 280, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval() { let mut vars = HashMap::new(); vars.insert("a".into(), 10.0); vars.insert("b".into(), 20.0); vars.insert("c".into(), 30.0); let input_expected = &[ (vec![Num(1.0)], Ok(1.0)), (vec![Id("a")], Ok(10.0)), (vec![I...
rust_cleaned_test_functions.jsonl/4268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 633 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 368, 341, 286, 1077, 5206, 19942, 284, 10528, 486, 931, 1428, 286, 19942, 7030, 445, 64, 3263, 18122, 1507, 220, 16, 15, 13, 15, 317, 286, 19942, 7030, 445, 65, 3263, 18122, 1507, 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...
2
#[test] fn test_document_tree() { let document = Document::new().with_node( Element::new("html") .with_node(Element::new("body").with_node(Text::new("hello world"))), ); assert_eq!(document.nodes().len(), 1); let html = document.nodes().get(0).unwrap...
rust_cleaned_test_functions.jsonl/88388
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26231, 11663, 368, 341, 286, 1077, 2197, 284, 11789, 486, 931, 1005, 4197, 5084, 1006, 310, 8543, 486, 931, 445, 1551, 1138, 394, 659, 4197, 5084, 42342, 486, 931, 445, 2599, 1827, 4197, 5084, 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_bf_cfb64() { let pt = "37363534333231204E6F77206973207468652074696D6520666F722000"; let ct = "E73214A2822139CAF26ECF6D2EB9E76E3DA3DE04D1517200519D57A6C3"; let key = "0123456789ABCDEFF0E1D2C3B4A59687"; let iv = "FEDCBA9876543210"; cipher_test_nopad(super::...
rust_cleaned_test_functions.jsonl/110551
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 69, 666, 10798, 21, 19, 368, 341, 286, 1077, 10817, 284, 330, 18, 22, 18, 21, 18, 20, 18, 19, 18, 18, 18, 17, 18, 16, 17, 15, 19, 36, 21, 37, 22, 22, 17, 15, 21, 24, 22, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_with_var_set() { let hello_not_set = env::var("HELLO"); assert!(hello_not_set.is_err(), "`HELLO` must not be set."); crate::with_var("HELLO", Some("world!"), || { let hello_is_set = env::var("HELLO").unwrap(); assert_eq!(hello_is_set, "world!", "`...
rust_cleaned_test_functions.jsonl/49880
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 4612, 2602, 368, 341, 286, 1077, 23811, 7913, 2602, 284, 6105, 486, 947, 445, 50712, 1593, 797, 286, 2060, 10297, 14990, 7913, 2602, 2079, 9266, 1507, 35973, 50712, 1593, 63, 1969, 537, 387,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tokenizer_empty() { let tokenizer_manager = TokenizerManager::default(); let en_tokenizer = tokenizer_manager.get("en_stem").unwrap(); { let mut tokens: Vec<Token> = vec![]; { let mut add_token = |token: &Token| { ...
rust_cleaned_test_functions.jsonl/53507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 473 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6458, 3135, 15124, 368, 341, 286, 1077, 45958, 12144, 284, 9660, 3135, 2043, 486, 2258, 543, 286, 1077, 662, 6458, 3135, 284, 45958, 12144, 670, 445, 268, 1261, 336, 1827, 15454, 543, 286, 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, 1, 1, 1, 1, 1...
1
#[test] fn test_0() { assert_eq!( parse_column_extra(&mut Parser::new("")), ColumnExtra { auto_increment: false, on_update_current_timestamp: false, generated: false, default_generated: false, } )...
rust_cleaned_test_functions.jsonl/73826
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 15, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 8744, 31858, 2099, 6984, 21102, 486, 931, 445, 30154, 310, 9332, 11612, 341, 394, 3233, 51482, 25, 895, 345, 394, 389, 8882, 11080, 23073, 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
#[test] fn test_bank_withdraw() { let (genesis_config, _mint_keypair) = create_genesis_config(100); let bank = Bank::new(&genesis_config); // Test no account let key = Keypair::new(); assert_eq!( bank.withdraw(&key.pubkey(), 10), Err(TransactionEr...
rust_cleaned_test_functions.jsonl/2565
{ "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, 35733, 6615, 7633, 368, 341, 286, 1077, 320, 77894, 5332, 11, 716, 67791, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 15, 317, 286, 1077, 6073, 284, 8547, 486, 931, 2099, 77894, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_binlinearity() { use rand::{SeedableRng, StdRng}; let seed: [u8; 32] = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, ]; let mut rng: StdRng = SeedableRng::from_seed(seed); for _ in 0....
rust_cleaned_test_functions.jsonl/6623
{ "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, 880, 5057, 10748, 368, 341, 262, 990, 10382, 22964, 41471, 480, 49, 968, 11, 42517, 49, 968, 2315, 262, 1077, 10320, 25, 508, 84, 23, 26, 220, 18, 17, 60, 284, 2278, 286, 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...
2
#[test] fn test_mint_copies() { let mut contract = TestContract::new(); let ali_pk = PublicKey::ed25519_from_bytes([3u8; 32]).unwrap(); let ali: Key = ali_pk.to_account_hash().into(); let token_ids: Vec<String> = vec!["a", "b", "c", "d", "e", "f", "g"] .into_iter() .map(String::f...
rust_cleaned_test_functions.jsonl/122724
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 396, 666, 75541, 368, 341, 262, 1077, 5206, 5116, 284, 3393, 14067, 486, 931, 543, 262, 1077, 18991, 33321, 284, 70280, 486, 291, 17, 20, 20, 16, 24, 5673, 12524, 2561, 18, 84, 23, 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...
2
#[test] fn test_count_arragg_approx_expr() -> Result<()> { let funcs = vec![ AggregateFunction::Count, AggregateFunction::ArrayAgg, AggregateFunction::ApproxDistinct, ]; let data_types = vec![ DataType::UInt32, DataType::Int32, ...
rust_cleaned_test_functions.jsonl/15372
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3180, 11210, 15718, 90425, 21915, 368, 1464, 5714, 71698, 341, 286, 1077, 76871, 284, 7486, 90515, 310, 56922, 5152, 486, 2507, 345, 310, 56922, 5152, 486, 1857, 9042, 70, 345, 310, 56922, 5152, 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...
9
#[test] fn test_join_mut() { { let mut git_url = GitUrl::parse("git@github.com:user/foo/bar/quux.git").expect("parse failed"); assert!(git_url.join_mut("aaa")); assert_eq!( git_url.to_string(), "git@github.com:user/foo/b...
rust_cleaned_test_functions.jsonl/12185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1422 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 29523, 368, 341, 286, 341, 310, 1077, 5206, 16345, 2903, 4035, 394, 21120, 2864, 486, 6400, 445, 12882, 31, 5204, 905, 64280, 60555, 49513, 78845, 2200, 32799, 1827, 17119, 445, 6400, 4641, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fr_repr_divn() { let mut a = FrRepr([0xb33fbaec482a283f, 0x997de0d3a88cb3df, 0x9af62d2a9a0e5525, 0x36003ab08de70da1]); a.divn(0); assert_eq!( a, FrRepr([0xb33fbaec482a283f, 0x997de0d3a88cb3df, 0x9af62d2a9a0e5525, 0x36003ab08de70da1]) ); a.divn(1); assert_e...
rust_cleaned_test_functions.jsonl/66317
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 508 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41537, 68535, 16237, 77, 368, 341, 262, 1077, 5206, 264, 284, 2869, 693, 649, 2561, 15, 7929, 18, 18, 69, 4645, 757, 19, 23, 17, 64, 17, 23, 18, 69, 11, 220, 15, 87, 24, 24, 22, 450, 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_insert_overwrite() { let mut m = HashMap::new(); assert!(m.insert(1, 2).is_none()); assert_eq!(*m.get(&1).unwrap(), 2); assert!(!m.insert(1, 3).is_none()); assert_eq!(*m.get(&1).unwrap(), 3); }
rust_cleaned_test_functions.jsonl/8504
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 15431, 4934, 368, 341, 286, 1077, 5206, 296, 284, 10528, 486, 931, 543, 286, 2060, 10297, 76, 7030, 7, 16, 11, 220, 17, 568, 285, 31488, 1423, 286, 2060, 10714, 0, 4071, 76, 670, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_primitive_array_builder_i32_append_nulls() { let mut builder = Int32Array::builder(5); builder.append_nulls(5).unwrap(); let arr = builder.finish(); assert_eq!(5, arr.len()); assert_eq!(0, arr.offset()); assert_eq!(5, arr.null_count()); for...
rust_cleaned_test_functions.jsonl/87789
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 221 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 28532, 5318, 18, 17, 26041, 15162, 82, 368, 341, 286, 1077, 5206, 7363, 284, 1333, 18, 17, 1857, 486, 17850, 7, 20, 317, 286, 7363, 2057, 15162, 82, 7, 20, 568, 15454, 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...
2
#[test] fn test_ints_to_bytes() { let mut f = compile_test_fn( "@function Void test(Int a, Int b, Int c) { assert a == 10 assert b == -20 assert c == 30 }", ); assert_fn_result( &mut f, &mut [ ConstValue::Int(10), ...
rust_cleaned_test_functions.jsonl/115816
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 82, 2346, 12524, 368, 341, 262, 1077, 5206, 282, 284, 19192, 4452, 15246, 1006, 286, 8428, 1688, 19193, 1273, 24123, 264, 11, 1333, 293, 11, 1333, 272, 8, 341, 310, 2060, 264, 621, 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_numeric_parsing() { let mut buf = vec![]; write!( &mut buf, ":barjavel.freenode.net 001 tiny :Welcome to the freenode Internet Relay Chat Network tiny\r\n" ).unwrap(); write!( &mut buf, ":barjavel.freenode.net 002 ti...
rust_cleaned_test_functions.jsonl/24485
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 812 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29418, 620, 28598, 368, 341, 286, 1077, 5206, 6607, 284, 7486, 0, 15078, 286, 3270, 33673, 310, 609, 6984, 6607, 345, 310, 13022, 2257, 73, 3878, 833, 4442, 534, 5071, 220, 15, 15, 16, 13673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parent_handles() { // Create pipes for a child process. let (reader, mut writer) = crate::pipe().unwrap(); // the child will hang. writer.write_all(b"quack").unwrap(); drop(writer); // Use `swap` to run `cat_both`. `ca...
rust_cleaned_test_functions.jsonl/1286
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 469 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15960, 68017, 368, 341, 1789, 23459, 286, 442, 4230, 31175, 369, 264, 1682, 1882, 624, 286, 1077, 320, 11149, 11, 5206, 6916, 8, 284, 17717, 486, 13768, 1005, 15454, 1428, 1789, 286, 442, 279, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_drop() { use std::cell::Cell; let flag = &Cell::new(0); #[derive(Clone)] struct Bump<'a>(&'a Cell<i32>); impl<'a> Drop for Bump<'a> { fn drop(&mut self) { let n = self.0.get(); self.0.set(n + 1); } } { let mut array ...
rust_cleaned_test_functions.jsonl/36764
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 991 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29584, 368, 341, 262, 990, 1460, 486, 5873, 486, 3599, 401, 262, 1077, 5181, 284, 609, 3599, 486, 931, 7, 15, 626, 262, 11506, 27098, 65297, 5563, 262, 2036, 425, 1510, 18291, 64, 44784, 6, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enum() { assert_eq!(type_spec(&b"enum { a, b, c } "[..]), Done(&b" "[..], Type::Enum(vec!(EnumDefn::new("a", None), EnumDefn::new("b", None), EnumDefn::new("c", None))))); assert_e...
rust_cleaned_test_functions.jsonl/11387
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 642 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31054, 368, 341, 262, 2060, 10714, 10297, 1313, 13594, 2099, 65, 1, 9018, 314, 264, 11, 293, 11, 272, 335, 10545, 496, 17036, 2290, 27357, 2099, 65, 1, 10545, 496, 1259, 503, 3990, 486, 10766, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_files_multiple_invalid() { let mut file1: NamedTempFile = NamedTempFile::new().unwrap(); write!(file1, "{{ \"foo\": \"bar\"").unwrap(); let file1_path = file1.path().to_str().unwrap(); let mut file2: NamedTempFile = NamedTempFile::new().unwrap(); write!(file2, "{{ \"lux\": B...
rust_cleaned_test_functions.jsonl/47574
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 319 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10931, 45233, 31433, 368, 341, 262, 1077, 5206, 1034, 16, 25, 40459, 12151, 1703, 284, 40459, 12151, 1703, 486, 931, 1005, 15454, 543, 262, 3270, 10297, 1192, 16, 11, 47219, 7245, 7975, 11693, 724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_need_commas() -> Result<()> { // See the `needCommas` test in cpp_compat_test // Note the missing commas let input = r#"{ "num":1 "two":2 }"# .replace(" ", "") .replace("\n", ""); assert!(deserialize::<Small, _, _>(input).is_err()); // even when...
rust_cleaned_test_functions.jsonl/122577
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71506, 2965, 6899, 368, 1464, 5714, 71698, 341, 262, 442, 3496, 279, 1565, 17046, 1092, 6899, 63, 1273, 304, 46824, 89602, 4452, 271, 262, 442, 7036, 279, 7402, 76602, 271, 262, 1077, 1946, 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_add_selection_below() { let mut editor = Editor::new(Rc::new(RefCell::new(Buffer::new(1)))); editor.buffer.borrow_mut().splice(0..0, "\ abcdefgh\n\ ijklm\n\ \n\ \n\ nopqrstuvwx\n\ yz\ "); // ...
rust_cleaned_test_functions.jsonl/123915
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1052 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 23672, 82750, 368, 341, 286, 1077, 5206, 6440, 284, 12580, 486, 931, 2785, 66, 486, 931, 7, 3945, 3599, 486, 931, 55574, 486, 931, 7, 16, 38776, 286, 6440, 24465, 83640, 29523, 1005, 94960...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_status_txhashset_rproofs() { let status = SyncStatus::TxHashsetRangeProofsValidation { rproofs: 643, rproofs_total: 1000, }; let basic_status = TUIStatusView::update_sync_status(status); assert!(basic_status.contains("64%"), "{}", basic_status); }
rust_cleaned_test_functions.jsonl/64569
{ "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, 4773, 17805, 8296, 746, 1710, 15780, 82, 368, 341, 10217, 2639, 284, 28937, 2522, 486, 31584, 6370, 746, 6046, 31076, 82, 13799, 341, 197, 7000, 15780, 82, 25, 220, 21, 19, 18, 345, 197, 7000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_table_check_observer() { let path = Builder::new() .prefix("test_table_check_observer") .tempdir() .unwrap(); let engine = new_engine(path.path().to_str().unwrap(), None, ALL_CFS, None).unwrap(); let mut region = Region::default(); ...
rust_cleaned_test_functions.jsonl/75978
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3365 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5237, 7200, 81912, 368, 341, 286, 1077, 1815, 284, 20626, 486, 931, 741, 310, 659, 11849, 445, 1944, 5237, 7200, 81912, 1138, 310, 659, 3888, 3741, 741, 310, 659, 15454, 543, 286, 1077, 4712, 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...
9
#[test] fn test_open_interest() { let text = fetch_open_interest("binance", MarketType::LinearSwap, Some("BTCUSDT")).unwrap(); assert!(text.starts_with("{")); }
rust_cleaned_test_functions.jsonl/95410
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11311, 62527, 368, 341, 286, 1077, 1467, 284, 7807, 11311, 62527, 445, 6863, 681, 497, 7993, 929, 486, 31898, 46179, 11, 4329, 445, 59118, 2034, 10599, 15197, 15454, 543, 286, 2060, 10297, 1318, 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
#[test] fn test_basic_calls() { use serde_json::Value; let config = DeviceCapabilityConfig::default(); assert_eq!(*config.get("device.bt").unwrap(), Value::Bool(true)); assert_eq!( *config.get("ro.build.type").unwrap(), Value::String("".into()) ); assert!(config.get("har...
rust_cleaned_test_functions.jsonl/72474
{ "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, 34729, 45636, 368, 341, 262, 990, 61570, 9455, 486, 1130, 280, 262, 1077, 2193, 284, 13903, 63746, 2648, 486, 2258, 1428, 262, 2060, 10714, 0, 4071, 1676, 670, 445, 6111, 36650, 1827, 15454, 1507,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encoding() { use crate::model::vocab::xsd; use crate::model::*; let store = MemoryStrStore::default(); let terms: Vec<Term> = vec![ NamedNode::new_unchecked("http://foo.com").into(), NamedNode::new_unchecked("http://bar.com").into(), ...
rust_cleaned_test_functions.jsonl/95398
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1775 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 368, 341, 286, 990, 17717, 486, 2528, 486, 86847, 486, 82370, 280, 286, 990, 17717, 486, 2528, 79304, 286, 1077, 3553, 284, 13850, 2580, 6093, 486, 2258, 543, 286, 1077, 3793, 25, 11312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_current_thread_address() { let cmd = RubyScript::new("./ci/ruby-programs/infinite.rb"); let pid = cmd.id() as Pid; let remoteprocess = Process::new(pid).expect("Failed to initialize process"); let version; let mut i = 0; loop { ...
rust_cleaned_test_functions.jsonl/90832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 494 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11080, 10814, 6744, 368, 341, 286, 1077, 5439, 284, 23726, 5910, 486, 931, 13988, 5855, 7382, 20028, 9838, 50770, 17996, 25722, 27892, 797, 286, 1077, 14814, 284, 5439, 1764, 368, 438, 393, 307, 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...
4
#[test] fn test_modify_gc_io_limit() { let debugger = new_debugger(); debugger .modify_tikv_config(Module::Server, "gc", "10MB") .unwrap_err(); debugger .modify_tikv_config(Module::Storage, GC_IO_LIMITER_CONFIG_NAME, "10MB") .unwrap_err(); ...
rust_cleaned_test_functions.jsonl/60245
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57725, 49423, 16939, 14763, 368, 341, 286, 1077, 44473, 284, 501, 15446, 1389, 543, 286, 44473, 198, 310, 659, 34053, 528, 1579, 85, 5332, 75295, 486, 5475, 11, 330, 20669, 497, 330, 16, 15, 841...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prefix() { let a = OsString::from("abc测试测试"); let b = OsString::from("abc测"); let c = OsString::from("abc测测试"); let d = OsString::from("bbc"); assert!(a.starts_with(&b)); assert!(c.starts_with(&b)); assert!(!c.starts_with(&a)); assert!(!c.starts_with(&d)); }
rust_cleaned_test_functions.jsonl/112650
{ "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, 13974, 368, 341, 262, 1077, 264, 284, 15433, 703, 486, 1499, 445, 13683, 81705, 81705, 797, 262, 1077, 293, 284, 15433, 703, 486, 1499, 445, 13683, 99507, 797, 262, 1077, 272, 284, 15433, 703, 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_eval_restore() { let cie = make_test_cie(); let fde = FrameDescriptionEntry { offset: 0, format: Format::Dwarf64, length: 0, address_range: 0, augmentation: None, initial_address: 0, initial_segme...
rust_cleaned_test_functions.jsonl/9362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 503 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 62677, 368, 341, 286, 1077, 272, 645, 284, 1281, 4452, 666, 645, 543, 286, 1077, 282, 450, 284, 16321, 5009, 5874, 341, 310, 4347, 25, 220, 15, 345, 310, 3561, 25, 15042, 486, 35, 32634...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generic_generate_constructor() { let gen = no_generic_fn(); let expected: TokenStream = quote! { pub const fn foo_fn_meta() -> crate::rpn_expr::RpnFnMeta { #[inline] fn run( ctx: &mut crate::expr::EvalContext, ...
rust_cleaned_test_functions.jsonl/25659
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1063 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 41232, 48851, 66210, 368, 341, 286, 1077, 4081, 284, 902, 41232, 15246, 543, 286, 1077, 3601, 25, 9660, 3027, 284, 12641, 0, 341, 310, 6675, 733, 5168, 15229, 15246, 13381, 368, 1464, 17717,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_mdns_ipv4() { let addr = SocketAddr::new(*TEST_MDNS_IPV4, MDNS_PORT + 1); let client_done = Arc::new(AtomicBool::new(false)); let _server_thread = mdns_responsder("test_query_mdns_ipv4", client_done.clone(), addr); let mut io_loop = Runtime::new().unwrap(); l...
rust_cleaned_test_functions.jsonl/25203
{ "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, 5738, 32994, 4412, 49378, 19, 368, 341, 262, 1077, 10789, 284, 20954, 13986, 486, 931, 4071, 10033, 46497, 2448, 58830, 19, 11, 13979, 2448, 12377, 488, 220, 16, 317, 262, 1077, 2943, 24390, 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_skipped_field_is_unknown() { assert_de_tokens_error::<StructDenyUnknown>( &[ Token::Struct { name: "StructDenyUnknown", len: 1, }, Token::Str("b"), ], "unknown field `b`, expected `a`", ); }
rust_cleaned_test_functions.jsonl/129516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33811, 6450, 5013, 6892, 57507, 368, 341, 262, 2060, 2259, 28838, 4096, 27638, 9422, 23619, 88, 13790, 17055, 286, 609, 9640, 310, 9660, 486, 9422, 341, 394, 829, 25, 330, 9422, 23619, 88, 13790, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shrink_fuzz() { for _ in 0..5 { let mut batches = to_packet_batches( &(0..PACKETS_PER_BATCH * 3) .map(|_| test_tx()) .collect::<Vec<_>>(), PACKETS_PER_BATCH, ); batches.iter_mut()....
rust_cleaned_test_functions.jsonl/22099
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 923 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 34365, 761, 8889, 368, 341, 286, 369, 716, 304, 220, 15, 496, 20, 341, 310, 1077, 5206, 44792, 284, 311, 21078, 57755, 1006, 394, 22796, 15, 496, 17279, 43167, 10617, 74009, 353, 220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_lowest_cleanup_slot_and_special_cfs_with_compact_with_ledger_cleanup_service_simulation( ) { do_test_lowest_cleanup_slot_and_special_cfs(true, true); }
rust_cleaned_test_functions.jsonl/9560
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23767, 477, 42444, 27563, 8378, 41629, 666, 3848, 6615, 18177, 531, 6615, 38367, 1389, 42444, 12267, 82487, 1006, 262, 873, 341, 286, 653, 4452, 23767, 477, 42444, 27563, 8378, 41629, 666, 3848, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_aggregate_commitment_for_vote_account_3() { let ancestors = vec![3, 4, 5, 7, 9, 10, 11]; let mut commitment = HashMap::new(); let mut rooted_stake = vec![]; let lamports = 5; let mut vote_state = VoteState::default(); let root = ancestors[2]; ...
rust_cleaned_test_functions.jsonl/4064
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 767 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20587, 14240, 36346, 478, 5478, 54360, 13500, 62, 18, 368, 341, 286, 1077, 37518, 284, 7486, 20703, 18, 11, 220, 19, 11, 220, 20, 11, 220, 22, 11, 220, 24, 11, 220, 16, 15, 11, 220, 16, 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...
5
#[test] fn test_param_completion_trait_param() { assert_debug_snapshot!( do_magic_completion( r" pub(crate) trait SourceRoot { pub fn contains(&self, file_id: FileId) -> bool; pub fn module_map(&self) -> &ModuleMap; ...
rust_cleaned_test_functions.jsonl/67166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 489 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4090, 60164, 78491, 4090, 368, 341, 286, 2060, 15446, 53265, 33673, 286, 653, 54612, 60164, 1006, 394, 435, 698, 394, 6675, 54907, 8, 17567, 8748, 8439, 341, 503, 6675, 5168, 5610, 2099, 721, 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_1000_inputs() { let mut rng = rand::thread_rng(); let mut bitmap = Bitmap::create(); for _ in 1..1_000 { let n = rng.gen_range(0, 1_000_000); bitmap.add(n); } let serialized_buffer = bitmap.serialize(); println!( "bitmap with 1,000 (out of 1,000,000) values in it: {}", serialized_b...
rust_cleaned_test_functions.jsonl/103103
{ "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, 62, 16, 15, 15, 15, 28557, 368, 341, 10217, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 10217, 5206, 19746, 284, 17533, 486, 3182, 543, 2023, 716, 304, 220, 16, 496, 16, 62, 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_make_bounded_sum_n() -> Fallible<()> { let transformation = Result::from(opendp_trans__make_bounded_sum_n( util::into_raw(0.0) as *const c_void, util::into_raw(10.0) as *const c_void, 3 as c_uint, "f64".to_char_p(), ))?; let...
rust_cleaned_test_functions.jsonl/133925
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 880, 13082, 10160, 1089, 368, 1464, 14785, 1238, 71698, 341, 286, 1077, 17991, 284, 5714, 486, 1499, 17096, 408, 79, 7965, 563, 6927, 880, 13082, 10160, 1089, 1006, 310, 4094, 486, 18122, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_escaped_word_start() { assert_eq!(escaped_word_start("ls a"), 3); assert_eq!(escaped_word_start("ls abc"), 3); assert_eq!(escaped_word_start("ll 中文yoo"), 3); assert_eq!(escaped_word_start("ll yoo中文"), 3); assert_eq!(escaped_word_start(" ls foo"), 7); ...
rust_cleaned_test_functions.jsonl/109311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1051 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 65826, 13533, 4906, 368, 341, 286, 2060, 10714, 10297, 65826, 13533, 4906, 445, 4730, 264, 3975, 220, 18, 317, 286, 2060, 10714, 10297, 65826, 13533, 4906, 445, 4730, 39022, 3975, 220, 18, 317...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_clone() { let testy = Testy { a: 1, b: 2 }; assert_eq!(testy.a(), 1); assert_eq!(testy.b(), 2); }
rust_cleaned_test_functions.jsonl/20819
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54742, 368, 341, 286, 1077, 1273, 88, 284, 3393, 88, 314, 264, 25, 220, 16, 11, 293, 25, 220, 17, 3634, 286, 2060, 10714, 10297, 1944, 88, 5849, 1507, 220, 16, 317, 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
#[test] fn test_metrics_report_update_check_response_time_on_failure() { block_on(async { let mut metrics_reporter = MockMetricsReporter::new(); let mut http = MockHttpRequest::default(); for _ in 0..MAX_OMAHA_REQUEST_ATTEMPTS { http.add_error(http_re...
rust_cleaned_test_functions.jsonl/59683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 652 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37686, 14813, 8882, 7200, 9655, 3009, 4470, 43618, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 5206, 16734, 14813, 261, 284, 14563, 27328, 52766, 486, 931, 543, 310, 1077, 5206, 1758, 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...
2
#[test] fn test_all_claimable_balances_by_claimant_request_uri() { let pk = PublicKey::from_account_id("GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA") .unwrap(); let req = all_by_claimant(&pk); let uri = req.uri(&host()).unwrap(); assert!(u...
rust_cleaned_test_functions.jsonl/61929
{ "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, 5705, 84969, 480, 56441, 3020, 3710, 84969, 517, 7893, 15572, 368, 341, 286, 1077, 22458, 4035, 310, 70280, 486, 1499, 13500, 842, 445, 38, 3022, 1930, 4086, 2275, 52867, 19, 35, 57, 8412, 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...
1
#[test] fn test_mld_simple_integration() { let (mut ctx, dev_id) = setup_simple_test_environment(); mld_join_group(&mut ctx, dev_id, MulticastAddr::new(GROUP_ADDR).unwrap()); receive_mld_query(&mut ctx, dev_id, Duration::from_secs(10)); assert!(testutil::trigger_next_timer(&mut ...
rust_cleaned_test_functions.jsonl/123213
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 507, 30015, 90250, 368, 341, 286, 1077, 320, 6984, 5635, 11, 3483, 842, 8, 284, 6505, 30015, 4452, 51774, 543, 286, 296, 507, 31017, 6288, 2099, 6984, 5635, 11, 3483, 842, 11, 22162, 35446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_nonced_failure_accounts_rollback_from_pays() { let rent_collector = RentCollector::default(); let nonce_address = Pubkey::new_unique(); let nonce_authority = keypair_from_seed(&[0; 32]).unwrap(); let from = keypair_from_seed(&[1; 32]).unwrap(); let from_a...
rust_cleaned_test_functions.jsonl/82614
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1998 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 1998, 43618, 55665, 62, 33559, 5673, 620, 942, 368, 341, 286, 1077, 8016, 10211, 27669, 284, 29737, 53694, 486, 2258, 1428, 286, 1077, 39676, 6744, 284, 22611, 792, 486, 931, 21218, 543, 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_307() { let _empty = NumArray::new(vec![]); let mut tree = NumArray::new(vec![1, 1, 1, 1, 1, 1, 1, 1, 1, 1]); assert_eq!(tree.sum_range(0, 6), 7); assert_eq!(tree.last_idx_prefix_sum_le(7), 6); assert_eq!(tree.last_idx_prefix_sum_le(17), 9); tree....
rust_cleaned_test_functions.jsonl/129327
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 402 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 18, 15, 22, 368, 341, 286, 1077, 716, 3194, 284, 16212, 1857, 486, 931, 25592, 0, 56703, 286, 1077, 5206, 4916, 284, 16212, 1857, 486, 931, 25592, 20703, 16, 11, 220, 16, 11, 220, 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, 1, 1, 1, 1...
1
#[test] fn test_uint_from_div_assign_no_panic() { let mut value = Uint256::from(6u8); value /= 2u8.into(); assert_eq!(value, 3u8.into()); }
rust_cleaned_test_functions.jsonl/118526
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15807, 5673, 16237, 20688, 6536, 620, 31270, 368, 341, 262, 1077, 5206, 897, 284, 27883, 17, 20, 21, 486, 1499, 7, 21, 84, 23, 317, 262, 897, 16455, 220, 17, 84, 23, 39860, 543, 262, 2060, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_writer() { let txt = include_str!("../tests/documents/test_writer.xml").trim(); let mut reader = Reader::from_str(txt); reader.trim_text(true); let mut writer = Writer::new(Cursor::new(Vec::new())); let mut buf = Vec::new(); loop { match reader.read_event(&mut buf...
rust_cleaned_test_functions.jsonl/42078
{ "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, 28908, 368, 341, 262, 1077, 7932, 284, 2924, 2895, 17223, 1244, 23841, 97090, 12697, 28908, 9028, 1827, 10666, 543, 262, 1077, 5206, 6604, 284, 25166, 486, 1499, 2895, 26082, 317, 262, 6604, 16419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_projection_push_down_optimizer_1() -> anyhow::Result<()> { let ctx = crate::tests::try_create_context()?; let schema = DataSchemaRefExt::create(vec![ DataField::new("a", DataType::Utf8, false), DataField::new("b", DataType::Utf8, false), DataField::new("c", DataT...
rust_cleaned_test_functions.jsonl/872
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 490 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72738, 14218, 13998, 68168, 62, 16, 368, 1464, 88964, 486, 2077, 71698, 341, 262, 1077, 5635, 284, 17717, 486, 23841, 486, 1539, 8657, 8467, 368, 69493, 262, 1077, 10802, 284, 2885, 8632, 3945, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_server_received_unknown_stream() { let (mut hconn, mut peer_conn) = connect(); // create a stream with unknown type. let new_stream_id = peer_conn.stream_create(StreamType::UniDi).unwrap(); let _ = peer_conn.stream_send(new_stream_id, &[0x41, 0x19, 0x4, 0x4, 0x6,...
rust_cleaned_test_functions.jsonl/52186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 581 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12015, 40783, 57507, 12673, 368, 341, 286, 1077, 320, 6984, 305, 5148, 11, 5206, 14397, 17241, 8, 284, 4564, 1428, 286, 442, 1855, 264, 4269, 448, 9788, 943, 624, 286, 1077, 501, 12673, 842, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_fq2_ordering() { let mut a = Fq2 { c0: Fq::zero(), c1: Fq::zero(), }; let mut b = a; assert!(a.cmp(&b) == Ordering::Equal); b.c0.add_assign(&Fq::one()); assert!(a.cmp(&b) == Ordering::Less); a.c0.add_assign(&Fq::one()); assert!(a.cmp(&b) == Order...
rust_cleaned_test_functions.jsonl/45339
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 17, 7869, 287, 368, 341, 262, 1077, 5206, 264, 284, 434, 80, 17, 341, 286, 272, 15, 25, 434, 80, 486, 14154, 3148, 286, 272, 16, 25, 434, 80, 486, 14154, 3148, 262, 3634, 262, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vdf_post_basics() { let rng = &mut XorShiftRng::from_seed([0x3dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]); let sp = SetupParams::<PedersenDomain, vdf_sloth::Sloth> { challenge_count: 30, sector_size: 1024 * 32, post_epochs: 3, se...
rust_cleaned_test_functions.jsonl/68944
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 986 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 2940, 6333, 880, 67981, 368, 341, 286, 1077, 28422, 284, 609, 6984, 1599, 269, 24841, 49, 968, 486, 1499, 33809, 2561, 15, 87, 18, 83406, 21, 17, 20, 24, 11, 220, 15, 87, 23, 67, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_private_full_node() { const PRIVATE: &str = "private"; const USER: &str = "user"; let mut env = SmokeTestEnvironment::new(7); env.setup_vfn_swarm(); let mut private_config = NodeConfig::default_for_public_full_node(); let private_network = private_config.full_node_...
rust_cleaned_test_functions.jsonl/131350
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1506 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26249, 16372, 5084, 368, 341, 262, 733, 57793, 25, 609, 495, 284, 330, 1996, 876, 262, 733, 13872, 25, 609, 495, 284, 330, 872, 3302, 262, 1077, 5206, 6105, 284, 53204, 2271, 12723, 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_constructors() { assert_eq!(RelativeDuration::years(5), RelativeDuration::months(60)); assert_eq!(RelativeDuration::weeks(5), RelativeDuration::days(35)); assert_eq!(RelativeDuration::days(5), RelativeDuration::hours(120)); assert_eq!(RelativeDuration::hours(5), R...
rust_cleaned_test_functions.jsonl/2976
{ "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, 64803, 1087, 368, 341, 286, 2060, 10714, 10297, 28442, 12945, 486, 41720, 7, 20, 701, 39402, 12945, 486, 49714, 7, 21, 15, 1106, 286, 2060, 10714, 10297, 28442, 12945, 486, 80989, 7, 20, 701, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_login_failed() { let log = "2021-04-08T11:58:04-07:00 10.0.0.111 PulseSecure: id=firewall time=\"2021-04-08 11:58:04\" pri=6 fw=10.0.0.9 vpn=ive ivs=Default Network user=userasdad realm=\"Users\" roles=\"\" proto=auth src=82.213.178.130 dst= dstname= type=vpn op= arg=\"\" result= sent= r...
rust_cleaned_test_functions.jsonl/100543
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 609 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13681, 35060, 368, 341, 286, 1077, 1487, 284, 330, 17, 15, 17, 16, 12, 15, 19, 12, 15, 23, 51, 16, 16, 25, 20, 23, 25, 15, 19, 12, 15, 22, 25, 15, 15, 220, 16, 15, 13, 15, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_network_multiple_connect() { let main = "127.0.0.1:19600".parse().unwrap(); let nodes = [ "127.0.0.1:19601".parse().unwrap(), "127.0.0.1:19602".parse().unwrap(), "127.0.0.1:19603".parse().unwrap(), ]; let mut connect_list = ConnectList::default(); l...
rust_cleaned_test_functions.jsonl/46395
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20966, 45233, 15720, 368, 341, 262, 1077, 1887, 284, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 16, 24, 21, 15, 15, 3263, 6400, 1005, 15454, 1428, 262, 1077, 7798, 284, 2278, 286, 330, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_add_session_empty_persistent() { let mut broker = BrokerBuilder::default().with_authorizer(AllowAll).build(); let id = "id1".to_string(); let client_id = ClientId::from(id.clone()); let connect = persistent_connect(id); let handle = connection_handle(); ...
rust_cleaned_test_functions.jsonl/105410
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 453 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 12316, 15124, 620, 13931, 368, 341, 286, 1077, 5206, 22316, 284, 52701, 3297, 486, 2258, 1005, 4197, 22938, 3135, 7, 18605, 2403, 568, 5834, 1428, 286, 1077, 877, 284, 330, 307, 16, 3263, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cache_misses() { let block_manager = BlockManager::new(); let block_status_store = ArcMockStore::new(); let block_a = create_block(NULL_BLOCK_IDENTIFIER, 0, None); let block_b = create_block(block_a.block().header_signature(), 1, None); let block_c1 = cre...
rust_cleaned_test_functions.jsonl/77688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 972 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11529, 67722, 288, 368, 341, 286, 1077, 2504, 12144, 284, 8362, 2043, 486, 931, 543, 286, 1077, 2504, 4773, 14809, 284, 19689, 11571, 6093, 486, 931, 1428, 286, 1077, 2504, 4306, 284, 1855, 7113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_orphans() { let blocktree_path = get_tmp_ledger_path!(); { let blocktree = Blocktree::open(&blocktree_path).unwrap(); // Create shreds and entries let entries_per_slot = 1; let (mut shreds, _) = make_many_slot_entries(0, 3, entries...
rust_cleaned_test_functions.jsonl/116890
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8734, 84311, 368, 341, 286, 1077, 2504, 9344, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 341, 310, 1077, 2504, 9344, 284, 8362, 9344, 486, 2508, 2099, 4574, 9344, 2638, 568, 15454, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_zst_observable_drop() { mod zst_drop { // the use of a static atomic here is a hilarious race condition if // multiple tests try to use the `ObservableZstDrop`. The reason why // we can't put a reference to the counter inside of the zero-s...
rust_cleaned_test_functions.jsonl/13522
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 787 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6415, 267, 62, 33495, 29584, 368, 341, 286, 1463, 1147, 267, 29584, 341, 3374, 310, 442, 279, 990, 315, 264, 1099, 24510, 1588, 374, 264, 40267, 6957, 2971, 421, 198, 310, 442, 5248, 7032, 1430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unlink_list_node_single_item_list() { let mut set: LinkedListSet<usize> = LinkedListSet::new(); let list_index = set.new_list(); set.push_back(list_index, 0xDEAFBEEF); assert!(!set.list_is_empty(list_index)); assert_eq!(set.len(list_index), 1); s...
rust_cleaned_test_functions.jsonl/56928
{ "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, 4907, 2080, 2019, 5084, 19487, 5634, 2019, 368, 341, 286, 1077, 5206, 738, 25, 22917, 1649, 90244, 29, 284, 22917, 1649, 486, 931, 543, 286, 1077, 1140, 3560, 284, 738, 4618, 2019, 543, 286, 738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_backup_and_clear_blockstore() { use std::time::Instant; solana_logger::setup(); use { solana_entry::entry, solana_ledger::{blockstore, get_tmp_ledger_path}, }; let blockstore_path = get_tmp_ledger_path!(); { let ...
rust_cleaned_test_functions.jsonl/2406
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 795 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44710, 8378, 21811, 7113, 4314, 368, 341, 286, 990, 1460, 486, 1678, 486, 30340, 280, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 990, 341, 310, 2048, 3362, 9078, 486, 4085, 345, 310, 2048, 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...
4
#[test] fn test_parse_filename_with_thread() { let filename: OsString = "log.pcap.1.1649915733".into(); let r = parse_filename(&filename).unwrap(); assert_eq!(r, (1, 1649915733)); let filename: OsString = "log.pcap.11.1649915733".into(); let r = parse_filename(&filename)...
rust_cleaned_test_functions.jsonl/45666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 13323, 6615, 10814, 368, 341, 286, 1077, 3899, 25, 15433, 703, 284, 330, 839, 556, 11346, 13, 16, 13, 16, 21, 19, 24, 24, 16, 20, 22, 18, 18, 3263, 18122, 543, 286, 1077, 435, 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_merge_with_slow_promote() { let mut cluster = new_node_cluster(0, 3); configure_for_merge(&mut cluster); let pd_client = Arc::clone(&cluster.pd_client); pd_client.disable_default_operator(); let r1 = cluster.run_conf_change(); pd_client.must_add_peer(r1, new_peer(2, 2));...
rust_cleaned_test_functions.jsonl/27254
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 580 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 6615, 82447, 47877, 1272, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 18, 317, 262, 14411, 5478, 20888, 2099, 6984, 10652, 317, 262, 1077, 7744, 8179, 284, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_into_inner_2() { let mut v = ArrayVec::<[String; 4]>::new(); v.push("a".into()); v.push("b".into()); v.push("c".into()); v.push("d".into()); assert_eq!(v.into_inner().unwrap(), ["a", "b", "c", "d"]); }
rust_cleaned_test_functions.jsonl/36779
{ "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, 45514, 34345, 62, 17, 368, 341, 262, 1077, 5206, 348, 284, 2910, 10050, 27638, 58, 703, 26, 220, 19, 60, 6831, 931, 543, 262, 348, 2552, 445, 64, 3263, 18122, 1423, 262, 348, 2552, 445, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_map_iter_mut_rand() { const CAPACITY: usize = 500; let mut sgm = SgMap::<isize, isize, CAPACITY>::new(); let mut rng = rand::thread_rng(); for _ in 0..CAPACITY { sgm.insert(rng.gen(), 0); } let min_key = *sgm.first_key().unwrap(); let max_key = *sgm.last_key...
rust_cleaned_test_functions.jsonl/18650
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 422 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 11723, 29523, 33864, 368, 341, 262, 733, 26101, 62985, 25, 22301, 284, 220, 20, 15, 15, 280, 262, 1077, 5206, 274, 26186, 284, 328, 70, 2227, 27638, 285, 551, 11, 91373, 11, 26101, 62985, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fast_retransmit_after_triple_duplicate_ack() { let mut s = socket_established(); s.remote_mss = 6; // Normal ACK of previously recived segment send!(s, time 0, TcpRepr { seq_number: REMOTE_SEQ + 1, ack_number: Some(LOCAL_SEQ + 1), ...
rust_cleaned_test_functions.jsonl/91892
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1940 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35743, 1288, 1458, 1763, 19844, 3547, 3778, 70434, 48447, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 274, 34093, 717, 778, 284, 220, 21, 401, 286, 442, 18437, 53763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tokens() { sub_test("id123_OK", &[Token::Word("id123_OK")]); sub_test( "92No", &[ Token::Number { value: "92", ty: NumberType::Sint, }, Token::Word("No"), ], ); sub_test( "2u3o", ...
rust_cleaned_test_functions.jsonl/76458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28838, 368, 341, 262, 1186, 4452, 445, 307, 16, 17, 18, 8375, 497, 44590, 3323, 486, 10879, 445, 307, 16, 17, 18, 8375, 899, 2558, 262, 1186, 4452, 1006, 286, 330, 24, 17, 2753, 756, 286, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cred_def_id_parts_for_id_as_qualified_with_schema_as_seq_no() { assert_eq!( _cred_def_id_unqualified_with_schema_as_seq_no(), _cred_def_id_qualified_with_schema_as_seq_no().to_unqualified() ); }
rust_cleaned_test_functions.jsonl/38084
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73475, 7844, 842, 33217, 5478, 842, 11898, 62, 36335, 6615, 25371, 11898, 14486, 6536, 368, 341, 310, 2060, 10714, 33673, 394, 716, 10844, 7844, 842, 4907, 36335, 6615, 25371, 11898, 14486, 6536, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_binary_search_rmq() { let vec = vec![2, 1, 0, -1, -2, -3, -4, -5]; let mut arq = StaticArq::<AssignMin>::new(&vec); let first_neg = static_arq::first_negative(&mut arq); arq.update(3, 7, &0); let first_neg_zeros = static_arq::first_negative(&mut arq); ...
rust_cleaned_test_functions.jsonl/44442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31761, 10716, 1710, 27674, 368, 341, 286, 1077, 7486, 284, 7486, 20703, 17, 11, 220, 16, 11, 220, 15, 11, 481, 16, 11, 481, 17, 11, 481, 18, 11, 481, 19, 11, 481, 20, 935, 286, 1077, 5206,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_wait() { let lock_mgr = LockManager::new(); let (tx, rx) = mpsc::channel(); lock_mgr.wait_for( 10.into(), StorageCallback::Boolean(Box::new(move |x| { tx.send(x).unwrap(); })), ProcessResult::Res, ...
rust_cleaned_test_functions.jsonl/81053
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 18760, 368, 341, 286, 1077, 5296, 42438, 284, 15701, 2043, 486, 931, 543, 286, 1077, 320, 3998, 11, 19111, 8, 284, 296, 81984, 486, 10119, 543, 286, 5296, 42438, 16294, 5478, 1006, 310, 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_peeking_take_while_valid() { let mut parser = ByteParser::new(b"foo.bar"); assert_eq!(parser.peeking_take_while(|ch| ch != b'.'), Ok(&b"foo"[..])); assert_eq!(parser.remaining(), 4); }
rust_cleaned_test_functions.jsonl/115627
{ "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, 62, 29107, 287, 73261, 86069, 8337, 368, 341, 286, 1077, 5206, 6729, 284, 10906, 6570, 486, 931, 1883, 1, 7975, 22001, 797, 286, 2060, 10714, 10297, 9657, 41249, 287, 73261, 86069, 22428, 331, 91,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_output_output() { let Output {status, stdout, stderr} = Command::new("echo").arg("hello").output().unwrap(); let output_str = str::from_utf8(stdout.as_slice()).unwrap(); assert!(status.success()); assert_eq!(output_str.trim().to_string(), "he...
rust_cleaned_test_functions.jsonl/5981
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 7645, 7645, 368, 341, 286, 1077, 9258, 314, 2829, 11, 20075, 11, 26436, 532, 1797, 284, 7348, 486, 931, 445, 3047, 1827, 858, 445, 14990, 1827, 3006, 1005, 15454, 543, 286, 1077, 2550, 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...
2
#[test] fn test_date_format_m() { let scene = TestScenario::new(util_name!()); let mut result = scene.ucmd().arg("+%b").succeeds(); assert!(result.success); let mut re = Regex::new(r"\S+").unwrap(); assert!(re.is_match(&result.stdout.trim())); result = scene.ucmd().arg("+%m").succeeds...
rust_cleaned_test_functions.jsonl/25494
{ "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, 4164, 8955, 717, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 5231, 262, 1077, 5206, 1102, 284, 6109, 56334, 2277, 1005, 858, 34973, 4, 65, 1827, 82, 29264, 82, 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...
1
#[test] fn test_primitive_array_lt_eq() { cmp_i64!( lt_eq, lt_eq_dyn, vec![8, 8, 8, 8, 8, 8, 8, 8, 8, 8], vec![6, 7, 8, 9, 10, 6, 7, 8, 9, 10], vec![false, false, true, true, true, false, false, true, true, true] ); }
rust_cleaned_test_functions.jsonl/45808
{ "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, 84087, 3858, 39164, 10714, 368, 341, 286, 26089, 5318, 21, 19, 33673, 310, 25175, 10714, 345, 310, 25175, 10714, 69213, 345, 310, 7486, 20703, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 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_query_tcp_ipv4() { let mut io_loop = Runtime::new().unwrap(); let addr: SocketAddr = ("8.8.8.8", 53).to_socket_addrs().unwrap().next().unwrap(); let (stream, sender) = TcpClientStream::<TokioTcpStream>::new(addr); let (bg, mut client) = ClientFuture::new(Box::new(stream), sender,...
rust_cleaned_test_functions.jsonl/33932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 45562, 49378, 19, 368, 341, 262, 1077, 5206, 6399, 17198, 284, 10954, 486, 931, 1005, 15454, 543, 262, 1077, 10789, 25, 20954, 13986, 284, 3489, 23, 13, 23, 13, 23, 13, 23, 497, 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...
1
#[test] fn test_parse_array_param() { assert_eq!( HumanReadableParser::parse_type("address[]").unwrap(), ParamType::Array(Box::new(ParamType::Address)) ); assert_eq!( HumanReadableParser::parse_type("uint[]").unwrap(), ParamType::Array(Box:...
rust_cleaned_test_functions.jsonl/77864
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 341 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 3858, 4090, 368, 341, 286, 2060, 10714, 33673, 310, 11097, 57938, 6570, 486, 6400, 1819, 445, 4995, 1294, 1827, 15454, 3148, 310, 6991, 929, 486, 1857, 67758, 486, 931, 7, 2001, 929, 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_read_i8() { fn test(slice: &[u8], tag: u16, expected_res: Result<u8>) { let mut reader = BinReader::new(slice); assert_eq!(Wire::INT1, reader.get_tag(tag).unwrap()); let res = reader.read_i8(); match &expected_res { Ok(w) =>...
rust_cleaned_test_functions.jsonl/69738
{ "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, 6443, 5318, 23, 368, 341, 286, 5168, 1273, 75282, 25, 44590, 84, 23, 1125, 4772, 25, 575, 16, 21, 11, 3601, 4918, 25, 5714, 34837, 23, 9231, 341, 310, 1077, 5206, 6604, 284, 29344, 5062, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_compile() { let result = handle_compile_subcommand( Network::Testnet, "thresh(3,pk(Alice),pk(Bob),pk(Carol),older(2))".to_string(), "sh-wsh".to_string(), ) .unwrap(); let result_obj = result.as_object().unwrap(); let de...
rust_cleaned_test_functions.jsonl/53348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 296 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 368, 341, 286, 1077, 1102, 284, 3705, 74170, 5228, 5631, 1006, 310, 8141, 486, 2271, 4711, 345, 310, 330, 94382, 7, 18, 7237, 74, 4346, 4754, 701, 20819, 5349, 674, 701, 20819, 3025, 277,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_one_eq_to_string() { let name1 = _random_vector(10); let value1 = _random_string(10); let query = Operator::And( vec![ Operator::Eq( TagName::PlainTagName(name1.clone()), TargetValue::Unencrypte...
rust_cleaned_test_functions.jsonl/11889
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 6615, 11667, 10714, 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, 626, 286, 1077, 3239, 284, 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_inline_parse() { let output = inline_parse(&String::from("*hoge*")); assert_eq!(output, String::from(r#"<em class="flav-md-em">hoge</em>"#)); }
rust_cleaned_test_functions.jsonl/22205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41871, 21039, 368, 341, 310, 1077, 2550, 284, 7381, 21039, 2099, 703, 486, 1499, 29592, 71, 40532, 9, 4010, 310, 2060, 10714, 10297, 3006, 11, 923, 486, 1499, 2601, 2, 22476, 336, 536, 428, 1489...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_max_gas_price_above_bounds() { let (config, keypair) = get_test_config(); let vm_validator = TestValidator::new(&config); let address = account_config::association_address(); let txn = transaction_test_helpers::get_test_signed_transaction( address, 0, ...
rust_cleaned_test_functions.jsonl/90962
{ "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, 42681, 6345, 82116, 9040, 77315, 36878, 368, 341, 262, 1077, 320, 1676, 11, 1376, 12670, 8, 284, 633, 4452, 5332, 543, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 2099, 1676, 626, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_calc_target2() { assert_eq!( calc_target(vec![ Direction::NorthWest, Direction::West, Direction::SouthWest, Direction::East, Direction::East ]), (0, 0) ) }
rust_cleaned_test_functions.jsonl/82096
{ "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, 38241, 11123, 17, 368, 341, 286, 2060, 10714, 33673, 310, 10035, 11123, 25592, 90515, 394, 18904, 486, 25221, 23306, 345, 394, 18904, 486, 23306, 345, 394, 18904, 486, 25018, 23306, 345, 394, 18904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1