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_banks_client_new() { let (client_transport, _server_transport) = transport::channel::unbounded(); BanksClient::new(client::Config::default(), client_transport); }
rust_cleaned_test_functions.jsonl/10533
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 4039, 8179, 5921, 368, 341, 286, 1077, 320, 2972, 46398, 11, 716, 4030, 46398, 8, 284, 7557, 486, 10119, 486, 359, 65686, 543, 286, 37766, 2959, 486, 931, 12805, 486, 2648, 486, 2258, 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
#[test] fn test_hello_world() { runner::run("hello-world", |run| { run.build(SandboxBuilder::new().enable_networking(false), |build| { let storage = rustwide::logging::LogStorage::new(LevelFilter::Info); rustwide::logging::capture(&storage, || -> Result<_, Error> { ...
rust_cleaned_test_functions.jsonl/74697
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 96724, 31792, 368, 341, 262, 22259, 486, 6108, 445, 14990, 30084, 497, 760, 6108, 91, 341, 286, 1598, 13239, 3759, 31536, 3297, 486, 931, 1005, 12552, 20966, 287, 3576, 701, 760, 5834, 91, 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...
5
#[test] fn test_set_raw() { let mut headers = Headers::new(); headers.set(ContentLength(10)); headers.set_raw("content-LENGTH", vec![b"20".to_vec()]); assert_eq!(headers.get_raw("Content-length").unwrap(), &[b"20".to_vec()][]); assert_eq!(headers.get(), Some(&ContentLengt...
rust_cleaned_test_functions.jsonl/18246
{ "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, 2602, 16067, 368, 341, 286, 1077, 5206, 7102, 284, 21426, 486, 931, 543, 286, 7102, 980, 79352, 4373, 7, 16, 15, 1106, 286, 7102, 980, 16067, 445, 1796, 12, 65981, 497, 7486, 20703, 65, 1, 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_float() { let expected = 1f64; let mut actual = 1f64; let precision = 0.1f64; actual = actual + precision / 2f64; assert!((expected - actual).abs() < precision); }
rust_cleaned_test_functions.jsonl/13120
{ "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, 17586, 368, 341, 197, 10217, 3601, 284, 220, 16, 69, 21, 19, 280, 197, 10217, 5206, 5042, 284, 220, 16, 69, 21, 19, 280, 197, 10217, 16052, 284, 220, 15, 13, 16, 69, 21, 19, 280, 197, 8881...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_builtin_functions() { assert_eq!(eval("min(4.0, 3)"), Ok(Value::Int(3))); assert_eq!(eval("max(4.0, 3)"), Ok(Value::Float(4.0))); assert_eq!(eval("len(\"foobar\")"), Ok(Value::Int(6))); assert_eq!( eval("str::to_lowercase(\"FOOBAR\")"), Ok(Value::from("foobar")) ...
rust_cleaned_test_functions.jsonl/105347
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73829, 31708, 368, 341, 262, 2060, 10714, 10297, 14170, 445, 1065, 7, 19, 13, 15, 11, 220, 18, 8, 3975, 7622, 25346, 486, 1072, 7, 18, 4945, 262, 2060, 10714, 10297, 14170, 445, 2810, 7, 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_set_group() { setup(); let p = Path::new("/tmp/nexus-fixer/batman"); assert!(touch(p).is_ok()); assert!(set_owner(p).is_ok()); check_group( p, get_gid().expect("failed to read GID"), ); assert!(fs::remove_file(p).is_...
rust_cleaned_test_functions.jsonl/26860
{ "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, 2602, 6288, 368, 341, 286, 6505, 543, 286, 1077, 281, 284, 7933, 486, 931, 4283, 5173, 9612, 23666, 2220, 39014, 3470, 266, 1515, 797, 286, 2060, 10297, 22020, 1295, 568, 285, 19817, 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...
1
#[test] fn test_zip_map_rev_sideffectful() { let mut xs = [0; 6]; let mut ys = [0; 4]; { let mut it = xs.iter_mut().map(|x| *x += 1).zip(ys.iter_mut().map(|y| *y += 1)); it.next_back(); } assert_eq!(&xs, &[0, 0, 0, 1, 1, 1]); assert_eq!(&ys, &[0, 0, 0, 1]); let mut ...
rust_cleaned_test_functions.jsonl/8965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42131, 5376, 38082, 30862, 1705, 1262, 368, 341, 262, 1077, 5206, 11943, 284, 508, 15, 26, 220, 21, 935, 262, 1077, 5206, 31810, 284, 508, 15, 26, 220, 19, 4821, 262, 341, 286, 1077, 5206, 432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_calc_coefficient() { // unsigned simple assert_almost_eq!(calc_coefficient(0x00, 0b1000, 12, 3, 0), 1.0); // signed simple assert_almost_eq!(calc_coefficient(0xFF, 0xF8, 12, 3, 0), -1.0); assert_almo...
rust_cleaned_test_functions.jsonl/128466
{ "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, 38241, 31990, 5385, 368, 341, 394, 442, 3774, 4285, 198, 394, 2060, 94418, 10714, 10297, 26586, 31990, 5385, 7, 15, 87, 15, 15, 11, 220, 15, 65, 16, 15, 15, 15, 11, 220, 16, 17, 11, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_fees_to_request_valid_from_libindy() { let (wallet, input_address) = init_wallet_with_address(); let did = "Th7MpTaRZVRYnPiabds81Y"; let fake_request = json!({ "operation": { "type": "3" } }); let txo = TXO { address: input_address, seq_no: 1 };...
rust_cleaned_test_functions.jsonl/90661
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 988 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 761, 5516, 2346, 7893, 8337, 5673, 16142, 48990, 368, 341, 262, 1077, 320, 35735, 11, 1946, 6744, 8, 284, 2930, 62308, 6615, 6744, 543, 262, 1077, 1521, 284, 330, 1001, 22, 72150, 55999, 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_echo() { let mut cmd = new_ucmd!(); cmd.arg("echo").arg("FOO-bar"); println!("cmd={:?}", cmd); let result = cmd.run(); println!("success={:?}", result.success); println!("stdout={:?}", result.stdout); println!("stderr={:?}", result.stderr); assert!(result.su...
rust_cleaned_test_functions.jsonl/1539
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68628, 368, 341, 1066, 262, 1077, 5206, 5439, 284, 501, 68887, 2277, 0, 543, 262, 5439, 21186, 445, 3047, 1827, 858, 445, 3788, 46, 15773, 797, 262, 13751, 17223, 8710, 1165, 25, 52652, 5439, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_append() { let mut a: VecDeque<_> = vec![1, 2, 3].into_iter().collect(); let mut b: VecDeque<_> = vec![4, 5, 6].into_iter().collect(); // normal append a.append(&mut b); assert_eq!(a.iter().cloned().collect::<Vec<_>>(), [1, 2, 3, 4, 5, 6]); assert_eq!(b.iter().cloned().c...
rust_cleaned_test_functions.jsonl/73728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 368, 341, 262, 1077, 5206, 264, 25, 11312, 73891, 32399, 29, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 936, 18122, 11723, 1005, 17384, 543, 262, 1077, 5206, 293, 25, 11312, 73891, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_slot_from_cadence_ts_check() { let rem = BLOCK_START_TS.clone() % 1_000_000; let secs = ((BLOCK_START_TS.clone() - rem) / 1_000_000_000) + 1; let start_ts = Utc.timestamp(secs as i64, 0).naive_utc().timestamp_nanos() as u64; let context = get_context(accounts(...
rust_cleaned_test_functions.jsonl/43010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 27563, 5673, 666, 329, 763, 25023, 7200, 368, 341, 286, 1077, 1299, 284, 28677, 13044, 61793, 15997, 368, 1018, 220, 16, 62, 15, 15, 15, 62, 15, 15, 15, 280, 286, 1077, 49749, 284, 1781,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_do_while_statement() { expect_printed("do {} while (true)", "do {} while (true);\n"); expect_printed("do {} while (1 < 10)", "do {} while (1 < 10);\n"); expect_printed( "do { return 3; } while (1 < 10)", "do { return 3;\n } while (1 < 10);\n", ); }
rust_cleaned_test_functions.jsonl/93434
{ "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, 26309, 86069, 37404, 368, 341, 262, 1720, 10064, 291, 445, 2982, 4687, 1393, 320, 1866, 11583, 330, 2982, 4687, 1393, 320, 1866, 44388, 77, 797, 262, 1720, 10064, 291, 445, 2982, 4687, 1393, 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_backup_stack() { let db = CheckpointDb::new(MemoryDB::new()); let handler = db.handler(); assert_eq!(stack_len(&db), 0); handler.checkpoint(); assert_eq!(stack_len(&db), 1); handler.rollback(); assert_eq!(stack_len(&db), 0); handl...
rust_cleaned_test_functions.jsonl/69288
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44710, 15528, 368, 341, 286, 1077, 2927, 284, 4248, 2768, 7994, 486, 931, 3189, 4731, 3506, 486, 931, 1423, 286, 1077, 7013, 284, 2927, 31171, 1428, 286, 2060, 10714, 10297, 7693, 6043, 2099, 1999...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parses_struct_def() { parses_to! { parser: AwsGoEventsParser, input: "type MyFoo struct {}", rule: Rule::struct_def, tokens: [ struct_def(0, 20, [ struct_preamble(0, 17, [ ...
rust_cleaned_test_functions.jsonl/8183
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77113, 288, 15126, 7844, 368, 341, 310, 70835, 2346, 0, 341, 394, 6729, 25, 40083, 10850, 7900, 6570, 345, 394, 1946, 25, 330, 1313, 3017, 40923, 2036, 4687, 756, 394, 5912, 25, 18100, 486, 1235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hash_after_rotation() { // test that two deques hash equal even if elements are laid out differently let len = 28; let mut ring: VecDeque<i32> = (0..len as i32).collect(); let orig = ring.clone(); for _ in 0..ring.capacity() { ring.pop_front(); for el...
rust_cleaned_test_functions.jsonl/73714
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8950, 19844, 44813, 368, 341, 262, 442, 1273, 429, 1378, 409, 13968, 5175, 6144, 1496, 421, 5424, 525, 17113, 700, 21303, 198, 262, 1077, 2422, 284, 220, 17, 23, 280, 262, 1077, 5206, 10058, 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...
3
#[test] fn test_skiplist_insert() { let mut list = SkipList::new(); list.insert(2, 2); list.insert(3, 3); list.insert(1, 1); list.insert(4, 4); list.insert(5, 5); list.insert(7, 7); list.insert(8, 8); list.insert(6, 6); assert_eq!(l...
rust_cleaned_test_functions.jsonl/65967
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 6642, 39934, 17678, 368, 341, 286, 1077, 5206, 1140, 284, 25784, 852, 486, 931, 543, 286, 1140, 7030, 7, 17, 11, 220, 17, 317, 286, 1140, 7030, 7, 18, 11, 220, 18, 317, 286, 1140, 7030,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invalid_signature() { let (config, keypair) = get_test_config(); let vm_validator = TestValidator::new(&config); let (other_private_key, _) = ::crypto::signing::generate_keypair(); // Submit with an account using an different private/public keypair let other_keypair...
rust_cleaned_test_functions.jsonl/90958
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 363 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 31433, 39859, 368, 341, 262, 1077, 320, 1676, 11, 1376, 12670, 8, 284, 633, 4452, 5332, 543, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 2099, 1676, 626, 262, 1077, 320, 1575, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_elided_lifetimes() { let ir = ir_from_cc( r#"#pragma clang lifetime_elision struct S { int& f(int& i); };"#, ) .unwrap(); let func = retrieve_func(&ir, "f"); let lifetime_params = &func.lifetime_params; assert_eq!(lifetime_params.iter().m...
rust_cleaned_test_functions.jsonl/37223
{ "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, 21602, 4490, 907, 333, 6889, 368, 341, 262, 1077, 6216, 284, 6216, 5673, 28955, 1006, 286, 435, 55543, 2, 6015, 18260, 19031, 21602, 1816, 198, 286, 2036, 328, 341, 688, 526, 5, 282, 1548, 5, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mq_egress() { let mut storage = Contract::new_storage(); let code_hash = storage .upload_code( ALICE.clone(), include_bytes!("./fixtures/mqproxy/mqproxy.wasm").to_vec(), ) .unwrap(); let (contract, effects) = Contract::new_with_selector...
rust_cleaned_test_functions.jsonl/122569
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 80, 90209, 673, 368, 341, 262, 1077, 5206, 5819, 284, 19185, 486, 931, 23310, 543, 262, 1077, 2038, 8950, 284, 5819, 198, 286, 659, 6120, 4136, 1006, 310, 8753, 5487, 15997, 3148, 310, 2924...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_by_compaction() { run_persistent_pool_test("test_purge_by_compaction", |mut config, log| { // set a small purge interval config.persistent_pool_validated_purge_interval = Height::from(8); let mut pool = PersistentHeightIndexedPool::new_consensus_...
rust_cleaned_test_functions.jsonl/24997
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 39823, 3710, 18177, 1311, 368, 341, 286, 1598, 620, 13931, 15709, 4452, 445, 1944, 620, 39823, 3710, 18177, 1311, 497, 760, 6984, 2193, 11, 1487, 91, 341, 310, 442, 738, 264, 2613, 54100, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_accountsdb_cumulative_find_empty() { let input = CumulativeOffsets { cumulative_offsets: vec![], total_count: 0, }; input.find(0); }
rust_cleaned_test_functions.jsonl/94724
{ "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, 55665, 1999, 91328, 22160, 21814, 15124, 368, 341, 286, 1077, 1946, 284, 31578, 22160, 81095, 341, 310, 39844, 56924, 25, 7486, 20703, 1259, 310, 2790, 3180, 25, 220, 15, 345, 286, 2605, 286, 1946...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_update_agent_info() { init!("true"); let json_string = r#"{"id":"123","value":"value"}"#; let c_json = CString::new(json_string).unwrap().into_raw(); let cb = return_types_u32::Return_U32::new().unwrap(); let result = vcx_agent_update_info(cb.command_han...
rust_cleaned_test_functions.jsonl/19370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 25730, 3109, 368, 341, 286, 2930, 17223, 1866, 3071, 286, 1077, 2951, 3904, 284, 435, 55543, 4913, 307, 3252, 16, 17, 18, 2198, 957, 3252, 957, 9207, 57676, 280, 286, 1077, 272, 9455, 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_fix_type() { assert_eq!(FixType::from('A'), FixType::Invalid); assert_eq!(FixType::from('0'), FixType::Invalid); assert_eq!(FixType::from('1'), FixType::Gps); assert_eq!(FixType::from('2'), FixType::DGps); assert_eq!(FixType::from('3'), FixType::Pps); ...
rust_cleaned_test_functions.jsonl/65848
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 284 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36060, 1819, 368, 341, 286, 2060, 10714, 10297, 25958, 929, 486, 1499, 492, 32, 4567, 19716, 929, 486, 7928, 317, 286, 2060, 10714, 10297, 25958, 929, 486, 1499, 492, 15, 4567, 19716, 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_invalid_api_key() { let client = shadertoy::Client::new("incorrect"); let shader = client.get_shader("4d2BDy"); assert!(shader.is_err()); println!("error: {}", shader.err().unwrap()); }
rust_cleaned_test_functions.jsonl/117277
{ "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, 31433, 11697, 3097, 368, 341, 262, 1077, 2943, 284, 557, 329, 529, 2253, 486, 2959, 486, 931, 445, 61954, 3071, 1066, 262, 1077, 21013, 284, 2943, 670, 35485, 445, 19, 67, 17, 9548, 88, 797, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_fct_with_type_params() { err( "fun f() {} fun g() { f::<int>(); }", pos(1, 22), Msg::WrongNumberTypeParams(0, 1), ); err( "fun f<T>() {} fun g() { f(); }", pos(1, 25), Msg::WrongNumberTypeParams(1, 0)...
rust_cleaned_test_functions.jsonl/106631
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 302, 6615, 1819, 6745, 368, 341, 286, 1848, 1006, 310, 330, 11894, 282, 368, 4687, 2464, 342, 368, 314, 282, 27638, 396, 48281, 335, 756, 310, 1133, 7, 16, 11, 220, 17, 17, 1326, 310, 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_fifo_compaction_options() { let path = tempdir_with_prefix("_rust_rocksdb_fifo_compaction_options"); let path_str = path.path().to_str().unwrap(); let mut opts = DBOptions::new(); opts.create_if_missing(true); let mut cf_opts = ColumnFamilyOptions::new(); let mut fifo_opt...
rust_cleaned_test_functions.jsonl/34130
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56590, 18177, 1311, 8743, 368, 341, 262, 1077, 1815, 284, 2730, 3741, 6615, 13974, 16975, 35788, 26608, 14553, 1999, 56590, 18177, 1311, 8743, 797, 262, 1077, 1815, 2895, 284, 1815, 3875, 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_two_intersections() { let sphere = Sphere { center: Point3(0.0, 0.0, 2.0), radius: 1.0, }; let ray = Ray::new(Point3::zero(), Vect3(0.0, 0.0, 1.0)); let expected = vec![ Intersection::new(Point3(0.0, 0.0, 1.0), Vect3(0.0, 0.0, ...
rust_cleaned_test_functions.jsonl/102910
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 15318, 24661, 368, 341, 286, 1077, 25366, 284, 54499, 341, 310, 4126, 25, 5126, 18, 7, 15, 13, 15, 11, 220, 15, 13, 15, 11, 220, 17, 13, 15, 1326, 310, 10578, 25, 220, 16, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_various_types() { let d1 = Rect::from_points(&[Point::new(0.1, 0.), Point::new(0.25, 0.1)]); assert!( Rect::from_center_size(&Point::new(0.3, 0.5), &Point::new(0.2, 0.4)).approx_eq( &Rect::from_points(&[Point::new(0.2, 0.3), Point::new(0.4, 0.7)]...
rust_cleaned_test_functions.jsonl/94054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 4612, 1223, 9763, 368, 341, 286, 1077, 294, 16, 284, 11920, 486, 1499, 12928, 2099, 58, 2609, 486, 931, 7, 15, 13, 16, 11, 220, 15, 24389, 5126, 486, 931, 7, 15, 13, 17, 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_echo_packet_not_destined() { let amount = 1; let expires_at = SystemTime::now() + Duration::from_secs(30); let fulfillment = &get_random_fulfillment(); let execution_condition = &get_hash_of(fulfillment); let destination = Address::from_str("example.recipi...
rust_cleaned_test_functions.jsonl/37906
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 753 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68628, 21078, 7913, 25264, 1589, 368, 341, 286, 1077, 3311, 284, 220, 16, 280, 286, 1077, 27902, 3752, 284, 739, 1462, 486, 3328, 368, 488, 21045, 486, 1499, 68718, 7, 18, 15, 317, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_input_controller_axis() { let e: Event = ControllerAxisArgs::new(0, 1, 0.9).into(); let a: Option<Event> = ControllerAxisEvent::from_controller_axis_args(ControllerAxisArgs::new(0, 1, 0.9), &e); let b: Option<Event> = a.clone() .unwrap() ...
rust_cleaned_test_functions.jsonl/74924
{ "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, 5898, 21600, 23567, 368, 341, 286, 1077, 384, 25, 3665, 284, 9771, 8143, 4117, 486, 931, 7, 15, 11, 220, 16, 11, 220, 15, 13, 24, 568, 18122, 543, 286, 1077, 264, 25, 6959, 51357, 29, 4035, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vcpu_cpuid_restore() { let (_vm, vcpu, _) = setup_vcpu(0x1000); let mut state = vcpu.save_state().unwrap(); // Mutate the cpuid. state.cpuid.as_mut_slice()[0].eax = 0x1234_5678; assert!(vcpu.restore_state(&state).is_ok()); unsafe { libc::close(vcp...
rust_cleaned_test_functions.jsonl/3464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 16475, 39811, 2423, 62677, 368, 341, 286, 1077, 5453, 7338, 11, 348, 16475, 11, 27439, 284, 6505, 2273, 16475, 7, 15, 87, 16, 15, 15, 15, 317, 286, 1077, 5206, 1584, 284, 348, 16475, 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_parse_int_from_bytes_be() { use de::parse_int_be; assert_eq!(parse_int_be::<u32, u8>(&[1, 2, 3, 4], 256), Some(16909060)); assert_eq!(parse_int_be::<u32, u8>(&[1, 3], 32), Some(35)); assert_eq!(parse_int_be::<u32, u8>(&[255, 255, 255, 255], 256), Some(4294967295)); assert_eq!(parse_in...
rust_cleaned_test_functions.jsonl/123243
{ "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, 21039, 4042, 5673, 12524, 21263, 368, 341, 197, 41819, 409, 486, 6400, 4042, 21263, 401, 197, 6948, 10714, 10297, 6400, 4042, 21263, 27638, 84, 18, 17, 11, 575, 23, 44784, 58, 16, 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_to_packets_pinning() { let recycler = PacketBatchRecycler::default(); for i in 0..2 { let _first_packets = PacketBatch::new_with_recycler(recycler.clone(), i + 1, "first one"); } }
rust_cleaned_test_functions.jsonl/131347
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 63569, 620, 19770, 368, 341, 286, 1077, 1395, 10760, 284, 28889, 21074, 3820, 10760, 486, 2258, 543, 286, 369, 600, 304, 220, 15, 496, 17, 341, 310, 1077, 716, 3896, 63569, 4035, 394, 2888...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cp_multiple_files() { let (at, mut ucmd) = at_and_ucmd!(); ucmd.arg(TEST_HELLO_WORLD_SOURCE) .arg(TEST_HOW_ARE_YOU_SOURCE) .arg(TEST_COPY_TO_FOLDER) .succeeds(); assert_eq!(at.read(TEST_COPY_TO_FOLDER_FILE), "Hello, World!\n"); assert_eq!(at.read(TEST_HOW...
rust_cleaned_test_functions.jsonl/21236
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39811, 45233, 10931, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 575, 8710, 21186, 50320, 69235, 1593, 38913, 25430, 340, 286, 659, 858, 5032...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_append_u64_nonulls() { // Make sure the fixed sect stats above can still fit in total headers assert!(std::mem::size_of::<FixedSectStats>() + BINARYVECT_HEADER_SIZE <= NUM_HEADER_BYTES_TOTAL); let num_values: usize = 500; let data: Vec<u64> = (0..num_val...
rust_cleaned_test_functions.jsonl/25236
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 588 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 7300, 21, 19, 21637, 70423, 368, 341, 286, 442, 7405, 2704, 279, 8356, 30137, 10472, 3403, 646, 2058, 4946, 304, 2790, 7102, 198, 286, 2060, 10297, 1834, 486, 10536, 486, 2141, 3575, 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_bad_float() { let yaml = indoc! {" --- !!float str "}; let expected = "invalid value: string \"str\", expected a float at line 2 column 9"; test_error::<f64>(yaml, expected); }
rust_cleaned_test_functions.jsonl/45573
{ "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, 34199, 17586, 368, 341, 262, 1077, 32246, 284, 1257, 509, 0, 314, 698, 286, 53923, 286, 11015, 3649, 607, 198, 262, 330, 2440, 262, 1077, 3601, 284, 330, 11808, 897, 25, 914, 7245, 495, 16215, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_timeout_expired_remove() { let repair_type = ShredRepairType::Orphan(9); let mut outstanding_requests = OutstandingRequests::default(); let nonce = outstanding_requests.add_request(repair_type, timestamp()); let shred = Shred::new_from_data(0, 0, 0, &[], false, fa...
rust_cleaned_test_functions.jsonl/50413
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20537, 80221, 18193, 368, 341, 286, 1077, 12733, 1819, 284, 1417, 1151, 98386, 929, 486, 2195, 9943, 7, 24, 317, 286, 1077, 5206, 18781, 37216, 284, 75341, 35295, 486, 2258, 543, 286, 1077, 39676,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_list_with_cross_deps_and_namespaces_error() { init(); let schema_str_1 = r#"{ "name": "A", "type": "record", "namespace": "namespace", "fields": [ {"name": "field_one", "type": "float"} ] }"#; let schema_str_2 = r#"{ ...
rust_cleaned_test_functions.jsonl/69029
{ "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, 21039, 2019, 6615, 35284, 76489, 8378, 9187, 27338, 4096, 368, 341, 262, 2930, 543, 262, 1077, 10802, 2895, 62, 16, 284, 435, 55543, 515, 286, 330, 606, 788, 330, 32, 756, 286, 330, 1313, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_59() { assert_eq!(Solution::generate_matrix(1), vec![vec![1]]); assert_eq!(Solution::generate_matrix(2), vec![vec![1, 2], vec![4, 3]]); assert_eq!( Solution::generate_matrix(3), vec![vec![1, 2, 3], vec![8, 9, 4], vec![7, 6, 5],] ); }
rust_cleaned_test_functions.jsonl/51392
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 182 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 20, 24, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 19366, 10193, 7, 16, 701, 7486, 20703, 4083, 20703, 16, 49854, 286, 2060, 10714, 10297, 36842, 486, 19366, 10193, 7, 17, 701, 7486, 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_adjust_maximum() { assert_eq!(100.0, adjust_maximum(0.0, 100.0)); assert_eq!(100.0, adjust_maximum(100.0, 5.0)); assert_eq!(100.0, adjust_maximum(0.0, 100.0)); }
rust_cleaned_test_functions.jsonl/7468
{ "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, 44153, 93581, 368, 341, 286, 2060, 10714, 10297, 16, 15, 15, 13, 15, 11, 7500, 93581, 7, 15, 13, 15, 11, 220, 16, 15, 15, 13, 15, 1106, 286, 2060, 10714, 10297, 16, 15, 15, 13, 15, 11, 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_block_store_create_block() { let block_store = build_empty_tree(); let genesis = block_store.root(); let a1 = block_store.create_block(&genesis, vec![1], 1, 1); assert_eq!(a1.parent_id(), genesis.id()); assert_eq!(a1.round(), 1); assert_eq!(a1.height(), 1); assert_eq!...
rust_cleaned_test_functions.jsonl/85834
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 688 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 14809, 8657, 7113, 368, 341, 262, 1077, 2504, 14809, 284, 1936, 15124, 11663, 543, 262, 1077, 59366, 284, 2504, 14809, 12576, 543, 262, 1077, 264, 16, 284, 2504, 14809, 2520, 7113, 2099, 778...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_block_body_after_inserting() { let builder = SharedBuilder::default(); let (shared, table) = builder.consensus(Consensus::default()).build().unwrap(); let mut chain_service = ChainService::new(shared.clone(), table); let genesis = shared .store() .get_block_he...
rust_cleaned_test_functions.jsonl/44004
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 704 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 7113, 14114, 19844, 17678, 287, 368, 341, 262, 1077, 7363, 284, 16990, 3297, 486, 2258, 543, 262, 1077, 320, 6100, 11, 1965, 8, 284, 7363, 63201, 13626, 7, 15220, 13626, 486, 2258, 6011, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_address_bson() { let address = Address::from(bee::Address::Ed25519(bee_test::rand::address::rand_ed25519_address())); let bson = to_bson(&address).unwrap(); assert_eq!(Bson::from(address), bson); assert_eq!(address, from_bson::<Address>(bson).unwrap()); l...
rust_cleaned_test_functions.jsonl/50528
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 361 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6744, 880, 930, 368, 341, 286, 1077, 2621, 284, 9177, 486, 1499, 7, 32031, 486, 4286, 486, 2715, 17, 20, 20, 16, 24, 7, 32031, 4452, 486, 11335, 486, 4995, 486, 11335, 32370, 17, 20, 20, 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_raw_identifiers() { #[pyclass] #[pyo3(text_signature = "($self)")] struct r#MyClass {} #[pymethods] impl MyClass { #[new] fn new() -> MyClass { MyClass {} } #[pyo3(text_signature = "($self)")] fn r#method(&self) {} } ...
rust_cleaned_test_functions.jsonl/32990
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 314 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 38399, 11836, 368, 341, 262, 11506, 3288, 1040, 921, 262, 11506, 3288, 78, 18, 7235, 39859, 284, 330, 699, 721, 8, 5422, 262, 2036, 435, 2, 5050, 1957, 10086, 262, 11506, 79, 1600, 1068, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_date_from_str() { // valid cases let valid = [ "0:0:0", "0:0:0.0000000", "0:0:0.0000003", " 4 : 3 : 2.1 ", " 09:08:07 ", " 9:8:07 ", "23:59:60.373929310237", ]; for &s in &valid { ...
rust_cleaned_test_functions.jsonl/32335
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 879 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 5673, 2895, 368, 341, 286, 442, 2697, 5048, 198, 286, 1077, 2697, 284, 2278, 310, 330, 15, 25, 15, 25, 15, 756, 310, 330, 15, 25, 15, 25, 15, 13, 15, 15, 15, 15, 15, 15, 15, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_check_proc_mount() { let mount = oci::Mount { destination: "/proc".to_string(), r#type: "bind".to_string(), source: "/test".to_string(), options: vec!["shared".to_string()], }; assert!(check_proc_mount(&mount).is_err()); ...
rust_cleaned_test_functions.jsonl/42582
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 442 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 24436, 57593, 368, 341, 286, 1077, 6470, 284, 93975, 486, 16284, 341, 310, 9106, 25, 3521, 15782, 3263, 983, 3904, 3148, 310, 435, 2, 1313, 25, 330, 7666, 3263, 983, 3904, 3148, 310, 2530,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_job_finished() { fn fn_ok(_: String, _: Vec<String>) -> Result<String, Box<Error>> { sleep(Duration::from_millis(1000)); Ok("ok".to_string()) } let queue = Queue::new("redis://localhost/", "test-finished"); queue.drop().unwrap(); let uuid = queue.enqueue(vec...
rust_cleaned_test_functions.jsonl/124822
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20298, 56423, 368, 341, 262, 5168, 5168, 19817, 73834, 923, 11, 58536, 11312, 3464, 9231, 1464, 5714, 3464, 11, 8261, 27, 1454, 2452, 341, 286, 6084, 64114, 486, 1499, 717, 56212, 7, 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, 1, 1, 1, 1, 1...
1
#[test] fn test_iter_all() { let mut world = World::default(); world.insert(ImplementorA(3)); world.insert(ImplementorB(1)); let mut table = MetaTable::<dyn Object>::new(); table.register(&ImplementorA(125)); table.register(&ImplementorB(111_111)); { ...
rust_cleaned_test_functions.jsonl/1290
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 417 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 5705, 368, 341, 286, 1077, 5206, 1879, 284, 4337, 486, 2258, 543, 286, 1879, 7030, 7, 62980, 269, 32, 7, 18, 1106, 286, 1879, 7030, 7, 62980, 269, 33, 7, 16, 3237, 286, 1077, 5206, 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_stxb() { test_interpreter_and_jit_asm!( " mov32 r2, 0x11 stxb [r1+2], r2 ldxb r0, [r1+2] exit", [ 0xaa, 0xbb, 0xff, 0xcc, 0xdd, ], (), { |_vm, res: Result| { res.unwrap() == 0x11 } }, 4 ); }
rust_cleaned_test_functions.jsonl/58997
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 7929, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 1974, 18, 17, 435, 17, 11, 220, 15, 87, 16, 16, 198, 286, 357, 7929, 508, 81, 16, 10, 17, 1125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_project_find_dir_ancestor() { let base_dir = fixture_path(&["basic", "subdir"]); let project_dir = Project::find_dir(&base_dir).expect("Failed to find project directory"); assert_eq!(project_dir, fixture_path(&["basic"])); }
rust_cleaned_test_functions.jsonl/104570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16352, 21814, 4334, 62, 66878, 368, 341, 286, 1077, 2331, 4334, 284, 12507, 2638, 2099, 1183, 22342, 497, 330, 1966, 3741, 15049, 286, 1077, 2390, 4334, 284, 5787, 486, 3903, 4334, 2099, 3152, 433...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_seed_at_offset() { let seed = 0x973bb011937bc1a8; assert_eq!(Rng::get_seed_at_offset(seed, 0), seed); assert_eq!( Rng::get_seed_at_offset(seed, 1), (w(seed) + w(MAGIC_SEED)).0 ); assert_eq!( Rng::get_seed_at_offset(s...
rust_cleaned_test_functions.jsonl/92312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 33809, 3752, 6917, 368, 341, 286, 1077, 10320, 284, 220, 15, 87, 24, 22, 18, 6066, 15, 16, 16, 24, 18, 22, 8904, 16, 64, 23, 280, 286, 2060, 10714, 10297, 49, 968, 486, 455, 33809, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dec() { use crate::impls::RijndaelCbc; use crate::paddings::ZeroPadding; let key = "osu!-scoreburgr---------20210520".as_bytes().into(); let iv = vec![ 240, 124, 26, 154, 27, 186, 98, 170, 95, 190, 213, 103, 13, 128, 39, 59, 217, 84, 68, 144, 173, 93, 117, 132, 3...
rust_cleaned_test_functions.jsonl/82901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1085 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13783, 368, 341, 262, 990, 17717, 486, 6383, 82, 486, 49, 3172, 303, 5891, 34, 8904, 280, 262, 990, 17717, 486, 79, 718, 819, 486, 17999, 21616, 401, 262, 1077, 1376, 284, 330, 436, 84, 0, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_round_int_str() { let cases = vec![ ("123", '1', "123"), ("123", '4', "123"), ("123", '5', "124"), ("123", '6', "124"), ("999", '6', "1000"), ("998", '6', "999"), ("989", '6', "990"), ("989898...
rust_cleaned_test_functions.jsonl/48545
{ "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, 29896, 4042, 2895, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 16, 17, 18, 497, 364, 16, 516, 330, 16, 17, 18, 4461, 310, 3489, 16, 17, 18, 497, 364, 19, 516, 330, 16, 17, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_pick_author() { let rights = vec![("0", 1), ("1", 2), ("2", 5)]; let config = EpochConfiguration::new(rights); let mut hits = HashMap::new(); for seed in 20..(20 + config.total_votes) { let author = config.pick_author(seed as u64); *hits.entry(author).or_insert(0...
rust_cleaned_test_functions.jsonl/115167
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58168, 22938, 368, 341, 262, 1077, 3188, 284, 7486, 20703, 445, 15, 497, 220, 16, 701, 3489, 16, 497, 220, 17, 701, 3489, 17, 497, 220, 20, 12587, 262, 1077, 2193, 284, 87379, 7688, 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...
2
#[test] fn test_tokenize_message_type() { let schema = " message schema { required int32 a; optional binary c (UTF8); required group d { required int32 a; optional binary c (UTF8); } required group e (LIST) { repeated group list { requi...
rust_cleaned_test_functions.jsonl/37567
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 543 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86508, 6462, 1819, 368, 341, 286, 1077, 10802, 284, 6228, 262, 1943, 10802, 341, 414, 2567, 526, 18, 17, 264, 280, 414, 10101, 7868, 272, 320, 8561, 23, 317, 414, 2567, 1874, 294, 341, 286, 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...
2
#[test] fn test_is_valid_move() { let mut game = Game::new(n!("player1").into(), n!("player2").into()); assert_eq!(game.is_valid_move(0, 0), true); assert_eq!(game.is_valid_move(1, 1), true); assert_eq!(game.is_valid_move(2, 2), true); assert_eq!(game.is_valid_move(3, 3),...
rust_cleaned_test_functions.jsonl/43530
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 8337, 17134, 368, 341, 286, 1077, 5206, 1809, 284, 4050, 486, 931, 1445, 17223, 3434, 16, 1827, 18122, 1507, 308, 17223, 3434, 17, 1827, 18122, 1423, 286, 2060, 10714, 10297, 5804, 2079, 833...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iterator_flat_map() { let xs = [0, 3, 6]; let ys = [0, 1, 2, 3, 4, 5, 6, 7, 8]; let it = xs.iter().flat_map(|&x| count(x, 1).take(3)); let mut i = 0; for x in it { assert_eq!(x, ys[i]); i += 1; } assert_eq!(i, ys.len()); }
rust_cleaned_test_functions.jsonl/61230
{ "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, 13491, 49556, 5376, 368, 341, 262, 1077, 11943, 284, 508, 15, 11, 220, 18, 11, 220, 21, 935, 262, 1077, 31810, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_max_buffer() { let batch_msg = Track { user: User::UserId { user_id: String::from_utf8(vec![b'a'; 1024 * 30]).unwrap(), }, ..Default::default() }; let mut batcher = Batcher::new(None); batcher.without_auto_times...
rust_cleaned_test_functions.jsonl/35281
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 7776, 368, 341, 286, 1077, 7162, 6483, 284, 19785, 341, 310, 1196, 25, 2657, 486, 13504, 341, 394, 1196, 842, 25, 923, 486, 1499, 39453, 23, 25592, 20703, 65, 25184, 6967, 220, 16, 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...
4
#[test] fn test_sub() { for elm in SUM_TRIPLES.iter() { let (a_vec, b_vec, c_vec) = *elm; let a = BigInt::from_slice(Plus, a_vec); let b = BigInt::from_slice(Plus, b_vec); let c = BigInt::from_slice(Plus, c_vec); let (na, nb, nc) = (-&a, -&b, -...
rust_cleaned_test_functions.jsonl/90167
{ "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, 5228, 368, 341, 286, 369, 42205, 304, 30735, 6410, 3298, 14017, 19471, 368, 341, 310, 1077, 320, 64, 13251, 11, 293, 13251, 11, 272, 13251, 8, 284, 353, 23162, 280, 310, 1077, 264, 284, 62608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transactional_single_window() -> Result<()> { let mut op = select_stmt_from_query( r#" define tumbling window w2 with size = 2 end; select aggr::stats::count() from in[w2] into out; "#, )?; ...
rust_cleaned_test_functions.jsonl/81925
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 774 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 278, 19487, 12571, 368, 1464, 5714, 71698, 341, 286, 1077, 5206, 1179, 284, 3293, 21824, 5673, 5738, 1006, 310, 435, 2, 698, 310, 6979, 15394, 9695, 3241, 289, 17, 198, 310, 448, 198, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_returns_err_when_invalid_line() { let tp = TokenParser::new("1 2 3"); assert!(tp.token::<u8>(1, 1).is_err()); }
rust_cleaned_test_functions.jsonl/96294
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58900, 9266, 47636, 31433, 6528, 368, 341, 286, 1077, 18101, 284, 9660, 6570, 486, 931, 445, 16, 220, 17, 220, 18, 3071, 286, 2060, 10297, 790, 14416, 27638, 84, 23, 2235, 16, 11, 220, 16, 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
#[test] fn test_merge_unreal_logs() { let logs = br##"Log file open, 10/29/18 17:56:37 [2018.10.29-16.56.38:332][ 0]LogGameplayTags: Display: UGameplayTagsManager::DoneAddingNativeTags. DelegateIsBound: 0 [2018.10.29-16.56.39:332][ 0]LogStats: UGameplayTagsManager::ConstructGameplayTagTree: ImportINI ...
rust_cleaned_test_functions.jsonl/107425
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 544 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 4907, 7951, 42899, 368, 341, 286, 1077, 18422, 284, 1411, 565, 1, 2201, 1034, 1787, 11, 220, 16, 15, 14, 17, 24, 14, 16, 23, 220, 16, 22, 25, 20, 21, 25, 18, 22, 198, 58, 17, 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_validate_transaction() { let (config, keypair) = get_test_config(); let vm_validator = TestValidator::new(&config); let address = account_config::association_address(); let program = encode_transfer_program(&address, 100); let signed_txn = transaction_test_helpers::get_test_...
rust_cleaned_test_functions.jsonl/90957
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 28884, 368, 341, 262, 1077, 320, 1676, 11, 1376, 12670, 8, 284, 633, 4452, 5332, 543, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 2099, 1676, 626, 262, 1077, 2621, 284, 2692, 533...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_query_params() { let url = url::Url::parse("http://is24.de/test?a=a&b=c").unwrap(); let query_params = extract_query_params(&url); assert_eq!(vec![("a".to_string(), "a".to_string()), ("b".to_string(), "c".to_string())], query_params) }
rust_cleaned_test_functions.jsonl/114226
{ "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, 39123, 5738, 6745, 368, 341, 220, 1077, 2515, 284, 2515, 486, 2864, 486, 6400, 445, 1254, 1110, 285, 17, 19, 2285, 12697, 98461, 24239, 5, 65, 19535, 1827, 15454, 543, 220, 1077, 3239, 6745, 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_node_name() { assert_eq!(div().node_name(), "DIV"); assert_eq!(text("x").node_name(), "#text"); assert_eq!(document_fragment().node_name(), "#document-fragment"); assert_eq!(doc_type().node_name(), "svg:svg"); assert_eq!(processing_instruction("foo", "bar"...
rust_cleaned_test_functions.jsonl/33759
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 1269, 368, 341, 286, 2060, 10714, 10297, 611, 1005, 3509, 1269, 1507, 330, 38827, 797, 286, 2060, 10714, 10297, 1318, 445, 87, 1827, 3509, 1269, 1507, 5869, 1318, 797, 286, 2060, 10714, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unsecure_inverses_secure() { let array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]; let expected = array.clone(); let actual = CompositeKey::unsecure(&CompositeKey::secure(a...
rust_cleaned_test_functions.jsonl/23604
{ "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, 4907, 25132, 1243, 3004, 288, 73088, 368, 341, 286, 1077, 1334, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 11, 220, 24, 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_cofactor() { let mut rng = XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); let a = G2::random(&mut rng); assert!(bool::from(a.is_torsion_free())); let mut ...
rust_cleaned_test_functions.jsonl/42355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 1055, 5621, 368, 341, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 486, 1499, 33809, 8956, 310, 220, 15, 87, 20, 24, 11, 220, 15, 87, 21, 17, 11, 220, 15, 42459, 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...
1
#[test] fn test_escaped() { use escaped as e; assert_eq!(e(""), ""); assert_eq!(e("a"), "a"); assert_eq!(e("\n"), "\\n"); assert_eq!(e("\t"), "\\t"); assert_eq!(e("\r"), "\\r"); assert_eq!(e("'"), "'"); assert_eq!(e("\""), "\\\""); assert_e...
rust_cleaned_test_functions.jsonl/118683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 65826, 368, 341, 286, 990, 27783, 438, 384, 280, 286, 2060, 10714, 10297, 68, 86076, 14498, 286, 2060, 10714, 10297, 68, 445, 64, 3975, 330, 64, 797, 286, 2060, 10714, 10297, 68, 4921, 77, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_step_ratio() { let transform_rk = arr2( &[[0., 0., 1., -2.], [0., 1., 0., 2.], [-1., 0., 0., 7.], [0., 0., 0., 1.]] ); let key_depth = 2.0; let x_key = arr1(&[2.0, 2.0]); let ref_depth = 3.0; ...
rust_cleaned_test_functions.jsonl/73551
{ "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, 11946, 19917, 368, 341, 286, 1077, 5165, 1710, 74, 284, 2890, 17, 1006, 310, 609, 15505, 15, 2572, 220, 15, 2572, 220, 16, 2572, 481, 17, 13, 1259, 1060, 508, 15, 2572, 220, 16, 2572, 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...
1
#[test] fn test_buffered_reader_seek() { let inner: &[u8] = &[5, 6, 7, 0, 1, 2, 3, 4]; let mut reader = BufReader::with_capacity(2, io::Cursor::new(inner)); assert_eq!(reader.seek(SeekFrom::Start(3)).ok(), Some(3)); assert_eq!(reader.fill_buf().ok(), Some(&[0, 1][..])); ...
rust_cleaned_test_functions.jsonl/12404
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 325 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 291, 22306, 74473, 368, 341, 286, 1077, 9179, 25, 44590, 84, 23, 60, 284, 44590, 20, 11, 220, 21, 11, 220, 22, 11, 220, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_straight_flush_beats_four_of_a_kind() { test( &vec!["4S 5H 5S 5D 5C", "7S 8S 9S 6S 10S"], &vec!["7S 8S 9S 6S 10S"], ) }
rust_cleaned_test_functions.jsonl/121284
{ "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, 2895, 7386, 39213, 21263, 1862, 56142, 3575, 4306, 33162, 368, 341, 262, 1273, 1006, 286, 609, 4083, 0, 1183, 19, 50, 220, 20, 39, 220, 20, 50, 220, 20, 35, 220, 20, 34, 497, 330, 22, 50, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_numbers() { let mut decoder = Decoder::new(from_str("3").unwrap()); let v: f64 = Decodable::decode(&mut decoder).unwrap(); assert_eq!(v, 3.0); let mut decoder = Decoder::new(from_str("3.1").unwrap()); let v: f64 = Decodable::decode(&mut decoder).un...
rust_cleaned_test_functions.jsonl/111029
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 565 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 32964, 368, 341, 286, 1077, 5206, 24551, 284, 50472, 486, 931, 17016, 2895, 445, 18, 1827, 15454, 1423, 286, 1077, 348, 25, 282, 21, 19, 284, 3714, 69129, 486, 18196, 2099, 6984, 24551, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iter() { let mut grid = Grid::new(Line(5), Column(5), 0, 0); for i in 0..5 { for j in 0..5 { grid[Line(i)][Column(j)] = i * 5 + j; } } let mut iter = grid.iter_from(Point { line: 4, col: Column(0) }); assert_eq!(None, iter.prev()); assert_eq!...
rust_cleaned_test_functions.jsonl/43119
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 473 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 368, 341, 262, 1077, 5206, 5827, 284, 10587, 486, 931, 84462, 7, 20, 701, 9332, 7, 20, 701, 220, 15, 11, 220, 15, 317, 262, 369, 600, 304, 220, 15, 496, 20, 341, 286, 369, 502, 304,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_rev_reg_def_json() { init!("ledger"); let attrs = r#"["address1","address2","city","state","zip"]"#; let (_, _, _, _, _, rev_reg_id) = ::utils::libindy::anoncreds::tests::create_and_store_credential_def(attrs, true); let rev_reg_id = rev_reg_id.un...
rust_cleaned_test_functions.jsonl/76656
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 38082, 4920, 7844, 9455, 368, 341, 286, 2930, 17223, 50704, 797, 286, 1077, 16204, 284, 435, 55543, 1183, 4995, 16, 2198, 4995, 17, 2198, 8926, 2198, 2454, 2198, 9964, 1341, 57676, 280, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vector_close_to_zero() { let threshold = 3_f64 * f64::EPSILON; let vector = Vector3::new(f64::EPSILON, 0.0, 0.0); let expected = None; let result = Unit::try_from_value(vector, threshold); assert_eq!(result, expected); }
rust_cleaned_test_functions.jsonl/21686
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12247, 12704, 2346, 19359, 368, 341, 262, 1077, 12171, 284, 220, 18, 761, 21, 19, 353, 282, 21, 19, 486, 45177, 55016, 280, 262, 1077, 4621, 284, 4196, 18, 486, 931, 955, 21, 19, 486, 45177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_panic_if_environment_undefined() { let result = catch_unwind(|| { get_mandatory_env_string("NON_EXISTENCE_ENV_VAR"); }); assert!(result.is_err()); }
rust_cleaned_test_functions.jsonl/49949
{ "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, 620, 31270, 11119, 51774, 62, 9614, 368, 341, 286, 1077, 1102, 284, 2287, 4907, 19154, 79453, 341, 310, 633, 717, 62088, 15879, 3904, 445, 29563, 49049, 10150, 22027, 25750, 797, 286, 1625, 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 ]
2
#[test] fn test_log_exec_multiple() { let l = Log::<Operation>::default(); let o = [Operation::Read, Operation::Write(119)]; let mut s = 0; let mut f = |op: Operation, _i: usize| match op { Operation::Read => s += 121, Operation::Write(v) => s += v, ...
rust_cleaned_test_functions.jsonl/101057
{ "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, 5224, 18430, 45233, 368, 341, 286, 1077, 326, 284, 2835, 27638, 8432, 6831, 2258, 543, 286, 1077, 297, 284, 508, 8432, 486, 4418, 11, 16730, 486, 7985, 7, 16, 16, 24, 12587, 286, 1077, 5206, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_memory() { let region_size = 0x400; let regions = vec![ (GuestAddress(0x0), region_size), (GuestAddress(0x1000), region_size), ]; let mut iterated_regions = Vec::new(); let gm = Arc::new(GuestMemoryMmap::from_ranges(&regions).unwrap...
rust_cleaned_test_functions.jsonl/125221
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 566 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19195, 368, 341, 286, 1077, 5537, 2368, 284, 220, 15, 87, 19, 15, 15, 280, 286, 1077, 13604, 284, 7486, 90515, 310, 320, 37804, 4286, 7, 15, 87, 15, 701, 5537, 2368, 1326, 310, 320, 37804, 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_custom_error_decode() { use num_traits::FromPrimitive; fn pretty_err<T>(err: InstructionError) -> String where T: 'static + std::error::Error + DecodeError<T> + FromPrimitive, { if let InstructionError::CustomError(code) = err { ...
rust_cleaned_test_functions.jsonl/74412
{ "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, 15875, 4096, 15227, 368, 341, 286, 990, 1629, 39693, 486, 3830, 33313, 280, 286, 5168, 5020, 9266, 3125, 2235, 615, 25, 29051, 1454, 8, 1464, 923, 198, 286, 1380, 198, 310, 350, 25, 364, 1978, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_replace() { let mut data = HashMap::new(); data.insert("name","lyf".to_string()); data.insert("id","123".to_string()); assert_eq!(replace_named("/path1/{name}/hello/{id}/res", &data), "/path1/lyf/hello/123/res"); assert_eq!(replace_named("/{name}/{id}", &data), "/lyf/123");...
rust_cleaned_test_functions.jsonl/37692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10633, 368, 341, 262, 1077, 5206, 821, 284, 10528, 486, 931, 543, 262, 821, 7030, 445, 606, 2198, 398, 69, 3263, 983, 3904, 1423, 262, 821, 7030, 445, 307, 2198, 16, 17, 18, 3263, 983, 3904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_oleaut32() { test_file( &format!("{}/oleaut32.dll/BCDE805BC4000/oleaut32.dll", MS), TestFlags::NO_MULTIPLICITY, ); }
rust_cleaned_test_functions.jsonl/127349
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1263, 2717, 18, 17, 368, 341, 286, 1273, 2458, 1006, 310, 609, 2243, 88928, 4472, 1263, 2717, 18, 17, 22200, 14, 4897, 1150, 23, 15, 20, 4897, 19, 15, 15, 15, 14, 1263, 2717, 18, 17, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_refresh_stake() { let (mut driver, mut gov, neuron) = create_mature_neuron(); let nid = neuron.id.unwrap(); let neuron = gov.get_neuron_mut(&nid).unwrap(); let account = neuron.account.clone(); // 'now'. neuron .configure( &*TEST_NEURON_1_OWNER_P...
rust_cleaned_test_functions.jsonl/42503
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 921 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42076, 1261, 726, 368, 341, 262, 1077, 320, 6984, 5579, 11, 5206, 47625, 11, 48284, 8, 284, 1855, 717, 1568, 13925, 36090, 543, 262, 1077, 70939, 284, 48284, 1764, 55395, 543, 262, 1077, 48284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lookup_derefs() -> TestResult { let p = polar(); p.load_str( r#"f(x) if x = y and g(y); g(y) if new Foo().get(y) = y;"#, )?; let q = p.new_query("f(1)", false)?; let mut foo_lookups = vec![term!(1)]; let mock_foo = |_, _, _, args: Option<Vec<Term>>, _| ...
rust_cleaned_test_functions.jsonl/68116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27464, 814, 485, 3848, 368, 1464, 3393, 2077, 341, 262, 1077, 281, 284, 24660, 543, 262, 281, 5104, 2895, 1006, 286, 435, 55543, 69, 2075, 8, 421, 856, 284, 379, 323, 342, 7021, 317, 1843, 342...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rod_cutting_recursive() { assert_eq!( 8, rod_cutting_recursive(&mut vec![1, 2, 3, 4, 5, 6, 7, 8], 8) ); assert_eq!( 22, rod_cutting_recursive(&mut vec![1, 5, 8, 9, 10, 17, 17, 20], 8) ); assert_eq!(13, rod_cu...
rust_cleaned_test_functions.jsonl/56982
{ "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, 62, 23505, 41317, 1280, 66242, 368, 341, 286, 2060, 10714, 33673, 310, 220, 23, 345, 310, 20589, 41317, 1280, 66242, 2099, 6984, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 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_request_with_an_apns_expiration() { let builder = PlainNotificationBuilder::new("test"); let payload = builder.build( "a_test_id", NotificationOptions { apns_expiration: Some(420), ..Default::default() }, ...
rust_cleaned_test_functions.jsonl/109655
{ "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, 7893, 6615, 12008, 21093, 4412, 2702, 28479, 368, 341, 286, 1077, 7363, 284, 43199, 11196, 3297, 486, 931, 445, 1944, 3071, 286, 1077, 7729, 284, 7363, 13239, 1006, 310, 330, 64, 4452, 842, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_network_address_parse_success() { use super::Protocol::*; let pubkey_str = "080e287879c918794170e258bfaddd75acac5b3e350419044655e4983a487120"; let pubkey = x25519::PublicKey::from_encoded_string(pubkey_str).unwrap(); let noise_addr_str = format!( "/dn...
rust_cleaned_test_functions.jsonl/4278
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1282 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20966, 6744, 21039, 18632, 368, 341, 286, 990, 2256, 486, 20689, 79304, 286, 1077, 95116, 2895, 284, 330, 15, 23, 15, 68, 17, 23, 22, 23, 22, 24, 66, 24, 16, 23, 22, 24, 19, 16, 22, 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_ease_point_in_expo() { let start = Point { x: 0.0, y: 0.0 }; let end = Point { x: 1.0, y: 1.0 }; assert_eq!(ease_point(ease_in_expo, start, end, 1.0), end); assert_eq!(ease_point(ease_in_expo, start, end, 0.0), start); }
rust_cleaned_test_functions.jsonl/40076
{ "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, 2204, 519, 6085, 1243, 2702, 5368, 368, 341, 286, 1077, 1191, 284, 5126, 314, 856, 25, 220, 15, 13, 15, 11, 379, 25, 220, 15, 13, 15, 2605, 286, 1077, 835, 284, 5126, 314, 856, 25, 220, 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_first() { let sc = CONTEXT.clone(); let col1 = vec![1, 2, 3, 4]; let col1_rdd = sc.clone().parallelize(col1, 4); let taken_1 = col1_rdd.first(); assert!(taken_1.is_ok()); let col2: Vec<i32> = vec![]; let col2_rdd = sc.parallelize(col2, 4); let taken_0 = col2_rdd...
rust_cleaned_test_functions.jsonl/27942
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12978, 368, 341, 262, 1077, 1136, 284, 87336, 15997, 543, 262, 1077, 1375, 16, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 262, 1077, 1375, 16, 1710, 631, 284, 1136, 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_update_fee_that_funder_cannot_afford() { let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]); let nodes = create_network(2, &node_cfgs, &node_chanmgrs); let channel_value = 1888...
rust_cleaned_test_functions.jsonl/28283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 955 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 34305, 70197, 761, 7995, 666, 3401, 48914, 539, 368, 341, 10217, 26023, 1645, 18343, 82, 284, 1855, 45552, 1645, 18343, 82, 7, 17, 317, 10217, 2436, 18343, 82, 284, 1855, 5084, 18343, 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...
1
#[test] fn test_min_idle() { let mut event_loop = Runtime::new().unwrap(); let pool = event_loop .block_on(lazy(|| { Pool::builder() .max_size(5) .min_idle(Some(2)) .build(OkManager::<FakeConnection>::new()) })) .unwrap(...
rust_cleaned_test_functions.jsonl/127893
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 861 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7260, 47810, 368, 341, 262, 1077, 5206, 1538, 17198, 284, 10954, 486, 931, 1005, 15454, 543, 262, 1077, 7314, 284, 1538, 17198, 198, 286, 659, 4574, 4470, 2333, 13619, 79453, 341, 310, 22728, 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...
6
#[test] fn test_analyze_object_with_implicit_keys() { let b = ast::BaseNode::default(); let pkg = ast::Package { base: b.clone(), path: "path".to_string(), package: "main".to_string(), files: vec![ast::File { base: b.clone(), ...
rust_cleaned_test_functions.jsonl/61559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2531 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12008, 55856, 5314, 6615, 62, 30940, 12631, 368, 341, 286, 1077, 293, 284, 11763, 486, 3978, 1955, 486, 2258, 543, 286, 1077, 24793, 284, 11763, 486, 13100, 341, 310, 2331, 25, 293, 15997, 3148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_date32_fmt_debug() { let arr: PrimitiveArray<Date32Type> = vec![12356, 13548, -365].into(); assert_eq!( "PrimitiveArray<Date32>\n[\n 2003-10-31,\n 2007-02-04,\n 1969-01-01,\n]", format!("{:?}", arr) ); }
rust_cleaned_test_functions.jsonl/27288
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 18, 17, 38128, 15446, 368, 341, 286, 1077, 2890, 25, 51460, 1857, 98879, 18, 17, 929, 29, 284, 7486, 20703, 16, 17, 18, 20, 21, 11, 220, 16, 18, 20, 19, 23, 11, 481, 18, 21, 20, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_binary_array_from_incorrect_list_array() { let values: [u32; 12] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]; let values_data = ArrayData::builder(DataType::UInt32) .len(12) .add_buffer(Buffer::from(values[..].to_byte_slice())) .add_chi...
rust_cleaned_test_functions.jsonl/11626
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 361 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37839, 2368, 31761, 3858, 5673, 1243, 19928, 2019, 3858, 368, 341, 286, 1077, 2750, 25, 508, 84, 18, 17, 26, 220, 16, 17, 60, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 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_use_cache() { test_with_wasm( include_bytes!("./fixtures/use_cache/use_cache.wasm"), hex!("ed4b9d1b"), hex!("928b2036"), ); }
rust_cleaned_test_functions.jsonl/122572
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15951, 11529, 368, 341, 262, 1273, 6615, 1670, 10530, 1006, 286, 2924, 12524, 0, 13988, 45247, 62272, 11529, 62272, 11529, 1418, 10530, 4461, 286, 12371, 17223, 291, 19, 65, 24, 67, 16, 65, 4461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_part2_ex8() { let actual = part2(&parse("9C0141080250320F1802104A08")); assert_eq!(actual, 1); }
rust_cleaned_test_functions.jsonl/21398
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 17, 2702, 23, 368, 341, 286, 1077, 5042, 284, 949, 17, 2099, 6400, 445, 24, 34, 15, 16, 19, 16, 15, 23, 15, 17, 20, 15, 18, 17, 15, 37, 16, 23, 15, 17, 16, 15, 19, 32, 15, 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
#[test] fn test_from_rotation() { let axis = Unit::from_value(Vector3::unit_z()); let angle = Degrees(90_f64); let isometry = Isometry3::from_axis_angle(&axis, angle); let vector = Vector3::unit_x(); let expected = Vector3::unit_y(); let result = isometry.transfor...
rust_cleaned_test_functions.jsonl/77223
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 44813, 368, 341, 286, 1077, 8024, 284, 7954, 486, 1499, 3142, 20258, 18, 486, 3843, 6415, 1423, 286, 1077, 9210, 284, 92901, 7, 24, 15, 761, 21, 19, 317, 286, 1077, 374, 6988, 284, 2160,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_rtl() { assert_eq!(Level(0).is_rtl(), false); assert_eq!(Level(1).is_rtl(), true); assert_eq!(Level(10).is_rtl(), false); assert_eq!(Level(11).is_rtl(), true); assert_eq!(Level(124).is_rtl(), false); assert_eq!(Level(125).is_rtl(), true); }
rust_cleaned_test_functions.jsonl/31773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 1710, 11544, 368, 341, 286, 2060, 10714, 10297, 4449, 7, 15, 568, 285, 1710, 11544, 1507, 895, 317, 286, 2060, 10714, 10297, 4449, 7, 16, 568, 285, 1710, 11544, 1507, 830, 317, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_embed_field_value_limit() { let mut embed = base_embed(); embed.fields.push(EmbedField { inline: true, name: "a".to_owned(), value: str::repeat("a", 1024), }); assert!(super::embed(&embed).is_ok()); embed.fields.push(Em...
rust_cleaned_test_functions.jsonl/4831
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 316 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24007, 5013, 3142, 14763, 368, 341, 286, 1077, 5206, 11579, 284, 2331, 24007, 543, 286, 11579, 12920, 2552, 7, 25486, 1877, 341, 310, 7381, 25, 830, 345, 310, 829, 25, 330, 64, 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_subst_template_type_parm_type_vs_const_when_non_const_template_param() -> Result<()> { // This test (and // `test_subst_template_type_parm_type_vs_const_when_const_template_param`) // verifies that `importer.cc` preserves `const` qualifier attached *both* to // QualType associate...
rust_cleaned_test_functions.jsonl/37180
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1368 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 267, 8693, 1819, 97705, 1819, 42434, 13610, 47636, 21637, 13610, 8693, 4090, 368, 1464, 5714, 71698, 341, 262, 442, 1096, 1273, 320, 437, 198, 262, 442, 1565, 1944, 5228, 267, 8693, 1819, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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