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_remove_dir() { let path = Path::new("testdir"); let mut mock = MockFileBackend::new(); mock.expect_remove_dir() .with(eq(path)) .times(1) .returning(|x| Ok(())); let fs = FileSystem { inner: Rc::new(mock), }...
rust_cleaned_test_functions.jsonl/100445
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 4334, 368, 341, 286, 1077, 1815, 284, 7933, 486, 931, 445, 1944, 3741, 797, 286, 1077, 5206, 7860, 284, 14563, 1703, 29699, 486, 931, 543, 286, 7860, 25952, 18193, 4334, 741, 310, 659, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_a_gt_0_and_b_lt_1() { assert_expression!( "A > 0 AND B < 1", Expression::BinaryExpression( Operator::And, Box::new( Expression::BinaryExpression( Operator::Grea...
rust_cleaned_test_functions.jsonl/102655
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 760 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4306, 37479, 62, 15, 8378, 880, 39164, 62, 16, 368, 341, 310, 2060, 28068, 33673, 394, 330, 32, 861, 220, 15, 3567, 425, 366, 220, 16, 756, 394, 16378, 486, 21338, 9595, 1006, 503, 28498, 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_from_str() -> Result<(), ParseError> { assert_eq!( "NDLS r1".parse(), Ok(GenomeBuild::new(String::from("NDLS"), String::from("r1"))) ); assert_eq!("".parse::<GenomeBuild>(), Err(ParseError::Empty)); assert_eq!("NDLS".parse::<GenomeBuild>()...
rust_cleaned_test_functions.jsonl/32840
{ "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, 2895, 368, 1464, 5714, 68843, 14775, 1454, 29, 341, 286, 2060, 10714, 33673, 310, 330, 8065, 7268, 435, 16, 3263, 6400, 3148, 310, 7622, 6699, 268, 635, 11066, 486, 931, 2242, 486, 1499, 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_merge_kind_merge() { let lamports = 424242; let meta = Meta { rent_exempt_reserve: 42, ..Meta::default() }; let stake = Stake { delegation: Delegation { stake: 4242, ..Delegation::default() ...
rust_cleaned_test_functions.jsonl/104321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1316 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 33162, 20888, 368, 341, 286, 1077, 31603, 3394, 284, 220, 19, 17, 19, 17, 19, 17, 280, 286, 1077, 8823, 284, 15819, 341, 310, 8016, 95736, 89591, 25, 220, 19, 17, 345, 310, 5241, 12175,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generate_descriptor() -> Result<()> { let config = config::io::read_config("./tests/test_config_CWL_validated.yml")?; generate_descriptor(&config)?; Ok(()) }
rust_cleaned_test_functions.jsonl/128938
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 33774, 368, 1464, 5714, 71698, 341, 286, 1077, 2193, 284, 2193, 486, 815, 486, 878, 5332, 13988, 23841, 12697, 5332, 920, 61139, 8337, 657, 33936, 899, 37445, 286, 6923, 33774, 2099, 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 ]
3
#[test] fn test_set_roots() { let blockstore_path = get_tmp_ledger_path!(); let blockstore = Blockstore::open(&blockstore_path).unwrap(); let chained_slots = vec![0, 2, 4, 7, 12, 15]; assert_eq!(blockstore.last_root(), 0); blockstore.set_roots(&chained_slots).unwrap(); ...
rust_cleaned_test_functions.jsonl/7606
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 26608, 2412, 368, 341, 286, 1077, 2504, 4314, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 2099, 4574, 4314, 2638, 568, 15454, 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...
2
#[test] fn test_bad_inputs() { assert!(BitstringLabelGenerator::new(1, 4).is_err()); assert!(BitstringLabelGenerator::new(4, 0).is_err()); }
rust_cleaned_test_functions.jsonl/68785
{ "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, 34199, 28557, 368, 341, 286, 2060, 10297, 8344, 917, 2476, 12561, 486, 931, 7, 16, 11, 220, 19, 568, 285, 9266, 1423, 286, 2060, 10297, 8344, 917, 2476, 12561, 486, 931, 7, 19, 11, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_copy_exec_to_chroot() { // Create a standard environment. let arg_parser = build_arg_parser(); let mut args = arg_parser.arguments().clone(); // Create tmp resources for `exec_file` and `chroot_base`. let some_file = TempFile::new_with_prefix("/tmp/").unw...
rust_cleaned_test_functions.jsonl/24737
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 909 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 18430, 2346, 4138, 2888, 368, 341, 286, 442, 4230, 264, 5297, 4573, 624, 286, 1077, 1392, 18517, 284, 1936, 6057, 18517, 543, 286, 1077, 5206, 2827, 284, 1392, 18517, 52415, 1005, 19982, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_quadtree_insert_query() { let foos = create_foo(0..9); let mut result: Vec<Foo> = Vec::new(); let (w, h) = (40, 40); let bb = Rectangle::new(0, 0, w, h); let mut qt = QuadTree::new(bb, 4); let bb = Rectangle::new(0, 0, w+10, h+10); insert_foo(&mut qt, &...
rust_cleaned_test_functions.jsonl/97936
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68631, 9344, 17678, 5738, 368, 8022, 262, 1077, 11756, 436, 284, 1855, 761, 2624, 7, 15, 496, 24, 736, 262, 1077, 5206, 1102, 25, 11312, 30499, 2624, 29, 284, 11312, 486, 931, 7317, 262, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_euclidean_vector_norm() { let v = vector![3.0, 4.0]; assert_scalar_eq!(VectorNorm::norm(&Euclidean, &v), 5.0, comp = float); }
rust_cleaned_test_functions.jsonl/6892
{ "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, 2204, 84, 50078, 12247, 19181, 368, 341, 286, 1077, 348, 284, 4621, 20703, 18, 13, 15, 11, 220, 19, 13, 15, 935, 286, 2060, 41652, 10714, 10297, 3781, 24993, 486, 20011, 2099, 54118, 50078, 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
#[test] fn test_to_hex_trait() { assert_eq!(vec![0, 0, 0, 0].to_hex(), "00000000"); assert_eq!(vec![10, 11, 12, 13].to_hex(), "0a0b0c0d"); assert_eq!([0, 0, 0, 255].to_hex(), "000000ff"); }
rust_cleaned_test_functions.jsonl/15827
{ "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, 2346, 32655, 78491, 368, 341, 197, 6948, 10714, 10297, 4083, 20703, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 936, 983, 32655, 1507, 330, 15, 15, 15, 15, 15, 15, 15, 15, 797, 197, 6948, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_password_length() { let small_password = b"pass"; let long_password = b"this is a very long and complicated password that is, I hope,\ longer than the length of the actual hash. It also contains we1rd pa$$w0rd///s.\\"; let small_password_hash: Vec<u8> = hash_passwo...
rust_cleaned_test_functions.jsonl/50061
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8950, 10122, 5118, 368, 341, 262, 1077, 2613, 10122, 284, 293, 1, 6385, 876, 262, 1077, 1293, 10122, 284, 293, 1, 574, 374, 264, 1602, 1293, 323, 16965, 3552, 429, 374, 11, 358, 3900, 42871, 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_rc_unsized() { unsafe { let pointer_ops = DefaultPointerOps::<Rc<_>>::new(); let p = Rc::new(1) as Rc<dyn Debug>; let a: *const dyn Debug = &*p; let b: (usize, usize) = mem::transmute(a); let r = pointer_ops.into_raw(p); ...
rust_cleaned_test_functions.jsonl/82637
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30299, 4907, 82, 1506, 368, 341, 286, 19860, 341, 310, 1077, 7445, 21959, 284, 7899, 9084, 38904, 27638, 49, 66, 32399, 77595, 931, 543, 310, 1077, 281, 284, 81463, 486, 931, 7, 16, 8, 438, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_account_one() { let paths = get_tmp_accounts_path!(); let accounts = AccountsDB::new(0, &paths.paths); let mut pubkeys: Vec<Pubkey> = vec![]; create_account(&accounts, &mut pubkeys, 0, 1, 0, 0); let account = accounts.load(0, &pubkeys[0], true).unwrap(); ...
rust_cleaned_test_functions.jsonl/77667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 11667, 368, 341, 286, 1077, 12716, 284, 633, 16125, 55665, 2638, 0, 543, 286, 1077, 9618, 284, 40655, 3506, 486, 931, 7, 15, 11, 609, 21623, 65345, 317, 286, 1077, 5206, 6675, 10563, 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_fuzz_match_len() { let mut rng = rand::thread_rng(); for _ in 0..10_000 { let (x, y) = (random_path(&mut rng), random_path(&mut rng)); let min_len = min(x.len(), y.len()); let start = rng.gen::<u16>() % min_len; let match_len = x.ma...
rust_cleaned_test_functions.jsonl/124135
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 852 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 8889, 10708, 6043, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 369, 716, 304, 220, 15, 496, 16, 15, 62, 15, 15, 15, 341, 310, 1077, 320, 87, 11, 379, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_hex() { let raw = vec![1,2,3,255,42,23]; assert_eq!(botan::hex_encode(&raw).unwrap(), "010203FF2A17"); assert_eq!(botan::hex_decode("010203FF2A17").unwrap(), raw); }
rust_cleaned_test_functions.jsonl/95296
{ "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, 32655, 368, 341, 262, 1077, 7112, 284, 7486, 20703, 16, 11, 17, 11, 18, 11, 17, 20, 20, 11, 19, 17, 11, 17, 18, 935, 262, 2060, 10714, 10297, 6331, 276, 486, 17308, 11224, 2099, 1041, 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_cfg_or() { with_globals(|| { let mut x = Cfg::True; x |= Cfg::False; assert_eq!(x, Cfg::True); x = word_cfg("test"); x |= Cfg::True; assert_eq!(x, Cfg::True); x = word_cfg("test2"); x |= Cfg...
rust_cleaned_test_functions.jsonl/53555
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1001 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18343, 8734, 368, 341, 286, 448, 58775, 79453, 341, 310, 1077, 5206, 856, 284, 356, 4817, 486, 2514, 280, 310, 856, 8662, 356, 4817, 486, 4049, 280, 310, 2060, 10714, 10297, 87, 11, 356, 4817, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generate_files() -> Result<()> { let config = config::io::read_config("./tests/test_config_CWL_validated.yml")?; let files = generate_files(&config)?; let expect = serde_json::from_str::<Vec<trs::types::ToolFile>>( r#" [ { "path": "https://raw.githubuser...
rust_cleaned_test_functions.jsonl/128939
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 679 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 10931, 368, 1464, 5714, 71698, 341, 286, 1077, 2193, 284, 2193, 486, 815, 486, 878, 5332, 13988, 23841, 12697, 5332, 920, 61139, 8337, 657, 33936, 899, 37445, 286, 1077, 3542, 284, 6923, 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...
3
#[test] fn test_push_data_stat() { let recv = [ 0x2, 0x86, 0xBE, 0x0, 0xAA, 0x55, 0x5A, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7B, 0x22, 0x73, 0x74, 0x61, 0x74, 0x22, 0x3A, 0x7B, 0x22, 0x74, 0x69, 0x6D, 0x65, 0x22, 0x3A, 0x22, 0x32, 0x30, 0x32, 0x30, 0x2D, 0x30, 0x33, 0x2D, 0x30, 0x34, 0x20, 0x3...
rust_cleaned_test_functions.jsonl/62771
{ "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, 14218, 1769, 16271, 368, 341, 262, 1077, 27006, 284, 2278, 286, 220, 15, 87, 17, 11, 220, 15, 87, 23, 21, 11, 220, 15, 85449, 11, 220, 15, 87, 15, 11, 220, 15, 60051, 11, 220, 15, 87, 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...
3
#[test] fn test_nirmala() { run_test( &TEST_DATA, "harfbuzz/good-nirmala.pa", "indic/Nirmala.ttf", &[JOINER_GLYPH_INDEX], 398, ); }
rust_cleaned_test_functions.jsonl/91154
{ "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, 1089, 2853, 6053, 368, 341, 394, 1598, 4452, 1006, 503, 609, 10033, 7896, 345, 503, 330, 12982, 10798, 8889, 4846, 1386, 5279, 2853, 6053, 56875, 756, 503, 330, 85084, 20290, 2853, 6053, 45192, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_t1() { let env = env_1!(); let (r, sioe) = do_execute!( &env, &["-e", "a", "-f", "1", "--color", "always"], "abcabca" ); assert_eq!(buff!(sioe, serr), ""); assert_eq!(buff!(sioe, sout), "<S>1<E>bc<S>1<E>bc<S>1<E>\n"); ...
rust_cleaned_test_functions.jsonl/76267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 16, 368, 341, 286, 1077, 6105, 284, 6105, 62, 16, 0, 543, 286, 1077, 320, 81, 11, 274, 815, 68, 8, 284, 653, 44329, 33673, 310, 609, 3160, 345, 310, 609, 1183, 12, 68, 497, 330, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_batch_fn_error() { let loader = Loader::<i32, i32, MyError, BadBatcher>::new(BadBatcher).cached(); let v1 = executor::block_on(loader.load(1)); assert_eq!(LoadError::BatchFn(MyError::Unknown), v1.err().unwrap()); }
rust_cleaned_test_functions.jsonl/18906
{ "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, 14534, 15246, 4096, 368, 341, 262, 1077, 16047, 284, 27811, 27638, 72, 18, 17, 11, 600, 18, 17, 11, 3017, 1454, 11, 11461, 21074, 261, 6831, 931, 5349, 329, 21074, 261, 568, 32918, 543, 262, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sort_trait_voracious_stable() { // No need to test Vec<bool> since it is a dedicated sort. for size in [0, 1, 200, 400, 500, 20_000, 40_000, 90_000, 200_000, 3_100_000].iter() { helper_sort(false, &|a| a.voracious_stable_sort(), generators_char(), *size); helper_sort(fals...
rust_cleaned_test_functions.jsonl/43436
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 78491, 2273, 269, 19430, 1261, 480, 368, 341, 262, 442, 2308, 1184, 311, 1273, 11312, 17028, 29, 2474, 432, 374, 264, 12235, 3378, 624, 262, 369, 1379, 304, 508, 15, 11, 220, 16, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_param_empty() { let input = buffer("(param)"); let output = FunctionType::Input(vec![]); assert_eq!(parser::parse::<FunctionType>(&input).unwrap(), output); }
rust_cleaned_test_functions.jsonl/102968
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4090, 15124, 368, 341, 286, 1077, 1946, 284, 4147, 31732, 903, 20996, 286, 1077, 2550, 284, 5712, 929, 486, 2505, 25592, 0, 1294, 626, 286, 2060, 10714, 10297, 9657, 486, 6400, 27638, 5152, 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
#[test] fn test_vcx_schema_get_attrs() { let _setup = SetupMocks::init(); let cb = return_types_u32::Return_U32_U32_STR::new().unwrap(); let data = r#"["height","name","sex","age"]"#; assert_eq!(vcx_schema_get_attributes(cb.command_handle, ...
rust_cleaned_test_functions.jsonl/118205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 466 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 25371, 3062, 39578, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 9858, 284, 470, 9763, 7300, 18, 17, 486, 5598, 6665, 18, 17, 6665, 18, 17, 7159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_facet_collector_topk_tie_break() -> crate::Result<()> { let mut schema_builder = Schema::builder(); let facet_field = schema_builder.add_facet_field("facet", INDEXED); let schema = schema_builder.build(); let index = Index::create_in_ram(schema); let docs...
rust_cleaned_test_functions.jsonl/10757
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 636 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41589, 295, 10211, 27669, 10426, 74, 528, 645, 39494, 368, 1464, 17717, 486, 2077, 71698, 341, 286, 1077, 5206, 10802, 28532, 284, 12539, 486, 17850, 543, 286, 1077, 44507, 5013, 284, 10802, 28532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_a_small_bitmap() { let bitmap: Bitmap = vec![1, 99, 1_000].into_iter().collect(); let serialized_buffer = bitmap.serialize(); // we can store 3 pos in a roaring bitmap in 22 bytes // this is compared to storing them as a vec of u32 values which would be 4 * 3 // = 12 bytes assert_eq!(seri...
rust_cleaned_test_functions.jsonl/103102
{ "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, 4306, 31966, 41527, 368, 341, 10217, 19746, 25, 17533, 284, 7486, 20703, 16, 11, 220, 24, 24, 11, 220, 16, 62, 15, 15, 15, 936, 18122, 11723, 1005, 17384, 543, 10217, 32916, 7776, 284, 19746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pessimistic_lock_mode() { let engine = TestEngineBuilder::new().build().unwrap(); let config = Config { scheduler_concurrency: 1024, scheduler_worker_pool_size: 1, scheduler_pending_write_threshold: ReadableSize(100 * 1024 * 1024), ...
rust_cleaned_test_functions.jsonl/113776
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 66733, 4532, 9818, 7302, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 2193, 284, 5532, 341, 310, 28809, 3382, 15973, 25, 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
#[test] fn test_feature_name() { assert_eq!( Package::from("mechiru.type.as").feature_name(), "mechiru-type-as".to_owned() ); }
rust_cleaned_test_functions.jsonl/8974
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17069, 1269, 368, 341, 286, 2060, 10714, 33673, 310, 16906, 486, 1499, 445, 2660, 331, 404, 84, 4852, 5357, 1827, 12753, 1269, 3148, 310, 330, 2660, 331, 404, 84, 10604, 32434, 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
#[test] fn test_uuid_lowerhex() { use super::fmt::Write; let mut buffer = String::new(); let uuid = test_util::new(); check!(buffer, "{:x}", uuid, 36, |c| c.is_lowercase() || c.is_digit(10) || c == '-'); }
rust_cleaned_test_functions.jsonl/17526
{ "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, 25540, 30425, 17308, 368, 341, 286, 990, 2256, 486, 12501, 486, 7985, 401, 286, 1077, 5206, 4147, 284, 923, 486, 931, 543, 286, 1077, 16040, 284, 1273, 18974, 486, 931, 1428, 286, 1779, 10297, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_load_from_csv(){ { let mut file = std::fs::File::create("test.csv").unwrap(); file.write_all("0,0,-,0\n".as_bytes()).unwrap(); file.write_all("1,0,-,1\n".as_bytes()).unwrap(); file.write_all("0,1,-,1\n".as_bytes()).unwrap(); file.write_all("1,1,-,0".as...
rust_cleaned_test_functions.jsonl/84734
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 329 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 5673, 14020, 3032, 262, 341, 286, 1077, 5206, 1034, 284, 1460, 486, 3848, 486, 1703, 486, 3182, 445, 1944, 11219, 1827, 15454, 543, 286, 1034, 3836, 5705, 445, 15, 11, 15, 4999, 11, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_limit_reader_limited() { let mut r = MemReader::new(vec!(0, 1, 2)); { let mut r = LimitReader::new(r.by_ref(), 2); assert_eq!(vec!(0, 1), r.read_to_end().unwrap()); } assert_eq!(vec!(2), r.read_to_end().unwrap()); }
rust_cleaned_test_functions.jsonl/3604
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14763, 22306, 907, 31511, 368, 341, 286, 1077, 5206, 435, 284, 13550, 5062, 486, 931, 25592, 10297, 15, 11, 220, 16, 11, 220, 17, 1106, 286, 341, 310, 1077, 5206, 435, 284, 28008, 5062, 486, 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...
1
#[test] fn test_gen_ascii_str() { let mut r = task_rng(); debug!("{}", r.gen_ascii_str(10u)); debug!("{}", r.gen_ascii_str(10u)); debug!("{}", r.gen_ascii_str(10u)); assert_eq!(r.gen_ascii_str(0u).len(), 0u); assert_eq!(r.gen_ascii_str(10u).len(), 10u); as...
rust_cleaned_test_functions.jsonl/46777
{ "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, 16322, 50238, 2895, 368, 341, 286, 1077, 5206, 435, 284, 3383, 66849, 543, 286, 7390, 79878, 435, 22822, 50238, 2895, 7, 16, 15, 84, 1106, 286, 7390, 79878, 435, 22822, 50238, 2895, 7, 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
#[test] fn test_discards_received() { use crate::types::FromValue; let mut event = Annotated::new(Event { received: FromValue::from_value(Annotated::new(Value::U64(696_969_696_969))), ..Default::default() }); let mut processor = NormalizeProcessor::default(); process_value(...
rust_cleaned_test_functions.jsonl/14104
{ "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, 37745, 2347, 40783, 368, 341, 262, 990, 17717, 486, 9242, 486, 3830, 1130, 280, 262, 1077, 5206, 1538, 284, 1527, 87029, 486, 931, 30469, 341, 286, 3949, 25, 5542, 1130, 486, 1499, 3142, 7, 2082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bytes() { assert_eq!( Scalar::from_bytes(&[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]) .unwrap(), Scalar::zero() ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/14285
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 12524, 368, 341, 286, 2060, 10714, 33673, 310, 35176, 486, 1499, 12524, 2099, 9640, 394, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid() { let result = serde_json::from_str::<Hex>("true").unwrap_err(); assert_eq!( "invalid type: boolean `true`, expected a number or hex string at line 1 column 4", result.to_string() ); }
rust_cleaned_test_functions.jsonl/53238
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 368, 341, 286, 1077, 1102, 284, 61570, 9455, 486, 1499, 2895, 27638, 20335, 13211, 1866, 1827, 15454, 9266, 543, 286, 2060, 10714, 33673, 310, 330, 11808, 943, 25, 2710, 1565, 1866, 7808, 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
#[test] fn test_any_deserialize_string() { let data = r#"{ "string":"hello", "timestamp":"1970-01-01T00:01:39.000000042Z", "boolean":true, "data": { "test_number": 1, "test_bool": true, "test_string": "hi there", ...
rust_cleaned_test_functions.jsonl/45539
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 375 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37248, 15768, 9050, 3904, 368, 341, 262, 1077, 821, 284, 435, 55543, 515, 310, 330, 917, 3252, 14990, 756, 310, 330, 13035, 3252, 16, 24, 22, 15, 12, 15, 16, 12, 15, 16, 51, 15, 15, 25, 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_resolve_dependency_evil_redirect() { let (sources, location) = setup(); let cache = HttpCache::new(&location); let evil_specifier = resolve_url("https://deno.land/x/evil.ts").unwrap(); let mut evil_headers = HashMap::new(); evil_headers .insert("location".to_string(), "...
rust_cleaned_test_functions.jsonl/14297
{ "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, 77291, 62387, 43713, 321, 30043, 368, 341, 262, 1077, 320, 39651, 11, 3728, 8, 284, 6505, 543, 262, 1077, 6500, 284, 4823, 8233, 486, 931, 2099, 2527, 317, 262, 1077, 13962, 13594, 3049, 284, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unary_not_real() { let test_cases = vec![ (None, None), (0.0.into(), Some(1)), (1.0.into(), Some(0)), (0.3.into(), Some(0)), ]; for (arg, expect_output) in test_cases { let output = RpnFnScalarEvaluator::new() ...
rust_cleaned_test_functions.jsonl/29747
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 658, 7913, 15266, 368, 341, 286, 1077, 1273, 41427, 284, 7486, 90515, 310, 320, 4064, 11, 2240, 1326, 310, 320, 15, 13, 15, 39860, 1507, 4329, 7, 16, 6965, 310, 320, 16, 13, 15, 39860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_insert_many() { let mut v: SmallVec<[u8; 8]> = SmallVec::new(); for x in 0..4 { v.push(x); } assert_eq!(v.len(), 4); v.insert_many(1, [5, 6].iter().cloned()); assert_eq!( &v.iter().map(|v| *v).collect::<Vec<_>>(), ...
rust_cleaned_test_functions.jsonl/88148
{ "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, 17678, 22101, 368, 341, 286, 1077, 5206, 348, 25, 14994, 10050, 66746, 84, 23, 26, 220, 23, 25669, 284, 14994, 10050, 486, 931, 543, 286, 369, 856, 304, 220, 15, 496, 19, 341, 310, 348, 2552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_integer_typedef_usage() -> Result<()> { // This is a regression test. We used to incorrectly desugar typedefs of // builtin types and treat them as if they were the underlying builtin type. // parameter of type `int` instead of `MyTypedef`. This test therefore // checks that...
rust_cleaned_test_functions.jsonl/37203
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 568 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31725, 42111, 4219, 31507, 368, 1464, 5714, 71698, 341, 262, 442, 1096, 374, 264, 30549, 1273, 13, 1205, 1483, 311, 43347, 939, 8566, 13501, 82, 315, 198, 262, 442, 59626, 4494, 323, 4228, 1105, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_h1_body() { let mut srv = TestServer::new(|| { HttpService::build().h1(|_| future::ok::<_, ()>(Response::Ok().body(STR))) }); let response = srv.block_on(srv.get("/").send()).unwrap(); assert!(response.status().is_success()); // read response let bytes = srv.loa...
rust_cleaned_test_functions.jsonl/102548
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 16, 14114, 368, 341, 262, 1077, 5206, 43578, 284, 3393, 5475, 486, 931, 79453, 341, 286, 4823, 1860, 486, 5834, 1005, 71, 16, 22428, 35395, 3853, 486, 562, 27638, 6878, 1719, 2235, 2582, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_vec() { assert_to_bytes!( vec!["a", "b", "c"], &[ 0x03, // list of 3 items 0x01, // string of 1 byte 0x61, // "a" 0x01, // string of 1 byte 0x62, // "b" 0x01, // string...
rust_cleaned_test_functions.jsonl/132560
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 368, 341, 286, 2060, 2346, 12524, 33673, 310, 7486, 0, 1183, 64, 497, 330, 65, 497, 330, 66, 8097, 310, 609, 9640, 394, 220, 15, 87, 15, 18, 11, 442, 1140, 315, 220, 18, 3589, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_test_java() { let string_type = Type::class("java.lang", "String"); let list_type = Type::class("java.util", "List"); let json_creator_type = Type::class("com.fasterxml.jackson.annotation", "JsonCreator"); let list_of_strings = list_type.with_arguments(vec![&strin...
rust_cleaned_test_functions.jsonl/4460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 645 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4452, 77323, 368, 341, 286, 1077, 914, 1819, 284, 3990, 486, 1040, 445, 10042, 8019, 497, 330, 703, 797, 286, 1077, 1140, 1819, 284, 3990, 486, 1040, 445, 10042, 1971, 497, 330, 852, 797, 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_register_unregister_irqfd() { let kvm = Kvm::new().unwrap(); let vm_fd = kvm.create_vm().unwrap(); let evtfd1 = EventFd::new(EFD_NONBLOCK).unwrap(); let evtfd2 = EventFd::new(EFD_NONBLOCK).unwrap(); let evtfd3 = EventFd::new(EFD_NONBLOCK).unwrap(); ...
rust_cleaned_test_functions.jsonl/86841
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 629 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14000, 68992, 22623, 6902, 368, 341, 286, 1077, 94748, 284, 730, 7338, 486, 931, 1005, 15454, 543, 286, 1077, 10995, 17676, 284, 94748, 2520, 39008, 1005, 15454, 543, 286, 1077, 12358, 6902, 16, 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_rename_for_macro_args_rev() { test_rename( r#" macro_rules! foo {($i:ident) => {$i} } fn main() { let a = "test"; foo!(a<|>); }"#, "b", r#" macro_rules! foo {($i:ident) => {$i} } fn main() { let b = "test"; ...
rust_cleaned_test_functions.jsonl/16210
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79399, 5478, 58810, 8384, 38082, 368, 341, 286, 1273, 79399, 1006, 310, 435, 2, 698, 262, 18072, 21407, 0, 15229, 314, 699, 72, 25, 1713, 8, 589, 13924, 72, 92, 456, 262, 5168, 1887, 368, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tuple() { assert_eq!(<(isize)>::max_size(), size_of::<isize>()); assert_eq!(<(isize, isize, isize)>::max_size(), 3 * size_of::<isize>()); assert_eq!(<(isize, ())>::max_size(), size_of::<isize>()); }
rust_cleaned_test_functions.jsonl/24558
{ "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, 21773, 368, 341, 262, 2060, 10714, 10297, 28706, 285, 551, 8, 6831, 2810, 2368, 1507, 1379, 3575, 27638, 285, 551, 32872, 262, 2060, 10714, 10297, 28706, 285, 551, 11, 91373, 11, 91373, 8, 6831, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_punctuator() { assert_eq!(js_parser_rs::parse("{".chars()), Ok(vec![TokenType::LeftBrace])); assert_eq!(js_parser_rs::parse("}".chars()), Ok(vec![TokenType::RightBrace])); assert_eq!(js_parser_rs::parse("[".chars()), Ok(vec![TokenType::LeftBracket])); assert_eq!(js_parser_rs::par...
rust_cleaned_test_functions.jsonl/61522
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1958 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 19931, 45162, 368, 341, 262, 2060, 10714, 10297, 2519, 18517, 47115, 486, 6400, 13976, 3263, 19255, 11858, 7622, 25592, 20703, 75611, 486, 5415, 6828, 578, 14382, 262, 2060, 10714, 10297, 2519, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_function_expression_simple() { let b = ast::BaseNode::default(); let f = FunctionExpr { loc: b.location.clone(), typ: type_info(), params: vec![ FunctionParameter { loc: b.location.clone(), ...
rust_cleaned_test_functions.jsonl/30451
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9174, 28068, 30015, 368, 341, 286, 1077, 293, 284, 11763, 486, 3978, 1955, 486, 2258, 543, 286, 1077, 282, 284, 5712, 16041, 341, 310, 1329, 25, 293, 8219, 15997, 3148, 310, 3582, 25, 943, 3109,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_du_basics_subdir() { let scene = TestScenario::new(util_name!()); let result = scene.ucmd().arg(SUB_DIR).succeeds(); #[cfg(target_os = "linux")] { let result_reference = scene.cmd("du").arg(SUB_DIR).run(); if result_reference.succeeded() { assert_eq!...
rust_cleaned_test_functions.jsonl/23730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 84, 880, 67981, 5228, 3741, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 5231, 262, 1077, 1102, 284, 6109, 56334, 2277, 1005, 858, 3759, 4493, 8291, 568, 82, 29264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_orthographic_fov() { let vfov = Degrees(90.0); let aspect = 800 as f64 / 600 as f64; let near = 1.0; let far = 100.0; let expected = Matrix4x4::new( 2.0 / 100.0, 0.0, 0.0, 0.0, 0.0, 2.0 / 75.0, 0.0, ...
rust_cleaned_test_functions.jsonl/129136
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 393 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 62, 2364, 12679, 761, 859, 368, 341, 286, 1077, 348, 85582, 284, 92901, 7, 24, 15, 13, 15, 317, 286, 1077, 12893, 284, 220, 23, 15, 15, 438, 282, 21, 19, 608, 220, 21, 15, 15, 438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_s3_custom_region_env() { let config = ConfigBuilder::new() .with_log() .with_api() .with_pet() .with_mask() .with_model() .with_metrics() .with_redis() .with_restore() .with_s3() ...
rust_cleaned_test_functions.jsonl/19538
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 430 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 18, 15875, 20627, 15879, 368, 341, 286, 1077, 2193, 284, 5532, 3297, 486, 931, 741, 310, 659, 4197, 5224, 741, 310, 659, 4197, 11697, 741, 310, 659, 4197, 75963, 741, 310, 659, 4197, 9999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_range_scan_accounts() { let (index, mut pubkeys) = setup_accounts_index_keys(3 * ITER_BATCH_SIZE); pubkeys.sort(); run_test_range_indexes(&index, &pubkeys, None, None); run_test_range_indexes(&index, &pubkeys, Some(ITER_BATCH_SIZE), None); run_test_rang...
rust_cleaned_test_functions.jsonl/2226
{ "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, 9698, 28857, 55665, 368, 341, 286, 1077, 320, 1252, 11, 5206, 6675, 10563, 8, 284, 6505, 55665, 3560, 12631, 7, 18, 353, 87816, 74009, 4098, 317, 286, 6675, 10563, 10614, 1428, 286, 1598, 4452, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_recv_slot_entries_1() { let (genesis_config, bank0, tx) = setup_test(); let bank1 = Arc::new(Bank::new_from_parent(&bank0, &Pubkey::default(), 1)); let (s, r) = channel(); let mut last_hash = genesis_config.hash(); assert!(bank1.max_tick_height() > 1); ...
rust_cleaned_test_functions.jsonl/28683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 540 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36118, 27563, 26092, 62, 16, 368, 341, 286, 1077, 320, 77894, 5332, 11, 6073, 15, 11, 9854, 8, 284, 6505, 4452, 1428, 286, 1077, 6073, 16, 284, 19689, 486, 931, 5349, 1180, 486, 931, 5673, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_tomas_fa_1() { let line_1 = Line::<f64>::new( Coordinate { x: -42.0, y: 163.2 }, Coordinate { x: 21.2, y: 265.2 }, ); let line_2 = Line::<f64>::new( Coordinate { x: -26.2, y: 188.7 }, Coordinate { x: 37.0, y: 290.7 }, ...
rust_cleaned_test_functions.jsonl/129774
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 22267, 95864, 62, 16, 368, 341, 286, 1077, 1555, 62, 16, 284, 7083, 27638, 69, 21, 19, 6831, 931, 1006, 310, 41035, 314, 856, 25, 481, 19, 17, 13, 15, 11, 379, 25, 220, 16, 21, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_consensus_observer_mode_storage_error() { let num_nodes = 4; let (env, op_tool, backend, _) = launch_swarm_with_op_tool_and_backend(num_nodes, 0); // Kill safety rules storage for validator 1 to ensure it fails on the next epoch change let (node_config, _) = load_node_config(&en...
rust_cleaned_test_functions.jsonl/39708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 744 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31971, 13626, 81912, 7302, 23310, 4096, 368, 341, 262, 1077, 1629, 14896, 284, 220, 19, 280, 262, 1077, 320, 3160, 11, 1179, 22785, 11, 19163, 11, 27439, 284, 7050, 32581, 2178, 6615, 10287, 22785...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dive_aim() { let input = utils::read_file_lines("input/day2_2.txt".to_string()); assert_eq!(Day2::dive_aim(input), 1759818555); }
rust_cleaned_test_functions.jsonl/55652
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 533, 62, 2640, 368, 341, 286, 1077, 1946, 284, 12439, 486, 878, 2458, 18323, 445, 1355, 44739, 17, 62, 17, 3909, 3263, 983, 3904, 1423, 286, 2060, 10714, 10297, 10159, 17, 486, 67, 533, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_simple_operator_empty_not_to_string() { let query = Operator::Not(Box::new(Operator::And(vec![]))); let json = query.to_string(); let expected = r#"{"$not":{}}"#; assert_eq!(json, expected); }
rust_cleaned_test_functions.jsonl/11875
{ "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, 30015, 40594, 15124, 7913, 2346, 3904, 368, 341, 286, 1077, 3239, 284, 28498, 486, 2623, 67758, 486, 931, 7, 18461, 486, 3036, 25592, 0, 1294, 22525, 286, 1077, 2951, 284, 3239, 2389, 3904, 1428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_frame_header_valid() { // Valid DHCP Header let data = [ 0x01, 0x01, 0x06, 0x00, 0x6e, 0x86, 0x44, 0x4c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...
rust_cleaned_test_functions.jsonl/134185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1899 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8929, 8757, 8337, 368, 341, 286, 442, 7818, 57587, 12104, 198, 286, 1077, 821, 284, 2278, 3374, 310, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 21, 11, 220, 15, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_collision_unless_font_is_included_in_font_set() { let (font_catalog, font_pkgs, product_config) = make_font_db_args(); let font_info_loader = TestFontInfoLoader::new(btreemap! { ("AlphaSans.ttc".to_string(), 0) => FontInfo { char_set: CharSet::new(v...
rust_cleaned_test_functions.jsonl/58068
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 782 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 70375, 4907, 1717, 17451, 6892, 1243, 10181, 1243, 17451, 2602, 368, 341, 286, 1077, 320, 4026, 47310, 11, 3301, 33321, 5857, 11, 1985, 5332, 8, 284, 1281, 17451, 8685, 8384, 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_case0() { assert_eq!( Solution::reorder_log_files(vec_string![ "a1 9 2 3 1", "g1 act car", "zo4 4 7", "ab1 off key dog", "a8 act zoo" ]), vec_string![ "g1 a...
rust_cleaned_test_functions.jsonl/101189
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 341 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 15, 368, 341, 286, 2060, 10714, 33673, 310, 12478, 486, 265, 1358, 5224, 10931, 25592, 3904, 90515, 394, 330, 64, 16, 220, 24, 220, 17, 220, 18, 220, 16, 756, 394, 330, 70, 16, 1160, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_early_at_claim() { with_rewards_default(|set_moment, accounts| { let now = Timestamp::now(); assert_ok!(CrowdloanRewards::initialize_at(Origin::root(), now + 10)); for (picasso_account, remote_account) in accounts.clone().into_iter() { assert_noop!( remote_account.associat...
rust_cleaned_test_functions.jsonl/41086
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 62, 22140, 3752, 84969, 368, 341, 46948, 77997, 9993, 22428, 746, 717, 12913, 11, 9618, 91, 341, 197, 10217, 1431, 284, 32758, 486, 3328, 543, 197, 6948, 19817, 10297, 93926, 67, 38329, 584...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_local_cluster_signature_subscribe() { solana_logger::setup_with_default(RUST_LOG_FILTER); let num_nodes = 2; let cluster = LocalCluster::new_with_equal_stakes(num_nodes, 10_000, 100, SocketAddrSpace::Unspecified); let nodes = cluster.get_node_pubkeys(); // Get non le...
rust_cleaned_test_functions.jsonl/31895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1041 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13564, 28441, 39859, 88935, 368, 341, 262, 2048, 3362, 27413, 486, 15188, 6615, 9993, 2785, 8553, 8419, 23728, 317, 262, 1077, 1629, 14896, 284, 220, 17, 280, 262, 1077, 10652, 4035, 286, 8774, 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...
4
#[test] fn test_iter_values() { with_object(0, |activation, object| { let getter = FunctionObject::function( activation.context.gc_context, Executable::Native(|_avm, _this, _args| Ok(Value::Null)), None, activation.context.avm1....
rust_cleaned_test_functions.jsonl/19718
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 910 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 9146, 368, 341, 286, 448, 5314, 7, 15, 11, 760, 23002, 11, 1633, 91, 341, 310, 1077, 33429, 284, 5712, 1190, 486, 1688, 1006, 394, 15099, 8681, 65554, 8467, 345, 394, 10290, 5922, 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_arch() { assert_eq!("x86_64", get_arch("x86_64-unknown-linux-gnu")); assert_eq!("x86_64", get_arch("amd64")); }
rust_cleaned_test_functions.jsonl/88385
{ "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, 3062, 34330, 368, 341, 262, 2060, 10714, 17223, 87, 23, 21, 62, 21, 19, 497, 633, 34330, 445, 87, 23, 21, 62, 21, 19, 12, 16088, 46375, 85716, 4010, 262, 2060, 10714, 17223, 87, 23, 21, 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
#[test] fn test_bcc() { let mut r = Register::new(); r.set_status_carry(false); bcc(0x10, &mut r); assert_eq!(r.get_PC(), 0x10); r.set_status_carry(true); bcc(0x20, &mut r); assert_ne!(r.get_PC(), 0x20); }
rust_cleaned_test_functions.jsonl/14233
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 638, 368, 341, 262, 1077, 5206, 435, 284, 8451, 486, 931, 543, 262, 435, 980, 4773, 666, 11433, 3576, 317, 262, 293, 638, 7, 15, 87, 16, 15, 11, 609, 6984, 435, 317, 262, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_leq_same_num_digits_false() { // Given: let a = Counter::from(vec![0, 2]); let b = Counter::from(vec![0, 1]); // Then: assert!(!(a <= b)); }
rust_cleaned_test_functions.jsonl/79524
{ "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, 11751, 80, 33574, 4273, 41432, 36015, 368, 341, 310, 442, 16246, 510, 310, 1077, 264, 284, 19735, 486, 1499, 25592, 20703, 15, 11, 220, 17, 2558, 310, 1077, 293, 284, 19735, 486, 1499, 25592, 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
#[test] fn test_prepare_execute() { let db = checked_memory_handle(); db.execute_batch("CREATE TABLE foo(x INTEGER);").unwrap(); let mut insert_stmt = db.prepare("INSERT INTO foo(x) VALUES(?)").unwrap(); assert_eq!(insert_stmt.execute(&[1i32]).unwrap(), 1); assert_eq!(in...
rust_cleaned_test_functions.jsonl/25508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 428 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47460, 44329, 368, 341, 286, 1077, 2927, 284, 10067, 19195, 10630, 543, 286, 2927, 7769, 14534, 445, 22599, 14363, 15229, 2075, 30381, 1215, 1827, 15454, 1428, 286, 1077, 5206, 5656, 21824, 284, 292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mixed_spawn_local_and_spawn() { let pool = TaskPool::new(); let foo = Box::new(42); let foo = &*foo; let local_count = Arc::new(AtomicI32::new(0)); let non_local_count = Arc::new(AtomicI32::new(0)); let outputs = pool.scope(|scope| { ...
rust_cleaned_test_functions.jsonl/81638
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 929 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 3286, 76026, 13564, 8378, 76026, 368, 341, 286, 1077, 7314, 284, 5430, 10551, 486, 931, 1428, 286, 1077, 15229, 284, 8261, 486, 931, 7, 19, 17, 317, 286, 1077, 15229, 284, 609, 9, 7975, 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...
6
#[test] fn test_multi_wildcard_topic() { assert_eq!(topic!("sport/tennis/#"), vec![Level::normal("sport"), Level::normal("tennis"), Level::MultiWildcard] .into()); assert_eq!(topic!("#"), vec![Level::MultiWildcard].into()); assert!("sport/tenni...
rust_cleaned_test_functions.jsonl/79594
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 1670, 695, 4951, 31414, 368, 341, 286, 2060, 10714, 10297, 16411, 17223, 60901, 14, 1960, 25151, 26559, 4461, 4293, 7486, 20703, 4449, 486, 8252, 445, 60901, 3975, 9395, 486, 8252, 445, 1960,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tmp_file_creation_failure() { let test_writeable = TestWriteable{}; let filename = "test_tmp_file_creation_failure_filename".to_string(); let path = "test_tmp_file_creation_failure_dir"; let mut dest_file = PathBuf::from(path); dest_file.push(filename); let mut tmp_file = dest_file.c...
rust_cleaned_test_functions.jsonl/105077
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16125, 2458, 46163, 43618, 368, 341, 197, 10217, 1273, 9165, 480, 284, 3393, 7985, 480, 45982, 197, 10217, 3899, 284, 330, 1944, 16125, 2458, 46163, 43618, 13323, 3263, 983, 3904, 543, 197, 10217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mv_simple_backup() { let (at, mut ucmd) = at_and_ucmd!(); let file_a = "test_mv_simple_backup_file_a"; let file_b = "test_mv_simple_backup_file_b"; at.touch(file_a); at.touch(file_b); ucmd.arg("-b") .arg(file_a) .arg(file_b) .succeeds() .n...
rust_cleaned_test_functions.jsonl/41614
{ "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, 73187, 30015, 44710, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 1034, 4306, 284, 330, 1944, 73187, 30015, 44710, 2458, 4306, 876, 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_publicationproperties_height() { let mut publication: Publication = Publication { publication_type: PublicationType::Pdf, height_mm: Some(100.0), ..Default::default() }; assert_eq!( publication.dimension_error(), Err(ThothError::DimensionDigita...
rust_cleaned_test_functions.jsonl/46234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 424 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27074, 367, 13193, 9561, 368, 341, 262, 1077, 5206, 16599, 25, 56894, 284, 56894, 341, 286, 16599, 1819, 25, 56894, 929, 486, 67596, 345, 286, 2608, 35599, 25, 4329, 7, 16, 15, 15, 13, 15, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_indexed_reader_iter_by_rid_all() { _test_indexed_reader_by_rid_all(&FASTA_FILE, &FAI_FILE, _read_iter_by_rid_all); }
rust_cleaned_test_functions.jsonl/62839
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 291, 22306, 11723, 3710, 1710, 307, 5705, 368, 341, 286, 716, 1944, 3560, 291, 22306, 3710, 1710, 307, 5705, 2099, 59206, 32, 8087, 11, 609, 3627, 40, 8087, 11, 716, 878, 11723, 3710, 1710...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_memory_const() { const XS: [u8; 20] = { let mut xs = [0u8; 20]; let ptr = xs.as_mut_ptr(); unsafe { ptr.write_bytes(5u8, xs.len()); } xs }; assert!(XS == [5u8; 20]); }
rust_cleaned_test_functions.jsonl/18513
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 19195, 13610, 368, 341, 262, 733, 57866, 25, 508, 84, 23, 26, 220, 17, 15, 60, 284, 341, 286, 1077, 5206, 11943, 284, 508, 15, 84, 23, 26, 220, 17, 15, 935, 286, 1077, 10087, 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_chacha_true_values_b() { // Test vector 3 from let seed = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]; let mut rng = ChaChaRng::from_seed(seed); ...
rust_cleaned_test_functions.jsonl/113000
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 524 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4138, 51576, 16082, 9146, 880, 368, 341, 286, 442, 3393, 4621, 220, 18, 504, 8945, 286, 1077, 10320, 284, 508, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_gc() -> Result<()> { let c = Config { read_count: 1, dir: None, max_elements: Some(10), max_bytes: None, flush_on_evnt: None, }; let mut o = Wal::new("test".to_string(), c)?; let wal_uid = 0_u64; ...
rust_cleaned_test_functions.jsonl/594
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1888 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49423, 368, 1464, 5714, 71698, 341, 286, 1077, 272, 284, 5532, 341, 310, 1349, 3180, 25, 220, 16, 345, 310, 5419, 25, 2240, 345, 310, 1932, 22801, 25, 4329, 7, 16, 15, 1326, 310, 1932, 12524, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_syntax() { let msg = r#" syntax = "proto3"; "#; let mess = parse_opt(msg, |p| p.next_syntax()); assert_eq!(Syntax::Proto3, mess); }
rust_cleaned_test_functions.jsonl/70447
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 78894, 368, 341, 286, 1077, 3750, 284, 435, 55543, 220, 19482, 284, 330, 15110, 18, 5123, 220, 5869, 280, 286, 1077, 9435, 284, 4715, 15032, 8119, 11, 760, 79, 91, 281, 4529, 78894, 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
#[test] fn test_lev_distance() { use std::char::{ from_u32, MAX }; // Test bytelength agnosticity for c in (0u32..MAX as u32) .filter_map(|i| from_u32(i)) .map(|i| i.to_string()) { assert_eq!(lev_distance(&c, &c), 0); } let a = "\nMäry häd ä little lämb\n\n...
rust_cleaned_test_functions.jsonl/51584
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 3449, 19464, 368, 341, 262, 990, 1460, 486, 1762, 22964, 504, 7300, 18, 17, 11, 8334, 2605, 262, 442, 3393, 553, 22924, 996, 933, 31457, 61691, 198, 262, 369, 272, 304, 320, 15, 84, 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_chunksator() { use core::iter::ExactSizeIterator; let v = &[1,2,3,4,5]; assert_eq!(v.chunks(2).len(), 3); let chunks: &[&[_]] = &[&[1,2], &[3,4], &[5]]; assert_eq!(v.chunks(2).collect::<Vec<_>>(), chunks); let chunks: &[&[_]] = &[&[1,2,3], &[4,5...
rust_cleaned_test_functions.jsonl/111431
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 550 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65470, 850, 368, 341, 286, 990, 6200, 486, 2015, 486, 57954, 1695, 11951, 401, 286, 1077, 348, 284, 44590, 16, 11, 17, 11, 18, 11, 19, 11, 20, 4821, 286, 2060, 10714, 10297, 85, 5329, 15296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_connection() { let case = async { let client_id = Uuid::from_u128(159); let mock_returning = |ret: FallibleResult| { let mut mock = MockClient::new(); mock.expect_init() .with(eq(client_id)) ....
rust_cleaned_test_functions.jsonl/14008
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 445 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15866, 368, 341, 286, 1077, 1142, 284, 3312, 341, 310, 1077, 2943, 842, 284, 547, 2423, 486, 1499, 7300, 16, 17, 23, 7, 16, 20, 24, 317, 310, 1077, 7860, 12511, 287, 284, 760, 2122, 25, 1478...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_day7() { let crab_swarm = CrabSwarm::new("16,1,2,0,4,2,7,1,2,14").expect("parse error"); assert_eq!(37, crab_swarm.best_alignment()); assert_eq!(168, crab_swarm.best_alignment_for_crab_engine()); }
rust_cleaned_test_functions.jsonl/7859
{ "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, 16763, 22, 368, 341, 286, 1077, 59412, 32581, 2178, 284, 74104, 13218, 2178, 486, 931, 445, 16, 21, 11, 16, 11, 17, 11, 15, 11, 19, 11, 17, 11, 22, 11, 16, 11, 17, 11, 16, 19, 1827, 1711...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rauw() { let context = Context::create(); let builder = context.create_builder(); let module = context.create_module("my_mod"); let void_type = context.void_type(); let fn_type = void_type.fn_type(&[], false); let fn_val = module.add_function("my_fn", fn_type, None); ...
rust_cleaned_test_functions.jsonl/125604
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59969, 42110, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 543, 262, 1077, 7363, 284, 2266, 2520, 28532, 543, 262, 1077, 4688, 284, 2266, 2520, 10750, 445, 2408, 7480, 797, 262, 1077, 737, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let content = "abc".as_bytes(); // here we test if the cache releases // mmaps correctly. let mut mmap_directory = MmapDirectory::create_from_tempdir().unwrap(); let num_paths = 10; let paths: Vec<PathBuf> = (0..num_paths) .m...
rust_cleaned_test_functions.jsonl/12997
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 828 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11529, 368, 341, 286, 1077, 2213, 284, 330, 13683, 3263, 300, 12524, 1428, 286, 442, 1588, 582, 1273, 421, 279, 6500, 19232, 198, 286, 442, 296, 17640, 12440, 624, 286, 1077, 5206, 70866, 14846, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gen_modules_list() { let lints = vec![ Lint::new("should_assert_eq", "group1", "abc", None, "module_name"), Lint::new("incorrect_stuff", "group3", "abc", None, "another_module"), ]; let expected = GENERATED_FILE_COMMENT.to_string() + &[...
rust_cleaned_test_functions.jsonl/73824
{ "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, 16322, 15848, 2019, 368, 341, 286, 1077, 326, 21042, 284, 7486, 90515, 310, 444, 396, 486, 931, 445, 5445, 16553, 10714, 497, 330, 4074, 16, 497, 330, 13683, 497, 2240, 11, 330, 4352, 1269, 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, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_push_update() { let mut crds = Crds::default(); let mut push = CrdsGossipPush::default(); let mut ci = ContactInfo::new_localhost(&solana_sdk::pubkey::new_rand(), 0); ci.wallclock = 0; let value_old = CrdsValue::new_unsigned(CrdsData::ContactInfo(c...
rust_cleaned_test_functions.jsonl/10957
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 364 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 14218, 8882, 368, 341, 286, 1077, 5206, 1560, 5356, 284, 4553, 5356, 486, 2258, 543, 286, 1077, 5206, 4484, 284, 4553, 5356, 38, 41473, 16644, 486, 2258, 543, 286, 1077, 5206, 11825, 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_send_transaction_exceeded_maximum_ancestors_count() { let suite = setup(); let store = suite.shared.store(); let tip = store.get_tip_header().unwrap(); let tip_block = store.get_block(&tip.hash()).unwrap(); let mut parent_tx_hash = tip_block.transactions().get(0).unwrap().ha...
rust_cleaned_test_functions.jsonl/18642
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 931 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13565, 28884, 2702, 94206, 93581, 62, 681, 267, 1087, 3180, 368, 341, 262, 1077, 16182, 284, 6505, 1428, 262, 1077, 3553, 284, 16182, 18062, 16114, 543, 262, 1077, 11552, 284, 3553, 670, 48014, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_device() { let mut oauth = SpotifyOAuth::default() .scope("user-read-playback-state") .build(); match get_token(&mut oauth) { Some(token_info) => { let client_credential = SpotifyClientCredentials::default() .token_info(token_info) ...
rust_cleaned_test_functions.jsonl/79266
{ "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, 9204, 368, 341, 262, 1077, 5206, 46415, 284, 40537, 57850, 486, 2258, 741, 286, 659, 4186, 445, 872, 28806, 26544, 1419, 20733, 1138, 286, 659, 5834, 543, 262, 2432, 633, 6458, 2099, 6984, 46415, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_new() { let vec = LocalVec::<u32, 4>::new(); assert_eq!(vec.len(), 0); assert_eq!(vec.capacity(), 4); }
rust_cleaned_test_functions.jsonl/126338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 368, 341, 286, 1077, 7486, 284, 8774, 10050, 27638, 84, 18, 17, 11, 220, 19, 6831, 931, 543, 286, 2060, 10714, 10297, 4083, 19406, 1507, 220, 15, 317, 286, 2060, 10714, 10297, 4083, 59168,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_sandbox_unexpected_message_when_drop() { let s = timestamping_sandbox(); let (public, secret) = gen_keypair(); s.recv(&Connect::new( &public, s.a(VALIDATOR_2), s.time().into(), &user_agent::get(), &secret, ...
rust_cleaned_test_functions.jsonl/6675
{ "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, 643, 31536, 4907, 7325, 6462, 47636, 29584, 368, 341, 286, 1077, 274, 284, 11441, 287, 643, 31536, 543, 286, 1077, 320, 888, 11, 6234, 8, 284, 4081, 3097, 12670, 543, 286, 274, 40433, 2099, 1461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_data_empty() { let mut r: Table<()> = Table::default(); assert_eq!(r.is_data_empty(), true); r.add_row(vec![Entry::Nil].into_iter()); assert_eq!(r.is_empty(), false); assert_eq!(r.is_data_empty(), true); r.set_header(false); assert_eq!(r.is_data_empty(), false); ...
rust_cleaned_test_functions.jsonl/4482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 1769, 15124, 368, 341, 262, 1077, 5206, 435, 25, 6633, 71698, 284, 6633, 486, 2258, 543, 262, 2060, 10714, 10297, 81, 2079, 1769, 15124, 1507, 830, 626, 262, 435, 1364, 8530, 25592, 20703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_push_issued_amount() { let mut s = Serializer::new(); s.push_issued_amount("1200.34", "USD", "rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq"); let h = hex::encode(s.to_vec()); assert_eq!(h, "d54443b3ef4f480000000000000000000000000055534400000000002adb0b3959d60a6e699...
rust_cleaned_test_functions.jsonl/10438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 62, 58226, 13471, 368, 341, 286, 1077, 5206, 274, 284, 58822, 486, 931, 543, 286, 274, 2552, 62, 58226, 13471, 445, 16, 17, 15, 15, 13, 18, 19, 497, 330, 26749, 497, 330, 81, 26682, 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_store_imm() { disasm!( "entrypoint: stw [r1+0x2], 3 sth [r1+0x2], 3 stb [r1+0x2], 3 stdw [r1+0x2], 3 " ); }
rust_cleaned_test_functions.jsonl/68767
{ "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, 14809, 71370, 368, 341, 262, 827, 10530, 33673, 286, 330, 4085, 2768, 510, 262, 357, 86, 508, 81, 16, 10, 15, 87, 17, 1125, 220, 18, 198, 262, 357, 71, 508, 81, 16, 10, 15, 87, 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_bank_forks() { let GenesisBlockInfo { genesis_block, .. } = create_genesis_block(10_000); let bank = Bank::new(&genesis_block); let mut bank_forks = BankForks::new(0, bank); let child_bank = Bank::new_from_parent(&bank_forks[0u64], &Pubkey::default(), 1); ...
rust_cleaned_test_functions.jsonl/36517
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 234 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 761, 73302, 368, 341, 286, 1077, 40788, 4713, 1731, 314, 59366, 7113, 11, 5241, 335, 284, 1855, 16322, 13774, 7113, 7, 16, 15, 62, 15, 15, 15, 317, 286, 1077, 6073, 284, 8547, 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_read_cancel() { let mut r = Reader::new(); r.state = State::Len; let v = vec![0u8, 0, 0, 13, 8, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1]; let mut data = Cursor::new(&v); // Test one shot match r.readable(&mut data) { RRes::Success(Message::C...
rust_cleaned_test_functions.jsonl/46452
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 391 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 28895, 368, 341, 286, 1077, 5206, 435, 284, 25166, 486, 931, 543, 286, 435, 3467, 284, 3234, 486, 11271, 280, 286, 1077, 348, 284, 7486, 20703, 15, 84, 23, 11, 220, 15, 11, 220, 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...
2
#[test] fn test_serde() { let mut map = AHashMap::new(); map.insert("for".to_string(), 0); map.insert("bar".to_string(), 1); let serialization = serde_json::to_string(&map).unwrap(); let deserialization: AHashMap<String, u64> = serde_json::from_str(&serialization).unwrap(...
rust_cleaned_test_functions.jsonl/15214
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 450, 368, 341, 286, 1077, 5206, 2415, 284, 362, 18497, 486, 931, 543, 286, 2415, 7030, 445, 1958, 3263, 983, 3904, 1507, 220, 15, 317, 286, 2415, 7030, 445, 2257, 3263, 983, 3904, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stream_round_trip_export() -> Result<()> { let array = Int32Array::from(vec![Some(2), None, Some(1), None]); let array: Arc<dyn Array> = Arc::new(array); _test_round_trip_export(vec![array.clone(), array.clone(), array]) }
rust_cleaned_test_functions.jsonl/107883
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12673, 29896, 63883, 27114, 368, 1464, 5714, 71698, 341, 286, 1077, 1334, 284, 1333, 18, 17, 1857, 486, 1499, 25592, 20703, 8373, 7, 17, 701, 2240, 11, 4329, 7, 16, 701, 2240, 2558, 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_parse_is_empty() { assert_parses_cb( &[ ( Ok(vec![1, 2, 3]), b"\x30\x09\x02\x01\x01\x02\x01\x02\x02\x01\x03", ), (Ok(vec![]), b"\x30\x00"), ( Err(ParseE...
rust_cleaned_test_functions.jsonl/40839
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 560 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 6892, 15124, 368, 341, 286, 2060, 77113, 288, 16450, 1006, 310, 609, 9640, 394, 2399, 503, 7622, 25592, 20703, 16, 11, 220, 17, 11, 220, 18, 17036, 503, 293, 11934, 87, 18, 15, 3462, 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...
4
#[test] fn test_query_matches_with_top_level_repetitions() { allocations::record(|| { let language = get_language("javascript"); let query = Query::new( language, r#" (comment)+ @doc "#, ) .unwrap(); assert_query_matche...
rust_cleaned_test_functions.jsonl/25159
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 413 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 38344, 6615, 10426, 8274, 1288, 6862, 5930, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 14073, 797, 286, 1077, 3239, 284, 11361, 486, 931, 1006, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_extend() { let mut b = MutableBitmap::new(); let iter = (0..512).map(|i| i % 6 == 0); unsafe { b.extend_from_trusted_len_iter_unchecked(iter) }; let b: Bitmap = b.into(); for (i, v) in b.iter().enumerate() { assert_eq!(i % 6 == 0, v); ...
rust_cleaned_test_functions.jsonl/64521
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70265, 368, 341, 286, 1077, 5206, 293, 284, 31143, 16773, 486, 931, 1428, 286, 1077, 5367, 284, 320, 15, 496, 20, 16, 17, 568, 2186, 22428, 72, 91, 600, 1018, 220, 21, 621, 220, 15, 317, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2