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_garbagedata_pubkey() {
static PK_BYTES_04: [u8; 60] = [
0x04, 0x9b, 0x63, 0x47, 0x39, 0x85, 0x05, 0xf5, 0xec, 0x93, 0x82,
0x6d, 0xc6, 0x1c, 0x19, 0xf4, 0x7c, 0x66, 0xc0, 0x28, 0x3e, 0xe9,
0xbe, 0x98, 0x0e, 0x29, 0xce, 0x32, 0x5a, 0x0f, 0x46, 0x79, 0xef... | rust_cleaned_test_functions.jsonl/43960 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 421
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
1889,
75270,
3279,
459,
34014,
792,
368,
341,
286,
1099,
24826,
40705,
62,
15,
19,
25,
508,
84,
23,
26,
220,
21,
15,
60,
284,
2278,
310,
220,
15,
87,
15,
19,
11,
220,
15,
87,
24,
65,
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_whnf() {
use self::Subst::*;
use self::Type::*;
assert_eq!(
Type::forall(Type::forall(Var(2))).whnf(Subst::cons(Type::closure(Var(0), Id), Shift)),
(
Type::forall(Type::forall(Var(2))),
Subst::cons(Type::closure(Var... | rust_cleaned_test_functions.jsonl/35850 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1139
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
36225,
31737,
368,
341,
286,
990,
656,
486,
3136,
267,
56162,
286,
990,
656,
486,
929,
79304,
286,
2060,
10714,
33673,
310,
3990,
486,
33629,
22498,
486,
33629,
7,
3962,
7,
17,
36334,
1312,
3173... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_defer() {
let should_panic = Rc::new(AtomicBool::new(true));
let sp = Rc::clone(&should_panic);
defer!(assert!(!sp.load(Ordering::SeqCst)));
should_panic.store(false, Ordering::SeqCst);
} | rust_cleaned_test_functions.jsonl/10230 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 122
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
7844,
261,
368,
341,
286,
1077,
1265,
620,
31270,
284,
81463,
486,
931,
7,
65857,
11233,
486,
931,
3715,
1106,
286,
1077,
978,
284,
81463,
486,
19982,
2099,
5445,
620,
31270,
317,
286,
17956,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_morechildren() {
let mut things: Vec<Thing> = deser_from_file!("morechildren", Vec<Thing>);
let listing: Listing = Thing::try_into(things.remove(1)).unwrap();
let mut things2: Vec<Thing> = listing.children;
let more: More = Thing::try_into(things2.remove(things2.len() - 1)).unwra... | rust_cleaned_test_functions.jsonl/96469 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 143
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
36664,
5864,
368,
341,
262,
1077,
5206,
2513,
25,
11312,
27,
52940,
29,
284,
96955,
5673,
2458,
17223,
6384,
5864,
497,
11312,
27,
52940,
42013,
262,
1077,
14838,
25,
38764,
284,
37200,
486,
1539,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_unique_numbers() {
let v = to_value(vec![3, -1, 3, 3, 5, 2, 5, 4]).unwrap();
let args = HashMap::new();
let result = unique(&v, &args);
assert!(result.is_ok());
assert_eq!(result.unwrap(), to_value(vec![3, -1, 5, 2, 4]).unwrap());
} | rust_cleaned_test_functions.jsonl/62056 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 153
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21218,
32964,
368,
341,
286,
1077,
348,
284,
311,
3142,
25592,
20703,
18,
11,
481,
16,
11,
220,
18,
11,
220,
18,
11,
220,
20,
11,
220,
17,
11,
220,
20,
11,
220,
19,
10697,
15454,
543,
286,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_bpf_loader_upgradeable_set_buffer_authority() {
let instruction = bincode::serialize(&UpgradeableLoaderInstruction::SetAuthority).unwrap();
let authority_address = Pubkey::new_unique();
let authority_account = AccountSharedData::new_ref(1, 0, &Pubkey::new_unique());
... | rust_cleaned_test_functions.jsonl/35386 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 3365
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
880,
15897,
22139,
67794,
480,
2602,
7776,
22938,
487,
368,
341,
286,
1077,
7600,
284,
9544,
1851,
486,
24166,
2099,
43861,
480,
9181,
16664,
486,
1649,
45532,
568,
15454,
543,
286,
1077,
11198,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_windowsator() {
let v = &[1,2,3,4];
let wins: &[&[_]] = &[&[1,2], &[2,3], &[3,4]];
assert_eq!(v.windows(2).collect::<Vec<_>>(), wins);
let wins: &[&[_]] = &[&[1,2,3], &[2,3,4]];
assert_eq!(v.windows(3).collect::<Vec<_>>(), wins);
assert!(v.window... | rust_cleaned_test_functions.jsonl/111429 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 471
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
58220,
850,
368,
341,
286,
1077,
348,
284,
44590,
16,
11,
17,
11,
18,
11,
19,
4821,
286,
1077,
14816,
25,
44590,
5,
13496,
5053,
284,
44590,
5,
58,
16,
11,
17,
1125,
44590,
17,
11,
18,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_many_insertions() {
const ITER: usize = 100;
run_test!(|client, conn| {
// Get the number of tasks initially.
let init_num = Task::all(&conn).await.unwrap().len();
let mut descs = Vec::new();
for i in 0..ITER {
// Issue a request to insert a ... | rust_cleaned_test_functions.jsonl/115174 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 577
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
22101,
17678,
908,
368,
341,
262,
733,
87816,
25,
22301,
284,
220,
16,
15,
15,
401,
262,
1598,
4452,
10297,
91,
2972,
11,
4534,
91,
341,
286,
442,
2126,
279,
1372,
315,
9079,
15102,
624,
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... | 3 |
#[test]
fn test_xlatb() {
test_instr(
16,
|a| a.xlatb().unwrap(),
Instruction::with1(Code::Xlat_m8, MemoryOperand::with_base_index(Register::BX, Register::AL)).unwrap(),
TestInstrFlags::NONE,
DecoderOptions::NONE,
);
test_instr(
32,
|a| a.xlatb().unwrap(),
Instruction::with1(Code::Xlat_m8, Me... | rust_cleaned_test_functions.jsonl/71836 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 291
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
3212,
5524,
65,
368,
341,
18185,
62574,
1006,
197,
197,
16,
21,
345,
197,
197,
91,
64,
91,
264,
1993,
5524,
65,
1005,
15454,
3148,
197,
197,
16664,
486,
4197,
16,
79321,
486,
55,
5524,
717,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_from_iter() {
let a = Variant::tuple_from_iter(["foo".to_variant(), 1u8.to_variant(), 2i32.to_variant()]);
assert_eq!(a.type_().as_str(), "(syi)");
assert_eq!(a.n_children(), 3);
assert_eq!(a.try_child_get::<String>(0), Ok(Some(String::from("foo"))));
... | rust_cleaned_test_functions.jsonl/30222 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 231
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21773,
5673,
11723,
368,
341,
286,
1077,
264,
284,
39292,
486,
24590,
5673,
11723,
19065,
7975,
3263,
983,
46112,
1507,
220,
16,
84,
23,
2389,
46112,
1507,
220,
17,
72,
18,
17,
2389,
46112,
5788... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_dont_need_username_password_if_ssh() {
let (_td, repo) = repo_init().unwrap();
let root = repo.path().parent().unwrap();
let repo_path: &RepoPath =
&root.as_os_str().to_str().unwrap().into();
//TODO:
repo.remote(DEFAULT_REMOTE_NAME, "git@github.com:user/repo")
.unwrap();
a... | rust_cleaned_test_functions.jsonl/101754 | {
"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,
814,
544,
71506,
21588,
10122,
11119,
82805,
368,
341,
197,
10217,
5453,
1296,
11,
15867,
8,
284,
15867,
6137,
1005,
15454,
543,
197,
10217,
3704,
284,
15867,
3875,
1005,
3765,
1005,
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,
1... | 1 |
#[test]
fn test_parse_inlinee_lines_with_files() {
let data = &[
1, 0, 0, 0, 235, 102, 9, 0, 232, 37, 0, 0, 19, 0, 0, 0, 1, 0, 0, 0, 216, 26, 0, 0, 240,
163, 7, 0, 176, 44, 0, 0, 120, 0, 0, 0, 1, 0, 0, 0, 120, 3, 0, 0,
];
let inlinee_lines = DebugInlineeLinesSubs... | rust_cleaned_test_functions.jsonl/28452 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 610
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
41871,
68,
18323,
6615,
10931,
368,
341,
286,
1077,
821,
284,
609,
9640,
310,
220,
16,
11,
220,
15,
11,
220,
15,
11,
220,
15,
11,
220,
17,
18,
20,
11,
220,
16,
15,
17,
11,
220,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_swap() {
let mut d: VecDeque<_> = (0..5).collect();
d.pop_front();
d.swap(0, 3);
assert_eq!(d.iter().cloned().collect::<Vec<_>>(), [4, 2, 3, 1]);
} | rust_cleaned_test_functions.jsonl/73701 | {
"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,
40991,
368,
341,
262,
1077,
5206,
294,
25,
11312,
73891,
32399,
29,
284,
320,
15,
496,
20,
568,
17384,
543,
262,
294,
8288,
22926,
543,
262,
294,
54537,
7,
15,
11,
220,
18,
317,
262,
2060,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_license_loading_works_with_no_license() {
let no_license_data = vec![
LicenseData {
name: "no license".to_owned(),
rating: "restricted".to_owned(),
},
];
assert_eq!(load_and_dedup_licenses(""), no_license_data);
assert_eq!(load_and_dedup_licenses("///... | rust_cleaned_test_functions.jsonl/130146 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 153
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
63839,
57726,
11498,
82,
6615,
6536,
63839,
368,
341,
262,
1077,
902,
63839,
1769,
284,
7486,
90515,
414,
1876,
1043,
341,
286,
829,
25,
330,
2152,
5723,
3263,
983,
51973,
3148,
286,
10728,
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_layout() {
assert_eq!(mem::size_of::<vmspace>(), 64);
assert_eq!(mem::align_of::<vmspace>(), 8);
assert_eq!(mem::size_of::<pcred>(), 104);
assert_eq!(mem::align_of::<pcred>(), 8);
assert_eq!(mem::size_of::<kinfo_proc>(), 648);
assert_eq!(mem::ali... | rust_cleaned_test_functions.jsonl/38173 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 247
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
14466,
368,
341,
286,
2060,
10714,
10297,
10536,
486,
2141,
3575,
27638,
85,
1011,
1306,
39019,
220,
21,
19,
317,
286,
2060,
10714,
10297,
10536,
486,
6612,
3575,
27638,
85,
1011,
1306,
39019,
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_examples() {
let first = vec![16, 10, 15, 5, 1, 11, 7, 19, 6, 12, 4];
let second = vec![
28, 33, 18, 42, 31, 14, 46, 20, 48, 47, 24, 23, 49, 45, 19, 38, 39, 11, 1, 32, 25, 35,
8, 17, 7, 9, 4, 2, 34, 10, 3,
];
assert_eq!(solve(&second), 220)... | rust_cleaned_test_functions.jsonl/9194 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 231
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
45279,
368,
341,
286,
1077,
1156,
284,
7486,
20703,
16,
21,
11,
220,
16,
15,
11,
220,
16,
20,
11,
220,
20,
11,
220,
16,
11,
220,
16,
16,
11,
220,
22,
11,
220,
16,
24,
11,
220,
21,
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_encode_array_u8() {
let config = Config::new_empty();
let mut array : Vec<Value> = vec![];
for i in 0 .. 10 {
array.push(Value::U8(i as u8));
}
let mut buffer = Buffer::new();
td_rp::encode_field(&mut buffer, &config, &Value::AU8(array.clone())).unwrap();
le... | rust_cleaned_test_functions.jsonl/121848 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 244
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
11224,
3858,
7300,
23,
368,
341,
262,
1077,
2193,
284,
5532,
486,
931,
15124,
543,
262,
1077,
5206,
1334,
549,
11312,
48325,
29,
284,
7486,
0,
15078,
262,
369,
600,
304,
220,
15,
5241,
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... | 3 |
#[test]
fn test_read() {
let (names, flags, seqs, quals, cigars) = gold();
let mut bam = Reader::from_path(&Path::new("test/test.bam"))
.ok()
.expect("Error opening file.");
let del_len = [1, 1, 1, 1, 1, 100000];
for (i, record) in bam.records().enumerate... | rust_cleaned_test_functions.jsonl/102376 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 941
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6443,
368,
341,
286,
1077,
320,
11400,
11,
8042,
11,
12981,
82,
11,
922,
1127,
11,
81115,
8,
284,
6623,
543,
286,
1077,
5206,
41304,
284,
25166,
486,
1499,
2638,
2099,
1820,
486,
931,
445,
194... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_missing_actor_hint() -> TestResult {
let p = polar();
p.register_constant(sym!("Organization"), term!(true))?;
p.register_constant(sym!("User"), term!(true))?;
let policy = r#"
resource Organization {
roles = ["owner"];
permissions = ["read"];
"read" if "owner";
}
... | rust_cleaned_test_functions.jsonl/68131 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 247
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
40447,
54818,
45825,
368,
1464,
3393,
2077,
341,
262,
1077,
281,
284,
24660,
1428,
262,
281,
9929,
34967,
62512,
17223,
41574,
3975,
4647,
10297,
1866,
593,
37445,
262,
281,
9929,
34967,
62512,
1722... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_clamped_mul_usize_usize_usize() {
assert_eq!(0, ClampedMul::<usize, usize>::clamped_mul(0, 0));
assert_eq!(55, ClampedMul::<usize, usize>::clamped_mul(11, 5));
assert_eq!(usize::MAX, ClampedMul::<usize, usize>::clamped_mul(usize::MAX, usize::MAX));
} | rust_cleaned_test_functions.jsonl/15257 | {
"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,
6794,
32198,
24944,
11306,
551,
11306,
551,
11306,
551,
368,
341,
286,
2060,
10714,
10297,
15,
11,
2435,
32198,
59155,
27638,
51878,
11,
22301,
6831,
564,
32198,
24944,
7,
15,
11,
220,
15,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_mvcc_txn_read() {
test_mvcc_txn_read_imp(b"k1", b"v1");
let long_value = gen_value(b'v', SHORT_VALUE_MAX_LEN + 1);
test_mvcc_txn_read_imp(b"k2", &long_value);
} | rust_cleaned_test_functions.jsonl/23323 | {
"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,
73187,
638,
92299,
6443,
368,
341,
286,
1273,
73187,
638,
92299,
6443,
36788,
1883,
62911,
16,
497,
293,
1,
85,
16,
3071,
286,
1077,
1293,
3142,
284,
4081,
3142,
1883,
6,
85,
516,
64924,
7476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_0005_example_2() {
let s = "cbbd".to_string();
assert_eq!(Solution::longest_palindrome(s), "bb".to_string());
} | rust_cleaned_test_functions.jsonl/5615 | {
"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,
62,
15,
15,
15,
20,
39304,
62,
17,
368,
341,
286,
1077,
274,
284,
330,
66,
6066,
67,
3263,
983,
3904,
1428,
286,
2060,
10714,
10297,
36842,
486,
4825,
477,
73310,
36058,
1141,
701,
330,
6066,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_mismatch() {
let x = b"AGCTCGAGCGATCGATC";
let y = b"TGCTCGATCGATCGATC";
let emission_params = TestEmissionParams { x: x, y: y };
let gap_params = TestGapParams;
let mut pair_hmm = PairHMM::new();
let p = pair_hmm.prob_related(&gap_params, &emiss... | rust_cleaned_test_functions.jsonl/110504 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 281
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
717,
24976,
368,
341,
286,
1077,
856,
284,
293,
1,
1890,
1162,
8798,
1890,
8798,
828,
8798,
828,
34,
876,
286,
1077,
379,
284,
293,
1,
76787,
1162,
8798,
828,
8798,
828,
8798,
828,
34,
3302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_status_cache_snapshot_n() {
// this is done to ensure the AccountStorageEntries keep getting cleaned up as the root moves
// Makes sure that the last bank is restored correctly
let key1 = Keypair::new().pubkey();
let key2 = Keypair::ne... | rust_cleaned_test_functions.jsonl/36523 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 755
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
35733,
761,
73302,
4773,
11529,
53265,
1089,
368,
341,
1789,
286,
442,
419,
374,
2814,
311,
5978,
279,
8615,
5793,
24533,
2506,
3709,
27722,
705,
438,
279,
3704,
10797,
8945,
286,
442,
36870,
2704... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_bank_process_and_record_transactions_account_in_use() {
solana_logger::setup();
let GenesisBlockInfo {
genesis_block,
mint_keypair,
..
} = create_genesis_block(10_000);
let bank = Arc::new(Bank::new(&genesis_block));
let... | rust_cleaned_test_functions.jsonl/53037 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1007
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
35733,
11305,
8378,
14192,
68182,
13500,
1243,
15951,
368,
341,
286,
2048,
3362,
27413,
486,
15188,
543,
286,
1077,
40788,
4713,
1731,
341,
310,
59366,
7113,
345,
310,
28337,
3097,
12670,
345,
310,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_naive_date_time() -> Result<()> {
let mut db = checked_memory_handle()?;
let date = NaiveDate::from_ymd(2016, 2, 23);
let time = NaiveTime::from_hms(23, 56, 4);
let dt = NaiveDateTime::new(date, time);
db.execute("INSERT INTO foo (b) VALUES (?)", [dt])?;
... | rust_cleaned_test_functions.jsonl/76837 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 444
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
58631,
533,
4164,
3009,
368,
1464,
5714,
71698,
341,
286,
1077,
5206,
2927,
284,
10067,
19195,
10630,
94136,
286,
1077,
2400,
284,
12812,
533,
1916,
486,
1499,
62,
1600,
67,
7,
17,
15,
16,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 7 |
#[test]
fn test_flatten() -> Result<(), Error> {
combined_keys_gen!(sender_combined_key, receiver_combined_key);
let shared_key = SharedKey::generate();
#[derive(PartialEq, Debug, Serialize, Deserialize)]
struct Pagination {
limit: u64,
offset: u64,
total: u64,
}
... | rust_cleaned_test_functions.jsonl/31584 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 759
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
5081,
14456,
368,
1464,
5714,
68843,
4600,
29,
341,
262,
10856,
12631,
16322,
10297,
11644,
89945,
3097,
11,
13964,
89945,
3097,
317,
262,
1077,
6094,
3097,
284,
16990,
1592,
486,
19366,
1428,
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... | 5 |
#[test]
fn test_select_all_books() -> Result<()> {
let sql = SqlBuilder::select_from("books").sql()?;
assert_eq!(&sql, "SELECT * FROM books;");
Ok(())
} | rust_cleaned_test_functions.jsonl/12586 | {
"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,
13051,
5705,
73084,
368,
1464,
5714,
71698,
341,
286,
1077,
5704,
284,
7224,
3297,
486,
1742,
5673,
445,
12110,
1827,
3544,
368,
69493,
286,
2060,
10714,
0,
2099,
3544,
11,
330,
4858,
353,
4295,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_en_tokenizer() {
let tokenizer_manager = TokenizerManager::default();
assert!(tokenizer_manager.get("en_doesnotexist").is_none());
let en_tokenizer = tokenizer_manager.get("en_stem").unwrap();
let mut tokens: Vec<Token> = vec![];
{
let mut add_... | rust_cleaned_test_functions.jsonl/53506 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 402
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6205,
6458,
3135,
368,
341,
286,
1077,
45958,
12144,
284,
9660,
3135,
2043,
486,
2258,
543,
286,
2060,
10297,
85593,
12144,
670,
445,
268,
96374,
1921,
28575,
1827,
285,
31488,
1423,
286,
1077,
66... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_payment_secret_and_features_de_and_ser() {
use lightning::ln::features::InvoiceFeatures;
use secp256k1::ecdsa::{RecoveryId, RecoverableSignature};
use TaggedField::*;
use {SiPrefix, SignedRawInvoice, InvoiceSignature, RawInvoice, RawHrp, RawDataPart,
Currency, Sha256, PositiveTimest... | rust_cleaned_test_functions.jsonl/123251 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1322
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
26696,
21962,
8378,
14965,
2259,
8378,
75861,
368,
341,
197,
41819,
32438,
486,
2261,
486,
20304,
486,
34674,
21336,
280,
197,
41819,
511,
4672,
17,
20,
21,
74,
16,
486,
757,
96780,
22964,
693,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_month_first_date() {
assert_eq!(parse_date("02/13/2020", "%m/%d/%Y").unwrap(), "2020-02-13");
} | rust_cleaned_test_functions.jsonl/48626 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 64
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
18933,
12978,
4164,
368,
341,
262,
2060,
10714,
10297,
6400,
4164,
445,
15,
17,
14,
16,
18,
14,
17,
15,
17,
15,
497,
5962,
76,
12627,
67,
12627,
56,
1827,
15454,
1507,
330,
17,
15,
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 |
#[test]
fn test_merge_mismatched_schema() -> crate::Result<()> {
let first_index = {
let mut schema_builder = Schema::builder();
let text_field = schema_builder.add_text_field("text", TEXT);
let index = Index::create_in_ram(schema_builder.build());
let mut... | rust_cleaned_test_functions.jsonl/5767 | {
"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,
20888,
717,
24976,
291,
25371,
368,
1464,
17717,
486,
2077,
71698,
341,
286,
1077,
1156,
3560,
284,
341,
310,
1077,
5206,
10802,
28532,
284,
12539,
486,
17850,
543,
310,
1077,
1467,
5013,
284,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 7 |
#[test]
fn test_y_at_point_at_infinity() {
assert!(G1::zero().y == Fq::one());
assert!((-G1::zero()).y == Fq::one());
assert!(G2::zero().y == Fq2::one());
assert!((-G2::zero()).y == Fq2::one());
} | rust_cleaned_test_functions.jsonl/6624 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 110
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
4178,
3752,
6085,
3752,
1243,
19888,
368,
341,
262,
2060,
10297,
38,
16,
486,
14154,
1005,
88,
621,
434,
80,
486,
603,
1423,
262,
2060,
0,
54934,
38,
16,
486,
14154,
6011,
88,
621,
434,
80,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_bytes_stdin() {
new_ucmd!()
.arg("-c")
.arg("13")
.pipe_in_fixture(FOOBAR_TXT)
.run()
.stdout_is_fixture("foobar_bytes_stdin.expected");
} | rust_cleaned_test_functions.jsonl/31128 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 120
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
12524,
15656,
258,
368,
341,
262,
501,
68887,
2277,
0,
741,
286,
659,
858,
13645,
66,
1138,
286,
659,
858,
445,
16,
18,
1138,
286,
659,
13768,
1243,
74409,
7,
3788,
20608,
934,
84411,
340,
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 |
#[test]
fn test_enum_as_real() {
test_none_with_ctx(cast_enum_as_real);
let cs = vec![
(EnumRef::new("enum".as_bytes(), &0), Real::from(0.)),
(EnumRef::new("int".as_bytes(), &1), Real::from(1.)),
(EnumRef::new("real".as_bytes(), &2), Real::from(2... | rust_cleaned_test_functions.jsonl/103217 | {
"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,
31054,
11898,
15266,
368,
341,
286,
1273,
31488,
6615,
15147,
1337,
559,
31054,
11898,
15266,
626,
286,
1077,
10532,
284,
7486,
90515,
3374,
310,
320,
10766,
3945,
486,
931,
445,
9018,
3263,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_online_clause_insertion() {
let writer = WriterId::new(1u8);
let model = &mut Model::new();
let a = model.new_bvar("a");
let b = model.new_bvar("b");
let c = model.new_bvar("c");
let d = model.new_bvar("d");
let mut sat = SatSolver::new(wr... | rust_cleaned_test_functions.jsonl/55207 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 969
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
51546,
57530,
17678,
290,
368,
341,
286,
1077,
6916,
284,
29404,
764,
486,
931,
7,
16,
84,
23,
317,
286,
1077,
1614,
284,
609,
6984,
4903,
486,
931,
543,
286,
1077,
264,
284,
1614,
4618,
880,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_incomplete() {
let code = &[0x59, 0x59, 0xc4, 0x15];
let expected = Ok((&[0xc4, 0x15][..], vec![(0, Instruction::Dup), (1, Instruction::Dup)]));
assert_eq!(expected, code_parser(code));
} | rust_cleaned_test_functions.jsonl/62171 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 105
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
1243,
14737,
368,
341,
262,
1077,
2038,
284,
44590,
15,
87,
20,
24,
11,
220,
15,
87,
20,
24,
11,
220,
15,
8148,
19,
11,
220,
15,
87,
16,
20,
5265,
715,
262,
1077,
3601,
284,
7622,
42902,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_observe_state() {
block_on(async {
let actual_states = StateMachineBuilder::new_stub()
.oneshot_check()
.await
.filter_map(|event| {
future::ready(match event {
StateMachineEvent::Stat... | rust_cleaned_test_functions.jsonl/59677 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 380
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
36322,
13267,
4387,
368,
341,
286,
2504,
4470,
18285,
341,
310,
1077,
5042,
22972,
284,
3234,
21605,
3297,
486,
931,
62781,
741,
394,
659,
3154,
10622,
7200,
741,
394,
659,
11421,
198,
394,
659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_ends_with_truncated_dictionary() {
assert_decompressed_input_matches_output(include_bytes!("../../testdata/ends_with_truncated_dictionary.\
compressed"),
include_bytes!("../../testdata/ends_wi... | rust_cleaned_test_functions.jsonl/26477 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 282
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
90729,
6615,
3547,
38007,
42605,
368,
341,
220,
2060,
2259,
45703,
5898,
38344,
7645,
77863,
12524,
17223,
2748,
92425,
14,
1412,
6615,
3547,
38007,
42605,
13,
5661,
32678,
30649,
4461,
14265,
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_fuzz() {
for _ in 0..25 {
fuzz_test(3);
fuzz_test(16);
fuzz_test(189);
}
} | rust_cleaned_test_functions.jsonl/21483 | {
"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,
761,
8889,
368,
341,
286,
369,
716,
304,
220,
15,
496,
17,
20,
341,
310,
76142,
4452,
7,
18,
317,
310,
76142,
4452,
7,
16,
21,
317,
310,
76142,
4452,
7,
16,
23,
24,
317,
286,
456,
262,
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
] | 2 |
#[test]
fn test_anti_par_join() {
let mut world = World::new();
world.create_entity().build();
world.exec(|(entities, pos): (Entities, ReadStorage<Pos>)| {
(&entities, !&pos).par_join().for_each(|(ent, ())| {
println!("Processing entity: {:?}", ent);
... | rust_cleaned_test_functions.jsonl/5978 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 174
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
62,
15359,
22654,
31017,
368,
341,
286,
1077,
5206,
1879,
284,
4337,
486,
931,
543,
286,
1879,
2520,
19169,
1005,
5834,
543,
286,
1879,
15776,
22428,
7,
10499,
11,
1133,
1648,
320,
15828,
11,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_date_bounds() {
let calculated_min = NaiveDate::from_ymd(MIN_YEAR, 1, 1);
let calculated_max = NaiveDate::from_ymd(MAX_YEAR, 12, 31);
assert!(MIN_DATE == calculated_min,
"`MIN_DATE` should have a year flag {:?}", calculated_min.of().flags());
assert!(MAX_DATE == calcu... | rust_cleaned_test_functions.jsonl/4750 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 310
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
4164,
36878,
368,
341,
262,
1077,
16588,
7260,
284,
12812,
533,
1916,
486,
1499,
62,
1600,
67,
3189,
687,
57127,
11,
220,
16,
11,
220,
16,
317,
262,
1077,
16588,
6345,
284,
12812,
533,
1916,
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_prerelease() {
assert_eq!(Version::parse("v1beta"), Version::Beta(1, None));
assert_eq!(Version::parse("v2alpha1"), Version::Alpha(2, Some(1)));
assert_eq!(Version::parse("v10beta12"), Version::Beta(10, Some(12)));
} | rust_cleaned_test_functions.jsonl/116488 | {
"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,
5294,
485,
1623,
368,
341,
286,
2060,
10714,
10297,
5637,
486,
6400,
445,
85,
16,
19127,
3975,
6079,
486,
64811,
7,
16,
11,
2240,
1106,
286,
2060,
10714,
10297,
5637,
486,
6400,
445,
85,
17,
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_inequality() {
assert_ne!(MetricValue::Int(1), MetricValue::Int(2));
assert_ne!(MetricValue::Float(1.0), MetricValue::Float(2.0));
assert_ne!(MetricValue::String("A".to_string()), MetricValue::String("B".to_string()));
assert_ne!(MetricValue::Bool(true), ... | rust_cleaned_test_functions.jsonl/36073 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 672
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
62,
482,
10473,
368,
341,
1789,
286,
2060,
13925,
10297,
54310,
1130,
486,
1072,
7,
16,
701,
52458,
1130,
486,
1072,
7,
17,
1106,
286,
2060,
13925,
10297,
54310,
1130,
486,
5442,
7,
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_walk_backward() {
let warrior = warrior_at_level(6);
warrior.walk_toward(Direction::Backward);
assert_eq!(warrior.action(), Some(Action::Walk(Direction::Backward)));
} | rust_cleaned_test_functions.jsonl/72718 | {
"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,
56131,
70477,
368,
341,
262,
1077,
37390,
284,
37390,
3752,
8274,
7,
21,
317,
262,
37390,
51394,
528,
81971,
81740,
486,
3707,
1606,
317,
262,
2060,
10714,
10297,
11455,
3254,
12395,
1507,
4329,
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 |
#[test]
fn test_pointdouble() {
let result = point_double_projective(
&ECPointProjective256{
x: Bignum256(secp256r1::GxRmodP),
y: Bignum256(secp256r1::GyRmodP),
z: Bignum256(secp256r1::RmodP),
});
assert_eq!(result.x.0, [0x... | rust_cleaned_test_functions.jsonl/9429 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 421
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6085,
4331,
368,
341,
286,
1077,
1102,
284,
1459,
24598,
16352,
533,
1006,
310,
609,
7498,
2609,
7849,
533,
17,
20,
21,
515,
394,
856,
25,
425,
92160,
17,
20,
21,
10478,
4672,
17,
20,
21,
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_null_handling() {
// assert we comply with arrows way of handling null data
// we check comparison on two arrays with one chunk and verify it is equal to a differently
// chunked array comparison.
// two same chunked arrays
let a1: Int32Chunked = (&[Some(... | rust_cleaned_test_functions.jsonl/96369 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1284
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
15162,
75642,
368,
341,
286,
442,
2060,
582,
25017,
448,
36957,
1616,
315,
11589,
845,
821,
198,
286,
442,
582,
1779,
12313,
389,
1378,
18386,
448,
825,
11879,
323,
10146,
432,
374,
6144,
311,
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_read_booleans() {
let input = "#t #f";
let mut heap = Heap::new();
let results : Vec<Value> = read_from_str(input, &mut heap, "test_read_booleans")
.map(|(_, r)| *r.ok().expect("Should not get a read error"))
.collect();
assert_eq!(results,... | rust_cleaned_test_functions.jsonl/62114 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 215
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6443,
56013,
96999,
368,
341,
286,
1077,
1946,
284,
5869,
83,
671,
69,
876,
286,
1077,
5206,
17364,
284,
47307,
486,
931,
543,
286,
1077,
3059,
549,
11312,
48325,
29,
284,
1349,
5673,
2895,
5384... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_each_reverse_break() {
let mut m = TrieMap::new();
for x in range(usize::MAX - 10000, usize::MAX).rev() {
m.insert(x, x / 2);
}
let mut n = usize::MAX - 1;
m.each_reverse(|k, v| {
if n == usize::MAX - 5000 { false } else {
... | rust_cleaned_test_functions.jsonl/88419 | {
"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,
32046,
43277,
39494,
368,
341,
286,
1077,
5206,
296,
284,
62783,
2227,
486,
931,
1428,
286,
369,
856,
304,
2088,
7,
51878,
486,
10586,
481,
220,
16,
15,
15,
15,
15,
11,
22301,
486,
10586,
568,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
#[test]
fn test_rsa_pkcs1_decrypt_parsing() {
for test in wycheproof::rsa_pkcs1_decrypt::TestName::all() {
let _kat = wycheproof::rsa_pkcs1_decrypt::TestSet::load(test).unwrap();
}
} | rust_cleaned_test_functions.jsonl/5841 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 104
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
82522,
33321,
4837,
16,
80764,
620,
28598,
368,
341,
262,
369,
1273,
304,
289,
5641,
747,
75636,
486,
60869,
33321,
4837,
16,
80764,
486,
2271,
675,
486,
541,
368,
341,
286,
1077,
716,
33755,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_from_py_with() {
Python::with_gil(|py| {
let py_zap = py
.eval(
r#"{"name": "whatever", "my_object": [1, 2, 3]}"#,
None,
None,
)
.expect("failed to create dict");
let zap = Zap::extract(py_za... | rust_cleaned_test_functions.jsonl/59479 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 254
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
5673,
40291,
6615,
368,
341,
262,
13027,
486,
4197,
1889,
321,
22428,
3288,
91,
341,
286,
1077,
4510,
6415,
391,
284,
4510,
198,
310,
659,
14170,
1006,
394,
435,
55543,
4913,
606,
788,
330,
6828... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_primitive_array_acos_f64() {
let a = Float64Array::from(vec![-0.2, 0.25, 0.75]);
let c: &PrimitiveArray<Float64Type> = &ScalarFunctions::acos(vec![&a]).unwrap()[0];
assert_eq!(1.7721542475852274, c.value(0));
assert_eq!(1.318116071652818, c.value(1));
asse... | rust_cleaned_test_functions.jsonl/96116 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 193
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
84087,
3858,
14718,
436,
761,
21,
19,
368,
341,
286,
1077,
264,
284,
13001,
21,
19,
1857,
486,
1499,
25592,
0,
7609,
15,
13,
17,
11,
220,
15,
13,
17,
20,
11,
220,
15,
13,
22,
20,
2558,
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_non_empty() {
let c = Constant {
tpe: SType::SBoolean,
v: ConstantVal::Boolean(true),
};
let s = ConstantStore::new(vec![c.clone()]);
assert!(s.get(0).is_some());
assert_eq!(s.get(0).unwrap().clone(), c);
assert!(!s.get_all(... | rust_cleaned_test_functions.jsonl/51336 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 213
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21637,
15124,
368,
341,
286,
1077,
272,
284,
19305,
341,
310,
259,
375,
25,
328,
929,
486,
50,
6890,
345,
310,
348,
25,
19305,
2208,
486,
6890,
3715,
1326,
286,
2605,
286,
1077,
274,
284,
1930... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_deserialize_missing_ranges() {
let body = r#"{ "range" : { "test_i64" : { "gte" : 2012 } } }"#;
let req = serde_json::from_str::<RangeQuery>(body);
assert_eq!(req.is_err(), false);
} | rust_cleaned_test_functions.jsonl/76131 | {
"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,
15768,
9050,
40447,
58748,
368,
341,
286,
1077,
2487,
284,
435,
2,
14129,
330,
9669,
1,
549,
314,
330,
1944,
5318,
21,
19,
1,
549,
314,
330,
55067,
1,
549,
220,
17,
15,
16,
17,
335,
335,
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_next_excluded_included() {
let mut r = BoundedRange::new(LowerBound::excluded(3), UpperBound::included(5));
assert_eq!(r.next(), Some(4));
assert_eq!(r.next(), Some(5));
assert_eq!(r.next(), None);
} | rust_cleaned_test_functions.jsonl/54852 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 104
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
11257,
2702,
10181,
1243,
10181,
368,
341,
262,
1077,
5206,
435,
284,
425,
13082,
6046,
486,
931,
4957,
1202,
19568,
486,
327,
10181,
7,
18,
701,
30614,
19568,
486,
82622,
7,
20,
1106,
262,
2060... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_set_host() {
let mut url = Url::parse("https://example.net/hello").unwrap();
url.set_host(Some("foo.com")).unwrap();
assert_eq!(url.as_str(), "https://foo.com/hello");
assert!(url.set_host(None).is_err());
assert_eq!(url.as_str(), "https://foo.com/hello");
assert!(url.set... | rust_cleaned_test_functions.jsonl/52244 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 336
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
2602,
12848,
368,
341,
262,
1077,
5206,
2515,
284,
22840,
486,
6400,
445,
2428,
1110,
8687,
5071,
7530,
4791,
1827,
15454,
543,
262,
2515,
980,
12848,
65405,
445,
7975,
905,
15197,
15454,
543,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_quote_delimiters() {
assert_eq!(quote!({}).to_string(), "{}");
assert_eq!(quote!(()).to_string(), "()");
assert_eq!(quote!([]).to_string(), "[]");
} | rust_cleaned_test_functions.jsonl/29273 | {
"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,
45236,
18029,
67645,
368,
341,
286,
2060,
10714,
10297,
2949,
0,
2306,
16630,
983,
3904,
1507,
35503,
797,
286,
2060,
10714,
10297,
2949,
0,
5065,
568,
983,
3904,
1507,
330,
45961,
286,
2060,
1071... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_cast_range_u8_max() {
assert_eq!(u8::max_value.to_int(), Some(u8::max_value as int));
assert_eq!(u8::max_value.to_i8(), None);
assert_eq!(u8::max_value.to_i16(), Some(u8::max_value as i16));
assert_eq!(u8::max_value.to_i32(), Some(u8::max_value as i32));
... | rust_cleaned_test_functions.jsonl/12461 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 396
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
5303,
9698,
7300,
23,
6345,
368,
341,
286,
2060,
10714,
10297,
84,
23,
486,
2810,
3142,
2389,
4042,
1507,
220,
4329,
8154,
23,
486,
2810,
3142,
438,
526,
1106,
286,
2060,
10714,
10297,
84,
23,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_input_circuit_with_bls12_381() {
use ff::{BitIterator, Field};
use pairing::bls12_381::*;
use rand::{SeedableRng, Rng, XorShiftRng};
use ::circuit::test::*;
use jubjub::{JubjubBls12, fs, edwards};
let params = &JubjubBls12::new();
let rng = &mut XorShiftRng::from_see... | rust_cleaned_test_functions.jsonl/38830 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 2570
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
5898,
666,
37268,
6615,
880,
4730,
16,
17,
62,
18,
23,
16,
368,
341,
262,
990,
25539,
22964,
8344,
11951,
11,
8601,
2440,
262,
990,
47713,
486,
2024,
82,
16,
17,
62,
18,
23,
16,
56162,
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... | 6 |
#[test]
fn test_parse_color() {
let s = "";
let mut parser = FormatEventParser::new(s);
assert_eq!(parser.parse_color(), None);
let s = "a";
let mut parser = FormatEventParser::new(s);
assert_eq!(parser.parse_color(), None);
let s = "1a";
let mut parser = FormatEventParser::new... | rust_cleaned_test_functions.jsonl/6842 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 388
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
6714,
368,
341,
262,
1077,
274,
284,
5438,
262,
1077,
5206,
6729,
284,
15042,
1556,
6570,
486,
931,
1141,
317,
262,
2060,
10714,
10297,
9657,
4632,
6714,
1507,
2240,
626,
262,
1077,
274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_env_var_not_set() {
let unset: Option<String> = None;
temp_env::with_var(TEST_SOME_MANDATORY_BOOL, unset, || {
let_assert!(Err(env_config::EnvError::MandatoryEnvVarNotSet{ env_var_name }) = MyLovelyConfig::from_env());
check!(env_var_name == TEST_SOME_MANDATORY_BOOL);
... | rust_cleaned_test_functions.jsonl/72773 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 154
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
15879,
4612,
7913,
2602,
368,
341,
262,
1077,
18000,
25,
6959,
3464,
29,
284,
2240,
280,
262,
2730,
15879,
486,
4197,
4612,
50320,
1098,
11408,
1245,
3976,
87258,
32491,
11,
18000,
11,
1369,
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... | 2 |
#[test]
fn test_max_queue_size() {
let mut sender = SenderBuilder::new()
.max_queue_size(Some(2048))
.segment_size(512)
.open("data/max-queue-size")
.unwrap();
let mut data = data_lots_of_data();
loop {
let item = data.next().u... | rust_cleaned_test_functions.jsonl/95830 | {
"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,
6345,
10841,
2368,
368,
341,
286,
1077,
5206,
4646,
284,
54610,
3297,
486,
931,
741,
310,
659,
2810,
10841,
2368,
65405,
7,
17,
15,
19,
23,
1171,
310,
659,
23169,
2368,
7,
20,
16,
17,
340,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_lookup_city() {
use super::geoip2::City;
let _ = env_logger::try_init();
let filename = "test-data/test-data/GeoIP2-City-Test.mmdb";
let reader = Reader::open_readfile(filename).unwrap();
let ip: IpAddr = FromStr::from_str("89.160.20.112").unwrap();
let city: City = re... | rust_cleaned_test_functions.jsonl/42011 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 192
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
27464,
24971,
368,
341,
262,
990,
2256,
486,
13052,
573,
17,
486,
12730,
280,
262,
1077,
716,
284,
6105,
27413,
486,
1539,
6137,
1428,
262,
1077,
3899,
284,
330,
1944,
13945,
12697,
13945,
14,
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_syscall_abort() {
prepare_mockup!(
invoke_context,
transaction_context,
program_id,
bpf_loader::id(),
);
let config = Config::default();
let memory_mapping =
MemoryMapping::new::<UserError>(vec![MemoryReg... | rust_cleaned_test_functions.jsonl/69885 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 426
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
20344,
6659,
70907,
368,
341,
286,
10549,
34134,
454,
33673,
310,
19873,
8467,
345,
310,
7745,
8467,
345,
310,
2025,
842,
345,
310,
293,
15897,
22139,
486,
307,
3148,
286,
1439,
286,
1077,
2193,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_without_self_type_err() {
for lang in &[ForeignLang::Java, ForeignLang::Cpp] {
eprintln!("test_parse_without_self_type_err: lang {:?}", lang);
let result = panic::catch_unwind(|| {
parse_code(
"test_parse_without_self_type_err",
... | rust_cleaned_test_functions.jsonl/71606 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 328
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
39904,
25637,
1819,
9266,
368,
341,
262,
369,
8688,
304,
44590,
58632,
26223,
486,
15041,
11,
19078,
26223,
486,
9890,
60,
341,
286,
384,
33655,
17223,
1944,
21039,
39904,
25637,
1819,
9266,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_direct() {
let text = include_str!("../../assets/example.txt");
crate::test_cycle_unwrap(
text.as_bytes(),
|data| compress(data, 1),
|data| decompress(data, text.len()),
);
} | rust_cleaned_test_functions.jsonl/125597 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 154
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
32871,
368,
341,
16885,
286,
1077,
1467,
284,
2924,
2895,
17223,
2748,
5160,
65182,
3909,
797,
286,
17717,
486,
1944,
39079,
4907,
10097,
1006,
310,
1467,
5357,
12524,
3148,
310,
760,
691,
91,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_wrong_sender_comp_id_in_logon_response() {
define_dictionary!(Logon, Logout, Reject,);
//Connect and attempt logon.
let (mut test_server, mut client, connection) =
TestStream::setup_test_server(build_dictionary());
let message = new_logon_message();
client.send_mess... | rust_cleaned_test_functions.jsonl/23 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 641
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
75198,
54356,
18177,
842,
1243,
5224,
263,
9655,
368,
341,
262,
6979,
42605,
10297,
2201,
263,
11,
46285,
11,
87293,
11,
626,
262,
442,
14611,
323,
4774,
1487,
263,
624,
262,
1077,
320,
6984,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_polyline_split() {
let mut pl = Polyline::new(
&vec![
Point2D::new(0.0, 0.0),
Point2D::new(10.0, 10.0),
Point2D::new(12.0, 6.0),
Point2D::new(6.0, 0.0),
],
1,
);
pl.insert_... | rust_cleaned_test_functions.jsonl/98735 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 680
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
36133,
1056,
17052,
368,
341,
286,
1077,
5206,
625,
284,
18767,
1056,
486,
931,
1006,
310,
609,
4083,
90515,
394,
5126,
17,
35,
486,
931,
7,
15,
13,
15,
11,
220,
15,
13,
15,
1326,
394,
5126,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_signature() {
let keypair = Keypair::new();
let wrong_keypair = Keypair::new();
let mut v = CrdsValue::new_unsigned(CrdsData::ContactInfo(ContactInfo::new_localhost(
&keypair.pubkey(),
timestamp(),
)));
verify_signatures(&mut v, &ke... | rust_cleaned_test_functions.jsonl/5323 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 371
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
39859,
368,
341,
286,
1077,
1376,
12670,
284,
6569,
1082,
1310,
486,
931,
543,
286,
1077,
4969,
3097,
12670,
284,
6569,
1082,
1310,
486,
931,
543,
286,
1077,
5206,
348,
284,
4553,
5356,
1130,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_vec_list_get_previous_index() {
let mut list = VecList::new();
let index = list.push_front(0);
assert_eq!(list.get_previous_index(index), None);
list.push_front(1);
assert_eq!(list.get_previous_index(index).unwrap().index, 1);
} | rust_cleaned_test_functions.jsonl/11527 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 140
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
13251,
2019,
3062,
52552,
3560,
368,
341,
286,
1077,
5206,
1140,
284,
11312,
852,
486,
931,
1428,
286,
1077,
1922,
284,
1140,
2552,
22926,
7,
15,
317,
286,
2060,
10714,
10297,
1607,
670,
52552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_buf_len() {
unsafe {
let a = vec![65u8, 65, 65, 65, 65, 65, 65, 0];
assert_eq!(super::raw::from_buf_len(a.as_ptr(), 3), String::from_str("AAA"));
}
} | rust_cleaned_test_functions.jsonl/48 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 125
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
5673,
10363,
6043,
368,
341,
286,
19860,
341,
310,
1077,
264,
284,
7486,
20703,
21,
20,
84,
23,
11,
220,
21,
20,
11,
220,
21,
20,
11,
220,
21,
20,
11,
220,
21,
20,
11,
220,
21,
20,
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_node_merge_rollback() {
let mut cluster = new_node_cluster(0, 3);
configure_for_merge(&mut cluster);
let pd_client = Arc::clone(&cluster.pd_client);
pd_client.disable_default_operator();
cluster.run_conf_change();
let region = pd_client.get_region(b"k1").unwrap();
c... | rust_cleaned_test_functions.jsonl/10775 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1363
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
5084,
20888,
62,
33559,
368,
341,
262,
1077,
5206,
10652,
284,
501,
5084,
28441,
7,
15,
11,
220,
18,
317,
262,
14411,
5478,
20888,
2099,
6984,
10652,
317,
262,
1077,
7744,
8179,
284,
19689,
486,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
#[test]
fn test_file_decoration_style_empty_string() {
_do_test_file_style_no_decoration(&[
"--file-style",
"green",
"--file-decoration-style",
"",
]);
} | rust_cleaned_test_functions.jsonl/70071 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 132
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
2458,
2259,
26452,
15117,
15124,
3904,
368,
341,
286,
716,
2982,
4452,
2458,
15117,
6536,
2259,
26452,
2099,
9640,
310,
14482,
1192,
11297,
756,
310,
330,
13250,
756,
310,
14482,
1192,
30266,
11297,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_format_version() {
let raw_expected = Some(String::from("v1.2.3"));
assert_eq!(format_version("1.2.3", "v${raw}"), raw_expected);
assert_eq!(format_version(" 1.2.3 ", "v${raw}"), raw_expected);
assert_eq!(format_version("1.2.3 ", "v${raw}"), raw_expected);
... | rust_cleaned_test_functions.jsonl/100097 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 752
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
8955,
9438,
368,
341,
286,
1077,
7112,
32190,
284,
4329,
2242,
486,
1499,
445,
85,
16,
13,
17,
13,
18,
14929,
286,
2060,
10714,
10297,
2243,
9438,
445,
16,
13,
17,
13,
18,
497,
330,
85,
2365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_skip_while_fold() {
let xs = [0, 1, 2, 3, 5, 13, 15, 16, 17, 19];
let ys = [15, 16, 17, 19];
let it = xs.iter().skip_while(|&x| *x < 15);
let i = it.fold(0, |i, &x| {
assert_eq!(x, ys[i]);
i + 1
});
assert_eq!(i, ys.len());
let mut it = xs.it... | rust_cleaned_test_functions.jsonl/54091 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 292
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
13491,
44830,
86069,
61187,
368,
341,
262,
1077,
11943,
284,
508,
15,
11,
220,
16,
11,
220,
17,
11,
220,
18,
11,
220,
20,
11,
220,
16,
18,
11,
220,
16,
20,
11,
220,
16,
21,
11,
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_twiddle_mix() {
let mut to_test = [1, 2, 3, 0, 0, 0xFF, 0xAA, 0xCC];
twiddle(&mut to_test);
assert_eq!(to_test, [146, 214, 22, 81, 89, 204, 146, 134]);
} | rust_cleaned_test_functions.jsonl/54025 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 112
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
54178,
3310,
67729,
368,
341,
286,
1077,
5206,
311,
4452,
284,
508,
16,
11,
220,
17,
11,
220,
18,
11,
220,
15,
11,
220,
15,
11,
220,
15,
9264,
11,
220,
15,
60051,
11,
220,
15,
72255,
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_valid_memory_quantities() {
let mem_quantities = vec![
(KubeQuantity("123456".into()), Quantity::Memory(123456)),
(KubeQuantity("123e8".into()), Quantity::Memory(12300000000)),
(KubeQuantity("500K".into()), Quantity::Memory(500000)),
(KubeQ... | rust_cleaned_test_functions.jsonl/51865 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 954
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
8337,
19195,
53346,
1361,
368,
341,
286,
1077,
1833,
53346,
1361,
284,
7486,
90515,
310,
320,
42,
3760,
17342,
445,
16,
17,
18,
19,
20,
21,
3263,
18122,
11858,
33523,
486,
10642,
7,
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_topn_heap() {
let mut order_cols = Vec::new();
order_cols.push(new_order_by(0, true));
order_cols.push(new_order_by(1, false));
let order_cols = Arc::new(order_cols);
let mut topn_heap =
TopNHeap::new(5, Arc::new(RefCell::new(EvalContext::defau... | rust_cleaned_test_functions.jsonl/67537 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 2295
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
10426,
77,
33059,
368,
341,
286,
1077,
5206,
1973,
25347,
284,
11312,
486,
931,
543,
286,
1973,
25347,
2552,
1755,
7869,
3710,
7,
15,
11,
830,
1106,
286,
1973,
25347,
2552,
1755,
7869,
3710,
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_explorer_blocks_basic() {
let (mut testkit, api) = init_testkit();
let BlocksRange { blocks, range } = api
.public(ApiKind::Explorer)
.get("v1/blocks?count=10")
.unwrap();
assert_eq!(blocks.len(), 1);
assert_eq!(blocks[0].block.height, Height(0));
ass... | rust_cleaned_test_functions.jsonl/55295 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1793
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
2702,
79825,
25201,
34729,
368,
341,
262,
1077,
320,
6984,
1273,
8226,
11,
6330,
8,
284,
2930,
4452,
8226,
1428,
262,
1077,
45678,
6046,
314,
10010,
11,
2088,
335,
284,
6330,
198,
286,
659,
888,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_big_endian_deserialize_seed() {
let mut config = config();
config.big_endian();
let data: Vec<_> = (10..100).collect();
let bytes = config.serialize(&data).expect("Config::serialize failed");
let mut seed_data: Vec<_> = (0..10).collect();
{
let seed = ExtendVec(... | rust_cleaned_test_functions.jsonl/23834 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 226
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
36386,
87193,
15768,
9050,
33809,
368,
341,
262,
1077,
5206,
2193,
284,
2193,
543,
262,
2193,
57678,
87193,
1428,
262,
1077,
821,
25,
11312,
32399,
29,
284,
320,
16,
15,
496,
16,
15,
15,
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_store_txs_positions() {
let mut rng = thread_rng();
let sandbox = timestamping_sandbox();
let sandbox_state = SandboxState::new();
let generator = TimestampingTxGenerator::with_keypair(
DATA_SIZE,
gen_keypair_from_seed(&Seed::new([11; SEED_LENGTH])),
);
... | rust_cleaned_test_functions.jsonl/83614 | {
"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,
14809,
17805,
82,
37219,
368,
341,
262,
1077,
5206,
28422,
284,
4516,
66849,
543,
262,
1077,
42754,
284,
11441,
287,
643,
31536,
543,
262,
1077,
42754,
4387,
284,
96860,
1397,
486,
931,
1428,
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... | 3 |
#[test]
fn test_with_prefix_gather() {
assert!(Registry::new_custom(Some("".to_string()), None).is_err());
let r = Registry::new_custom(Some("common_prefix".to_string()), None).unwrap();
let counter_a = Counter::new("test_a_counter", "test help").unwrap();
r.register(Box::new(co... | rust_cleaned_test_functions.jsonl/132418 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 218
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6615,
13974,
1889,
1856,
368,
341,
286,
2060,
10297,
15603,
486,
931,
15875,
65405,
445,
3263,
983,
3904,
11858,
2240,
568,
285,
9266,
5231,
286,
1077,
435,
284,
32112,
486,
931,
15875,
65405,
445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_fmt_list() {
let mut builder =
ListPrimitiveChunkedBuilder::<Int32Type>::new("a", 10, 10, DataType::Int32);
builder.append_slice(Some(&[1, 2, 3]));
builder.append_slice(None);
let list = builder.finish().into_series();
println!("{:?}", list);
... | rust_cleaned_test_functions.jsonl/4391 | {
"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,
38128,
2019,
368,
341,
286,
1077,
5206,
7363,
4035,
310,
1759,
33313,
28304,
291,
3297,
27638,
1072,
18,
17,
929,
6831,
931,
445,
64,
497,
220,
16,
15,
11,
220,
16,
15,
11,
33172,
486,
1072,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_traditional_with_skip_bytes_override() {
// --skip-bytes is ignored in this case
let input = "abcdefghijklmnop"; // spell-checker:disable-line
new_ucmd!()
.arg("--traditional")
.arg("--skip-bytes=10")
.arg("-c")
.arg("0")
.run_piped_stdin(input... | rust_cleaned_test_functions.jsonl/48829 | {
"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,
3547,
329,
3005,
6615,
44830,
12524,
48576,
368,
341,
262,
442,
1177,
20599,
14319,
2338,
374,
12036,
304,
419,
1142,
198,
262,
1077,
1946,
284,
330,
65102,
5123,
442,
12845,
15934,
261,
42066,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_vec_list_retain() {
let mut list = VecList::new();
list.push_back(0);
list.push_back(1);
list.push_back(-1);
list.push_back(2);
list.push_back(-2);
list.retain(|&mut value| value >= 0);
assert_eq!(list.into_iter().collect::<Vec<_>>... | rust_cleaned_test_functions.jsonl/11550 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 181
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
13251,
2019,
21695,
466,
368,
341,
286,
1077,
5206,
1140,
284,
11312,
852,
486,
931,
543,
286,
1140,
2552,
3895,
7,
15,
317,
286,
1140,
2552,
3895,
7,
16,
317,
286,
1140,
2552,
3895,
4080,
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_create_new_ledger_with_options_fifo() {
solana_logger::setup();
let mint_total = 1_000_000_000_000;
let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(mint_total);
let (ledger_path, _blockhash) = create_new_tmp_ledger_fifo_auto_delete!(&genesis_c... | rust_cleaned_test_functions.jsonl/11686 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 612
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
8657,
5921,
38367,
1389,
6615,
8743,
56590,
368,
341,
286,
2048,
3362,
27413,
486,
15188,
543,
286,
1077,
28337,
10784,
284,
220,
16,
62,
15,
15,
15,
62,
15,
15,
15,
62,
15,
15,
15,
62,
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_int_totalord() {
assert_eq!(5i.cmp(&10), Less);
assert_eq!(10i.cmp(&5), Greater);
assert_eq!(5i.cmp(&5), Equal);
assert_eq!((-5i).cmp(&12), Less);
assert_eq!(12i.cmp(&-5), Greater);
} | rust_cleaned_test_functions.jsonl/101456 | {
"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,
4042,
10784,
539,
368,
341,
262,
2060,
10714,
10297,
20,
72,
520,
1307,
2099,
16,
15,
701,
9668,
317,
262,
2060,
10714,
10297,
16,
15,
72,
520,
1307,
2099,
20,
701,
32281,
317,
262,
2060,
1071... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_value_before_key() {
struct Foo;
impl Debug for Foo {
fn fmt(&self, fmt: &mut Formatter) {
fmt.debug_map().value(&"invalid").key(&"bar").finish()
}
}
debug3::pprint(Foo);
} | rust_cleaned_test_functions.jsonl/124758 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 153
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
31433,
3142,
23708,
3097,
368,
341,
286,
2036,
33428,
401,
286,
11605,
11091,
369,
33428,
341,
310,
5168,
8879,
2099,
721,
11,
8879,
25,
609,
6984,
81387,
8,
341,
394,
8879,
7883,
5376,
1005,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_datetime_format() {
let cases = vec![
(
"2011-11-11 10:10:10.123456",
vec!["2011", "11", "11", "10", "10", "10", "123456"],
),
(
" 2011-11-11 10:10:10.123456 ",
vec!["2011", "11", ... | rust_cleaned_test_functions.jsonl/58464 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 680
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
28943,
8955,
368,
341,
286,
1077,
5048,
284,
7486,
90515,
310,
2399,
394,
330,
17,
15,
16,
16,
12,
16,
16,
12,
16,
16,
220,
16,
15,
25,
16,
15,
25,
16,
15,
13,
16,
17,
18,
19,
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_cursor_second_position() {
let mut comp = TextInputComponent::new(
SharedTheme::default(),
SharedKeyConfig::default(),
"",
"",
false,
);
let theme = SharedTheme::default();
let underlined_whitespace = the... | rust_cleaned_test_functions.jsonl/772 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 515
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
28601,
29644,
9661,
368,
341,
286,
1077,
5206,
1367,
284,
42232,
2189,
486,
931,
1006,
310,
16990,
12594,
486,
2258,
3148,
310,
16990,
1592,
2648,
486,
2258,
3148,
310,
8324,
310,
8324,
310,
895,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_wigner_12j_second() {
let tj_max = 4;
let mut f = md5::Context::new();
get_12tjs_second(tj_max, &mut |w12j| {
let w = w12j.value();
write!(
f,
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\n",
w12j.tj1, w12j.tj2, w12j.tj3, w12... | rust_cleaned_test_functions.jsonl/80988 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 405
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
1670,
77656,
62,
16,
17,
73,
29644,
368,
341,
262,
1077,
65254,
6345,
284,
220,
19,
280,
262,
1077,
5206,
282,
284,
10688,
20,
486,
1972,
486,
931,
543,
262,
633,
62,
16,
17,
83,
2519,
29644... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_col_prune_const() {
assert_j_plan("select 1 from t3", |sql, mut plan| {
let subq = get_lvl_queries(&plan, 1);
assert_eq!(4, subq[0].out_cols().len());
col_prune(&mut plan.qry_set, plan.root).unwrap();
print_plan(sql, &plan);
let... | rust_cleaned_test_functions.jsonl/27134 | {
"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,
10211,
5294,
2886,
13610,
368,
341,
286,
2060,
5374,
26564,
445,
1742,
220,
16,
504,
259,
18,
497,
760,
3544,
11,
5206,
3119,
91,
341,
310,
1077,
1186,
80,
284,
633,
67975,
65588,
2099,
10393,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_long_value() {
with_key!(key, "LongValue" => {
let name = "RustLongVal";
let val1 = RegValue { vtype: REG_BINARY, bytes: (0..6000).map(|_| rand::random::<u8>()).collect() };
key.set_raw_value(name, &val1).unwrap();
let val2 = key.get_raw_value(name).unwrap();
... | rust_cleaned_test_functions.jsonl/128087 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 177
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
17799,
3142,
368,
341,
262,
448,
3097,
10297,
792,
11,
330,
6583,
1130,
1,
589,
341,
286,
1077,
829,
284,
330,
49,
590,
6583,
2208,
876,
286,
1077,
1044,
16,
284,
3184,
1130,
314,
348,
1313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_next_epoch_ext() {
let cellbase = TransactionBuilder::default()
.witness(Script::default().into_witness())
.input(CellInput::new(OutPoint::null(), 0))
.build();
let dao = genesis_dao_data(vec![&cellbase]).unwrap();
let genesis_block = BlockBuilder::default()
... | rust_cleaned_test_functions.jsonl/105201 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 2329
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
11257,
20682,
9927,
368,
341,
262,
1077,
2779,
3152,
284,
17869,
3297,
486,
2258,
741,
286,
659,
86,
8091,
3759,
1228,
486,
2258,
1005,
18122,
1670,
8091,
2398,
286,
659,
1355,
82530,
2505,
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_single_element_attribute_change() {
let old = Element {
id: vec![0],
name: "div".into(),
attributes: hashmap! {
"class".into() => "one".into(),
"attribute-which-doesn-t-exist-after-diffing".into() => "1".into()
},
..Default::def... | rust_cleaned_test_functions.jsonl/125799 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 676
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
19487,
7894,
16791,
15947,
368,
341,
262,
1077,
2310,
284,
8543,
341,
286,
877,
25,
7486,
20703,
15,
1259,
286,
829,
25,
330,
611,
3263,
18122,
3148,
286,
8201,
25,
92148,
0,
341,
310,
330,
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... | 5 |
#[test]
fn test_focus_prev_next_sibling_line_mode() {
let fj = parse_top_level_json(OBJECT.to_owned()).unwrap();
let mut viewer = JsonViewer::new(fj, Mode::Line);
viewer.focused_row = 0;
viewer.desired_depth = 0;
assert_movements(
&mut viewer,
vec... | rust_cleaned_test_functions.jsonl/41772 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1112
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
47492,
25566,
11257,
96328,
6528,
7302,
368,
341,
286,
1077,
75371,
284,
4715,
10426,
8274,
9455,
19238,
10467,
2389,
51973,
6011,
15454,
543,
286,
1077,
5206,
25708,
284,
8308,
28271,
486,
931,
955... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_tamu() {
run_test(
&TEST_DATA,
"directwrite/good-tamu.ta",
"tamil/TAMu_Kalyani.ttf",
&[JOINER_GLYPH_INDEX],
0,
);
} | rust_cleaned_test_functions.jsonl/91210 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 218
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
528,
51972,
368,
341,
394,
1598,
4452,
1006,
503,
609,
10033,
7896,
345,
503,
330,
19798,
4934,
4846,
1386,
2385,
51972,
72160,
756,
503,
330,
83,
20933,
16731,
1402,
84,
10102,
5774,
5559,
45192,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_clone() {
let mut d = VecDeque::new();
d.push_front(17);
d.push_front(42);
d.push_back(137);
d.push_back(137);
assert_eq!(d.len(), 4);
let mut e = d.clone();
assert_eq!(e.len(), 4);
while !d.is_empty() {
assert_eq!(d.pop_back(), e.pop_back());
}
... | rust_cleaned_test_functions.jsonl/73710 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 196
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
54742,
368,
341,
262,
1077,
5206,
294,
284,
11312,
73891,
486,
931,
543,
262,
294,
2552,
22926,
7,
16,
22,
317,
262,
294,
2552,
22926,
7,
19,
17,
317,
262,
294,
2552,
3895,
7,
16,
18,
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_pin_rc_unsized() {
unsafe {
let pointer_ops = DefaultPointerOps::<Pin<Rc<_>>>::new();
let p = Pin::new(Rc::new(1)) as Pin<Rc<dyn Debug>>;
let a: *const dyn Debug = &*p;
let b: (usize, usize) = mem::transmute(a);
let r = pointer_... | rust_cleaned_test_functions.jsonl/82643 | {
"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,
26296,
30299,
4907,
82,
1506,
368,
341,
286,
19860,
341,
310,
1077,
7445,
21959,
284,
7899,
9084,
38904,
27638,
19861,
23370,
66,
32399,
2452,
6831,
931,
543,
310,
1077,
281,
284,
17471,
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_and_constraint() {
let c = Constraint::And {
constraints: vec![
Constraint::And {
constraints: vec![
Constraint::Infix {
op: Op("="),
left: CausetIndexOrExpress... | rust_cleaned_test_functions.jsonl/45649 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 581
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
8378,
46973,
368,
341,
286,
1077,
272,
284,
44264,
486,
3036,
341,
310,
16982,
25,
7486,
90515,
394,
44264,
486,
3036,
341,
503,
16982,
25,
7486,
90515,
664,
44264,
486,
641,
5743,
341,
999,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.