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_uint24() { let input = vec![SolidityDataType::NumberWithShift( U256::from(4001), TakeLastXBytes(24), )]; let (_bytes, hash) = abi::encode_packed(&input); let hash = format!("0x{:}", hash); let expected = "0x000fa1"; assert_e...
rust_cleaned_test_functions.jsonl/52422
{ "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, 15807, 17, 19, 368, 341, 286, 1077, 1946, 284, 7486, 20703, 45941, 487, 22653, 486, 2833, 2354, 24841, 1006, 310, 547, 17, 20, 21, 486, 1499, 7, 19, 15, 15, 16, 1326, 310, 11778, 5842, 55, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_urlencode() { let tests = vec![ ( r#"https://www.example.org/foo?a=b&c=d"#, None, r#"https%3A//www.example.org/foo%3Fa%3Db%26c%3Dd"#, ), (r#"https://www.example.org/"#, Some(""), r#"https%3A%2F%2Fwww.exam...
rust_cleaned_test_functions.jsonl/49422
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 513 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2903, 6180, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 2399, 394, 435, 55543, 2428, 1110, 2136, 7724, 2659, 60555, 98461, 22086, 5, 66, 25405, 57676, 345, 394, 2240, 345, 394, 435, 55543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let mut suite = TestSuite::new(1); // Split region let region = suite.cluster.get_region(&[]); suite.cluster.must_split(&region, b"k1"); // Subscribe source region let source = suite.cluster.get_region(b"k0"); let mut req = ChangeDataRequest::default(); ...
rust_cleaned_test_functions.jsonl/49115
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1749 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 368, 341, 262, 1077, 5206, 16182, 284, 3393, 28000, 486, 931, 7, 16, 317, 262, 442, 27810, 5537, 198, 262, 1077, 5537, 284, 16182, 40501, 670, 20627, 2099, 56703, 262, 16182, 40501, 69419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_two_blocks() { let mut polyline = vec![CoordinatePair::from((1.0, 1.0))]; for _ in 0..124 { polyline.push(CoordinatePair::from((5.0, 10.0))); polyline.push(CoordinatePair::from((2.0, 4.0))); } let polylines = vec![polyline]; let ske...
rust_cleaned_test_functions.jsonl/31622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 25201, 368, 341, 286, 1077, 5206, 92241, 284, 7486, 20703, 28589, 12443, 486, 1499, 1188, 16, 13, 15, 11, 220, 16, 13, 15, 81956, 286, 369, 716, 304, 220, 15, 496, 16, 17, 19, 341, 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, 1, 1...
2
#[test] fn test_ssh_url_domain() { let url = "ssh://aur@aur.archlinux.org/user/repo.git"; assert_eq!(Repo::parse(url).get_domain(), "aur.archlinux.org"); }
rust_cleaned_test_functions.jsonl/31152
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82805, 2903, 20111, 368, 341, 286, 1077, 2515, 284, 330, 25537, 1110, 4110, 31, 4110, 38091, 14210, 2659, 11739, 10758, 5368, 32799, 876, 286, 2060, 10714, 10297, 25243, 486, 6400, 6522, 568, 455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_interval_bidirectional_forward_values() { let values = vec![Interval::starting_at(Moment(Local.ymd(2017, 04, 25).and_hms(9, 10, 11)), Grain::Second), Interval::starting_at(Moment(Local.ymd(2017, 04, 26).and_hms(9, 10, 11...
rust_cleaned_test_functions.jsonl/56548
{ "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, 20541, 62509, 44670, 32121, 9146, 368, 341, 286, 1077, 2750, 4035, 310, 7486, 20703, 10256, 486, 39289, 3752, 3189, 12913, 42718, 13, 1600, 67, 7, 17, 15, 16, 22, 11, 220, 15, 19, 11, 220, 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_matrix_multiplication1() { let matrix1x2 = Matrix1x2::new(2_i32, 3_i32); let matrix2x2 = Matrix2x2::new(1_i32, 2_i32, 3_i32, 4_i32); let expected = Matrix1x2::new(8_i32, 18_i32); let result = matrix1x2 * matrix2x2; assert_eq!(result, expected); ...
rust_cleaned_test_functions.jsonl/129150
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10193, 91802, 1693, 16, 368, 341, 286, 1077, 6172, 16, 87, 17, 284, 11631, 16, 87, 17, 486, 931, 7, 17, 5318, 18, 17, 11, 220, 18, 5318, 18, 17, 317, 286, 1077, 6172, 17, 87, 17, 284, 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_num_multiplication() { let mut cs = TestConstraintSystem::new(); let n = AllocatedNum::alloc(cs.namespace(|| "a"), || Ok(Scalar::from(12))).unwrap(); let n2 = AllocatedNum::alloc(cs.namespace(|| "b"), || Ok(Scalar::from(10))).unwrap(); let n3 = n.mul(&mut cs, &n2...
rust_cleaned_test_functions.jsonl/119278
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4273, 91802, 1693, 368, 341, 286, 1077, 5206, 10532, 284, 3393, 17890, 2320, 486, 931, 1428, 286, 1077, 308, 284, 1674, 39463, 4651, 486, 4742, 41153, 50409, 79453, 330, 64, 3975, 1369, 7622, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_perm_complex() { assert_eq!(perm_to_atoms(&[3, 1, 2, 0, 4]), tvec!((3, 0), (1, 3))); }
rust_cleaned_test_functions.jsonl/126325
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31961, 41522, 368, 341, 286, 2060, 10714, 10297, 19913, 2346, 67755, 2099, 58, 18, 11, 220, 16, 11, 220, 17, 11, 220, 15, 11, 220, 19, 9719, 259, 4083, 0, 1188, 18, 11, 220, 15, 701, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_flatten_config() { let parsed_conf = parse_conf(CONF, "valid.conf").unwrap(); let mut expected_hashmap: HashMap<String, ConfigNode> = HashMap::new(); expected_hashmap.insert("server.address".into(), ConfigNode::String("address".into(), "0.0.0.0".into())); expected_hashmap.insert...
rust_cleaned_test_functions.jsonl/124281
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 526 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5081, 14456, 5332, 368, 341, 262, 1077, 15676, 16059, 284, 4715, 16059, 27631, 37, 11, 330, 1891, 13937, 1827, 15454, 1428, 262, 1077, 5206, 3601, 8950, 2186, 25, 10528, 3464, 11, 5532, 1955, 29, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fr_legendre() { assert_eq!(QuadraticResidue, Fr::one().legendre()); assert_eq!(Zero, Fr::zero().legendre()); let e = FrRepr([0x0dbc5349cd5664da, 0x8ac5b6296e3ae29d, 0x127cb819feceaa3b, 0x3a6b21fb03867191]); assert_eq!(QuadraticResidue, Fr::from_repr(e).unwrap().legendre()); ...
rust_cleaned_test_functions.jsonl/66321
{ "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, 41537, 76612, 265, 368, 341, 262, 2060, 10714, 10297, 2183, 88678, 1061, 60607, 11, 2869, 486, 603, 1005, 14505, 265, 1423, 262, 2060, 10714, 10297, 17999, 11, 2869, 486, 14154, 1005, 14505, 265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_i3_swipe_actions() { // Initialize the command line options. let mut settings: Settings = default_test_settings(); settings.enabled_action_types = vec!["i3".to_string()]; settings.actions = HashMap::from([ ( ActionEvents::ThreeFingerSwi...
rust_cleaned_test_functions.jsonl/64456
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 18, 32581, 3444, 25368, 368, 341, 286, 442, 9008, 279, 3210, 1555, 2606, 624, 286, 1077, 5206, 5003, 25, 11296, 284, 1638, 4452, 10853, 543, 286, 5003, 22141, 7931, 9763, 284, 7486, 0, 118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_get_set() { let mut bv: BitVec<usize> = BitVec::new(); assert!(!bv.get(0)); assert!(!bv.get(7)); assert!(!bv.get(8)); bv.set(7, true); assert!(!bv.get(0)); assert!(bv.get(7)); assert!(!bv.get(8)); bv.set(8, false); ...
rust_cleaned_test_functions.jsonl/195
{ "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, 3062, 2602, 368, 341, 286, 1077, 5206, 56937, 25, 6495, 10050, 90244, 29, 284, 6495, 10050, 486, 931, 1428, 286, 2060, 0, 3471, 54929, 670, 7, 15, 1106, 286, 2060, 0, 3471, 54929, 670, 7, 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_raw_byte_literal() { let source = r"rb'\x1z'"; let tokens = lex_source(source); assert_eq!( tokens, vec![ Tok::Bytes { value: b"\\x1z".to_vec() }, Tok::Newline ] ...
rust_cleaned_test_functions.jsonl/95236
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 405 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 19737, 34100, 368, 341, 286, 1077, 2530, 284, 435, 1, 10681, 15777, 87, 16, 89, 21689, 286, 1077, 11211, 284, 22429, 10347, 12437, 317, 286, 2060, 10714, 33673, 310, 11211, 345, 310, 7486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reserve_exact() { let mut d = VecDeque::new(); d.push_back(0); d.reserve_exact(50); assert!(d.capacity() >= 51); }
rust_cleaned_test_functions.jsonl/73699
{ "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, 89591, 71084, 368, 341, 262, 1077, 5206, 294, 284, 11312, 73891, 486, 931, 543, 262, 294, 2552, 3895, 7, 15, 317, 262, 294, 48520, 71084, 7, 20, 15, 317, 262, 2060, 10297, 67, 59168, 368, 2604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_say_should_change_the_say() { let mut printer = Printer::new("Hello".to_owned()); printer.change_say("Hi".to_owned()); let result = printer.format(None); assert_eq!(result, "Hi World!".to_owned()); }
rust_cleaned_test_functions.jsonl/119550
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15947, 643, 352, 43378, 15947, 16068, 643, 352, 368, 341, 286, 1077, 5206, 22380, 284, 45933, 486, 931, 445, 9707, 3263, 983, 51973, 1423, 286, 22380, 21469, 643, 352, 445, 13048, 3263, 983, 51973...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_force_at_point_2d() { let mut forces = ForceAccumulator::<Vector2<f32>, f32>::new(); // add at origin -> no torque forces.add_force_at_point(Vector2::new(1., 1.), Point2::new(0., 0.), &BodyPose2::one()); assert_eq!(Vector2::new(1., 1.), forces.consume_force())...
rust_cleaned_test_functions.jsonl/43127
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 486 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 40739, 3752, 6085, 62, 17, 67, 368, 341, 286, 1077, 5206, 8437, 284, 11732, 14603, 372, 10511, 27638, 3781, 17, 63895, 18, 17, 8066, 282, 18, 17, 6831, 931, 543, 286, 442, 912, 518, 6238...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sum_after_filter() -> Result<()> { let df = df![ "ids" => 0..10, "values" => 10..20, ]? .lazy() .filter(not(col("ids").eq(lit(5)))) .select([col("values").sum()]) .collect()?; assert_eq!(df.column("values")?.get(0), AnyValue::Int32(130)); Ok(()) }
rust_cleaned_test_functions.jsonl/100163
{ "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, 10160, 19844, 8727, 368, 1464, 5714, 71698, 341, 262, 1077, 6764, 284, 6764, 90515, 286, 330, 3365, 1, 589, 220, 15, 496, 16, 15, 345, 286, 330, 3661, 1, 589, 220, 16, 15, 496, 17, 15, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_http_request_parser_bad_version() { let mut buf = BytesMut::from("GET //get HT/11\r\n\r\n"); expect_parse_err!(&mut buf); }
rust_cleaned_test_functions.jsonl/22285
{ "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, 25888, 7893, 18517, 34199, 9438, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 1499, 445, 3806, 442, 455, 5260, 14, 16, 16, 12016, 1699, 12016, 1699, 3071, 286, 1720, 21039, 9266, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_empty_objects_to_skip() { let data = [ 0x38, 0x28, 0x01, 0x00, 0x03, 0x00, 0x63, 0x28, 0x01, 0x00, 0x17, 0x00, 0x07, 0x00, 0x77, 0x65, 0x73, 0x74, 0x65, 0x72, 0x6e, 0x03, 0x00, 0x04, 0x00, 0x03, 0x00, 0x04, 0x00, 0x03, 0x00, 0x04, 0x00, 0x03, 0x00, 0x0...
rust_cleaned_test_functions.jsonl/109420
{ "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, 15124, 24873, 2346, 44830, 368, 341, 286, 1077, 821, 284, 2278, 310, 220, 15, 87, 18, 23, 11, 220, 15, 87, 17, 23, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 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_active_set() { let leader_id = Keypair::new().pubkey(); let active_window_length = 1000; let mint = Mint::new_with_leader(10000, leader_id, 500); let bank = Bank::new(&mint); let leader_scheduler_config = LeaderSchedulerConfig::new(Some(100), ...
rust_cleaned_test_functions.jsonl/18348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12930, 2602, 368, 341, 286, 1077, 7653, 842, 284, 6569, 1082, 1310, 486, 931, 1005, 9585, 792, 543, 286, 1077, 4541, 12571, 5118, 284, 220, 16, 15, 15, 15, 280, 286, 1077, 28337, 284, 41310, 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...
3
#[test] fn test_combine_keyshares_err() { let keyshares = vec![vec![]]; assert_eq!(combine_keyshares(&keyshares), Err(SSSError::BadShareLen((0, 0)))); }
rust_cleaned_test_functions.jsonl/70740
{ "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, 72374, 3097, 75047, 9266, 368, 341, 310, 1077, 1376, 75047, 284, 7486, 20703, 4083, 0, 1294, 935, 310, 2060, 10714, 10297, 63136, 3097, 75047, 2099, 792, 75047, 1326, 5180, 15495, 93544, 19224, 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
#[test] fn test_gzip_encoding_large() { let data = STR.repeat(10); let mut srv = TestServer::new(move || { h1::H1Service::new( App::new().service( web::resource("/") .route(web::to(move |body: Bytes| Response::Ok().body(body))), ), ...
rust_cleaned_test_functions.jsonl/48232
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 392 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 9964, 37613, 45228, 368, 341, 262, 1077, 821, 284, 12152, 50973, 7, 16, 15, 317, 262, 1077, 5206, 43578, 284, 3393, 5475, 486, 931, 34081, 1369, 341, 286, 305, 16, 486, 39, 16, 1860, 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_shift_char() { let mut data = String::from_str("𤭢€¢b华ประเทศไทย中"); assert_eq!(data.shift_char().unwrap(), '𤭢'); // 4 bytes assert_eq!(data.shift_char().unwrap(), '€'); // 3 bytes assert_eq!(data.shift_char().unwrap(), '¢'); // 2 bytes assert_eq!(data.shi...
rust_cleaned_test_functions.jsonl/113366
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22230, 9232, 368, 341, 286, 1077, 5206, 821, 284, 923, 486, 1499, 2895, 445, 101877, 255, 95, 15056, 56394, 65, 85361, 130391, 15946, 797, 286, 2060, 10714, 10297, 691, 29154, 9232, 1005, 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...
1
#[test] fn test_drawing_selected_highlights() { let choice = make_choice("foo"); let matcher = new_match("f", &choice).unwrap(); assert_eq!("\x1B[?7l\x1B[7m\x1B[33mf\x1B[39moo\x1B[27m\x1B[?7h", matcher.draw(true, false)); }
rust_cleaned_test_functions.jsonl/107074
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 1696, 23755, 22680, 13826, 368, 341, 286, 1077, 5754, 284, 1281, 31936, 445, 7975, 797, 286, 1077, 36052, 284, 501, 10708, 445, 69, 497, 609, 11746, 568, 15454, 1428, 286, 2060, 10714, 0, 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_components() { macro_rules! t( (s: $path:expr, $op:ident, $exp:expr) => ( { unsafe { let path = Path::new($path); assert!(path.$op() == mem::transmute(($exp).as_bytes())); ...
rust_cleaned_test_functions.jsonl/7681
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23258, 368, 341, 286, 18072, 21407, 0, 259, 1006, 310, 320, 82, 25, 400, 2343, 96011, 11, 400, 453, 25, 1713, 11, 400, 4580, 96011, 8, 589, 2399, 394, 341, 503, 19860, 341, 664, 1077, 1815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lock_request_persistent_account_without_auth_mechanism() { let location = TempLocation::new(); let inspector = Arc::new(Inspector::new()); request_stream_test( location.to_persistent_lifetime(), create_clean_pre_auth_manager(), None, ...
rust_cleaned_test_functions.jsonl/105855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 499 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9818, 7893, 620, 13931, 13500, 39904, 14014, 717, 4737, 67813, 368, 341, 286, 1077, 3728, 284, 19944, 4707, 486, 931, 543, 286, 1077, 44725, 284, 19689, 486, 931, 7, 46230, 486, 931, 1423, 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...
6
#[test] fn test_numeric_enum_serializing() { let normal_string_config = r#" compaction-style = 1 "#; let config: DefaultCfConfig = toml::from_str(normal_string_config).unwrap(); assert_eq!(config.compaction_style, DBCompactionStyle::Universal); // Test if we ...
rust_cleaned_test_functions.jsonl/2176
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 824 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29418, 31054, 25602, 4849, 368, 341, 286, 1077, 4622, 3904, 5332, 284, 435, 2, 698, 310, 1367, 1311, 11297, 284, 220, 16, 198, 286, 5869, 280, 286, 1077, 2193, 25, 7899, 34, 69, 2648, 284, 311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_one_period() { let trigger = PeriodicTrigger::new(1); // The first event should always trigger. for _ in 0..10 { assert!(trigger.event()); } }
rust_cleaned_test_functions.jsonl/63856
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11667, 20818, 368, 341, 262, 1077, 8183, 284, 25492, 292, 17939, 486, 931, 7, 16, 626, 262, 442, 576, 1156, 1538, 1265, 2677, 8183, 624, 262, 369, 716, 304, 220, 15, 496, 16, 15, 341, 286, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
#[test] fn test_name() { let container = [0u8; constants::MIN_ORDER_SIZE * 2]; let block = get_reserved(&container); assert!(block.become_name("test-rust-inspect").is_ok()); assert_eq!(block.block_type(), BlockType::Name); assert_eq!(block.name_length().unwrap(), 17); ...
rust_cleaned_test_functions.jsonl/100160
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1028 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1269, 368, 341, 286, 1077, 5476, 284, 508, 15, 84, 23, 26, 18021, 486, 16413, 26677, 4098, 353, 220, 17, 935, 286, 1077, 2504, 284, 633, 74913, 2099, 3586, 317, 286, 2060, 10297, 4574, 948, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pay_to_self() { let (genesis_config, mint_keypair) = create_genesis_config(1); let key1 = Keypair::new(); let bank = Bank::new_for_tests(&genesis_config); bank.transfer(1, &mint_keypair, &key1.pubkey()).unwrap(); assert_eq!(bank.get_balance(&key1.pub...
rust_cleaned_test_functions.jsonl/28877
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 28925, 2346, 25637, 368, 341, 286, 1077, 320, 77894, 5332, 11, 28337, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 16, 317, 286, 1077, 1376, 16, 284, 6569, 1082, 1310, 486, 931, 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_fat_open() { let d = FakeDisk::new(&clear_disk_path()); match crate::part::find_efi_partition(&d) { Ok((start, end)) => { let mut f = crate::fat::Filesystem::new(&d, start, end); match f.init() { Ok(()) => { ...
rust_cleaned_test_functions.jsonl/104526
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 546 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 266, 11311, 368, 341, 286, 1077, 294, 284, 36965, 47583, 486, 931, 2099, 7422, 41687, 2638, 1423, 286, 2432, 17717, 486, 4480, 486, 3903, 79410, 72, 43840, 2099, 67, 8, 341, 310, 7622, 1188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_request() { use helix::*; let req = SearchCategoriesRequest::builder().query("fort").build(); // From twitch docs let data = br#" { "data": [ { "id": "33214", "name": "Fortnite", "box_art_url": "https://static-cdn.jtvnw.net/ttv-box...
rust_cleaned_test_functions.jsonl/77643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 486 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 368, 341, 262, 990, 11338, 941, 56162, 262, 1077, 4232, 284, 7542, 20970, 1900, 486, 17850, 1005, 1631, 445, 3969, 1827, 5834, 1428, 262, 442, 5542, 59413, 26340, 198, 262, 1077, 821, 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_show() { let s = format!("{:?}", (1i,)); assert_eq!(s, "(1i,)"); let s = format!("{:?}", (1i, true)); assert_eq!(s, "(1i, true)"); let s = format!("{:?}", (1i, "hi", true)); assert_eq!(s, "(1i, \"hi\", true)"); }
rust_cleaned_test_functions.jsonl/68941
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15267, 368, 341, 262, 1077, 274, 284, 3561, 88928, 25, 52652, 320, 16, 72, 11, 1106, 262, 2060, 10714, 10297, 82, 11, 11993, 16, 72, 11, 20996, 262, 1077, 274, 284, 3561, 88928, 25, 52652, 320...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_largest_rectangle_area() { assert_eq!(Solution::largest_rectangle_area(vec![2, 1, 5, 6, 2, 3]), 10); assert_eq!(Solution::largest_rectangle_area(vec![2, 4]), 4); assert_eq!(Solution::largest_rectangle_area(vec![1]), 1); }
rust_cleaned_test_functions.jsonl/11754
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 32381, 61847, 15030, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 26897, 477, 61847, 15030, 25592, 20703, 17, 11, 220, 16, 11, 220, 20, 11, 220, 21, 11, 220, 17, 11, 220, 18, 9719, 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_key_manager_rotate_master_key() { let _guard = LOCK_FOR_GAUGE.lock().unwrap(); // create initial dictionaries. let tmp_dir = tempfile::TempDir::new().unwrap(); let manager = new_key_manager_def(&tmp_dir, None).unwrap(); let info1 = manager.new_file("foo")...
rust_cleaned_test_functions.jsonl/22012
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 616 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 12144, 60834, 24582, 3097, 368, 341, 286, 1077, 716, 26098, 284, 49463, 14516, 2646, 32, 47644, 21003, 1005, 15454, 1428, 286, 442, 1855, 2856, 57514, 624, 286, 1077, 4174, 4334, 284, 54819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_for() { let s = ForTemplate { strings: vec!["foo", "bar", "baz"], }; assert_eq!(s.call().unwrap(), "0. foo(first)1. bar2. baz"); }
rust_cleaned_test_functions.jsonl/123695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5478, 368, 341, 262, 1077, 274, 284, 1752, 7275, 341, 286, 9069, 25, 7486, 0, 1183, 7975, 497, 330, 2257, 497, 330, 42573, 8097, 262, 2605, 262, 2060, 10714, 10297, 82, 8524, 1005, 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
#[test] fn test_unlink_file() { let file = "test_unlink_file"; touch(file); let result = run(Command::new(PROGNAME).arg(file)); assert_empty_stderr!(result); assert!(result.success); assert!(!file_exists(file)); }
rust_cleaned_test_functions.jsonl/81879
{ "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, 4907, 2080, 2458, 368, 341, 262, 1077, 1034, 284, 330, 1944, 4907, 2080, 2458, 3302, 262, 5796, 4866, 626, 262, 1077, 1102, 284, 1598, 41422, 486, 931, 55681, 38, 7535, 568, 858, 4866, 1106, 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
#[test] fn test_atodedenwa() { let mut tokenizer = Tokenizer::new().unwrap(); let tokens: Vec<&str> = tokenizer.tokenize_str("後で").unwrap(); assert_eq!(tokens, vec!["後で"]); }
rust_cleaned_test_functions.jsonl/61439
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3752, 6737, 268, 9991, 368, 341, 286, 1077, 5206, 45958, 284, 9660, 3135, 486, 931, 1005, 15454, 543, 286, 1077, 11211, 25, 11312, 52244, 495, 29, 284, 45958, 96790, 2895, 445, 73382, 16161, 1827,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_direction() { let first_input = "60.9grad"; let e = FloatValue::new( first_input .split("grad") .next() .unwrap() .parse::<f32>() .expect("Parseable float") / 400.0 ...
rust_cleaned_test_functions.jsonl/114041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 345 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 25438, 368, 341, 286, 1077, 1156, 5898, 284, 330, 21, 15, 13, 24, 6759, 876, 286, 1077, 384, 284, 13001, 1130, 486, 931, 1006, 310, 1156, 5898, 198, 394, 659, 6960, 445, 6759, 1138, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vcx_proof_create_with_request() { let _setup = SetupMocks::init(); let err = _vcx_disclosed_proof_create_with_request_c_closure(BAD_PROOF_REQUEST).unwrap_err(); assert_eq!(err, error::INVALID_JSON.code_num); }
rust_cleaned_test_functions.jsonl/104423
{ "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, 2273, 25844, 86757, 8657, 6615, 7893, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 1848, 284, 716, 7362, 87, 37745, 9259, 86757, 8657, 6615, 7893, 666, 72823, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_version_custom_image_conflict() { let kubeconfig_location: PathBuf = kubeconfig_location_panic(); let kubeconfig_location: &str = kubeconfig_location.to_str().unwrap(); // Existing kubeconfig let app: App = super::build_app(); let args_with_kubeconfig: Ve...
rust_cleaned_test_functions.jsonl/122955
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 511 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9438, 15875, 4954, 16059, 21242, 368, 341, 286, 1077, 80958, 1676, 13126, 25, 7933, 15064, 284, 80958, 1676, 13126, 620, 31270, 543, 286, 1077, 80958, 1676, 13126, 25, 609, 495, 284, 80958, 1676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_flags_7() { let (flags, rest, _) = set_flags(svec!["deno", "gist.ts", "--allow-all"]).unwrap(); assert_eq!(rest, svec!["deno", "gist.ts"]); assert_eq!( flags, DenoFlags { allow_net: true, allow_env: true, allow_run: true, allow_write: true, ..D...
rust_cleaned_test_functions.jsonl/133077
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 14130, 62, 22, 368, 341, 220, 1077, 320, 11161, 11, 2732, 11, 27439, 4035, 262, 738, 14130, 1141, 4083, 0, 1183, 5183, 78, 497, 330, 95294, 21288, 497, 14482, 7183, 22346, 45014, 15454, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_complex_value() { assert_eq!(complex_value(b"vec3(1,2,3)").unwrap().1, "vec3(1, 2, 3)"); assert_eq!( complex_value(b"vec3(1,2,vec2(1))").unwrap().1, "vec3(1, 2, vec2(1))" ); assert_eq!( complex_value(b"vec3(1, 2, vec2(1))").unwr...
rust_cleaned_test_functions.jsonl/68321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 321 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41522, 3142, 368, 341, 286, 2060, 10714, 10297, 23247, 3142, 1883, 1, 4083, 18, 7, 16, 11, 17, 11, 18, 63554, 15454, 1005, 16, 11, 330, 4083, 18, 7, 16, 11, 220, 17, 11, 220, 18, 20996, 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_infohash_de() { use serde_json; let ih: InfoHash = [0u8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 1].into(); let serialized_ih = serde_json::to_string(&ih).unwrap(); let de_ih: InfoHash = serde_json::from_str(serialized_ih.as_str()).unwrap(); ...
rust_cleaned_test_functions.jsonl/37830
{ "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, 3109, 8296, 2259, 368, 341, 286, 990, 61570, 9455, 401, 286, 1077, 13305, 25, 13074, 6370, 284, 508, 15, 84, 23, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_save_root_key() { let dir = tempdir().unwrap(); fs::create_dir_all(dir.path().join(".shuffle/accounts/latest")).unwrap(); let user_root_key_path = dir.path().join("root.key"); let user_root_key = generate_key::generate_and_save_key(&user_root_key_path); l...
rust_cleaned_test_functions.jsonl/123546
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15376, 12993, 3097, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 8619, 486, 3182, 4334, 5705, 14161, 3875, 1005, 5987, 5680, 65355, 83743, 33149, 15197, 15454, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_used_client_pin_into_cbor() { let client_pin_response = AuthenticatorClientPinResponse { key_agreement: None, pin_token: Some(vec![70]), retries: None, }; let response_cbor: Option<cbor::Value> = ResponseData::AuthenticatorC...
rust_cleaned_test_functions.jsonl/91271
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27803, 8179, 26296, 45514, 666, 9368, 368, 341, 286, 1077, 2943, 26296, 9655, 284, 46367, 850, 2959, 19861, 2582, 341, 310, 1376, 20587, 17150, 25, 2240, 345, 310, 8983, 6458, 25, 4329, 25592, 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_decrypt_data() { let k = hex::decode("ddc543ef8e4629a603d39dd0307a51bb1e7adb9cb259f6b085c91d0842a18679") .unwrap(); let encrypted = hex::decode("2d5e43eb465aa42e750f991e425bee485f06abad7e04af80fe318e39d0e4ce932d2b54b300c56d2cda55ee5f0488d63eb1d5f76f7919a49a").unwrap()...
rust_cleaned_test_functions.jsonl/89677
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 348 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80764, 1769, 368, 341, 286, 1077, 595, 284, 12371, 486, 18196, 445, 631, 66, 20, 19, 18, 823, 23, 68, 19, 21, 17, 24, 64, 21, 15, 18, 67, 18, 24, 631, 15, 18, 15, 22, 64, 20, 16, 6066,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_clear() { let mut v: Vec<Box<_>> = vec![box 6, box 5, box 4]; v.clear(); assert_eq!(v.len(), 0); }
rust_cleaned_test_functions.jsonl/12864
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21811, 368, 341, 262, 1077, 5206, 348, 25, 11312, 79852, 32399, 2452, 284, 7486, 20703, 2011, 220, 21, 11, 3745, 220, 20, 11, 3745, 220, 19, 935, 262, 348, 7426, 543, 262, 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
#[test] fn test_iter() { let mut iter = Seals::all().into_iter(); assert!(iter.next() == Some(Seal::Seal)); assert!(iter.next() == Some(Seal::Shrink)); assert!(iter.next() == Some(Seal::Grow)); assert!(iter.next() == Some(Seal::Write)); assert!(iter.next() == Some(Seal::FutureWrite)); assert!(iter...
rust_cleaned_test_functions.jsonl/34330
{ "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, 11723, 368, 341, 197, 10217, 5206, 5367, 284, 1345, 1127, 486, 541, 1005, 18122, 11723, 543, 197, 6948, 10297, 2015, 4529, 368, 621, 4329, 7, 1514, 278, 486, 1514, 278, 1106, 197, 6948, 10297, 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_child_json() { let c = RunChild::Text(Text::new("Hello")); assert_eq!( serde_json::to_string(&c).unwrap(), r#"{"type":"text","data":{"preserveSpace":true,"text":"Hello"}}"# ); }
rust_cleaned_test_functions.jsonl/34415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17268, 9455, 368, 341, 286, 1077, 272, 284, 6452, 3652, 486, 1178, 34082, 486, 931, 445, 9707, 4010, 286, 2060, 10714, 33673, 310, 61570, 9455, 486, 983, 3904, 2099, 66, 568, 15454, 3148, 310, 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_map_serde() { let serde_v = json!({"max_creds": 22, "tails_file": "abc.txt"}); println!("none: {:?}", serde_v.get("n")); }
rust_cleaned_test_functions.jsonl/64630
{ "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, 5376, 75861, 450, 368, 341, 286, 1077, 61570, 2273, 284, 2951, 0, 16864, 2810, 666, 53369, 788, 220, 17, 17, 11, 330, 39960, 2458, 788, 330, 13683, 3909, 27316, 286, 13751, 17223, 6697, 25, 7196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_folder() { let items = vec![ Path::new("a/file.txt"), ]; let res = FileTreeItems::new(&items, &BTreeSet::new()) .unwrap() .tree_items .iter() .map(|i| i.info().full_path_str().to_string()) .collect::<Vec<_>>(); assert_eq!( res, vec![String::from("a"), String::f...
rust_cleaned_test_functions.jsonl/129787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15268, 368, 341, 197, 10217, 3589, 284, 7486, 90515, 298, 69640, 486, 931, 445, 64, 23903, 3909, 3975, 715, 197, 197, 4821, 197, 10217, 592, 284, 2887, 6533, 4353, 486, 931, 2099, 3615, 11, 609,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_data_payload_creator_when_fport_0_but_not_encrypt() { let mut phy = DataPayloadCreator::new(); let nwk_skey = AES128([2; 16]); let app_skey = AES128([1; 16]); phy.set_f_port(0).set_encrypt_mac_commands(false); assert!(phy.build(b"", &nwk_skey, &app_skey).is_err()); }
rust_cleaned_test_functions.jsonl/81608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1769, 32813, 68532, 47636, 761, 403, 62, 15, 86874, 7913, 66593, 368, 341, 262, 1077, 5206, 36455, 284, 2885, 29683, 31865, 486, 931, 543, 262, 1077, 308, 50522, 643, 792, 284, 38841, 16, 17, 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_cache() -> Result<()> { let db = Connection::open_in_memory()?; let cache = &db.cache; let initial_capacity = cache.capacity(); assert_eq!(0, cache.len()); assert!(initial_capacity > 0); let sql = "PRAGMA schema_version"; { let...
rust_cleaned_test_functions.jsonl/14518
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11529, 368, 1464, 5714, 71698, 341, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 94136, 286, 1077, 6500, 284, 609, 1999, 20087, 280, 286, 1077, 2856, 35603, 284, 6500, 59168, 543, 286, 206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_decode() { fn test_one(input: &[u8], expected_result: &str, expected_encoding: &str) { let (result, used_encoding) = decode( input, DecoderTrap::Strict, all::ISO_8859_1 as EncodingRef); let result = result.unwrap(); assert_eq!(used_enco...
rust_cleaned_test_functions.jsonl/120061
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 431 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 368, 341, 286, 5168, 1273, 11667, 5384, 25, 44590, 84, 23, 1125, 3601, 5287, 25, 609, 495, 11, 3601, 37613, 25, 609, 495, 8, 341, 310, 1077, 320, 1382, 11, 1483, 37613, 8, 284, 16895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_should_preserve_final_newline_when_line_less_than_fold() { new_ucmd!().pipe_in("1234\n").succeeds().stdout_is("1234\n"); }
rust_cleaned_test_functions.jsonl/23272
{ "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, 43378, 32116, 5852, 20676, 5921, 1056, 47636, 6528, 50747, 51613, 61187, 368, 341, 262, 501, 68887, 2277, 0, 1005, 13768, 1243, 445, 16, 17, 18, 19, 1699, 1827, 82, 29264, 82, 1005, 36358, 6892, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_object_get_property_names() { let _setup_guard = setup(); let mut isolate = v8::Isolate::new(Default::default()); let mut hs = v8::HandleScope::new(&mut isolate); let scope = hs.enter(); let context = v8::Context::new(scope); let mut cs = v8::ContextScope::new(scope, context); le...
rust_cleaned_test_functions.jsonl/77895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 952 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5314, 3062, 16638, 9187, 368, 341, 220, 1077, 716, 15188, 36796, 284, 6505, 543, 220, 1077, 5206, 42123, 284, 348, 23, 486, 3872, 33066, 486, 931, 87874, 486, 2258, 5231, 220, 1077, 5206, 32220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_gray_u8_roundtrip() { let img_file = File::open("./tests/images/minisblack-1c-8b.tiff").expect("Cannot find test image!"); let mut decoder = Decoder::new(img_file).expect("Cannot create decoder"); assert_eq!(decoder.colortype().unwrap(), ColorType::Gray(8)); let image_data = mat...
rust_cleaned_test_functions.jsonl/746
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51331, 7300, 23, 29896, 32981, 741, 515, 262, 1077, 4964, 2458, 284, 2887, 486, 2508, 13988, 23841, 9737, 44173, 285, 11453, 12, 16, 66, 12, 23, 65, 734, 3092, 1827, 17119, 445, 17444, 1477, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_scan_lock() { let storage = TestStorageBuilder::new().build().unwrap(); let (tx, rx) = channel(); storage .async_prewrite( Context::new(), vec![ Mutation::Put((Key::from_raw(b"x"), b"foo".to_vec())), ...
rust_cleaned_test_functions.jsonl/22322
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4391 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28857, 9818, 368, 341, 286, 1077, 5819, 284, 3393, 5793, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 320, 3998, 11, 19111, 8, 284, 5496, 543, 286, 5819, 198, 310, 659, 7692, 620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_camel_case() { assert_eq!(&to_camel_case("test")[..], "test"); assert_eq!(&to_camel_case("_test")[..], "test"); assert_eq!(&to_camel_case("first_second")[..], "firstSecond"); assert_eq!(&to_camel_case("first_")[..], "first"); assert_eq!(&to_camel_case("a_b_c")[..], "aBC");...
rust_cleaned_test_functions.jsonl/30857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 666, 35562, 19096, 368, 341, 262, 2060, 10714, 0, 2099, 983, 666, 35562, 19096, 445, 1944, 17135, 496, 1125, 330, 1944, 797, 262, 2060, 10714, 0, 2099, 983, 666, 35562, 19096, 16975, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parsing_with_a_timeout() { let mut parser = Parser::new(); parser.set_language(get_language("json")).unwrap(); parser.set_timeout_micros(100); let start_time = time::Instant::now(); let tree = parser.parse_with( &mut |offset, _| { if offset == 0 { ...
rust_cleaned_test_functions.jsonl/15870
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 794 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 28598, 6615, 4306, 20537, 368, 341, 262, 1077, 5206, 6729, 284, 21102, 486, 931, 543, 262, 6729, 980, 29021, 5433, 29021, 445, 2236, 15197, 15454, 1428, 1066, 262, 6729, 980, 20537, 73003, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_containing_range() { assert_eq!((5, 5), containing_range(5, 0)); assert_eq!((4, 5), containing_range(5, 1)); assert_eq!((4, 7), containing_range(5, 2)); assert_eq!((0, 7), containing_range(5, 3)); assert_eq!...
rust_cleaned_test_functions.jsonl/5272
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 365 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10260, 2056, 9698, 368, 341, 1789, 286, 2060, 10714, 0, 1188, 20, 11, 220, 20, 701, 8482, 9698, 7, 20, 11, 220, 15, 3237, 1789, 286, 2060, 10714, 0, 1188, 19, 11, 220, 20, 701, 8482, 9698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_extract_invalid_flag() { let mut map: HashMap<String, String> = HashMap::new(); map.set( JAEGER_HEADER, format!("{}:{}:0:aa", LONG_TRACE_ID_STR, SPAN_ID_STR), ); let propagator = Propagator::new(); let co...
rust_cleaned_test_functions.jsonl/36042
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 31433, 10933, 368, 341, 310, 1077, 5206, 2415, 25, 10528, 3464, 11, 923, 29, 284, 10528, 486, 931, 543, 310, 2415, 980, 1006, 394, 619, 13669, 8738, 20330, 345, 394, 3561, 17223, 6257, 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_rand_range() { let mut rng = thread_rng(); for _ in 0..10 { assert_eq!(rng.gen_bigint_range(&FromPrimitive::from_usize(236).unwrap(), &FromPrimitive::from_usize(237).unwrap()), FromPrimitive::from_usi...
rust_cleaned_test_functions.jsonl/90181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 497 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33864, 9698, 368, 341, 286, 1077, 5206, 28422, 284, 4516, 66849, 1428, 286, 369, 716, 304, 220, 15, 496, 16, 15, 341, 310, 2060, 10714, 10297, 69890, 22822, 36386, 396, 9698, 2099, 3830, 33313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_dns_rr() { let input = vec![0x07, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x18, 0x5c, 0x00, 0x04, 0x5d, 0xb8, 0xd8, 0x22, 0x00, 0x00, 0x29, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; let (_, name...
rust_cleaned_test_functions.jsonl/83423
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 379 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 71125, 56285, 368, 341, 262, 1077, 1946, 284, 7486, 20703, 15, 87, 15, 22, 11, 220, 15, 87, 21, 20, 11, 220, 15, 87, 22, 23, 11, 220, 15, 87, 21, 16, 11, 220, 15, 87, 21, 67, 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_detect() { // Set 1 Challenge 4 let inputs = DETECT_STRINGS.iter().map(|s| s.from_hex().unwrap()).collect(); let (i, _, byte, _, string, _) = detect(&inputs, true); assert_eq!(i, 170); assert_eq!(byte, 53); assert_eq!(string, "Now that the party is...
rust_cleaned_test_functions.jsonl/74992
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56457, 368, 341, 286, 442, 2573, 220, 16, 25257, 220, 19, 198, 286, 1077, 11127, 284, 40243, 5935, 7159, 11860, 19471, 1005, 2186, 22428, 82, 91, 274, 6387, 32655, 1005, 15454, 6011, 17384, 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_derive_10() { let password = [ 0xa3, 0x47, 0xae, 0x92, 0xbc, 0xe9, 0xf8, 0x0f, 0x6f, 0x59, 0x5a, 0x44, 0x80, 0xfc, 0x9c, 0x2f, 0xe7, 0xe7, 0xd7, 0x14, 0x8d, 0x37, 0x1e, 0x94, 0x87, 0xd7, 0x5f, 0x5c, 0x23, 0x00, 0x8f, 0xfa, 0xe0, 0x65, 0x57, 0x7a, 0x92,...
rust_cleaned_test_functions.jsonl/134471
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1678 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35345, 533, 62, 16, 15, 368, 341, 286, 1077, 3552, 284, 2278, 310, 220, 15, 9591, 18, 11, 220, 15, 87, 19, 22, 11, 220, 15, 57052, 11, 220, 15, 87, 24, 17, 11, 220, 15, 43416, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wrap_return_type_not_applicable_when_expr_type_does_not_match_ok_type() { check_no_diagnostics( r#" //- /main.rs crate:main deps:core use core::result::Result::{self, Ok, Err}; fn foo() -> Result<(), i32> { 0 } //- /core/lib.rs crate:core pub mod result { pub enum Resul...
rust_cleaned_test_functions.jsonl/11420
{ "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, 38550, 12511, 1819, 7913, 8191, 46114, 47636, 21915, 1819, 96374, 7913, 10708, 19817, 1819, 368, 341, 286, 1779, 6536, 814, 18938, 1006, 310, 435, 2, 698, 61463, 608, 3817, 25638, 17717, 25, 3817, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_plain_decode_float() { let data = vec![3.14, 2.414, 12.51]; let data_bytes = FloatType::to_byte_array(&data[..]); let mut buffer = vec![0.0; 3]; test_plain_decode::<FloatType>( ByteBufferPtr::new(data_bytes), 3, -1, ...
rust_cleaned_test_functions.jsonl/38507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41015, 15227, 17586, 368, 341, 286, 1077, 821, 284, 7486, 20703, 18, 13, 16, 19, 11, 220, 17, 13, 19, 16, 19, 11, 220, 16, 17, 13, 20, 16, 935, 286, 1077, 821, 12524, 284, 13001, 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_get_edits() { let a = "abcdefg"; let b = "a\nb\nchije\nfg\n"; let actual = get_edits(a, b, &LineIndex::new(a)); assert_eq!( actual, vec![ TextEdit { range: lsp::Range { start: lsp::Position { line: 0, character...
rust_cleaned_test_functions.jsonl/47466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 532 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 32370, 1199, 368, 341, 262, 1077, 264, 284, 330, 41202, 70, 876, 262, 1077, 293, 284, 330, 64, 1699, 65, 1699, 331, 31276, 1699, 4817, 1699, 876, 262, 1077, 5042, 284, 633, 32370, 1199, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stride() { DelayPlusPoolProblem { input: vec![0.0, 0.0, 0.0], pulse: 2, delay: 0, stride: 2, pool_window: 1, } .run() .unwrap() }
rust_cleaned_test_functions.jsonl/125715
{ "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, 41513, 368, 341, 262, 39793, 21807, 10551, 31198, 341, 286, 1946, 25, 7486, 20703, 15, 13, 15, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 1259, 286, 27235, 25, 220, 17, 345, 286, 7626, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_flexible_plaintext_addition() { let t = 199; let fv = crate::default_with_plaintext_mod(t); let (pk, sk) = fv.generate_keypair(); let plain_modulus = fv.t.clone(); let v = vec![Scalar::from_u32(t - 1, &plain_modulus); fv.n]; let w = vec![Scalar::fr...
rust_cleaned_test_functions.jsonl/103695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 94544, 6317, 1641, 427, 2891, 680, 368, 341, 286, 1077, 259, 284, 220, 16, 24, 24, 280, 286, 1077, 61654, 284, 17717, 486, 2258, 6615, 6317, 1641, 427, 7480, 1155, 317, 286, 1077, 320, 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_to_and_from_excel_datetime_whole_days() { let instant = SystemTime::from(Utc.ymd(2000, 1, 1).and_hms_milli(0, 0, 0, 0)); let result = to_excel_datetime(instant); assert_eq!(result, 36526.0); assert_eq!(from_excel_datetime(result), instant); }
rust_cleaned_test_functions.jsonl/6518
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 8378, 5673, 51242, 28943, 36225, 1263, 28353, 368, 341, 286, 1077, 9690, 284, 739, 1462, 486, 1499, 12317, 10413, 13, 1600, 67, 7, 17, 15, 15, 15, 11, 220, 16, 11, 220, 16, 568, 437, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sighashes_with_script_path_raw_hash() { test_taproot_sighash( "020000000189fc651483f9296b906455dd939813bf086b1bbe7c77635e157c8e14ae29062195010000004445b5c7044561320000000000160014331414dbdada7fb578f700f38fb69995fc9b5ab958020000000000001976a914268db0a8104cc6d8afd91233cc8b3d1ac...
rust_cleaned_test_functions.jsonl/115160
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 479 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 1090, 14051, 6615, 14660, 2638, 16067, 8950, 368, 341, 286, 1273, 528, 391, 2888, 643, 1090, 988, 1006, 310, 330, 15, 17, 15, 15, 15, 15, 15, 15, 15, 16, 23, 24, 8316, 21, 20, 16, 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_should_enable_filter() { let types_empty: HashSet<InterfaceType> = [].iter().cloned().collect(); let types_ethernet: HashSet<InterfaceType> = [InterfaceType::ETHERNET].iter().cloned().collect(); let types_wlan: HashSet<InterfaceType> = [InterfaceType::WLAN].it...
rust_cleaned_test_functions.jsonl/90308
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 880 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 18988, 8727, 368, 341, 286, 1077, 4494, 15124, 25, 18931, 27, 5051, 929, 29, 284, 72375, 2015, 1005, 564, 19684, 1005, 17384, 543, 286, 1077, 4494, 57757, 13845, 25, 18931, 27, 5051, 929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_candidate_spu_no_candidate() { let status = PartitionStatus::leader((5000, 0, 0)); let online_spu = HashSet::new(); let policy = SimplePolicy {}; assert!(status.candidate_leader(&online_spu, &policy).is_none()); }
rust_cleaned_test_functions.jsonl/106838
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62360, 643, 5584, 6536, 62360, 368, 341, 286, 1077, 2639, 284, 54626, 2522, 486, 37391, 1188, 20, 15, 15, 15, 11, 220, 15, 11, 220, 15, 1106, 286, 1077, 2860, 643, 5584, 284, 18931, 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_one_down_consensus_success() { let env = init_cluster(3); // kill leader env.stop(0); // ND1 or ND2 becomes leader thread::sleep(Duration::from_secs(5)); let r = Client::to(1, env.clone()).set("a", "1"); assert!(r.is_ok()); }
rust_cleaned_test_functions.jsonl/62215
{ "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, 11667, 13998, 31971, 13626, 18632, 368, 341, 262, 1077, 6105, 284, 2930, 28441, 7, 18, 626, 262, 442, 5505, 7653, 198, 262, 6105, 13227, 7, 15, 626, 262, 442, 38444, 16, 476, 38444, 17, 9044, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wrong_withdrawer() { let mut case = get_correct_btc_case(); case.capacity_cells.outputs[0].lockscript = ScriptView { outpoint_key: ALWAYS_SUCCESS_OUTPOINT_KEY, args: Bytes::from("the withdrawer is not user"), }; case.expect_return_code = Error::CapacityInvalid as ...
rust_cleaned_test_functions.jsonl/31026
{ "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, 75198, 6615, 80127, 368, 341, 262, 1077, 5206, 1142, 284, 633, 31550, 880, 10413, 19096, 543, 262, 1142, 59168, 37796, 65716, 58, 15, 936, 1023, 2282, 284, 13710, 851, 341, 286, 700, 2768, 3097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_config_domain_serde() { assert!(ConfigDomain::try_from_path(Path::new("hi/python.xiconfig")).is_ok()); assert!(ConfigDomain::try_from_path(Path::new("hi/preferences.xiconfig")).is_ok()); assert!(ConfigDomain::try_from_path(Path::new("hi/rust.xiconfig")).is_ok()); ...
rust_cleaned_test_functions.jsonl/40016
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 20111, 75861, 450, 368, 341, 286, 2060, 10297, 2648, 13636, 486, 1539, 5673, 2638, 33030, 486, 931, 445, 6023, 23266, 1993, 1924, 904, 15197, 285, 19817, 1423, 286, 2060, 10297, 2648, 13636, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parsing_with_multiple_included_ranges() { let source_code = "html `<div>Hello, ${name.toUpperCase()}, it's <b>${now()}</b>.</div>`"; let mut parser = Parser::new(); parser.set_language(get_language("javascript")).unwrap(); let js_tree = parser.parse(source_code, None).unwrap(); ...
rust_cleaned_test_functions.jsonl/7392
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1479 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 28598, 6615, 45233, 1243, 10181, 58748, 368, 341, 262, 1077, 2530, 4136, 284, 330, 1551, 30586, 611, 79497, 11, 3570, 606, 32304, 76777, 432, 594, 366, 65, 37680, 3328, 76263, 65, 39874, 611,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_raw() { let mut headers = Headers::new(); headers.set_raw("content-LENGTH", vec![b"20".to_vec()]); headers.remove_raw("content-LENGTH"); assert_eq!(headers.get_raw("Content-length"), None); }
rust_cleaned_test_functions.jsonl/38842
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 16067, 368, 341, 286, 1077, 5206, 7102, 284, 21426, 486, 931, 543, 286, 7102, 980, 16067, 445, 1796, 12, 65981, 497, 7486, 20703, 65, 1, 17, 15, 3263, 983, 13251, 57887, 286, 7102, 4850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_inputs() { init!("true"); // Success - Exact amount assert_eq!(inputs(6).unwrap(), (0, r#"["pov:null:1","pov:null:2","pov:null:1","pov:null:2"]"#.to_string(), "pay:null:zR3GN9lfbCVtHjp".to_string())); // Success - utxo with remainder tokens assert_eq!(in...
rust_cleaned_test_functions.jsonl/10478
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 357 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28557, 368, 341, 286, 2930, 17223, 1866, 3071, 286, 442, 13047, 481, 74480, 3311, 198, 286, 2060, 10714, 10297, 24941, 7, 21, 568, 15454, 1507, 320, 15, 11, 435, 55543, 1183, 79, 859, 53098, 25,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bool_totalord() { assert_eq!(true.cmp(&true), Equal); assert_eq!(false.cmp(&false), Equal); assert_eq!(true.cmp(&false), Greater); assert_eq!(false.cmp(&true), Less); }
rust_cleaned_test_functions.jsonl/83465
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22159, 10784, 539, 368, 341, 286, 2060, 10714, 10297, 1866, 520, 1307, 2099, 1866, 701, 38474, 317, 286, 2060, 10714, 10297, 3849, 520, 1307, 2099, 3849, 701, 38474, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_mark_invalid_then_valid_duplicate() { let ( mut heaviest_subtree_fork_choice, duplicate_leaves_descended_from_4, invalid_candidate, .., ) = setup_mark_invalid_forks_duplicate_tests(); // Marking candidate as valid again wil...
rust_cleaned_test_functions.jsonl/70828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 418 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18924, 31433, 68367, 8337, 70434, 368, 341, 286, 1077, 2399, 310, 5206, 566, 98362, 5228, 9344, 761, 669, 31936, 345, 310, 22513, 11751, 4693, 10986, 2883, 5673, 62, 19, 345, 310, 8318, 62360, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_location() { let poly_str = r#"<Location> <longitude>39.55</longitude> <latitude>-118.98</latitude> <altitude>1223</altitude> </Location>"#; let mut r = KmlReader::from_string(poly_str); let p: Kml = r.read().unwrap(); ...
rust_cleaned_test_functions.jsonl/94657
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 13126, 368, 341, 286, 1077, 9861, 2895, 284, 435, 2, 22476, 4707, 397, 310, 366, 25446, 29, 18, 24, 13, 20, 20, 522, 25446, 397, 310, 366, 23718, 38643, 16, 16, 23, 13, 24, 23, 522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stmt() { parse_macro( r#" macro_rules! foo { ($ i:stmt) => ( fn bar() { $ i; } ) } "#, ) .assert_expand_items("foo! { 2 }", "fn bar () {2 ;}") .assert_expand_items("foo! { let a = 0 }", "fn bar () {let a = 0 ;}"); }
rust_cleaned_test_functions.jsonl/28737
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21824, 368, 341, 262, 4715, 58810, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 15229, 341, 310, 1711, 600, 25, 9215, 8, 589, 2399, 394, 5168, 3619, 368, 314, 400, 600, 26, 456, 310, 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_cmp_imm_reg() { assert_emit!(0x48, 0x83, 0xf8, 0; emit_cmp_imm_reg(MachineMode::Ptr, 0, RAX)); assert_emit!(0x83, 0xf8, 0; emit_cmp_imm_reg(MachineMode::Int32, 0, RAX)); assert_emit!(0x49, 0x83, 0xff, 0; emit_cmp_imm_reg(MachineMode::Ptr, 0, R15)); assert_emit!(0x...
rust_cleaned_test_functions.jsonl/85481
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35193, 71370, 4920, 368, 341, 286, 2060, 69082, 10297, 15, 87, 19, 23, 11, 220, 15, 87, 23, 18, 11, 220, 15, 5848, 23, 11, 220, 15, 26, 16691, 35193, 71370, 4920, 3189, 3814, 3636, 486, 5348...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_async_block_impl_trait_has_goto_type_action() { check_actions( r#" //- minicore: future struct S; fn foo() { let fo$0o = async { S }; } "#, expect![[r#" [ GoToType( [ ...
rust_cleaned_test_functions.jsonl/66680
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 28346, 7113, 21007, 78491, 21778, 97732, 1819, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 61463, 1308, 292, 460, 25, 3853, 198, 1235, 328, 280, 8822, 15229, 368, 341, 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_integration() { let expr = ExprDefBuilder::aggr_func(ExprType::Avg, FieldTypeTp::NewDecimal) .push_child(ExprDefBuilder::column_ref(0, FieldTypeTp::LongLong)) .build(); AggrFnDefinitionParserAvg.check_supported(&expr).unwrap(); let src_schema = [F...
rust_cleaned_test_functions.jsonl/86706
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1049 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 90250, 368, 341, 286, 1077, 15169, 284, 28819, 2620, 3297, 486, 351, 901, 9596, 7, 16041, 929, 486, 39447, 11, 84614, 62241, 486, 3564, 11269, 340, 310, 659, 9077, 17268, 7, 16041, 2620, 3297, 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_install_parent_directories() { let (at, mut ucmd) = at_and_ucmd!(); let ancestor1 = "ancestor1"; let ancestor2 = "ancestor1/ancestor2"; let target_dir = "ancestor1/ancestor2/target_dir"; let directories_arg = "-d"; // Here one of the ancestors already exist and only the ...
rust_cleaned_test_functions.jsonl/47018
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34245, 15960, 32871, 2433, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 45731, 16, 284, 330, 66878, 16, 876, 262, 1077, 45731, 17, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compressed() { let gt = pairing(&G1Affine::generator(), &G2Affine::generator()) * Scalar::from_raw([1, 2, 3, 4]); let buf = gt.to_compressed(); assert_eq!(buf[0] >> 7 & 1, 1); assert_eq!(buf[0] >> 6 & 1, 1); let gt2 = Gt::from_compressed(&buf).unwrap(); assert...
rust_cleaned_test_functions.jsonl/30789
{ "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, 2965, 14318, 368, 341, 262, 1077, 25161, 4035, 286, 47713, 2099, 38, 16, 25841, 482, 486, 35851, 1507, 609, 38, 17, 25841, 482, 486, 35851, 2140, 353, 35176, 486, 1499, 16067, 2561, 16, 11, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_getitem() { let gil = Python::acquire_gil(); let py = gil.python(); let ob = Py::new(py, GetItem {}).unwrap(); py_assert!(py, ob, "ob[1] == 'int'"); py_assert!(py, ob, "ob[100:200:1] == 'slice'"); }
rust_cleaned_test_functions.jsonl/36929
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 1203, 368, 341, 262, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 262, 1077, 4510, 284, 342, 321, 43193, 1428, 262, 1077, 1508, 284, 5355, 486, 931, 46827, 11, 2126, 1234, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_starts_with_vbuf() { use impls::ROIobuf; let b0 = [ ROIobuf::from_str("1234"), ROIobuf::from_str("5678"), ROIobuf::from_str("9"), ]; assert!(starts_with_vbuf(&b0, b"123456789")); assert!(starts_with_vbuf(&b0, b"12345678")); assert!(starts_with_vbuf(&b0, b"")); assert!...
rust_cleaned_test_functions.jsonl/5464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86552, 6615, 2273, 5909, 368, 341, 220, 990, 11605, 82, 486, 71270, 18464, 401, 220, 1077, 293, 15, 284, 2278, 262, 50652, 18464, 486, 1499, 2895, 445, 16, 17, 18, 19, 4461, 262, 50652, 18464, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_group() { let group: Group = read_test_file("group"); assert_eq!(group.id, GroupId::new(498)); assert_eq!(group.name, "Utils"); assert_eq!(group.path, "utils"); assert_eq!(group.description.as_ref().unwrap(), ""); assert_eq!(group.visibility, VisibilityLevel::Public...
rust_cleaned_test_functions.jsonl/12960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 281 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 6288, 368, 341, 262, 1077, 1874, 25, 5737, 284, 1349, 4452, 2458, 445, 4074, 3071, 262, 2060, 10714, 10297, 4074, 1764, 11, 5737, 764, 486, 931, 7, 19, 24, 23, 1106, 262, 2060, 10714, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_vcpus() { let mut vmm = create_vmm_object(InstanceState::Uninitialized); vmm.default_kernel_config(None); assert!(vmm.init_guest_memory().is_ok()); assert!(vmm.vm.memory().is_some()); #[cfg(target_arch = "x86_64")] vmm.vm ...
rust_cleaned_test_functions.jsonl/28154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 2273, 4672, 355, 368, 341, 286, 1077, 5206, 348, 3821, 284, 1855, 2273, 3821, 5314, 7, 8846, 486, 1806, 36161, 317, 286, 348, 3821, 8764, 26876, 5332, 26717, 626, 286, 2060, 10297, 85, 382...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_macro_variable_type() { let tokens = TokenStream::from_iter(vec![ TokenTree::Group(Group::new(Delimiter::None, quote! { ty })), TokenTree::Punct(Punct::new('<', Spacing::Alone)), TokenTree::Ident(Ident::new("T", Span::call_site())), TokenTree::Punct(Punct...
rust_cleaned_test_functions.jsonl/45551
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1671 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58810, 14635, 1819, 368, 341, 1066, 262, 1077, 11211, 284, 9660, 3027, 486, 1499, 11723, 25592, 90515, 286, 9660, 6533, 486, 2808, 79535, 486, 931, 5432, 301, 17700, 486, 4064, 11, 12641, 0, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vec_decode() { let buf = b"test|test2"; assert_eq!( Vec::<String>::decode(buf).unwrap(), vec!["test".to_owned(), "test2".to_owned()] ); }
rust_cleaned_test_functions.jsonl/24237
{ "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, 13251, 15227, 368, 341, 286, 1077, 6607, 284, 293, 1, 1944, 91, 1944, 17, 876, 286, 2060, 10714, 33673, 310, 11312, 27638, 703, 6831, 18196, 10731, 568, 15454, 3148, 310, 7486, 0, 1183, 1944, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_two_octet_length_to_ea_format() { let two_octet_length = 245; let expected = [0b11101010, 0b00000011]; assert_eq!(length_to_ea_format(two_octet_length), expected); }
rust_cleaned_test_functions.jsonl/107785
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 70135, 295, 5118, 2346, 2204, 64, 8955, 368, 341, 286, 1077, 1378, 70135, 295, 5118, 284, 220, 17, 19, 20, 280, 286, 1077, 3601, 284, 508, 15, 65, 16, 16, 16, 15, 16, 15, 16, 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_jsr() { let mut mem = Memory::new(); let instr = 0b_0100_1_00000000011; mem.write_pc(255); jsr(instr, &mut mem); assert_eq!(255, mem.read_reg(7)); assert_eq!(255 + 3, mem.read_pc()); }
rust_cleaned_test_functions.jsonl/115491
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26250, 81, 368, 341, 286, 1077, 5206, 1833, 284, 13850, 486, 931, 543, 286, 1077, 9491, 284, 220, 15, 65, 62, 15, 16, 15, 15, 62, 16, 62, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 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