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_order() { let mut rng = rand::thread_rng(); assert_eq!(I.order(), 1); for _ in 0..1000 { let p: Permutation = rng.gen(); assert!(p.order() <= 1260); } }
rust_cleaned_test_functions.jsonl/31483
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7869, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 2060, 10714, 10297, 40, 14041, 1507, 220, 16, 317, 286, 369, 716, 304, 220, 15, 496, 16, 15, 15, 15, 341, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_perceptron() { let p_and = perceptron::Node { weights: vec![0.5, 0.5], bias: -1., learning_rate: 0.1, }; let input1 = vec![0.0, 0.0]; let input2 = vec![0.0, 1.0]; let input3 = vec![1.0, 0.0]; let input4 = vec![1.0, 1.0]; // Test AND Perceptron...
rust_cleaned_test_functions.jsonl/130158
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1006 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5678, 346, 94710, 368, 341, 262, 1077, 281, 8378, 284, 61722, 94710, 486, 1955, 341, 286, 14324, 25, 7486, 20703, 15, 13, 20, 11, 220, 15, 13, 20, 1259, 286, 15470, 25, 481, 16, 38088, 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_set_bad_flags_2() { // This needs to be changed if -z is added as a flag let err = set_flags(svec!["deno", "-z"]).unwrap_err(); assert_eq!(err, "bad option -z"); }
rust_cleaned_test_functions.jsonl/110202
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 34199, 14130, 62, 17, 368, 341, 220, 442, 1096, 3880, 311, 387, 5497, 421, 481, 89, 374, 3694, 438, 264, 5181, 198, 220, 1077, 1848, 284, 738, 14130, 1141, 4083, 0, 1183, 5183, 78, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_identity_inverse_is_identity() { let result: Matrix2x2<f64> = Matrix2x2::identity().inverse().unwrap(); let expected: Matrix2x2<f64> = Matrix2x2::identity(); assert_eq!(result, expected); }
rust_cleaned_test_functions.jsonl/128973
{ "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, 46244, 63333, 6892, 46244, 368, 341, 286, 1077, 1102, 25, 11631, 17, 87, 17, 63895, 21, 19, 29, 284, 11631, 17, 87, 17, 486, 16912, 1005, 61482, 1005, 15454, 543, 286, 1077, 3601, 25, 11631, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_block_serialize_simple() -> io::Result<()> { let checkpoints = vec![Checkpoint { start_doc: 10, end_doc: 12, start_offset: 100, end_offset: 120, }]; test_aux_ser_deser(&checkpoints) }
rust_cleaned_test_functions.jsonl/46344
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 88686, 30015, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 67209, 284, 7486, 20703, 92688, 341, 310, 1191, 18869, 25, 220, 16, 15, 345, 310, 835, 18869, 25, 220, 16, 17, 345, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_module_publishing() { let (config, key) = config_builder::test_config(); let (vm_validator, mut rt) = TestValidator::new(&config); let address = account_config::association_address(); let transaction = transaction_test_helpers::get_test_signed_module_publishing_transact...
rust_cleaned_test_functions.jsonl/2302
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 10750, 58779, 287, 368, 341, 262, 1077, 320, 1676, 11, 1376, 8, 284, 2193, 28532, 486, 1944, 5332, 543, 262, 1077, 320, 7338, 64959, 11, 5206, 16677, 8, 284, 3393, 14256, 486, 931, 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_verify() { let digest = ScalarFieldElement::from(u256h!( "01e542e2da71b3f5d7b4e9d329b4d30ac0b5d6f266ebef7364bf61c39aac35d0" )); let public_key = PublicKey::from(Affine::new( field_element!("077a3b314db07c45076d11f62b6f9e748a39790441823307743cf00d65...
rust_cleaned_test_functions.jsonl/11792
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 368, 341, 286, 1077, 20882, 284, 35176, 1877, 1691, 486, 1499, 8154, 17, 20, 21, 71, 33673, 310, 330, 15, 16, 68, 20, 19, 17, 68, 17, 3235, 22, 16, 65, 18, 69, 20, 67, 22, 65, 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_read_genotype_field_values_with_int8_values() -> io::Result<()> { let data = [ 0x11, 0x05, 0x08, 0x80, // None ]; let mut reader = &data[..]; let actual = read_genotype_field_values(&mut reader, 3)?; let ...
rust_cleaned_test_functions.jsonl/52810
{ "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, 6443, 16322, 4156, 5013, 9146, 6615, 4042, 23, 9146, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 821, 284, 2278, 310, 220, 15, 87, 16, 16, 11, 715, 310, 220, 15, 87, 15, 20, 11, 715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_address_parse_fail() { let test_cases = [ "", "/", "/foobar", "/tcp", "tcp/1234", "/tcp/1234/", "/tcp/1234/foobar/5", "/tcp/99999", "/ip4/1.1.1", "/ip4/1.1.1.1....
rust_cleaned_test_functions.jsonl/4279
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 464 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20966, 6744, 21039, 22121, 368, 341, 286, 1077, 1273, 41427, 284, 2278, 310, 8324, 310, 3521, 756, 310, 3521, 50267, 756, 310, 3521, 27161, 756, 310, 330, 27161, 14, 16, 17, 18, 19, 756, 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...
3
#[test] fn test_signed_bytes_le_round_trip() { for i in -0x1FFFF..0x20000 { let n = BigInt::from(i); assert_eq!(n, BigInt::from_signed_bytes_le(&n.to_signed_bytes_le())); } }
rust_cleaned_test_functions.jsonl/56615
{ "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, 55617, 12524, 11751, 29896, 63883, 368, 341, 262, 369, 600, 304, 481, 15, 87, 16, 6389, 496, 15, 87, 17, 15, 15, 15, 15, 341, 286, 1077, 308, 284, 62608, 486, 1499, 1956, 317, 286, 2060, 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 ]
2
#[test] fn test_core_macros() -> Result<(), Box<dyn std::error::Error>> { let source = "(defn f [x] (let [y 29] (+ x y))) (f 1)"; let expected_result = Value::Number(30); let builder = InterpreterBuilder::default(); let mut interpreter = builder.build(); let forms = rea...
rust_cleaned_test_functions.jsonl/41751
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15467, 85904, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 2530, 284, 11993, 750, 77, 282, 508, 87, 60, 320, 1149, 508, 88, 220, 17, 24, 60, 17973, 856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_into_response() { let resp: Response<AnyBody> = ParseError::Incomplete.into(); assert_eq!(resp.status(), StatusCode::BAD_REQUEST); let err: HttpError = StatusCode::from_u16(10000).err().unwrap().into(); let resp: Response<AnyBody> = Error::new_http().with_cause(e...
rust_cleaned_test_functions.jsonl/5113
{ "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, 45514, 9655, 368, 341, 286, 1077, 9039, 25, 5949, 86712, 5444, 29, 284, 14775, 1454, 486, 96698, 39860, 543, 286, 2060, 10714, 10297, 18243, 4299, 1507, 53403, 486, 53572, 14454, 626, 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...
1
#[test] fn test_vm_jit_ldabsh() { let prog = &[ 0x28, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x95, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ]; let mut mem1 = [ 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, ]; ...
rust_cleaned_test_functions.jsonl/15510
{ "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, 39008, 5374, 275, 50573, 370, 927, 368, 341, 262, 1077, 29271, 284, 609, 9640, 286, 220, 15, 87, 17, 23, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 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_field_default_value_int() { let msg = r#" optional int64 f = 4 [default = 12]; "#; let mess = parse(msg, |p| p.next_field(MessageBodyParseMode::MessageProto2)); assert_eq!("f", mess.name); assert_eq!("default", mess.options[0].name); assert_eq!("12", mes...
rust_cleaned_test_functions.jsonl/70448
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5013, 9993, 3142, 4042, 368, 341, 286, 1077, 3750, 284, 435, 55543, 220, 10101, 526, 21, 19, 282, 284, 220, 19, 508, 2258, 284, 220, 16, 17, 5265, 220, 5869, 280, 286, 1077, 9435, 284, 4715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_float_func() -> Result<(), Box<EvalAltResult>> { let mut engine = Engine::new(); engine.register_fn("sum", |x: FLOAT, y: FLOAT, z: FLOAT, w: FLOAT| { x + y + z + w }); assert_eq!(engine.eval::<FLOAT>("sum(1.0, 2.0, 3.0, 4.0)")?, 10.0); Ok(()) }
rust_cleaned_test_functions.jsonl/75998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17586, 9596, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 1077, 5206, 4712, 284, 8200, 486, 931, 1428, 262, 4712, 9929, 15246, 445, 1242, 497, 760, 87, 25, 50116, 11, 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...
2
#[test] fn test_get() { let spec = "input a: Int32\ninput b: Int32\noutput x @(a || b) := a.get().defaults(to: 0)"; let type_table = type_check(spec); // node ids can be verified using `rtlola-analyze spec.lola ast` // input `a` has NodeId = 1 // input `b` has NodeId = 3 ...
rust_cleaned_test_functions.jsonl/110720
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 362 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 368, 341, 286, 1077, 1398, 284, 330, 1355, 264, 25, 1333, 18, 17, 1699, 1355, 293, 25, 1333, 18, 17, 1699, 3006, 856, 42181, 64, 1369, 293, 8, 1669, 264, 670, 1005, 26756, 12186, 25, 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_slice_from() { assert_eq!("abcd".slice_from(0), "abcd"); assert_eq!("abcd".slice_from(2), "cd"); assert_eq!("abcd".slice_from(4), ""); }
rust_cleaned_test_functions.jsonl/2438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26488, 5673, 368, 341, 286, 2060, 10714, 17223, 68644, 3263, 24963, 5673, 7, 15, 701, 330, 68644, 797, 286, 2060, 10714, 17223, 68644, 3263, 24963, 5673, 7, 17, 701, 330, 4385, 797, 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
#[test] fn test_insert_picks_latest_blockhash_fork() { let sig = Signature::default(); let mut status_cache = BankStatusCache::default(); let blockhash = hash(Hash::default().as_ref()); let ancestors = vec![(0, 0)].into_iter().collect(); status_cache.insert(&blockhash, &s...
rust_cleaned_test_functions.jsonl/23942
{ "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, 17678, 620, 5788, 64880, 7113, 8296, 761, 669, 368, 341, 286, 1077, 8366, 284, 32232, 486, 2258, 543, 286, 1077, 5206, 2639, 11529, 284, 8547, 2522, 8233, 486, 2258, 543, 286, 1077, 2504, 8296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_foreground() { let mut style = Style::new(COLORS); assert_eq!( style.foreground(&DEFAULT_COLORS), COLORS.foreground.unwrap() ); style.colors.foreground = None; assert_eq!( style.foreground(&DEFAULT_COLORS), ...
rust_cleaned_test_functions.jsonl/128014
{ "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, 35563, 1951, 368, 341, 286, 1077, 5206, 1707, 284, 11913, 486, 931, 87411, 50, 626, 286, 2060, 10714, 33673, 310, 1707, 54569, 1951, 2099, 17285, 85436, 1326, 310, 86822, 54569, 1951, 55395, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_diff_unified_two_files() { let options = get_command_line_options(); let output = strip_ansi_codes(&run_delta(DIFF_UNIFIED_TWO_FILES, &options)).to_string(); let mut lines = output.split('\n'); // Header assert_eq!(lines.nth(1).unwrap(), "comparing: one.r...
rust_cleaned_test_functions.jsonl/61843
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 318 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15850, 4907, 1870, 23241, 10931, 368, 341, 286, 1077, 2606, 284, 633, 10811, 6528, 8743, 543, 286, 1077, 2550, 284, 13316, 62, 52067, 38482, 2099, 6108, 26710, 5432, 29035, 6735, 27320, 73892, 48010...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reinit_duplex_stream_by_unplugging_a_default_output_device() { test_unplug_a_device_on_an_active_stream(StreamType::DUPLEX, Scope::Output, true, 500); }
rust_cleaned_test_functions.jsonl/23867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 2327, 51932, 2571, 12673, 3710, 4907, 500, 35268, 4306, 9993, 7645, 9204, 368, 341, 262, 1273, 4907, 47474, 4306, 9204, 4470, 12008, 12930, 12673, 52011, 929, 486, 35, 3124, 35245, 11, 34920, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_additional_suffix_no_slash() { new_ucmd!() .args(&["--additional-suffix", "a/b"]) .fails() .usage_error("invalid suffix 'a/b', contains directory separator"); }
rust_cleaned_test_functions.jsonl/25858
{ "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, 81742, 37151, 6536, 11886, 988, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 35499, 1331, 13554, 497, 330, 64, 3470, 14108, 286, 659, 59631, 741, 286, 659, 17698, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decimal_to_string() { // Helper method to compare decimal fn check_decimal(bytes: Vec<u8>, precision: i32, scale: i32, res: &str) { let decimal = Decimal::from_bytes(ByteArray::from(bytes), precision, scale); assert_eq!(convert_decimal_to_string(&decimal), res); }...
rust_cleaned_test_functions.jsonl/43806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 459 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 74429, 2346, 3904, 368, 341, 262, 442, 12906, 1714, 311, 9429, 12122, 198, 262, 5168, 1779, 74429, 23158, 25, 11312, 34837, 23, 8066, 16052, 25, 600, 18, 17, 11, 5452, 25, 600, 18, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sample_key_num() { let mut hub = AutoSplitController::new(SplitConfigManager::default()); hub.cfg.qps_threshold = 2000; hub.cfg.sample_num = 2000; hub.cfg.sample_threshold = 0; for _ in 0..100 { // qps_stats_vec contains 2000 qps and a readSta...
rust_cleaned_test_functions.jsonl/33008
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 625 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17491, 3097, 4273, 368, 341, 286, 1077, 5206, 18719, 284, 8979, 20193, 2051, 486, 931, 3759, 2292, 2648, 2043, 486, 2258, 1423, 286, 18719, 30481, 11354, 1690, 21858, 284, 220, 17, 15, 15, 15, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_parse_policy() { let p = Policy::from_str("3-4 l").unwrap(); assert_eq!(p.lb, 3); assert_eq!(p.ub, 4); assert_eq!(p.letter, 'l'); let p = Policy::from_str("10-20 x").unwrap(); assert_eq!(p.lb, 10); assert_eq!(p.ub, 20); ass...
rust_cleaned_test_functions.jsonl/110457
{ "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, 21039, 22773, 368, 341, 286, 1077, 281, 284, 10974, 486, 1499, 2895, 445, 18, 12, 19, 326, 1827, 15454, 543, 286, 2060, 10714, 10297, 79, 44262, 11, 220, 18, 317, 286, 2060, 10714, 10297, 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_open_layers() -> Result<()> { let conf = PageServerConf::dummy_conf(PageServerConf::test_repo_dir("dummy_inmem_layer")); let conf = Box::leak(Box::new(conf)); let mut layers = LayerMap::default(); let gen1 = layers.increment_generation(); layers.insert_o...
rust_cleaned_test_functions.jsonl/1847
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 678 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11311, 26091, 368, 1464, 5714, 71698, 341, 286, 1077, 2335, 284, 5755, 5475, 15578, 486, 31390, 16059, 47785, 5475, 15578, 486, 1944, 37784, 4334, 445, 31390, 1243, 10536, 12680, 4010, 286, 1077, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_terminal_in_each_set_does_not_combined_with_terminal_or_honor_in_each_set() { let test_str = "111789m111p1199s 9s"; let test = Hand::from(test_str); let test_analyzer = HandAnalyzer::new(&test).unwrap(); let mut status = Status::new(); let settings = Setti...
rust_cleaned_test_functions.jsonl/91439
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64309, 1243, 32046, 2602, 96374, 7913, 89945, 6615, 64309, 8734, 1523, 54037, 1243, 32046, 2602, 368, 341, 286, 1077, 1273, 2895, 284, 330, 16, 16, 16, 22, 23, 24, 76, 16, 16, 16, 79, 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...
1
#[test] fn test_chan_writer() { let (tx, rx) = channel(); let mut writer = ChanWriter::new(tx); writer.write_be_u32(42).unwrap(); let wanted = vec![0, 0, 0, 42]; let got = thread::scoped(move|| { rx.recv().unwrap() }).join(); assert_eq!(wanted, got); mat...
rust_cleaned_test_functions.jsonl/46766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45552, 28908, 368, 341, 286, 1077, 320, 3998, 11, 19111, 8, 284, 5496, 543, 286, 1077, 5206, 6916, 284, 41302, 6492, 486, 931, 27301, 317, 286, 6916, 3836, 21263, 7300, 18, 17, 7, 19, 17, 568,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_modulus_debug() { let (modulus, _) = Modulus::<M>::from_be_bytes_with_bit_length(untrusted::Input::from( &[0xff; LIMB_BYTES * MODULUS_MIN_LIMBS], )) .unwrap(); assert_eq!("Modulus", format!("{:?}", modulus)); }
rust_cleaned_test_functions.jsonl/55430
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7480, 19425, 15446, 368, 341, 286, 1077, 320, 2593, 19425, 11, 27439, 284, 5650, 19425, 27638, 44, 6831, 1499, 21263, 12524, 6615, 13996, 5118, 18364, 83837, 486, 2505, 486, 1499, 1006, 310, 44590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_check_kernel() { use super::check_kernel::{check_kernel_params, Checker}; use std::i64; let table: Vec<(&str, i64, Box<Checker>, bool)> = vec![ ( "/proc/sys/vm/swappiness", i64::MAX, Box::new(|got, expe...
rust_cleaned_test_functions.jsonl/1557
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 423 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 26876, 368, 341, 286, 990, 2256, 486, 2028, 26876, 22964, 2028, 26876, 6745, 11, 80678, 2440, 286, 990, 1460, 486, 72, 21, 19, 401, 1789, 286, 1077, 1965, 25, 11312, 27, 2099, 495, 11, 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...
2
#[test] fn test_base32() { let cid = Cid::from_str("bafkreibme22gw2h7y2h7tg2fhqotaqjucnbc24deqo72b6mkl2egezxhvy").unwrap(); assert_eq!(cid.version, Version::V1); assert_eq!(cid.codec, Codec::Raw); assert_eq!(cid.hash, Sha2_256::digest(b"foo")); }
rust_cleaned_test_functions.jsonl/79689
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7651, 18, 17, 368, 341, 262, 1077, 32141, 284, 356, 307, 486, 1499, 2895, 445, 65, 2577, 74, 38013, 2660, 17, 17, 54133, 17, 71, 22, 88, 17, 71, 22, 41428, 17, 31104, 80, 6089, 80, 73, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_normalize_path() { assert_eq!(normalize_path("foo/../bar").as_os_str(), "bar"); assert_eq!(normalize_path("foo/./bar").as_os_str(), "foo/bar"); assert_eq!(normalize_path("./foo").as_os_str(), "foo"); assert_eq!( normalize_path("foo/../bar/baz/../qux").as_os_str(), ...
rust_cleaned_test_functions.jsonl/19666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80807, 2638, 368, 341, 262, 2060, 10714, 10297, 30590, 2638, 445, 7975, 78380, 2257, 1827, 300, 29387, 2895, 1507, 330, 2257, 797, 262, 2060, 10714, 10297, 30590, 2638, 445, 7975, 14, 1725, 2257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decode_ldr_reg_w() { assert_eq!( decode_32(0xf8594024), Instruction::LDR_reg { params: Reg3FullParams { rt: Reg::R4, rn: Reg::R9, rm: Reg::R4, shift_t: SRType::LSL, shift_n: 2, ...
rust_cleaned_test_functions.jsonl/64822
{ "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, 15227, 50573, 81, 4920, 1670, 368, 341, 1066, 262, 2060, 10714, 33673, 286, 16895, 62, 18, 17, 7, 15, 5848, 23, 20, 24, 19, 15, 17, 19, 1326, 286, 29051, 486, 43, 7687, 4920, 341, 310, 3628,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_break_lines_short() { let mut test_string = String::with_capacity(100); for _ in 0..20 { test_string.push('#'); } let lines = break_line(&test_string, 80); assert_eq!(20, lines[0].len()); }
rust_cleaned_test_functions.jsonl/109673
{ "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, 39494, 18323, 16673, 368, 341, 286, 1077, 5206, 1273, 3904, 284, 923, 486, 4197, 35603, 7, 16, 15, 15, 317, 286, 369, 716, 304, 220, 15, 496, 17, 15, 341, 310, 1273, 3904, 2552, 3515, 1157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_panicking() { test_in_db("panicking", |mut conn| { let result = conn.query("SELECT panicking(1)", &[]); assert!(result.is_err()); }); }
rust_cleaned_test_functions.jsonl/104022
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71099, 16272, 368, 341, 262, 1273, 1243, 8685, 445, 848, 16272, 497, 760, 6984, 4534, 91, 341, 286, 1077, 1102, 284, 4534, 4786, 445, 4858, 7215, 16272, 7, 16, 11583, 609, 56703, 286, 2060, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cdc_scan() { let mut suite = TestSuite::new(1); let (k, v) = (b"key1".to_vec(), b"value".to_vec()); // Prewrite let start_ts1 = block_on(suite.cluster.pd_client.get_tso()).unwrap(); let mut mutation = Mutation::default(); mutation.set_op(Op::Put); mutation.key = k.cl...
rust_cleaned_test_functions.jsonl/13003
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2686 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 7628, 28857, 368, 341, 262, 1077, 5206, 16182, 284, 3393, 28000, 486, 931, 7, 16, 626, 262, 1077, 320, 74, 11, 348, 8, 284, 320, 65, 1, 792, 16, 3263, 983, 13251, 1507, 293, 63307, 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...
7
#[test] fn test_delete_value() { let tmp_dir = TempDir::new().unwrap(); let mut sm = get_tmp_store_manager(&tmp_dir); let test_client_name = "test_client".to_owned(); let test_key = "test_key".to_owned(); let test_field = Value::Boolval(true); let mut client_dat...
rust_cleaned_test_functions.jsonl/48848
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11353, 3142, 368, 341, 286, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 1525, 284, 633, 16125, 14809, 12144, 2099, 5173, 4334, 626, 286, 1077, 1273, 8179, 1269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_storage_receipts_insert() { let storage = ImplStorage::new(Arc::new(MemoryAdapter::new())); let mut receipts = Vec::new(); let mut hashes = Vec::new(); for _ in 0..10 { let tx_hash = Hash::digest(get_random_bytes(10)); hashes.push(tx_hash.clone()); let r...
rust_cleaned_test_functions.jsonl/5468
{ "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, 23310, 77974, 82, 17678, 368, 341, 262, 1077, 5819, 284, 88092, 5793, 486, 931, 4346, 1287, 486, 931, 3189, 4731, 5940, 486, 931, 25138, 262, 1077, 5206, 56480, 284, 11312, 486, 931, 543, 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...
3
#[test] fn test_parse_debug_line_header_length_too_short() { #[rustfmt::skip] let buf = [ // 32-bit length = 62. 0x3e, 0x00, 0x00, 0x00, // Version. 0x04, 0x00, // Header length = 20. TOO SHORT!!! 0x15, 0x00, 0x00, 0x00, ...
rust_cleaned_test_functions.jsonl/3349
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 15446, 6528, 8757, 5118, 2346, 78, 16673, 368, 341, 286, 11506, 35788, 12501, 486, 20599, 921, 286, 1077, 6607, 284, 2278, 310, 442, 220, 18, 17, 15257, 3084, 284, 220, 21, 17, 624, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_prev_index() { let sql = "SELECT version"; all_dialects().run_parser_method(sql, |parser| { assert_eq!(parser.peek_token(), Token::make_keyword("SELECT")); assert_eq!(parser.next_token(), Token::make_keyword("SELECT")); parser.prev_token(); ...
rust_cleaned_test_functions.jsonl/20756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 464 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25566, 3560, 368, 341, 286, 1077, 5704, 284, 330, 4858, 2319, 876, 286, 678, 814, 55056, 82, 1005, 6108, 18517, 9032, 13148, 11, 760, 9657, 91, 341, 310, 2060, 10714, 10297, 9657, 41249, 6458, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_http_405_with_params() { let rocket = rocket::ignite().mount("/", routes![post_hello]); let client = Client::new(rocket).unwrap(); let response = client.get("/hello?say=hi").dispatch(); assert_eq!(response.status(), Status::MethodNotAllowed); }
rust_cleaned_test_functions.jsonl/110576
{ "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, 25888, 62, 19, 15, 20, 6615, 6745, 368, 341, 286, 1077, 24306, 284, 24306, 486, 95408, 1005, 16557, 35460, 11291, 20703, 2203, 96724, 10149, 286, 1077, 2943, 284, 8423, 486, 931, 7, 46790, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cpuid_cycle_count_avg() { let avg = cpuid_cycle_count_avg(5, 100, 5); assert!(avg < 1000); // may fail if test is run on a VM }
rust_cleaned_test_functions.jsonl/49644
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39811, 2423, 39079, 3180, 26631, 368, 341, 286, 1077, 19712, 284, 12490, 2423, 39079, 3180, 26631, 7, 20, 11, 220, 16, 15, 15, 11, 220, 20, 317, 286, 2060, 10297, 13961, 366, 220, 16, 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
#[test] fn test_cvtsd2ss() { assert_emit!(0xf2, 0x0f, 0x5a, 0xc1; cvtsd2ss(XMM0, XMM1)); assert_emit!(0xf2, 0x41, 0x0f, 0x5a, 0xdf; cvtsd2ss(XMM3, XMM15)); assert_emit!(0xf2, 0x44, 0x0f, 0x5a, 0xc4; cvtsd2ss(XMM8, XMM4)); }
rust_cleaned_test_functions.jsonl/85497
{ "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, 43233, 2576, 67, 17, 778, 368, 341, 286, 2060, 69082, 10297, 15, 5848, 17, 11, 220, 15, 87, 15, 69, 11, 220, 15, 87, 20, 64, 11, 220, 15, 8148, 16, 26, 5544, 2576, 67, 17, 778, 7644, 803...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_notify() { async fn run_to_end_listen() -> TestEnvironment { let setting_type = SettingType::Unknown; let mut environment = TestEnvironmentBuilder::new(setting_type).build().await; // Send a listen state and make sure sink is notified. let mut listen_receptor ...
rust_cleaned_test_functions.jsonl/89525
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 932 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36654, 368, 341, 262, 3312, 5168, 1598, 2346, 6213, 79286, 368, 1464, 3393, 12723, 341, 286, 1077, 6243, 1819, 284, 20037, 929, 486, 13790, 280, 286, 1077, 5206, 4573, 284, 3393, 12723, 3297, 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...
3
#[test] fn test_invalid_hex_with_wrong_size() { let res: Result<RgbColor, Error> = "#ff00".parse(); assert!(res.is_err()); assert_eq!( format!("{}", res.unwrap_err()), "unexpected hex color format: expected(Hex code must be `7` characters long. Example: `#00FF00`...
rust_cleaned_test_functions.jsonl/46474
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 32655, 6615, 75198, 2368, 368, 341, 286, 1077, 592, 25, 5714, 23370, 9511, 1636, 11, 4600, 29, 284, 5869, 542, 15, 15, 3263, 6400, 543, 286, 2060, 10297, 416, 2079, 9266, 1423, 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_set_tp() { let cases = vec![ ("2011-11-11 10:10:10.123456", "2011-11-11"), (" 2011-11-11 23:59:59", "2011-11-11"), ]; for (s, exp) in cases { let mut res = Time::parse_utc_datetime(s, UN_SPECIFIED_FSP).unwrap(); res.set_tp...
rust_cleaned_test_functions.jsonl/58466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 340 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 55191, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 17, 15, 16, 16, 12, 16, 16, 12, 16, 16, 220, 16, 15, 25, 16, 15, 25, 16, 15, 13, 16, 17, 18, 19, 20, 21, 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...
2
#[test] fn test_into_string() { let av = AttrValue::Static("str"); assert_eq!(av.into_string(), "str"); let av = AttrValue::Owned("String".to_string()); assert_eq!(av.into_string(), "String"); let av = AttrValue::Rc("Rc<str>".into()); assert_eq!(av.into_string()...
rust_cleaned_test_functions.jsonl/123099
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 3904, 368, 341, 286, 1077, 1822, 284, 50943, 1130, 486, 11690, 445, 495, 797, 286, 2060, 10714, 10297, 402, 39860, 3904, 1507, 330, 495, 3071, 286, 1077, 1822, 284, 50943, 1130, 486, 57641,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iterate_into_string() { let words = vec!["hello", " ", "world"]; let capitalized_words = words.iter().map(|w| capitalize_first(w)) .fold(String::new(), |acc, b| if b.trim().is_empty() { acc } else if acc.is_empty() { ...
rust_cleaned_test_functions.jsonl/80357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 349, 45514, 3904, 368, 341, 286, 1077, 4244, 284, 7486, 0, 1183, 14990, 497, 330, 3670, 330, 14615, 6332, 286, 1077, 97321, 18981, 284, 4244, 19471, 1005, 2186, 22428, 86, 91, 52725, 12978,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_system_ttl() { // created mempool with system_transaction_timeout = 0 // All transactions are supposed to be evicted on next gc run let mut config = NodeConfig::random(); config.mempool.system_transaction_timeout_secs = 0; let mut mempool = CoreMempool::new(&config); add...
rust_cleaned_test_functions.jsonl/14065
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 295 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17687, 87157, 368, 341, 262, 442, 3465, 1833, 10285, 448, 1849, 28884, 20537, 284, 220, 15, 198, 262, 442, 2009, 14131, 525, 9966, 311, 387, 3637, 12770, 389, 1790, 22122, 1598, 198, 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_path_builder_line_to_after_close() { let mut p = Path::builder(); p.line_to(point(1.0, 0.0)); p.close(); p.line_to(point(2.0, 0.0)); let path = p.build(); let mut it = path.iter(); assert_eq!(it.next(), Some(PathEvent::MoveTo(point(0.0, 0.0)))); assert_eq!(it.nex...
rust_cleaned_test_functions.jsonl/19896
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2638, 28532, 6528, 2346, 19844, 12704, 368, 341, 262, 1077, 5206, 281, 284, 7933, 486, 17850, 543, 262, 281, 10932, 2346, 20235, 7, 16, 13, 15, 11, 220, 15, 13, 15, 1106, 262, 281, 4653, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_config_defaults() { let cfg = Config::build("cluster0".into()).validate().unwrap(); assert!(cfg.election_timeout_min >= DEFAULT_ELECTION_TIMEOUT_MIN as u64); assert!(cfg.election_timeout_max <= DEFAULT_ELECTION_TIMEOUT_MAX as u64); assert!(cfg.heartbeat_interval ...
rust_cleaned_test_functions.jsonl/129746
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 42290, 368, 341, 286, 1077, 13286, 284, 5532, 486, 5834, 445, 18855, 15, 3263, 18122, 6011, 7067, 1005, 15454, 1428, 286, 2060, 10297, 14072, 1734, 1170, 20537, 7260, 2604, 11955, 2089, 28017,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_long_to_integer() { assert_less(Variant::from(1_i64), Variant::from(2)); assert_equal(Variant::from(3_i64), Variant::from(3)); assert_greater(Variant::from(5_i64), Variant::from(4)); }
rust_cleaned_test_functions.jsonl/84526
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17799, 2346, 31725, 368, 341, 310, 2060, 50747, 12410, 15341, 486, 1499, 7, 16, 5318, 21, 19, 701, 39292, 486, 1499, 7, 17, 1106, 310, 2060, 11478, 12410, 15341, 486, 1499, 7, 18, 5318, 21, 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_handle_set_minters() { let (init_result, mut deps) = init_helper_with_config( vec![InitialBalance { address: HumanAddr("bob".to_string()), amount: Uint128(5000), }], false, false, true, ...
rust_cleaned_test_functions.jsonl/69622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 2602, 717, 49940, 368, 341, 286, 1077, 320, 2327, 5287, 11, 5206, 48178, 8, 284, 2930, 10418, 6615, 5332, 1006, 310, 7486, 20703, 6341, 21190, 341, 394, 2621, 25, 11097, 13986, 445, 47086, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_consume_and_reset() { let iterable = "456".chars(); let mut iter = iterable.peekmore(); assert_eq!(iter.peek(), Some(&core::char::from_digit(4, 10).unwrap())); assert_eq!( iter.peek_next(), Some(&core::char::from_digit(5, 10).unwrap()...
rust_cleaned_test_functions.jsonl/72616
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 531 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 3382, 31323, 8378, 18983, 368, 341, 286, 1077, 50834, 284, 330, 19, 20, 21, 3263, 19255, 1428, 286, 1077, 5206, 5367, 284, 50834, 41249, 6384, 543, 286, 2060, 10714, 10297, 2015, 41249, 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_file_identifier() { assert_eq!( file_identifier().parse(r#"file_identifier "NOOB";"#), Ok((Stmt::FileIdentifier("NOOB".into()), "")) ); }
rust_cleaned_test_functions.jsonl/66394
{ "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, 2458, 33176, 368, 341, 286, 2060, 10714, 33673, 310, 1034, 33176, 1005, 6400, 2601, 55543, 1192, 33176, 330, 8996, 20608, 5123, 57676, 1326, 310, 7622, 1188, 31063, 486, 1703, 8714, 445, 8996, 20608...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_fixed_size_array() { the_same([24u32; 32]); the_same([1u64, 2, 3, 4, 5, 6, 7, 8]); the_same([0u8; 19]); }
rust_cleaned_test_functions.jsonl/6267
{ "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, 37839, 2368, 3858, 368, 341, 262, 279, 33574, 2561, 17, 19, 84, 18, 17, 26, 220, 18, 17, 2558, 262, 279, 33574, 2561, 16, 84, 21, 19, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 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_128_data_192_kek() { test_wrap_unwrap( "000102030405060708090A0B0C0D0E0F1011121314151617", "00112233445566778899AABBCCDDEEFF", "96778B25AE6CA435F92B5B97C050AED2468AB8A17AD84E5D", ); }
rust_cleaned_test_functions.jsonl/16539
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 16, 17, 23, 1769, 62, 16, 24, 17, 45476, 74, 368, 341, 286, 1273, 38550, 4907, 10097, 1006, 310, 330, 15, 15, 15, 16, 15, 17, 15, 18, 15, 19, 15, 20, 15, 21, 15, 22, 15, 23, 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_discard_double_spend_txs() { let network = Network::LocalNet; let consensus_constants = network.create_consensus_constants(); let tx1 = Arc::new(tx!(MicroTari(5_000), fee: MicroTari(50), inputs:2, outputs:1).0); let tx2 = Arc::new(tx!(MicroTari(5_000), fee: MicroT...
rust_cleaned_test_functions.jsonl/27097
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1386 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37745, 567, 24598, 643, 3740, 17805, 82, 368, 341, 286, 1077, 3922, 284, 8141, 486, 7319, 6954, 280, 286, 1077, 23869, 55642, 284, 3922, 2520, 31971, 13626, 55642, 543, 286, 1077, 9854, 16, 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_table_iterator_behavior_standard() { let mut data = build_data(); data.truncate(4); let (src, size) = build_table(data); let table = Table::new(Options::default(), wrap_buffer(src), size).unwrap(); test_iterator_properties(table.iter()); }
rust_cleaned_test_functions.jsonl/3806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5237, 13491, 74540, 48688, 368, 341, 286, 1077, 5206, 821, 284, 1936, 1769, 543, 286, 821, 5427, 26900, 7, 19, 317, 286, 1077, 320, 3548, 11, 1379, 8, 284, 1936, 5237, 2592, 317, 286, 1077, 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_multipe_same_name() { let cookie = test_decode::<Cookie>(&["foo=bar; foo=baz"]).unwrap(); assert_eq!(cookie.get("foo"), Some("bar")); }
rust_cleaned_test_functions.jsonl/76086
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26290, 3444, 33574, 1269, 368, 341, 286, 1077, 12544, 284, 1273, 15227, 27638, 20616, 44784, 1183, 7975, 28, 2257, 26, 15229, 22086, 1370, 45014, 15454, 1428, 286, 2060, 10714, 10297, 16236, 670, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_authority() { assert_eq!( authority("username:password@zupzup.org"), Ok(("zupzup.org", ("username", Some("password")))) ); assert_eq!( authority("username@zupzup.org"), Ok(("zupzup.org", ("username", None))) ); ...
rust_cleaned_test_functions.jsonl/118913
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22938, 487, 368, 341, 286, 2060, 10714, 33673, 310, 11198, 445, 5113, 25, 3833, 31, 89, 454, 89, 454, 2659, 4461, 310, 7622, 30873, 89, 454, 89, 454, 2659, 497, 3489, 5113, 497, 4329, 445, 383...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hover_struct_has_goto_type_action() { check_actions( r#" struct S{ f1: u32 } fn main() { let s$0t = S{ f1:0 }; } "#, expect![[r#" [ GoToType( [ HoverGotoTypeData { ...
rust_cleaned_test_functions.jsonl/66670
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 772 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 15126, 21778, 97732, 1819, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 1235, 328, 90, 282, 16, 25, 575, 18, 17, 555, 8822, 1887, 368, 314, 1077, 274, 3, 15, 83, 284, 328...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_robj() { test! { assert_eq!(<bool>::from_robj(&Robj::from(true)), Ok(true)); assert_eq!(<u8>::from_robj(&Robj::from(1)), Ok(1)); assert_eq!(<u16>::from_robj(&Robj::from(1)), Ok(1)); assert_eq!(<u32>::from_robj(&Robj::from(1)), Ok(1)); assert_eq!(<...
rust_cleaned_test_functions.jsonl/59508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 62, 22740, 73, 368, 341, 262, 1273, 0, 341, 286, 2060, 10714, 10297, 27, 2641, 6831, 1499, 62, 22740, 73, 2099, 49, 2295, 486, 1499, 3715, 5731, 7622, 3715, 1106, 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_deserialize_without_message_field() { let envelope: OciEnvelope = serde_json::from_str(EXAMPLE_ERROR_MISSING_MESSAGE).expect("parse example error"); let e = &envelope.errors[0]; assert_eq!(OciErrorCode::Unauthorized, e.code); assert_eq!(String::default...
rust_cleaned_test_functions.jsonl/19933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 39904, 6462, 5013, 368, 341, 286, 1077, 34398, 25, 506, 5855, 62712, 4035, 310, 61570, 9455, 486, 1499, 2895, 25409, 18918, 5414, 80706, 14641, 568, 17119, 445, 6400, 3110, 1465, 797, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deadbeef_32k_conv_sync_obs_gt_ibs() { new_ucmd!() .args(&[ "conv=sync", "ibs=521", "obs=1031", "if=deadbeef-18d99661a1de1fc9af21b0ec2cd67ba3.test", ]) .succeeds() .stdout_is_fixture_bytes("gnudd-conv-sync-ibs-521...
rust_cleaned_test_functions.jsonl/99860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53427, 1371, 823, 62, 18, 17, 74, 22716, 23008, 30405, 37479, 62, 54341, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 9640, 310, 330, 12027, 28, 12996, 756, 310, 330, 54341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decode_udiv() { assert_eq!( decode_32(0xfbb0f0f1), Instruction::UDIV { params: Reg3NoSetFlagsParams { rd: Reg::R0, rn: Reg::R0, rm: Reg::R1, } } ); }
rust_cleaned_test_functions.jsonl/64806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 7300, 611, 368, 341, 1066, 262, 2060, 10714, 33673, 286, 16895, 62, 18, 17, 7, 15, 5848, 6066, 15, 69, 15, 69, 16, 1326, 286, 29051, 486, 4656, 3090, 341, 310, 3628, 25, 3184, 18, 275...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_utf8_lstring() -> SimpleResult<()> { let data = b"\x41\x42\xE2\x9D\x84\xE2\x98\xA2\xF0\x9D\x84\x9E\xF0\x9F\x98\x88\xc3\xb7".to_vec(); let offset = Offset::Dynamic(Context::new(&data)); let a = H2String::new(7, CharacterReader::UTF8, CharacterFormatter::pretty_st...
rust_cleaned_test_functions.jsonl/102192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39453, 23, 907, 917, 368, 1464, 8993, 2077, 71698, 341, 1789, 286, 1077, 821, 284, 293, 11934, 87, 19, 16, 3462, 19, 17, 3462, 36, 17, 3462, 24, 35, 3462, 23, 19, 3462, 36, 17, 3462, 24, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_write_project_config() { let dir = tempdir().unwrap(); let config = ProjectConfig::new(String::from(DEFAULT_BLOCKCHAIN)); write_project_files(dir.path(), &config).unwrap(); let config_string = fs::read_to_string(dir.path().join("Shuffle").with_extens...
rust_cleaned_test_functions.jsonl/51502
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 16352, 5332, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 2193, 284, 5787, 2648, 486, 931, 2242, 486, 1499, 43175, 18756, 90733, 3237, 286, 3270, 16352, 10931, 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_register_counter_with_registry_trailing_comma() { use crate::Registry; use std::collections::HashMap; let mut labels = HashMap::new(); labels.insert("mykey".to_string(), "myvalue".to_string()); let custom_registry = Registry::new_custom(Some("myprefix".to_string()), Some(lab...
rust_cleaned_test_functions.jsonl/86364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 241 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14000, 15730, 6615, 50650, 3547, 14277, 2965, 1728, 368, 341, 262, 990, 17717, 486, 15603, 280, 262, 990, 1460, 486, 51137, 486, 18497, 401, 262, 1077, 5206, 9201, 284, 10528, 486, 931, 543, 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_ceil_real() { let cases = vec![ (4.0, 3.5), (4.0, 3.45), (4.0, 3.1), (-3.0, -3.45), (0.0, -0.1), (f64::MAX, f64::MAX), (f64::MIN, f64::MIN), ]; for (expected, input) in cases { ...
rust_cleaned_test_functions.jsonl/9475
{ "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, 22058, 15266, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 19, 13, 15, 11, 220, 18, 13, 20, 1326, 310, 320, 19, 13, 15, 11, 220, 18, 13, 19, 20, 1326, 310, 320, 19, 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_locator() { let (chain_controller, shared, _notify) = start_chain(None, None); let num = 200; let index = [ 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 188, 184, 176, 160, 128, 64, ]; for i in 1..num { insert_block(&chain_co...
rust_cleaned_test_functions.jsonl/113657
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 394 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75344, 368, 341, 286, 1077, 320, 8819, 21600, 11, 6094, 11, 716, 21948, 8, 284, 1191, 30583, 26717, 11, 2240, 626, 286, 1077, 1629, 284, 220, 17, 15, 15, 280, 286, 1077, 1922, 284, 2278, 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...
3
#[test] fn test_replica_read_on_hibernate() { let mut cluster = new_node_cluster(0, 3); configure_for_lease_read(&mut cluster, Some(50), Some(20)); cluster.pd_client.disable_default_operator(); let r1 = cluster.run_conf_change(); cluster.must_put(b"k1", b"v1"); cluster.pd_cli...
rust_cleaned_test_functions.jsonl/100486
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1021 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25533, 15317, 6443, 4470, 1523, 18818, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 18, 626, 262, 14411, 5478, 62, 1623, 6443, 2099, 6984, 10652, 11, 4329, 7, 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...
6
#[test] fn test_visit_each_account() { let do_work = |accounts: &[u8]| -> (usize, usize) { let mut unique_total = 0; let mut account_total = 0; let mut work = |unique_index: usize, account_index: usize| { unique_total += unique_index; a...
rust_cleaned_test_functions.jsonl/74625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 465 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56484, 32046, 13500, 368, 341, 286, 1077, 653, 11498, 284, 760, 26206, 25, 44590, 84, 23, 29685, 1464, 320, 51878, 11, 22301, 8, 341, 310, 1077, 5206, 4911, 10784, 284, 220, 15, 280, 310, 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_multiple() { struct Foo; impl fmt::Debug for Foo { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_set() .entry(&true) .entry(&format_args!("{}/{}", 10, 20)) .finish() ...
rust_cleaned_test_functions.jsonl/69321
{ "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, 45233, 368, 341, 286, 2036, 33428, 401, 286, 11605, 8879, 486, 7939, 369, 33428, 341, 310, 5168, 8879, 2099, 721, 11, 8879, 25, 609, 6984, 8879, 486, 14183, 18291, 62, 9231, 1464, 8879, 486, 207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_change_password_rejects_invalid_password_len() { let (crypto_provider, _) = get_test_db_crypto_provider(); assert!(crypto_provider .change_password( crypto_provider.env.begin_rw_txn().unwrap(), &[123; PASSWORD_LEN - 1] ) ...
rust_cleaned_test_functions.jsonl/33085
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 439 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15947, 10122, 1288, 583, 82, 31433, 10122, 6043, 368, 341, 286, 1077, 320, 35772, 29518, 11, 27439, 284, 633, 4452, 8685, 78298, 29518, 1428, 286, 2060, 10297, 35772, 29518, 198, 310, 659, 3373, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_metamethod_close() -> Result<()> { #[derive(Clone)] struct MyUserData(Arc<AtomicI64>); impl UserData for MyUserData { fn add_methods<'lua, M: UserDataMethods<'lua, Self>>(methods: &mut M) { methods.add_method("get", |_, data, ()| Ok(data.0.load(Ordering::Relaxed)...
rust_cleaned_test_functions.jsonl/40494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 599 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44517, 309, 1068, 12704, 368, 1464, 5714, 71698, 341, 262, 11506, 27098, 65297, 5563, 262, 2036, 3017, 39485, 4346, 1287, 27, 65857, 40, 21, 19, 29, 626, 262, 11605, 71294, 369, 3017, 39485, 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...
4
#[test] fn test_enum_endian_ctx() { #[derive(PartialEq, Debug, DekuRead, DekuWrite)] #[deku(type = "u32", endian = "endian", ctx = "endian: deku::ctx::Endian")] enum EnumTypeEndianCtx { #[deku(id = "0xDEADBEEF")] VarA(u8), } #[derive(PartialEq, Debug, DekuRead, DekuWrite)] ...
rust_cleaned_test_functions.jsonl/81458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31054, 87193, 15147, 368, 341, 262, 11506, 27098, 5304, 20894, 27312, 11, 11091, 11, 74463, 84, 4418, 11, 74463, 84, 7985, 5563, 262, 11506, 450, 12133, 5808, 284, 330, 84, 18, 17, 497, 64688, 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_with_comments() { let mut c = build_method(); c.comments.push("Hello World".into()); let t = Tokens::from(c); assert_eq!( Ok(String::from( "/**\n * Hello World\n */\npublic func foo<T>();", )), t.to_string() ...
rust_cleaned_test_functions.jsonl/69747
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 30359, 368, 341, 286, 1077, 5206, 272, 284, 1936, 9032, 543, 286, 272, 45074, 2552, 445, 9707, 4337, 3263, 18122, 1423, 286, 1077, 259, 284, 58166, 486, 1499, 1337, 317, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_host_localhost_mkdir() { let tmpdir: tempfile::TempDir = tempfile::TempDir::new().unwrap(); let mut host: Localhost = Localhost::new(PathBuf::from(tmpdir.path())).ok().unwrap(); let files: Vec<FsEntry> = host.list_dir(); assert_eq!(files.len(), 0); // There should...
rust_cleaned_test_functions.jsonl/53630
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 387 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12848, 62, 8301, 717, 12438, 368, 341, 286, 1077, 4174, 3741, 25, 54819, 486, 12151, 6184, 284, 54819, 486, 12151, 6184, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 3468, 25, 8774, 3790, 284, 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_decompose_weakly_connected_components_empty_graph() { let graph = petgraph_impl::new::<i32, i32>(); let result = decompose_weakly_connected_components(&graph); debug_assert_eq!(result.len(), 0); }
rust_cleaned_test_functions.jsonl/115469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 52706, 86356, 398, 43276, 23258, 15124, 14738, 368, 341, 286, 1077, 4771, 284, 6753, 4439, 21007, 486, 931, 27638, 72, 18, 17, 11, 600, 18, 17, 3913, 286, 1077, 1102, 284, 28502, 2900, 863...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_purge_exact_rwlock_secondary_index() { let (key_start, key_end, account_index) = create_rwlock_secondary_index_state(); let index = AccountsIndex::<bool>::default(); run_test_purge_exact_secondary_index( &index, &index.spl_token_owner_index, ...
rust_cleaned_test_functions.jsonl/2240
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 39823, 71084, 98850, 77759, 3560, 368, 341, 286, 1077, 320, 792, 4906, 11, 1376, 6213, 11, 2692, 3560, 8, 284, 1855, 98850, 77759, 3560, 4387, 543, 286, 1077, 1922, 284, 40655, 1552, 27638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bounty_claim_not_allowed() { let mut context = VMContextBuilder::new(); testing_env!(context.predecessor_account_id(accounts(1)).build()); let mut contract = Contract::new( Config::test_config(), VersionedPolicy::Default(vec![accounts(1).into()]), ...
rust_cleaned_test_functions.jsonl/133948
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 36725, 84969, 7913, 42155, 368, 341, 286, 1077, 5206, 2266, 284, 17792, 1972, 3297, 486, 931, 543, 286, 7497, 15879, 10297, 2147, 6225, 26911, 269, 13500, 842, 91868, 7, 16, 4579, 5834, 1423,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_edge_not_present() { let net: Network<&str, usize> = Network::new(false); assert!( net.edge_data("A", "B").is_none(), "There should not be an edge between A and B" ); }
rust_cleaned_test_functions.jsonl/127179
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17932, 7913, 36976, 368, 341, 262, 1077, 4179, 25, 8141, 52244, 495, 11, 22301, 29, 284, 8141, 486, 931, 3576, 626, 262, 2060, 33673, 286, 4179, 54266, 1769, 445, 32, 497, 330, 33, 1827, 285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_block() { parse_macro( r#" macro_rules! foo { ($ i:block) => { fn foo() $ i } } "#, ) .assert_expand_statements("foo! { { 1; } }", "fn foo () {1 ;}"); }
rust_cleaned_test_functions.jsonl/28740
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 368, 341, 262, 4715, 58810, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 15229, 341, 310, 1711, 600, 57628, 8, 589, 314, 5168, 15229, 368, 400, 600, 456, 286, 456, 57676, 345, 262, 1727...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_local_close() { let peer_port = 1025; let mut ctx = MuxerTestContext::new("local_close"); let local_port; { let (_stream, local_port_) = ctx.local_connect(peer_port); local_port = local_port_; } // VSOCK_OP...
rust_cleaned_test_functions.jsonl/37602
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 608 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13564, 12704, 368, 341, 286, 1077, 14397, 8716, 284, 220, 16, 15, 17, 20, 280, 286, 1077, 5206, 5635, 284, 386, 2200, 261, 2271, 1972, 486, 931, 445, 2438, 12704, 797, 286, 1077, 2205, 8716, 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_simple_double_merge() { // This test triggers the code path where a merge event is resolved during another // merge event. // \ / .-x <-- merge vertex // x-' <-- current merge vertex let mut path = Path::builder(); path.begin(point(0.0, 2.0)); path.li...
rust_cleaned_test_functions.jsonl/102409
{ "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, 30015, 24598, 20888, 368, 341, 262, 442, 1096, 1273, 30754, 279, 2038, 1815, 1380, 264, 10880, 1538, 374, 19673, 2337, 2441, 198, 262, 442, 10880, 1538, 624, 1066, 262, 442, 220, 1124, 608, 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_file_reader_rows_projection() { let _schema = " message spark_schema { REQUIRED DOUBLE c; REQUIRED INT32 b; } "; let schema = GroupPredicate::new( [(String::from("c"), None), (String::from("b"), None)] .iter() .cloned(), ); let rows = test_file_read...
rust_cleaned_test_functions.jsonl/92463
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 523 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 22306, 10949, 72738, 368, 341, 197, 10217, 716, 17349, 284, 6228, 7847, 1943, 15186, 25371, 341, 6449, 66577, 56272, 272, 280, 6449, 66577, 9221, 18, 17, 293, 280, 7847, 456, 197, 197, 876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duplicate_variables() { check_error( "query=test&variables={}&variables={}", vec![Error::from(ErrorKind::Duplicate).with_name("variables")], false, ); }
rust_cleaned_test_functions.jsonl/24079
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 28182, 368, 341, 286, 1779, 4096, 1006, 310, 330, 1631, 53538, 5, 18616, 1165, 24778, 18616, 1165, 24375, 310, 7486, 20703, 1454, 486, 1499, 37396, 10629, 486, 53979, 568, 4197, 1269, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_lifetime_param_in_result() { let gen_code = parse_code( "lifetime_param_in_result", r#" foreigner_class!(class Foo { self_type Foo<'a>; constructor new<'a>() -> Rc<RefCell<Foo<'a>>>; method Foo::f(&self, _: i32); }); "#, &[ForeignLang::Java, ForeignLang::C...
rust_cleaned_test_functions.jsonl/71631
{ "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, 98827, 4090, 1243, 5287, 368, 341, 262, 1077, 4081, 4136, 284, 4715, 4136, 1006, 286, 330, 97057, 4090, 1243, 5287, 756, 286, 435, 2, 698, 28443, 261, 4790, 10297, 1040, 33428, 341, 262, 656, 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_optimize_switch_bug11536863() { test( "outer: { switch (2) {\n case 2:\n f();\n break outer;\n }}", "outer: {f(); break outer;}", ); }
rust_cleaned_test_functions.jsonl/393
{ "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, 15032, 11853, 27652, 73232, 16, 16, 20, 18, 21, 23, 21, 18, 368, 341, 262, 1273, 1006, 286, 330, 2676, 25, 314, 220, 3398, 320, 17, 8, 28152, 77, 262, 1142, 220, 17, 7190, 77, 414, 282, 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...
1
#[test] fn test_utf16_surrogate_pair() { let parsed: JsonValue = r#""\uDBFF\uDFFF hello!""#.parse().unwrap(); let s: String = parsed.try_into().unwrap(); assert_eq!(&s, "\u{10ffff} hello!"); let parsed: JsonValue = r#""\uDBFF\uDFFF""#.parse().unwrap(); let s: String = parsed.try_into().unwr...
rust_cleaned_test_functions.jsonl/88098
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39453, 16, 21, 49946, 48373, 14445, 368, 341, 262, 1077, 15676, 25, 8308, 1130, 284, 435, 2, 3014, 59, 84, 3506, 1748, 86649, 31203, 23811, 0, 3014, 87846, 6400, 1005, 15454, 543, 262, 1077, 274...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_seed_with_invalid_seed() { let out_dir = std::env::var("OUT_DIR").unwrap(); let mut jscontext = JavaScript::new(format!("{}/xpring.js", out_dir))?; let wallet = from_seed(&mut jscontext, "xxx".to_owned(), None, false).unwrap_err(); assert_eq!("Invalid Seed", ...
rust_cleaned_test_functions.jsonl/118743
{ "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, 5673, 33809, 6615, 31433, 33809, 368, 341, 286, 1077, 700, 4334, 284, 1460, 486, 3160, 486, 947, 445, 3656, 8291, 1827, 15454, 543, 286, 1077, 5206, 6994, 2147, 284, 12914, 486, 931, 20698, 88928,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_strings() { let text: &str = "śốмễ śŧŗỉňĝ"; let mut utf8 = text.as_bytes().to_vec(); utf8.push(0); assert_eq!(&*util::string_from_utf8(&*utf8).unwrap(), text); // should use little endian BOM assert_eq!(&*util::string_to_utf16(text), b"\xFF\xFE\x...
rust_cleaned_test_functions.jsonl/59877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33500, 368, 341, 286, 1077, 1467, 25, 609, 495, 284, 330, 7393, 27607, 6442, 124417, 29186, 147626, 147127, 71179, 145082, 145316, 3302, 286, 1077, 5206, 10644, 23, 284, 1467, 5357, 12524, 1005, 983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_include_subdomains() { let h = Header::parse_header(&[b"max-age=15768000 ; includeSubDomains".to_vec()][..]); assert_eq!(h.ok(), Some(StrictTransportSecurity { include_subdomains: true, max_age: 15768000u64 })); }
rust_cleaned_test_functions.jsonl/37333
{ "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, 21039, 37878, 5228, 59621, 368, 341, 286, 1077, 305, 284, 12104, 486, 6400, 8757, 2099, 58, 65, 1, 2810, 42941, 28, 16, 20, 22, 21, 23, 15, 15, 15, 2587, 2924, 3136, 74713, 3263, 983, 13251, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_whatwg_label() { assert!(encoding_from_whatwg_label("utf-8").is_some()); assert!(encoding_from_whatwg_label("UTF-8").is_some()); assert!(encoding_from_whatwg_label("\t\n\x0C\r utf-8\t\n\x0C\r ").is_some()); assert!(encoding_from_whatwg_label("\u{A0}u...
rust_cleaned_test_functions.jsonl/92154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 527 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 5673, 62, 12555, 45540, 6106, 368, 341, 286, 2060, 10297, 17159, 5673, 62, 12555, 45540, 6106, 445, 4762, 12, 23, 1827, 285, 61855, 1423, 286, 2060, 10297, 17159, 5673, 62, 12555, 45540, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_nn_session() { let mut session1 = SessionBuilder::new("NN").build_initiator(); let mut session2 = SessionBuilder::new("NN").build_responder(); println!("-> e"); let ct = session1.write_message(&[]); session2.read_message(&ct).unwrap(); println!("<- e ee"); let ct = ...
rust_cleaned_test_functions.jsonl/51958
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 400 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69962, 12316, 368, 341, 262, 1077, 5206, 3797, 16, 284, 9164, 3297, 486, 931, 445, 9745, 1827, 5834, 6137, 36122, 543, 262, 1077, 5206, 3797, 17, 284, 9164, 3297, 486, 931, 445, 9745, 1827, 5834...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unsized() { let x: Arc<[i32]> = Arc::new([1, 2, 3]); assert_eq!(format!("{:?}", x), "[1, 2, 3]"); let y = Arc::downgrade(&x.clone()); drop(x); assert!(y.upgrade().is_none()); }
rust_cleaned_test_functions.jsonl/35120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 82, 1506, 368, 341, 286, 1077, 856, 25, 19689, 66746, 72, 18, 17, 25669, 284, 19689, 486, 931, 2561, 16, 11, 220, 17, 11, 220, 18, 2558, 286, 2060, 10714, 10297, 2243, 88928, 25, 52652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_many_works() { let pems = parse_many(SAMPLE_CRLF); assert_eq!(pems.len(), 2); assert_eq!(pems[0].tag, "RSA PRIVATE KEY"); assert_eq!(pems[1].tag, "RSA PUBLIC KEY"); }
rust_cleaned_test_functions.jsonl/61394
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 22101, 11498, 82, 368, 341, 286, 1077, 281, 11852, 284, 4715, 22101, 3759, 18918, 920, 80658, 317, 286, 2060, 10714, 10297, 79, 11852, 19406, 1507, 220, 17, 317, 286, 2060, 10714, 10297, 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_icmp_echo_socket_worker_watch_over_capacity_recover() { let mut worker = create_worker_with_capacity(1); let first_packet = EchoPacket { sequence_num: 1, payload: vec![0, 1, 2, 3, 4] }; let second_packet = EchoPacket { sequence_num: 2, payload: vec![5, 6, 7, 8, 9] }; ...
rust_cleaned_test_functions.jsonl/98601
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 450 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32747, 1307, 68628, 19555, 40385, 58562, 15431, 35603, 1288, 3688, 368, 341, 286, 1077, 5206, 11864, 284, 1855, 40385, 6615, 35603, 7, 16, 626, 286, 1077, 1156, 21078, 284, 37806, 16679, 314, 8500, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_object() { let cases = vec![ (vec![], Datum::Json(r#"{}"#.parse().unwrap())), ( vec![Datum::Bytes(b"1".to_vec()), Datum::Null], Datum::Json(r#"{"1":null}"#.parse().unwrap()), ), ( vec![ ...
rust_cleaned_test_functions.jsonl/5035
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 714 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9455, 5314, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4083, 0, 12995, 68459, 486, 5014, 2601, 55543, 6257, 57676, 13, 6400, 1005, 15454, 73727, 310, 2399, 394, 7486, 20703, 68036, 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