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_exchange_x_bytes_is_symmetric() {
let mut rng = ThreadRng256 {};
for _ in 0..ITERATIONS {
let sk_a = SecKey::gensk(&mut rng);
let mut pk_bytes_a = [Default::default(); 65];
sk_a.genpk().to_bytes_uncompressed(&mut pk_bytes_a);
let ... | rust_cleaned_test_functions.jsonl/100260 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 385
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
59212,
3212,
12524,
6892,
26825,
15903,
368,
341,
286,
1077,
5206,
28422,
284,
8752,
49,
968,
17,
20,
21,
20375,
286,
369,
716,
304,
220,
15,
496,
24733,
21792,
341,
310,
1077,
1901,
4306,
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... | 2 |
#[test]
fn test_which_re_in_with_matches() {
let f = TestFixture::new();
f.mk_bin("a/bin_0", "").unwrap();
f.mk_bin("b/bin_1", "").unwrap();
let re = Regex::new(r"bin_\d").unwrap();
let result: Vec<PathBuf> = which::which_re_in(re, Some(f.paths))
.unwrap()
.into_iter()
... | rust_cleaned_test_functions.jsonl/13395 | {
"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,
62,
8206,
1288,
1243,
6615,
38344,
368,
341,
262,
1077,
282,
284,
3393,
18930,
486,
931,
543,
262,
282,
35011,
21816,
445,
64,
8749,
62,
15,
497,
35229,
15454,
543,
262,
282,
35011,
21816,
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_bundle_custom() {
let bun: Bundle = r#"{
"name": "aristotle",
"invocationImages": [],
"schemaVersion": "1.0.0",
"version": "1.0.0",
"custom": {
"com.example.praxis": {
"techne": true
}
}
}"#
.parse()
... | rust_cleaned_test_functions.jsonl/112264 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 320
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
60986,
15875,
368,
341,
262,
1077,
44821,
25,
13182,
284,
435,
55543,
515,
286,
330,
606,
788,
330,
277,
380,
50526,
756,
286,
330,
14057,
2276,
14228,
788,
10239,
286,
330,
17349,
5637,
788,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_log_batch_merge() {
let region_id = 8;
let mut entries = Vec::new();
let mut kvs = Vec::new();
let mut batch1 = LogBatch::default();
entries.push(generate_entries(1, 11, Some(vec![b'x'; 1024])));
batch1
.add_entries::<Entry>(region_id,... | rust_cleaned_test_functions.jsonl/48885 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1387
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
5224,
14534,
20888,
368,
341,
286,
1077,
5537,
842,
284,
220,
23,
280,
286,
1077,
5206,
10695,
284,
11312,
486,
931,
543,
286,
1077,
5206,
595,
11562,
284,
11312,
486,
931,
1428,
286,
1077,
5206... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_extract_var_in_match_arm_with_block() {
check_assist(
extract_variable,
"
fn main() {
let x = true;
let tuple = match x {
true => {
let y = 1;
($02 + y$0, true)
}
_ => (0, false)
};
}
",
"
fn ... | rust_cleaned_test_functions.jsonl/132834 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 332
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
39123,
4612,
1243,
10708,
34680,
6615,
7113,
368,
341,
286,
1779,
12083,
380,
1006,
310,
8649,
14635,
345,
310,
6228,
8822,
1887,
368,
341,
262,
1077,
856,
284,
830,
280,
262,
1077,
14405,
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_mutex_unsized() {
let mutex: &Mutex<[i32]> = &Mutex::new([1, 2, 3]);
{
let b = &mut *mutex.lock();
b[0] = 4;
b[2] = 5;
}
let comp: &[i32] = &[4, 2, 5];
assert_eq!(&*mutex.lock(), comp);
} | rust_cleaned_test_functions.jsonl/50768 | {
"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,
14204,
4907,
82,
1506,
368,
341,
286,
1077,
30863,
25,
609,
38099,
66746,
72,
18,
17,
25669,
284,
609,
38099,
486,
931,
2561,
16,
11,
220,
17,
11,
220,
18,
2558,
286,
341,
310,
1077,
293,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_template_metadata_with_tera() {
let client = Client::new(rocket()).unwrap();
let response = client.get("/tera/txt_test").dispatch();
assert_eq!(response.status(), Status::Ok);
let response = client.get("/tera/html_test").dispatch();
a... | rust_cleaned_test_functions.jsonl/99117 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 276
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
8693,
22220,
6615,
62,
50037,
368,
341,
310,
1077,
2943,
284,
8423,
486,
931,
7,
46790,
6011,
15454,
1428,
310,
1077,
2033,
284,
2943,
670,
4283,
50037,
5523,
2252,
4452,
1827,
18274,
543,
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_all() {
let argon_hash = "$argon2i$m=262144,p=1,t=2$c29tZXNhbHQ\
$Pmiaqj0op3zyvHKlGsUxZnYXURgvHuKS4/Z3p9pMJGc";
let bcrypt_hash = "$2a$10$ckjEeyTD6estWyoofn4EROM9Ik2PqVcfcrepX.uGp6.aqRdCMN/Oe";
let argon: McfHash = from_str(argon_hash).unwrap();... | rust_cleaned_test_functions.jsonl/103684 | {
"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,
5705,
368,
341,
286,
1077,
1392,
263,
8950,
284,
5201,
70821,
17,
72,
53516,
28,
17,
21,
17,
16,
19,
19,
7237,
28,
16,
13960,
28,
17,
29835,
17,
24,
83,
80723,
45,
49039,
89619,
5661,
3502,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_vec3mask_from() {
assert_eq!(
Into::<[u32; 3]>::into(Vec3AMask::new(false, false, false)),
[0, 0, 0]
);
assert_eq!(
Into::<[u32; 3]>::into(Vec3AMask::new(true, false, false)),
[!0, 0, 0]
);
assert_eq!(
Into::<[u32; 3]>::into(Vec3AMask::... | rust_cleaned_test_functions.jsonl/23493 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 416
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
13251,
18,
11258,
5673,
368,
341,
262,
2060,
10714,
33673,
286,
31645,
27638,
58,
84,
18,
17,
26,
220,
18,
60,
6831,
18122,
49923,
18,
1402,
1073,
486,
931,
3576,
11,
895,
11,
895,
6965,
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_puts_gets_deletes_metadata() {
init_logging();
let bucket_name = format!("test-bucket-{}-{}", "metadata".to_owned(), get_time().sec);
let test_client = TestS3Client::new(bucket_name.clone());
test_client.create_test_bucket(bucket_name.clone());
let metadata_filename = forma... | rust_cleaned_test_functions.jsonl/112576 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 554
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
88574,
3062,
82,
2259,
13881,
22220,
368,
341,
262,
2930,
59982,
1428,
262,
1077,
15621,
1269,
284,
3561,
17223,
1944,
1455,
11152,
12,
6257,
12,
42351,
330,
17637,
3263,
983,
51973,
1507,
633,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_validate_proposal_vote_requester() {
let store = setup_admin_service_store();
let event_store = store.clone_boxed();
let (mesh, cm, pm, peer_connector) = setup_peer_connector(None);
let orchestrator = setup_orchestrator();
let signature_verifier = Secp25... | rust_cleaned_test_functions.jsonl/47886 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 659
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
42681,
21663,
32556,
54360,
7893,
261,
368,
341,
286,
1077,
3553,
284,
6505,
12207,
12267,
14809,
543,
286,
1077,
1538,
14809,
284,
3553,
15997,
10194,
291,
1428,
286,
1077,
320,
23506,
11,
9961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_part1_d() {
let input =
"#######
#E.G#.#
#.#G..#
#G.#.G#
#G..#.#
#...E.#
#######";
assert_eq!(part1(&as_input(input)), 27755);
} | rust_cleaned_test_functions.jsonl/13274 | {
"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,
10495,
16,
814,
368,
341,
286,
1077,
1946,
4035,
310,
330,
82024,
1797,
671,
36,
1224,
87846,
4956,
1797,
671,
43326,
38,
496,
4956,
1797,
671,
38,
43326,
13,
38,
4956,
1797,
671,
38,
496,
878... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_month_enum_primitive_parse() {
use num_traits::FromPrimitive;
let jan_opt = Month::from_u32(1);
let feb_opt = Month::from_u64(2);
let dec_opt = Month::from_i64(12);
let no_month = Month::from_u32(13);
assert_eq!(jan_opt, Some(Month::January));
... | rust_cleaned_test_functions.jsonl/92416 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 381
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
18933,
31054,
84087,
21039,
368,
341,
286,
990,
1629,
39693,
486,
3830,
33313,
401,
286,
1077,
32862,
15032,
284,
19397,
486,
1499,
7300,
18,
17,
7,
16,
317,
286,
1077,
1152,
65,
15032,
284,
193... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_string_at_position_e() {
let example: Vec<char> = "a".to_string().chars().collect();
assert!(!is_string_at_position(&example, 20, "aaaa"));
} | rust_cleaned_test_functions.jsonl/126889 | {
"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,
6892,
3904,
3752,
9661,
2204,
368,
341,
286,
1077,
3110,
25,
11312,
21919,
29,
284,
330,
64,
3263,
983,
3904,
1005,
19255,
1005,
17384,
543,
286,
2060,
0,
3471,
285,
3904,
3752,
9661,
2099,
8687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_sync() {
fn assert_send_sync<T: Send + Sync + ?Sized>() {}
assert_send_sync::<Bool>();
assert_send_sync::<Class>();
assert_send_sync::<Ivar>();
assert_send_sync::<Method>();
assert_send_sync::<Protocol>();
assert_send_sync::<Sel>();
... | rust_cleaned_test_functions.jsonl/7133 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 162
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
13565,
23008,
368,
341,
286,
5168,
2060,
13565,
23008,
3125,
25,
11000,
488,
28937,
488,
937,
50,
1506,
13555,
5613,
286,
2060,
13565,
23008,
27638,
11233,
3913,
286,
2060,
13565,
23008,
27638,
1957... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_valid_write_csv() {
let modified_data = r"a,b,c,d,e\nf,g,h,i,j";
let output_file = write_csv(&modified_data, "output/test.csv");
assert!(output_file.is_ok());
} | rust_cleaned_test_functions.jsonl/83337 | {
"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,
8337,
9165,
14020,
368,
341,
1789,
286,
1077,
10807,
1769,
284,
435,
56693,
8402,
10109,
11991,
22563,
1699,
69,
21644,
19806,
11286,
10327,
876,
286,
1077,
2550,
2458,
284,
3270,
14020,
2099,
27162... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_find_mut_missing() {
let mut m = TrieMap::new();
assert!(m.get_mut(&0).is_none());
assert!(m.insert(1, 12).is_none());
assert!(m.get_mut(&0).is_none());
assert!(m.insert(2, 8).is_none());
assert!(m.get_mut(&0).is_none());
} | rust_cleaned_test_functions.jsonl/88416 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 159
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21814,
29523,
40447,
368,
341,
286,
1077,
5206,
296,
284,
62783,
2227,
486,
931,
543,
286,
2060,
10297,
76,
670,
29523,
2099,
15,
568,
285,
31488,
1423,
286,
2060,
10297,
76,
7030,
7,
16,
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_write_sequence_of() {
assert_writes(&[
(SequenceOfWriter::new(&[]), b"\x30\x00"),
(
SequenceOfWriter::new(&[1u8, 2, 3]),
b"\x30\x09\x02\x01\x01\x02\x01\x02\x02\x01\x03",
),
]);
assert_writes(&[
... | rust_cleaned_test_functions.jsonl/129900 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 608
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
9165,
23735,
3575,
368,
341,
286,
2060,
1670,
23262,
2099,
9640,
310,
320,
14076,
2124,
6492,
486,
931,
2099,
1294,
701,
293,
11934,
87,
18,
15,
3462,
15,
15,
4461,
310,
2399,
394,
28871,
2124,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_delete_template() {
let route = Route::DeleteTemplate {
guild_id: GUILD_ID,
template_code: TEMPLATE_CODE,
};
assert_eq!(
route.to_string(),
format!(
"guilds/{guild_id}/templates/{template_code}",
... | rust_cleaned_test_functions.jsonl/119915 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 251
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
11353,
8693,
368,
341,
286,
1077,
6021,
284,
9572,
486,
6435,
7275,
341,
310,
26411,
842,
25,
479,
18023,
3450,
345,
310,
3811,
4136,
25,
67387,
10020,
345,
286,
2605,
286,
2060,
10714,
33673,
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_established_fin() {
let mut s = socket_established();
send!(s, TcpRepr {
control: TcpControl::Fin,
seq_number: REMOTE_SEQ + 1,
ack_number: Some(LOCAL_SEQ + 1),
..SEND_TEMPL
});
recv!(s, [TcpRepr {
seq_num... | rust_cleaned_test_functions.jsonl/1728 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 300
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
18583,
5102,
291,
39737,
368,
341,
286,
1077,
5206,
274,
284,
7575,
18583,
5102,
291,
543,
286,
3624,
10297,
82,
11,
64876,
693,
649,
341,
310,
2524,
25,
64876,
3273,
486,
9134,
345,
310,
12981,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_fq_double() {
let mut rng = XorShiftRng::from_seed([
0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc,
0xe5,
]);
for _ in 0..1000 {
// Ensure doubling a is equivalent to adding a to itself.
let a = Fq::random(&m... | rust_cleaned_test_functions.jsonl/79191 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 207
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
761,
80,
24598,
368,
341,
262,
1077,
5206,
28422,
284,
1599,
269,
24841,
49,
968,
486,
1499,
33809,
8956,
286,
220,
15,
87,
20,
24,
11,
220,
15,
87,
21,
17,
11,
220,
15,
42459,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_bits_by_word() {
let data = [true, true, false, true, false, false, true, false];
let buf = pack_bits_by_word(&data);
let ret = unpack_bits_by_word(buf.as_slice());
assert_eq!(ret.as_slice(), data)
} | rust_cleaned_test_functions.jsonl/62511 | {
"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,
20034,
3710,
13533,
368,
341,
286,
1077,
821,
284,
508,
1866,
11,
830,
11,
895,
11,
830,
11,
895,
11,
895,
11,
830,
11,
895,
935,
286,
1077,
6607,
284,
3769,
20034,
3710,
13533,
2099,
691,
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_complex_array_reader_def_and_rep_levels() {
// Construct column schema
let message_type = "
message test_schema {
REPEATED Group test_mid {
OPTIONAL BYTE_ARRAY leaf (UTF8);
}
}
";
let num_pages = 2;
l... | rust_cleaned_test_functions.jsonl/10216 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 2415
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
41522,
3858,
22306,
7844,
8378,
25533,
37819,
368,
341,
286,
442,
18678,
3250,
10802,
198,
286,
1077,
1943,
1819,
284,
6228,
286,
1943,
1273,
25371,
341,
310,
3596,
1740,
9005,
5737,
1273,
43733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_ildefaulttagcreator_bad_id() {
let creator = ILDefaultTagCreator::<DummyTag>::new();
let t = creator.create_empty_tag(0);
assert_eq!(t.id(), DEFAULT_DUMMY_TAG_ID);
} | rust_cleaned_test_functions.jsonl/25702 | {
"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,
26743,
2258,
4578,
32398,
34199,
842,
368,
341,
262,
1077,
19919,
284,
11344,
3675,
5668,
31865,
27638,
43344,
5668,
6831,
931,
1428,
262,
1077,
259,
284,
19919,
2520,
15124,
9372,
7,
15,
317,
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 |
#[test]
fn test_random_sequence() {
use rand::Rng;
let mut rng = rand::thread_rng();
let avg = MovingAvgU32::new(105);
let mut external_sum = 0;
for _ in 0..100 {
let n: u32 = rng.gen_range(0..u32::MAX / 100);
external_sum += n;
avg.ad... | rust_cleaned_test_functions.jsonl/124107 | {
"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,
22644,
23735,
368,
341,
286,
990,
10382,
486,
49,
968,
280,
286,
1077,
5206,
28422,
284,
10382,
486,
4528,
66849,
1428,
286,
1077,
19712,
284,
37627,
39447,
52,
18,
17,
486,
931,
7,
16,
15,
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... | 2 |
#[test]
fn test_ref_tosql() {
let conn = or_panic!(Connection::connect(
"postgres://postgres@localhost:5433",
TlsMode::None,
));
let stmt = conn.prepare("SELECT $1::Int").unwrap();
let num: &ToSql = &&7;
stmt.query(&[num]).unwrap();
} | rust_cleaned_test_functions.jsonl/120840 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 130
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
7793,
528,
436,
1470,
368,
341,
262,
1077,
4534,
284,
476,
620,
31270,
10297,
4526,
486,
6459,
1006,
286,
330,
43070,
1110,
43070,
31,
8301,
25,
20,
19,
18,
18,
756,
286,
350,
4730,
3636,
486,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_addr() {
let netid = AmsNetId::new(5, 123, 8, 9, 1, 1);
let addr = AmsAddr::new(netid, 851);
assert_eq!(addr.netid(), netid);
assert_eq!(addr.port(), 851);
assert_eq!(addr.to_string(), "5.123.8.9.1.1:851");
let mut buf = vec![];
addr.write_to(&mut buf).unwrap();
... | rust_cleaned_test_functions.jsonl/14291 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 423
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
7387,
368,
341,
262,
1077,
4179,
307,
284,
362,
1011,
6954,
764,
486,
931,
7,
20,
11,
220,
16,
17,
18,
11,
220,
23,
11,
220,
24,
11,
220,
16,
11,
220,
16,
317,
262,
1077,
10789,
284,
362... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_voxel_grid_filter() {
let buffer = setup_point_cloud();
assert!(buffer.len() == 3002);
let mut filtered = PerAttributeVecPointStorage::new(buffer.point_layout().clone());
voxelgrid_filter(&buffer, 1.0, 1.0, 1.0, &mut filtered);
// filtered now has only 100... | rust_cleaned_test_functions.jsonl/72779 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 500
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
2273,
52391,
15604,
8727,
368,
341,
286,
1077,
4147,
284,
6505,
6085,
37356,
543,
286,
2060,
10297,
7573,
19406,
368,
621,
220,
18,
15,
15,
17,
317,
286,
1077,
5206,
18293,
284,
3616,
3907,
1005... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_rendez_vous_selected_client_re_send_rendez_vous() {
let mut protocol = Protocol::new(get_default_fl_settings());
let client_id = ClientId::new();
protocol.rendez_vous(client_id, ClientState::Unknown);
assert_eq!(1, protocol.counters().waiting);
assert_eq... | rust_cleaned_test_functions.jsonl/97764 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 627
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
1288,
303,
10125,
2273,
782,
23755,
8179,
1288,
13565,
1288,
303,
10125,
2273,
782,
368,
341,
286,
1077,
5206,
11507,
284,
24572,
486,
931,
5433,
9993,
5081,
10853,
1423,
286,
1077,
2943,
842,
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_encode_contract_tz1() -> Result<(), failure::Error> {
let decoded = HashType::ContractTz1Hash
.hash_to_b58check(&hex::decode("83846eddd5d3c5ed96e962506253958649c84a74")?);
let expected = "tz1XdRrrqrMfsFKA8iuw53xHzug9ipr6MuHq";
assert_eq!(expected, decoded);
... | rust_cleaned_test_functions.jsonl/104552 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 176
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
11224,
51499,
528,
89,
16,
368,
1464,
5714,
68843,
7901,
486,
1454,
29,
341,
286,
1077,
29213,
284,
6531,
929,
486,
14067,
51,
89,
16,
6370,
198,
310,
659,
8296,
2346,
880,
20,
23,
2028,
2099,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_recordbatch_iterator() {
let mut df = df!(
"foo" => &[1, 2, 3, 4, 5]
)
.unwrap();
let mut iter = df.iter_record_batches(2);
assert_eq!(2, iter.next().unwrap().num_rows());
assert_eq!(2, iter.next().unwrap().num_rows());
assert_e... | rust_cleaned_test_functions.jsonl/126549 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 209
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
14192,
14049,
13491,
368,
341,
286,
1077,
5206,
6764,
284,
6764,
33673,
310,
330,
7975,
1,
589,
44590,
16,
11,
220,
17,
11,
220,
18,
11,
220,
19,
11,
220,
20,
921,
286,
1727,
286,
659,
15454... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_expander_type_ref() {
let json = std::fs::read_to_string("src/schema.json").expect("Read schema JSON file");
let schema = serde_json::from_str(&json).unwrap_or_else(|err| panic!("{}", err));
let expander = Expander::new(Some("SchemaName"), "::schemafy_core::", &schema);
... | rust_cleaned_test_functions.jsonl/14489 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 731
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
14214,
8199,
1819,
7793,
368,
341,
286,
1077,
2951,
284,
1460,
486,
3848,
486,
878,
2346,
3904,
445,
3548,
61142,
4323,
1827,
17119,
445,
4418,
10802,
4718,
1034,
797,
286,
1077,
10802,
284,
61570... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_ignore_if_not_derive() {
check_assist_not_applicable(
replace_derive_with_manual_impl,
r#"
//- minicore: derive
#[allow(non_camel_$0case_types)]
struct Foo {}
"#,
)
} | rust_cleaned_test_functions.jsonl/18002 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 138
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
58493,
11119,
7913,
35345,
533,
368,
341,
286,
1779,
12083,
380,
7913,
8191,
46114,
1006,
310,
8290,
35345,
533,
6615,
75428,
21007,
345,
310,
435,
2,
698,
61463,
1308,
292,
460,
25,
42430,
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 |
#[test]
fn test_panic_on_second_overflow() {
use crate::hazardous::hash::sha2::sha2_core::Word;
let mut context = Sha384::default();
context._state.message_len = [WordU64::MAX, WordU64::from(u64::MAX - 7)];
// in bites should overflow by exactly one.... | rust_cleaned_test_functions.jsonl/46936 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 191
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
620,
31270,
4470,
29644,
79073,
368,
341,
310,
990,
17717,
486,
71,
57657,
782,
486,
8296,
486,
15247,
17,
486,
15247,
17,
15467,
486,
10879,
401,
310,
1077,
5206,
2266,
284,
27970,
18,
23,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_lcs_rotate_dual_attestationInfo_transaction_script() {
let new_url = b"new_name".to_vec();
let private_key = Ed25519PrivateKey::generate_for_testing();
let new_compliance_public_key = private_key.public_key();
let mut script_buf: *mut u8 = std::ptr::null_mut();
... | rust_cleaned_test_functions.jsonl/30043 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 721
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
907,
4837,
60834,
96772,
13356,
63978,
1731,
28884,
14660,
368,
341,
286,
1077,
501,
2903,
284,
293,
1,
931,
1269,
3263,
983,
13251,
543,
286,
1077,
869,
3097,
284,
3199,
17,
20,
20,
16,
24,
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_sample_p2() {
let contents = fs::read_to_string("sample2.txt").unwrap();
let res_p2 = part2(&contents);
assert_eq!(res_p2, 208);
} | rust_cleaned_test_functions.jsonl/28513 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 92
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
17491,
620,
17,
368,
341,
286,
1077,
8794,
284,
8619,
486,
878,
2346,
3904,
445,
13611,
17,
3909,
1827,
15454,
543,
286,
1077,
592,
620,
17,
284,
949,
17,
2099,
17610,
626,
286,
2060,
10714,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_capacity() {
let s = <InlinableString as StringExt>::with_capacity(100);
assert!(InlinableString::capacity(&s) >= 100);
} | rust_cleaned_test_functions.jsonl/109717 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 72
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
35603,
368,
341,
286,
1077,
274,
284,
366,
641,
3732,
480,
703,
438,
923,
6756,
6831,
4197,
35603,
7,
16,
15,
15,
317,
286,
2060,
10297,
641,
3732,
480,
703,
486,
37387,
2099,
82,
8,
2604,
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 |
#[test]
fn test_zeroed_reg_covar_const_failure() {
// repeat values such that covariance is zero
let xt = Array2::ones((50, 1));
let data = concatenate(Axis(1), &[xt.view(), xt.view()]).unwrap();
let dataset = DatasetBase::from(data);
// Test that cholesky decomposition ... | rust_cleaned_test_functions.jsonl/10370 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 516
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
19359,
291,
4920,
50028,
277,
13610,
43618,
368,
341,
286,
442,
13153,
2750,
1741,
429,
59308,
374,
7168,
198,
286,
1077,
62390,
284,
2910,
17,
486,
3154,
1188,
20,
15,
11,
220,
16,
1106,
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_upsert_node_instance() {
const SEED: [u8; 32] = [0x42; 32];
let mut rng = ChaChaRng::from_seed(SEED);
fn make_crds_value(node: NodeInstance) -> CrdsValue {
CrdsValue::new_unsigned(CrdsData::NodeInstance(node))
}
let now = 1_620_838_767_000;
... | rust_cleaned_test_functions.jsonl/10451 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1146
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
8237,
6047,
5084,
11904,
368,
341,
286,
733,
5052,
1479,
25,
508,
84,
23,
26,
220,
18,
17,
60,
284,
508,
15,
87,
19,
17,
26,
220,
18,
17,
935,
286,
1077,
5206,
28422,
284,
27721,
95971,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_save_jpg_gray() {
let data = [
[52, 55, 61, 66, 70, 61, 64, 73],
[63, 59, 55, 90, 109, 85, 69, 72],
[62, 59, 68, 113, 144, 104, 66, 73],
[63, 58, 71, 122, 154, 106, 70, 69],
[67, 61, 68, 104, 126, 88, 68, 70],
[79, 65, 60, 70, 77, 68, 58, 75],
... | rust_cleaned_test_functions.jsonl/65022 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 294
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
15376,
5374,
3517,
51331,
368,
341,
262,
1077,
821,
284,
2278,
286,
508,
20,
17,
11,
220,
20,
20,
11,
220,
21,
16,
11,
220,
21,
21,
11,
220,
22,
15,
11,
220,
21,
16,
11,
220,
21,
19,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_ipv6_unrecognized_ext_hdr_option() {
let mut ctx = DummyEventDispatcherBuilder::from_config(DUMMY_CONFIG_V6)
.build::<DummyEventDispatcher>();
let device = DeviceId::new_ethernet(0);
let mut expected_icmps = 0;
let mut bytes = [0; 64];
let fram... | rust_cleaned_test_functions.jsonl/94401 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 2122
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
49378,
21,
4907,
46067,
9927,
28238,
9672,
368,
341,
286,
1077,
5206,
5635,
284,
50567,
1556,
21839,
3297,
486,
1499,
5332,
5432,
58673,
12568,
2334,
21,
340,
310,
659,
5834,
27638,
43344,
1556,
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_size() {
let b = Box3D::new(point3(-10.0, -10.0, -10.0), point3(10.0, 10.0, 10.0));
assert!(b.size().width == 20.0);
assert!(b.size().height == 20.0);
assert!(b.size().depth == 20.0);
} | rust_cleaned_test_functions.jsonl/7474 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 134
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
2368,
368,
341,
286,
1077,
293,
284,
8261,
18,
35,
486,
931,
20235,
18,
4080,
16,
15,
13,
15,
11,
481,
16,
15,
13,
15,
11,
481,
16,
15,
13,
15,
701,
1459,
18,
7,
16,
15,
13,
15,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_parse_length_delimited_from_network_smoke() {
use std::io::Write;
use std::net;
use std::thread;
let listener = net::TcpListener::bind(("127.0.0.1", 0)).expect("bind");
let addr = listener.local_addr().expect("local_addr");
thread::spawn(move || {
let mut test1 =... | rust_cleaned_test_functions.jsonl/2724 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 340
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
5118,
18029,
31511,
5673,
20966,
15874,
4740,
368,
341,
262,
990,
1460,
486,
815,
486,
7985,
280,
262,
990,
1460,
486,
4711,
280,
262,
990,
1460,
486,
4528,
401,
262,
1077,
11446,
284,
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... | 2 |
#[test]
fn test_admin_cmd_epoch_map_include_all_cmd_type() {
#[cfg(feature = "protobuf-codec")]
use protobuf::ProtobufEnum;
for cmd_type in AdminCmdType::values() {
assert!(ADMIN_CMD_EPOCH_MAP.contains_key(cmd_type));
}
} | rust_cleaned_test_functions.jsonl/60743 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 144
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
12207,
11684,
20682,
5376,
37878,
5705,
11684,
1819,
368,
341,
286,
11506,
14072,
27062,
284,
330,
32921,
25261,
66,
5422,
286,
990,
69634,
486,
12423,
18464,
10766,
280,
286,
369,
5439,
1819,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_boundaries() {
let start = NaiveDate::from_ymd(2021, 12, 16).and_hms(0, 0, 0);
let stop = NaiveDate::from_ymd(2021, 12, 16).and_hms(3, 0, 0);
let ts = date_range(
start.timestamp_nanos(),
stop.timestamp_nanos(),
Duration::parse("30m"),
ClosedWindow::B... | rust_cleaned_test_functions.jsonl/58722 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 1527
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
19447,
5431,
368,
341,
262,
1077,
1191,
284,
12812,
533,
1916,
486,
1499,
62,
1600,
67,
7,
17,
15,
17,
16,
11,
220,
16,
17,
11,
220,
16,
21,
568,
437,
1523,
1011,
7,
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... | 1 |
#[test]
fn test_encode_literal_huffman() {
let mut d = QpackData::default();
d.encode_literal(true, Prefix::new(0xC0, 2), VALUE);
assert_eq!(&&d[..], &LITERAL_HUFFMAN);
} | rust_cleaned_test_functions.jsonl/38311 | {
"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,
11224,
34100,
1523,
77708,
368,
341,
286,
1077,
5206,
294,
284,
1207,
4748,
1043,
486,
2258,
543,
286,
294,
17313,
34100,
3715,
11,
56483,
486,
931,
7,
15,
12125,
15,
11,
220,
17,
701,
26827,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_cdc_no_write_corresponding_to_lock() {
let mut suite = TestSuite::new(1);
let mut req = suite.new_changedata_request(1);
req.set_extra_op(ExtraOp::ReadOldValue);
let (mut req_tx, _, receive_event) = new_event_feed(suite.get_region_cdc_client(1));
let _req_tx = block_on(req_tx... | rust_cleaned_test_functions.jsonl/13019 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 734
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
666,
7628,
6536,
9165,
14734,
6818,
287,
2346,
9818,
368,
341,
262,
1077,
5206,
16182,
284,
3393,
28000,
486,
931,
7,
16,
317,
262,
1077,
5206,
4232,
284,
16182,
4618,
25213,
459,
7893,
7,
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... | 4 |
#[test]
fn test_no_show_folder_content_of_symlink_for_long() {
let dir = tempdir();
dir.child("target").child("inside").touch().unwrap();
let link = dir.path().join("link");
fs::symlink("target", &link).unwrap();
cmd()
.arg("-l")
.arg("--ignore-config")
.arg(link)
... | rust_cleaned_test_functions.jsonl/636 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 325
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6536,
15267,
15268,
7495,
3575,
58530,
44243,
5478,
17799,
368,
341,
262,
1077,
5419,
284,
2730,
3741,
543,
262,
5419,
17531,
445,
5657,
1827,
3048,
445,
41350,
1827,
22020,
1005,
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_parse_operator_bits() {
assert_eq!(
Packet::parse("38006F45291200"),
Ok(Packet {
version: 1,
payload: Payload::Operator(
vec![
Packet {
version: 6,
... | rust_cleaned_test_functions.jsonl/37947 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 477
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
40594,
20034,
368,
341,
286,
2060,
10714,
33673,
310,
28889,
486,
6400,
445,
18,
23,
15,
15,
21,
37,
19,
20,
17,
24,
16,
17,
15,
15,
4461,
310,
7622,
92222,
341,
394,
2319,
25,
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_push_column() {
let mut matrix = init(3, 4, |i, j| ((i + 1) * 10 + (j + 1)) as i32);
println!(">> {:?}", &matrix);
(&mut matrix).push_column(vec![1, 2, 3]);
println!(">> {:?}", &matrix);
} | rust_cleaned_test_functions.jsonl/115920 | {
"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,
14218,
8744,
368,
341,
286,
1077,
5206,
6172,
284,
2930,
7,
18,
11,
220,
19,
11,
760,
72,
11,
502,
91,
1781,
72,
488,
220,
16,
8,
353,
220,
16,
15,
488,
320,
73,
488,
220,
16,
593,
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_attach_legacy_devices() {
let mut vmm = create_vmm_object(InstanceState::Uninitialized);
assert!(vmm.attach_legacy_devices().is_ok());
assert!(vmm.legacy_device_manager.io_bus.get_device(0x3f8).is_some());
assert!(vmm.legacy_device_manager.io_bus.get_device(0x2f8... | rust_cleaned_test_functions.jsonl/93126 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 314
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
40719,
97555,
41334,
368,
341,
286,
1077,
5206,
348,
3821,
284,
1855,
2273,
3821,
5314,
7,
8846,
486,
1806,
36161,
626,
286,
2060,
10297,
85,
3821,
33027,
97555,
41334,
1005,
285,
19817,
1423,
286... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_transform_without_suffix_on_input() {
new_ucmd!()
.args(&["--suffix=b", "--to=si"])
.pipe_in("2000")
.succeeds()
.stdout_only("2.0Kb\n");
} | rust_cleaned_test_functions.jsonl/93650 | {
"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,
18449,
39904,
37151,
4470,
5898,
368,
341,
262,
501,
68887,
2277,
0,
741,
286,
659,
2116,
2099,
1183,
313,
26786,
22086,
497,
14482,
983,
28,
6321,
14108,
286,
659,
13768,
1243,
445,
17,
15,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_domain() {
let parsed = parse_resolv_conf("domain example.com").expect("failed");
let mut cfg = empty_config();
cfg.set_domain(Name::from_str("example.com").unwrap());
assert_eq!(cfg, parsed.0);
assert_eq!(ResolverOpts::default(), parsed.1);
} | rust_cleaned_test_functions.jsonl/39727 | {
"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,
20111,
368,
341,
286,
1077,
15676,
284,
4715,
4918,
35315,
16059,
445,
12204,
3110,
905,
1827,
17119,
445,
16091,
797,
286,
1077,
5206,
13286,
284,
4287,
5332,
543,
286,
13286,
980,
20111,
21182,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_user_key() {
let enclave = init_enclave_wrapper().unwrap();
let (_, _, data, sig) = exchange_keys(enclave.geteid());
let signing_key = equote::get_register_signing_address(enclave.geteid()).unwrap();
let mut des = Deserializer::new(&data[..]);
let res... | rust_cleaned_test_functions.jsonl/63437 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 305
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
3062,
3317,
3097,
368,
341,
286,
1077,
97712,
284,
2930,
6205,
40533,
23561,
1005,
15454,
543,
286,
1077,
39464,
8358,
821,
11,
8366,
8,
284,
9289,
12631,
45608,
40533,
670,
61878,
1423,
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_source_map_resolution() {
let project_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let test_files_dir = project_dir.join("tests/hsp");
let entry_file = test_files_dir.join("deep.hsp");
let file_names = vec![
entry_file.to_str().unwrap(),
... | rust_cleaned_test_functions.jsonl/46978 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 475
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
10347,
5376,
39849,
368,
341,
286,
1077,
2390,
4334,
284,
7933,
15064,
486,
1499,
16978,
17223,
34,
7581,
46,
25143,
91120,
8291,
4010,
286,
1077,
1273,
10931,
4334,
284,
2390,
4334,
5446,
445,
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_read_var_uint_zero() {
let var_uint = VarUInt::read(&mut Cursor::new(&[0b1000_0000])).expect(ERROR_MESSAGE);
assert_eq!(var_uint.size_in_bytes(), 1);
assert_eq!(var_uint.value(), 0);
} | rust_cleaned_test_functions.jsonl/116129 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 117
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6443,
4612,
15807,
19359,
368,
341,
286,
1077,
762,
15807,
284,
8735,
18777,
486,
878,
2099,
6984,
28067,
486,
931,
2099,
58,
15,
65,
16,
15,
15,
15,
62,
15,
15,
15,
15,
54697,
17119,
32268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_move_to() {
let (saved_x, saved_y) = position().unwrap();
execute!(stdout(), MoveTo(saved_x + 1, saved_y + 1)).unwrap();
assert_eq!(position().unwrap(), (saved_x + 1, saved_y + 1));
execute!(stdout(), MoveTo(saved_x, saved_y)).unwrap();
assert_eq!(positi... | rust_cleaned_test_functions.jsonl/13971 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 171
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
17134,
2346,
368,
341,
286,
1077,
320,
32702,
3212,
11,
6781,
4178,
8,
284,
2309,
1005,
15454,
1428,
286,
9026,
10297,
36358,
1507,
14561,
1249,
14217,
3212,
488,
220,
16,
11,
6781,
4178,
488,
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_get_transactions_page_limit() {
let (_, client, _runtime) = create_database_client_and_runtime();
let ret = client.get_transactions(0, 1001, false).unwrap_err();
let error = ret.json_rpc_error().unwrap();
let expected = "JsonRpcError { code: -32600, message: \"Invalid Request: p... | rust_cleaned_test_functions.jsonl/102710 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 156
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
3062,
68182,
6129,
14763,
368,
341,
262,
1077,
39464,
2943,
11,
716,
22255,
8,
284,
1855,
27341,
8179,
8378,
33232,
1428,
262,
1077,
2112,
284,
2943,
670,
68182,
7,
15,
11,
220,
16,
15,
15,
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() {
create_case(vec![0., 0.], vec![1., 0., 0., 1.]);
create_case(vec![10., 5.], vec![2., 1., 1., 2.]);
create_case(vec![4., 5., 6.], vec![2., 1., 0., 1., 2., 1., 0., 1., 2.]);
create_case(vec![0., f64::INFINITY], vec![1., 0., 0., 1.]);
create_case(... | rust_cleaned_test_functions.jsonl/106551 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 208
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
8657,
368,
341,
286,
1855,
19096,
25592,
20703,
15,
2572,
220,
15,
13,
1125,
7486,
20703,
16,
2572,
220,
15,
2572,
220,
15,
2572,
220,
16,
13,
2558,
286,
1855,
19096,
25592,
20703,
16,
15,
257... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_constants() -> TestResult {
let p = polar();
{
let mut kb = p.kb.write().unwrap();
kb.register_constant(sym!("one"), term!(1))?;
kb.register_constant(sym!("two"), term!(2))?;
kb.register_constant(sym!("three"), term!(3))?;
}
p.load_str(
r#"... | rust_cleaned_test_functions.jsonl/68100 | {
"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,
55642,
368,
1464,
3393,
2077,
341,
262,
1077,
281,
284,
24660,
543,
262,
341,
286,
1077,
5206,
38653,
284,
281,
5202,
65,
3836,
1005,
15454,
543,
286,
38653,
9929,
34967,
62512,
17223,
603,
3975,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_is_supported_test_ext() {
assert!(!is_supported_test_ext(Path::new("tests/subdir/redirects")));
assert!(is_supported_test_ext(Path::new("README.md")));
assert!(is_supported_test_ext(Path::new("readme.MD")));
assert!(is_supported_ext_fmt(Path::new("readme.mkd")));
assert!(is_s... | rust_cleaned_test_functions.jsonl/79109 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 632
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6892,
57885,
4452,
9927,
368,
341,
262,
2060,
0,
3471,
285,
57885,
4452,
9927,
33030,
486,
931,
445,
23841,
37885,
3741,
14,
8117,
82,
17621,
262,
2060,
10297,
285,
57885,
4452,
9927,
33030,
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_cf_build_and_apply_sst_files() {
let db_creaters = &[open_test_empty_db, open_test_db];
let limiter = Limiter::new(INFINITY);
for db_creater in db_creaters {
for db_opt in vec![None, Some(gen_db_options_with_encryption())] {
let dir = Builder::... | rust_cleaned_test_functions.jsonl/7329 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 984
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
71143,
20801,
8378,
36551,
643,
267,
10931,
368,
341,
286,
1077,
2927,
666,
1222,
388,
284,
44590,
2508,
4452,
15124,
8685,
11,
1787,
4452,
8685,
935,
286,
1077,
4568,
2015,
284,
13589,
2015,
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... | 4 |
#[test]
fn test_base() {
let doc = utils::read_input(
&advent_lib::utils::unittest_dir("2020", "day6-test-input.txt")
);
assert_eq!(process_program(doc.clone()), (11,6));
} | rust_cleaned_test_functions.jsonl/52766 | {
"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,
7651,
368,
341,
286,
1077,
4629,
284,
12439,
486,
878,
5898,
1006,
310,
609,
329,
684,
16142,
486,
6031,
486,
91005,
4334,
445,
17,
15,
17,
15,
497,
330,
1292,
21,
16839,
13933,
3909,
1138,
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 |
#[test]
fn test_desde() {
let wii = "wii";
let id = "id";
let parte = "parte";
let mut tabla_variables = VARIABLES.lock().unwrap();
tabla_variables.agregar_variable(wii.to_owned(), "entero".to_owned(), vec![], 200);
tabla_variables.agregar_variable(id.to_owned(), "entero".to_owned(), vec... | rust_cleaned_test_functions.jsonl/33088 | {
"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,
15768,
450,
368,
341,
262,
1077,
289,
3808,
284,
330,
86,
3808,
876,
262,
1077,
877,
284,
330,
307,
876,
262,
1077,
19538,
284,
330,
4480,
68,
876,
262,
1077,
5206,
40546,
28182,
284,
76753,
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_mm_recursion_19937() {
let a = new(1, 2, 3, 4);
let z = SFMTMEXP::<19937, { 19937 / 128 + 1 }>::mm_recursion(a, a, a, a);
let zc = new(33816833, 50856450, 67896067, 1049604); // calculated by C code
assert_eq!(split(z), split(zc));
let b = new(431, 232, 8... | rust_cleaned_test_functions.jsonl/40744 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 320
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
35599,
7080,
34280,
62,
16,
24,
24,
18,
22,
368,
341,
286,
1077,
264,
284,
501,
7,
16,
11,
220,
17,
11,
220,
18,
11,
220,
19,
317,
286,
1077,
1147,
284,
23463,
8505,
44,
32337,
27638,
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_parse_with_ext_hdrs() {
#[rustfmt::skip]
let mut buf = [
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, 0, 0, 0, 0, 0, 0, 0, 0,
// HopByHop Options Extension Header
Ipv6... | rust_cleaned_test_functions.jsonl/85889 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 2997
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
21039,
6615,
9927,
28238,
82,
368,
341,
286,
11506,
35788,
12501,
486,
20599,
921,
286,
1077,
5206,
6607,
284,
2278,
3374,
310,
220,
15,
11,
220,
15,
11,
220,
15,
11,
220,
15,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_case_2() {
let ikm = decode("000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f").unwrap();
let salt = decode("606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7... | rust_cleaned_test_functions.jsonl/10121 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 825
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
19096,
62,
17,
368,
341,
286,
1077,
13361,
76,
284,
16895,
445,
15,
15,
15,
16,
15,
17,
15,
18,
15,
19,
15,
20,
15,
21,
15,
22,
15,
23,
15,
24,
15,
64,
15,
65,
15,
66,
15,
67,
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_degenerate_consensus_n() {
let pssm: DNAMotif = DNAMotif::from_seqs(
vec![
b"AAAA".to_vec(),
b"GGGG".to_vec(),
b"CCCC".to_vec(),
b"TTTT".to_vec(),
]
.as_ref(),
None,
)
... | rust_cleaned_test_functions.jsonl/17032 | {
"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,
2259,
19366,
31971,
13626,
1089,
368,
341,
286,
1077,
281,
778,
76,
25,
60656,
1402,
354,
333,
284,
60656,
1402,
354,
333,
486,
1499,
93261,
1006,
310,
7486,
90515,
394,
293,
1,
25699,
3263,
983... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_midstates() {
// check midstate against hard-coded values
assert_eq!(MIDSTATE_TAPLEAF, tag_engine("TapLeaf").midstate().into_inner());
assert_eq!(MIDSTATE_TAPBRANCH, tag_engine("TapBranch").midstate().into_inner());
assert_eq!(MIDSTATE_TAPTWEAK, tag_engine("TapTwe... | rust_cleaned_test_functions.jsonl/88512 | {
"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,
43733,
32069,
368,
341,
286,
442,
1779,
5099,
2454,
2348,
2588,
86311,
2750,
198,
286,
2060,
10714,
10297,
44,
915,
24628,
1139,
2537,
867,
8276,
11,
4772,
24823,
445,
23879,
31461,
1827,
16106,
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_bit_vec_grow() {
let mut bit_vec = BitVec::from_bytes(&[0b10110110, 0b00000000, 0b10101010]);
bit_vec.grow(32, true);
assert_eq!(bit_vec, BitVec::from_bytes(&[0b10110110, 0b00000000, 0b10101010,
0xFF, 0xFF, 0xFF, 0xFF]));
bit_v... | rust_cleaned_test_functions.jsonl/62102 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 447
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
13996,
13251,
1889,
651,
368,
341,
286,
1077,
5206,
2699,
13251,
284,
6495,
10050,
486,
1499,
12524,
2099,
58,
15,
65,
16,
15,
16,
16,
15,
16,
16,
15,
11,
220,
15,
65,
15,
15,
15,
15,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_calculate_score() {
let mut board = Board {
cells: vec![vec![BingoNumber {
number: 1,
is_called: true,
}, BingoNumber {
number: 2,
is_called: true,
}],
vec![BingoNumber {
numbe... | rust_cleaned_test_functions.jsonl/117728 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 389
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
24005,
11207,
10405,
368,
341,
262,
1077,
5206,
4479,
284,
8751,
341,
286,
7761,
25,
7486,
20703,
4083,
20703,
33,
27908,
2833,
341,
310,
1372,
25,
220,
16,
345,
310,
374,
27859,
25,
830,
345,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_ints_between() {
assert_eq!(ints_between(0, 5, None), vec![1, 2, 3, 4]);
assert_eq!(ints_between(5, 0, None), vec![4, 3, 2, 1]);
assert_eq!(ints_between(5, 0, Some(-2)), vec![3, 1]);
} | rust_cleaned_test_functions.jsonl/38631 | {
"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,
4042,
82,
48302,
368,
341,
286,
2060,
10714,
10297,
21042,
48302,
7,
15,
11,
220,
20,
11,
2240,
701,
7486,
20703,
16,
11,
220,
17,
11,
220,
18,
11,
220,
19,
2558,
286,
2060,
10714,
10297,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_max_nan() {
assert_eq!(NAN.max(2.0), 2.0);
assert_eq!(2.0f64.max(NAN), 2.0);
} | rust_cleaned_test_functions.jsonl/7419 | {
"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,
6345,
73936,
368,
341,
286,
2060,
10714,
10297,
45,
1093,
6678,
7,
17,
13,
15,
701,
220,
17,
13,
15,
317,
286,
2060,
10714,
10297,
17,
13,
15,
69,
21,
19,
6678,
8204,
1093,
701,
220,
17,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_print_batches_to_json_empty() -> Result<()> {
let batches = vec![];
let r = batches_to_json!(ArrayWriter, &batches);
assert_eq!("", r);
let r = batches_to_json!(LineDelimitedWriter, &batches);
assert_eq!("", r);
let schema = Arc::new(Schema::new(... | rust_cleaned_test_functions.jsonl/13598 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 650
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
10064,
57755,
2346,
9455,
15124,
368,
1464,
5714,
71698,
341,
286,
1077,
44792,
284,
7486,
0,
15078,
286,
1077,
435,
284,
44792,
2346,
9455,
10297,
1857,
6492,
11,
609,
65,
9118,
317,
286,
2060,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_apply_second_configuration() {
let mut testkit = TestKitBuilder::validator()
.with_validators(3)
.with_service(ConfigurationService {
config: ConfigurationServiceConfig::default(),
})
.create();
// First configuration.
let cfg_change_height... | rust_cleaned_test_functions.jsonl/106408 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 491
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
36551,
29644,
35726,
368,
341,
262,
1077,
5206,
1273,
8226,
284,
3393,
7695,
3297,
486,
16112,
741,
286,
659,
4197,
8337,
2973,
7,
18,
340,
286,
659,
4197,
12267,
45443,
1860,
341,
310,
2193,
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_empty_postings_doc_returns_terminated() {
let mut postings = SegmentPostings::empty();
assert_eq!(postings.doc(), TERMINATED);
assert_eq!(postings.advance(), TERMINATED);
} | rust_cleaned_test_functions.jsonl/33893 | {
"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,
15124,
6333,
819,
18869,
58900,
62,
68659,
368,
341,
286,
1077,
5206,
74481,
284,
37103,
4133,
819,
486,
3194,
543,
286,
2060,
10714,
10297,
2203,
819,
23671,
1507,
93760,
9005,
317,
286,
2060,
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 |
#[test]
fn test_add_unknown_cell() {
let mut sheet = Spreadsheet::new();
sheet.set_formula(&CellRef::new('A', 1), "");
assert_eq!(sheet.cells.len(), 1);
sheet.set_formula(&CellRef::new('B', 2), "2");
assert_eq!(sheet.cells.len(), 2);
} | rust_cleaned_test_functions.jsonl/83545 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 138
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
2891,
57507,
16648,
368,
341,
286,
1077,
5206,
10834,
284,
98501,
486,
931,
1428,
286,
10834,
980,
63869,
2099,
3599,
3945,
486,
931,
492,
32,
516,
220,
16,
701,
14498,
286,
2060,
10714,
10297,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_hn_cert() {
Context::new(
"hn",
"news.ycombinator.com",
&[
include_bytes!("testdata/cert-hn.0.der"),
include_bytes!("testdata/cert-hn.1.der"),
include_bytes!("testdata/cert-hn.2.der"),
],
)
.bench(100)
} | rust_cleaned_test_functions.jsonl/807 | {
"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,
1523,
77,
37097,
368,
341,
262,
9608,
486,
931,
1006,
286,
330,
24134,
756,
286,
330,
9984,
2384,
874,
6863,
850,
905,
756,
286,
609,
9640,
310,
2924,
12524,
17223,
92425,
2899,
529,
2832,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_debug() {
let query_builder = query_builder::select("users");
let query = format!("{:?}", query_builder);
assert_eq!("Select { table: \"users\", aliases: None, fields: None, order: None, \
joins: None, groupings: None, havings: None, conditions: None, limit: 0... | rust_cleaned_test_functions.jsonl/93969 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 141
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
15446,
368,
341,
286,
1077,
3239,
28532,
284,
3239,
28532,
486,
1742,
445,
4218,
797,
286,
1077,
3239,
284,
3561,
88928,
25,
52652,
3239,
28532,
317,
286,
2060,
10714,
17223,
3379,
314,
1965,
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_is_null() {
let c_str = unsafe { CString::new(ptr::null(), false) };
assert!(c_str.is_null());
assert!(!c_str.is_not_null());
} | rust_cleaned_test_functions.jsonl/27797 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 92
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6892,
15162,
368,
341,
286,
1077,
272,
2895,
284,
19860,
314,
56956,
486,
931,
23866,
486,
2921,
1507,
895,
8,
2605,
286,
2060,
10297,
66,
2895,
2079,
15162,
1423,
286,
2060,
0,
3471,
66,
2895,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
#[test]
fn test_featured_playlists() {
let mut oauth = SpotifyOAuth::default().scope("user-follow-read").build();
match get_token(&mut oauth) {
Some(token_info) => {
let client_credential = SpotifyClientCredentials::default()
.token_info(token_info)
.b... | rust_cleaned_test_functions.jsonl/79267 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 334
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
79420,
22144,
17575,
368,
341,
262,
1077,
5206,
46415,
284,
40537,
57850,
486,
2258,
1005,
4186,
445,
872,
92585,
28806,
1827,
5834,
543,
262,
2432,
633,
6458,
2099,
6984,
46415,
8,
341,
286,
4329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_version_overlapping_inputs() {
let v = make_version().0;
time_test!("overlapping-inputs");
{
// Range is expanded in overlapping level-0 files.
let from = LookupKey::new("aab".as_bytes(), MAX_SEQUENCE_NUMBER);
let to = LookupKey::new("... | rust_cleaned_test_functions.jsonl/32973 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 943
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
9438,
15431,
90619,
28557,
368,
341,
286,
1077,
348,
284,
1281,
9438,
1005,
15,
401,
286,
882,
4452,
17223,
1975,
90619,
13933,
82,
797,
286,
341,
310,
442,
16437,
374,
17183,
304,
49817,
2188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_with_up() {
let mut bvc = ByValueChecker::new();
let t: ItemStruct = parse_quote! {
struct Bar {
a: cxx::UniquePtr<CxxString>,
b: i64,
}
};
let t_id = ty_from_ident(&t.ident);
bvc.ingest_struct(&t, &N... | rust_cleaned_test_functions.jsonl/93410 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 249
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
6615,
8237,
368,
341,
286,
1077,
5206,
293,
7362,
284,
3216,
1130,
35188,
486,
931,
543,
286,
1077,
259,
25,
5739,
9422,
284,
4715,
45236,
0,
341,
310,
2036,
4716,
341,
394,
264,
25,
272,
4146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_should_keep_alive() {
let mut headers = Headers::new();
assert!(!should_keep_alive(Http10, &headers));
assert!(should_keep_alive(Http11, &headers));
headers.set(Connection::close());
assert!(!should_keep_alive(Http10, &headers));
assert!(!should_keep_alive(Http11, &head... | rust_cleaned_test_functions.jsonl/70795 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 187
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
43378,
50293,
58850,
368,
341,
262,
1077,
5206,
7102,
284,
21426,
486,
931,
1428,
262,
2060,
0,
3471,
5445,
50293,
58850,
12286,
16,
15,
11,
609,
7713,
1106,
262,
2060,
10297,
5445,
50293,
58850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_session() {
let auth_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MjM5NjE2NzQsInVzbiI6IlVzZXJuYW1lIiwidWlkIjoiMTIzNDU2NzgiLCJ2cnMiOnsiaGVsbG8iOiJ3b3JsZCIsIm1vcmUiOiJkYXRhIn19._QvIe6v63HduVk9Gf4RIWUPuGsQBJam2WXbms6P-dXg";
let refresh_token = "eyJ0eXAiOiJKV1QiLCJhbGciO... | rust_cleaned_test_functions.jsonl/128609 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 563
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
12316,
368,
341,
286,
1077,
4166,
6458,
284,
330,
84609,
49039,
38,
5855,
81096,
45064,
52,
89,
40,
16,
56494,
3872,
641,
49,
20,
66,
11237,
21,
40,
48495,
55,
11287,
41,
24,
13,
84609,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_output() {
let mut processor = processor_stub();
processor.json = r#"{"hello":"world"}"#.to_owned();
processor.program = ".hi".to_owned();
processor.pretty_output = true;
let context = Context::new().unwrap();
let outp... | rust_cleaned_test_functions.jsonl/90636 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 190
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
15162,
7645,
368,
341,
310,
1077,
5206,
17654,
284,
17654,
62781,
543,
310,
17654,
4323,
284,
435,
55543,
4913,
14990,
3252,
14615,
9207,
57676,
13,
983,
51973,
543,
310,
17654,
45082,
284,
5933,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_default_fixed_str() {
for n in 0_usize..1000_usize {
let actual = Value::default(SqlType::FixedString(n));
let actual_str: String = actual.into();
assert_eq!(actual_str.len(), n);
for ch in actual_str.as_bytes() {
assert_eq!... | rust_cleaned_test_functions.jsonl/114574 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 197
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
9993,
37839,
2895,
368,
341,
286,
369,
308,
304,
220,
15,
11306,
551,
496,
16,
15,
15,
15,
11306,
551,
341,
310,
1077,
5042,
284,
5162,
486,
2258,
71469,
929,
486,
13520,
703,
1445,
1106,
310,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
#[test]
fn test_usage() {
let optgroups = vec!(
reqopt("b", "banana", "Desc", "VAL"),
optopt("a", "012345678901234567890123456789",
"Desc", "VAL"),
optflag("k", "kiwi", "Desc"),
optflagopt("p", "", "Desc", "VAL"),
o... | rust_cleaned_test_functions.jsonl/11205 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 443
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
31507,
368,
341,
286,
1077,
3387,
16753,
284,
7486,
33673,
310,
4232,
2912,
445,
65,
497,
330,
87747,
497,
330,
11065,
497,
330,
5594,
4461,
310,
3387,
2912,
445,
64,
497,
330,
15,
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... | 1 |
#[test]
fn test_parse_valid_redshift_delete_cluster_snapshot() {
let mock_response = MockResponseReader::read_response(
"test_resources/generated/valid",
"redshift-delete-cluster-snapshot.xml",
);
let mock = MockRequestDispatcher::with_status(200).with_body(&mock_... | rust_cleaned_test_functions.jsonl/12107 | {
"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,
21039,
8337,
26058,
13418,
11353,
28441,
53265,
368,
341,
286,
1077,
7860,
9655,
284,
14563,
2582,
5062,
486,
878,
9655,
1006,
310,
330,
1944,
35569,
79372,
14,
1891,
756,
310,
330,
1151,
13418,
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_collection_updater() {
let collection_dir = TempDir::new("collection").unwrap();
let (_rt, collection) = simple_collection_fixture(collection_dir.path());
let insert_points = CollectionUpdateOperations::PointOperation(
PointOperations::UpsertPoints(BatchPoints {
... | rust_cleaned_test_functions.jsonl/127872 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 695
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
25019,
8237,
27463,
368,
341,
262,
1077,
4426,
4334,
284,
19944,
6184,
486,
931,
445,
13421,
1827,
15454,
1428,
262,
1077,
5453,
3342,
11,
4426,
8,
284,
4285,
25019,
74409,
35866,
4334,
3875,
5231... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_remove_expired_tokens() {
let mut token_cache = TokenCache::new(CACHE_SIZE);
// Insert one entry that's already expired and one that hasn't.
let key = build_test_key("valid", "audience_1");
let token = build_test_token(LONG_EXPIRY, "1");
token_cache.put(k... | rust_cleaned_test_functions.jsonl/88794 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 304
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
18193,
80221,
28838,
368,
341,
286,
1077,
5206,
3950,
11529,
284,
9660,
8233,
486,
931,
3025,
17810,
4098,
626,
286,
442,
17101,
825,
4343,
429,
594,
2669,
26391,
323,
825,
429,
12492,
944,
624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_legal_moves_banmen_with_kaku_occupied_corner_self_gote() {
const POSITIONS:[((usize,usize),(usize,usize)); 4] = [
((0,0),(1,1)),
((0,8),(1,7)),
((8,0),(7,1)),
((8,8),(7,7)),
];
let blank_banmen = Banmen([[Blank; 9]; 9]);
for p in &POSITIONS {
let mut banmen = blank_ban... | rust_cleaned_test_functions.jsonl/81091 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 353
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
82324,
45390,
880,
276,
5676,
6615,
4698,
23557,
62,
40356,
66884,
25637,
1889,
1272,
368,
972,
4777,
26494,
67761,
7259,
1188,
51878,
11,
51878,
23547,
51878,
11,
51878,
5905,
220,
19,
60,
284,
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_term_dictionary_stream() -> crate::Result<()> {
let ids: Vec<_> = (0u32..10_000u32)
.map(|i| (format!("doc{:0>6}", i), i))
.collect();
let buffer: Vec<u8> = {
let mut term_dictionary_builder = TermDictionaryBuilder::create(vec![]).unwrap();
... | rust_cleaned_test_functions.jsonl/101247 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 711
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
17464,
42605,
12673,
368,
1464,
17717,
486,
2077,
71698,
341,
286,
1077,
14151,
25,
11312,
32399,
29,
284,
320,
15,
84,
18,
17,
496,
16,
15,
62,
15,
15,
15,
84,
18,
17,
340,
310,
659,
2186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_mul_f32x4() {
let test_f32x4 = f32x4::from_elts(1.0, 2.0, 3.0, 4.0);
let y = f32x4::from_elts(1.5, 0.1, -1.0, 0.0);
let result = f32x4::mul(test_f32x4,y);
assert_eq!(result, f32x4::from_elts(1.5, 0.2, -3.0, 0.0));
} | rust_cleaned_test_functions.jsonl/25589 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 178
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
24944,
761,
18,
17,
87,
19,
368,
341,
286,
1077,
1273,
761,
18,
17,
87,
19,
284,
282,
18,
17,
87,
19,
486,
1499,
21602,
2576,
7,
16,
13,
15,
11,
220,
17,
13,
15,
11,
220,
18,
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_ident() {
match_tokens(
"else elser fn() nils dowhile returns defing tootrue falsehood",
vec![
Token::Else,
Token::Ident("elser"),
Token::Fn,
Token::OpenParen,
Token::CloseParen,
... | rust_cleaned_test_functions.jsonl/47914 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 353
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
38399,
368,
341,
286,
2432,
28838,
1006,
310,
330,
1503,
655,
799,
5168,
368,
2092,
82,
56487,
71,
457,
4675,
707,
287,
311,
86379,
361,
95018,
756,
310,
7486,
90515,
394,
9660,
486,
22971,
345,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_case_14() {
let key = "382e04c969df1a2d6a963a79c58401770a383248b5d70bb4adedcbe520fed634";
let nonce = "f513b8c2ea6ab37fe633ba7302a5db6c";
let expected_output =
"fd0739819bae6c98cbde7cb50a80e8d0b359567c50cec1ca7e985745c1cedb3a";
hcha... | rust_cleaned_test_functions.jsonl/44676 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 225
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
19096,
62,
16,
19,
368,
341,
310,
1077,
1376,
284,
330,
18,
23,
17,
68,
15,
19,
66,
24,
21,
24,
2940,
16,
64,
17,
67,
21,
64,
24,
21,
18,
64,
22,
24,
66,
20,
23,
19,
15,
16,
22,
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_connected_components_eight_white_background() {
let image = gray_image!(
1, 255, 2, 1;
255, 1, 1, 255;
255, 255, 255, 255;
255, 255, 255, 1);
let expected = gray_image!(type: u32,
1, 0, 2, 1;
0, ... | rust_cleaned_test_functions.jsonl/114778 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 286
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
43276,
23258,
2204,
491,
44431,
24103,
368,
341,
286,
1077,
2168,
284,
17545,
4954,
33673,
1060,
220,
16,
11,
220,
17,
20,
20,
11,
256,
220,
17,
11,
256,
220,
16,
280,
310,
220,
17,
20,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_vote_credits() {
let voter_pubkey = solana_sdk::pubkey::new_rand();
let mut vote_state = VoteState::new_for_test(&voter_pubkey);
for i in 0..MAX_LOCKOUT_HISTORY {
vote_state.process_slot_vote_unchecked(i as u64);
}
assert_eq!(vote_state.credi... | rust_cleaned_test_functions.jsonl/6089 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 331
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
54360,
666,
29502,
368,
341,
286,
1077,
25323,
34014,
792,
284,
2048,
3362,
61783,
486,
9585,
792,
486,
931,
33864,
543,
286,
1077,
5206,
6910,
4387,
284,
34034,
1397,
486,
931,
5478,
4452,
2099,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
#[test]
fn test_interpolating_values_outside_of_initial_range_is_linear() {
let from_xs = vec![0.0, 1.0, 2.0, 3.0];
let ys = vec![5.0, 1.0, 3.0, 0.0];
let onto_xs = vec![-0.5, 4.0];
assert_eq!(vec![7.0, -3.0], interpolate_data(&from_xs, &ys, &onto_xs));
} | rust_cleaned_test_functions.jsonl/3269 | {
"file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl",
"token_count": 149
} | [
262,
11506,
1944,
921,
262,
5168,
1273,
15318,
9896,
1095,
9146,
6068,
2929,
3575,
15809,
9698,
6892,
40674,
368,
341,
262,
1077,
504,
80646,
284,
7486,
20703,
15,
13,
15,
11,
220,
16,
13,
15,
11,
220,
17,
13,
15,
11,
220,
18,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
#[test]
fn test_example() {
let commands = indoc!(
"mask = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X
mem[8] = 11
mem[7] = 101
mem[8] = 0"
)
.lines()
.map(str::parse)
.collect::<Result<Vec<Command>, _>>()
.unwrap();
... | rust_cleaned_test_functions.jsonl/45385 | {
"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,
39304,
368,
341,
286,
1077,
11293,
284,
1257,
509,
33673,
310,
330,
11258,
284,
19975,
61516,
61516,
61516,
6148,
16,
23830,
15,
55,
198,
310,
1833,
58,
23,
60,
284,
220,
16,
16,
198,
310,
183... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.