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_0() { let mut buses = Buses::from_input(&TEST_INPUT_0); buses.sort_descending(); let answer = find_challenge_answer(&buses); assert_eq!(answer, 1068781); }
rust_cleaned_test_functions.jsonl/39938
{ "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, 62, 15, 368, 341, 286, 1077, 5206, 33380, 284, 425, 4776, 486, 1499, 5898, 2099, 10033, 21022, 62, 15, 317, 286, 33380, 10614, 10986, 2459, 543, 286, 1077, 4226, 284, 1477, 87406, 28534, 2099, 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
#[test] fn test_opaque_type_as_type_value() { // Test printing an opaque type as the value for an associated type reparse_test!( program { struct Foo {} trait Bar {} trait Fuzz { type Assoc: Bar; } impl Bar for Foo {} ...
rust_cleaned_test_functions.jsonl/34207
{ "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, 10287, 19659, 1819, 11898, 1819, 3142, 368, 341, 262, 442, 3393, 18484, 458, 46484, 943, 438, 279, 897, 369, 458, 5815, 943, 198, 262, 312, 6400, 4452, 33673, 286, 2025, 341, 310, 2036, 33428, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_time64_nanosecond_array_from_vec() { // Test building a primitive array with null values // work // 1e6: 00:00:00.001 // 37800005e6: 10:30:00.005 // 86399210e6: 23:59:59.210 let arr: PrimitiveArray<Time64NanosecondType> = ...
rust_cleaned_test_functions.jsonl/11585
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 487 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 21, 19, 73936, 960, 1297, 3858, 5673, 13251, 368, 341, 286, 442, 3393, 4752, 264, 27594, 1334, 448, 845, 2750, 8945, 286, 442, 975, 271, 286, 442, 220, 16, 68, 21, 25, 286, 220, 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...
2
#[test] fn test_recv_iter_break() { let (tx, rx) = channel::<i32>(); let (count_tx, count_rx) = channel(); let _t = thread::spawn(move || { let mut count = 0; for x in rx.iter() { if count >= 3 { break; } else {...
rust_cleaned_test_functions.jsonl/39262
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 382 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36118, 11723, 39494, 368, 341, 286, 1077, 320, 3998, 11, 19111, 8, 284, 5496, 27638, 72, 18, 17, 3913, 286, 1077, 320, 1830, 17805, 11, 1760, 24330, 8, 284, 5496, 1428, 286, 1077, 716, 83, 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...
4
#[test] fn test_read_bytes() { let cases: Vec<(Vec<u8>, Vec<u8>)> = vec![ (vec![], vec![0, 0, 0, 0, 0, 0, 0, 0, 247]), (vec![0], vec![0, 0, 0, 0, 0, 0, 0, 0, 248]), (vec![1, 2, 3], vec![1, 2, 3, 0, 0, 0, 0, 0, 250]), (vec![1, 2, 3, 0], vec![1, 2, 3, 0, 0, ...
rust_cleaned_test_functions.jsonl/26688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 691 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 12524, 368, 341, 286, 1077, 5048, 25, 11312, 28706, 10050, 34837, 23, 8066, 11312, 34837, 23, 9231, 29, 284, 7486, 90515, 310, 320, 4083, 0, 12995, 7486, 20703, 15, 11, 220, 15, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_days() { assert_eq!(days("2 days"), Ok(("", 2))); assert_eq!(days("2 day"), Ok(("", 2))); assert_eq!(days("2days"), Ok(("", 2))); assert_eq!(days("2day"), Ok(("", 2))); assert_eq!(days("2 d"), Ok(("", 2))); assert_eq!(days("...
rust_cleaned_test_functions.jsonl/71138
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28353, 368, 341, 310, 2060, 10714, 10297, 13778, 445, 17, 2849, 3975, 7622, 7, 19814, 220, 17, 4945, 310, 2060, 10714, 10297, 13778, 445, 17, 1899, 3975, 7622, 7, 19814, 220, 17, 4945, 310, 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_string() { use std::error::Error; let text = "hello world"; let mut s = ArrayString::<[_; 16]>::new(); s.try_push_str(text).unwrap(); assert_eq!(&s, text); assert_eq!(text, &s); // Make sure Hash / Eq / Borrow match up so we can use HashMap let mut map = HashMap...
rust_cleaned_test_functions.jsonl/36782
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 375 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 368, 341, 262, 990, 1460, 486, 841, 486, 1454, 401, 262, 1077, 1467, 284, 330, 14990, 1879, 876, 262, 1077, 5206, 274, 284, 2910, 703, 27638, 13496, 26, 220, 16, 21, 60, 6831, 931, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_with_gi_quadratic() { let settings = Settings::new(1., array![5., 5.], array![5., 5.], 50, 2, false); let bq1 = BoundedQuadratic::new_extended(1., 0., 0.); let g1 = PiecewiseQuadratic::new(vec![bq1]); let mut problem_data = ProblemData::new( CsMat::c...
rust_cleaned_test_functions.jsonl/49659
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 545 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 1889, 72, 11280, 88678, 368, 341, 286, 1077, 5003, 284, 11296, 486, 931, 7, 16, 2572, 1334, 20703, 20, 2572, 220, 20, 13, 1125, 1334, 20703, 20, 2572, 220, 20, 13, 1125, 220, 20, 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...
1
#[test] fn test_replace() { let base_rope: Rope = vec![0, 1, 2, 3].into(); let mut delta_builder = DeltaBuilder::new(base_rope.len()); delta_builder.replace(1..2, Into::<Rope>::into(vec![5, 6]).into_node()); let sub = delta_builder.build(); let inversion = Action { delta:...
rust_cleaned_test_functions.jsonl/10023
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10633, 368, 341, 286, 1077, 2331, 26608, 375, 25, 97896, 284, 7486, 20703, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 936, 18122, 543, 286, 1077, 5206, 9477, 28532, 284, 24957, 3297, 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_float_inequality_is_error() { new_ucmd!() .args(&["123.45", "-ge", "6"]) .run() .status_code(2) .stderr_is("test: invalid integer '123.45'"); }
rust_cleaned_test_functions.jsonl/11002
{ "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, 17586, 62, 482, 10473, 6892, 4096, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 16, 17, 18, 13, 19, 20, 497, 6523, 709, 497, 330, 21, 14108, 286, 659, 6108, 741, 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_ls_indicator_style() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; at.mkdir("directory"); assert!(at.dir_exists("directory")); at.touch(&at.plus_as_string("link-src")); at.symlink_file("link-src", "link-dest.link"); assert!(at.is_syml...
rust_cleaned_test_functions.jsonl/71213
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 956 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53174, 58070, 15117, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 401, 1066, 262, 518, 30163, 445, 23037, 797, 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...
4
#[test] fn test_reverse() { Python::with_gil(|py| { let v = vec![2, 3, 5, 7]; let list = PyList::new(py, &v); assert_eq!(2, list[0].extract::<i32>().unwrap()); assert_eq!(3, list[1].extract::<i32>().unwrap()); assert_eq!(5, list[2].extract::<i3...
rust_cleaned_test_functions.jsonl/108633
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 391 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43277, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 1077, 348, 284, 7486, 20703, 17, 11, 220, 18, 11, 220, 20, 11, 220, 22, 935, 310, 1077, 1140, 284, 5355, 852, 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_smoke() { let context = Context::create(); let module = context.create_module("bin"); let debug_metadata_version = context.i32_type().const_int(3, false); module.add_basic_value_flag( "Debug Info Version", FlagBehavior::Warning, debug_metadata_version, ...
rust_cleaned_test_functions.jsonl/88212
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1040 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15874, 4740, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 543, 262, 1077, 4688, 284, 2266, 2520, 10750, 445, 6863, 3071, 262, 1077, 7390, 22220, 9438, 284, 2266, 8607, 18, 17, 1819, 1005, 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_crab_engine_fuel_cost() { assert_eq!(66, crab_engine_fuel_cost(16 - 5)); assert_eq!(10, crab_engine_fuel_cost(5 - 1)); assert_eq!(6, crab_engine_fuel_cost(5 - 2)); assert_eq!(15, crab_engine_fuel_cost(5 - 0)); assert_eq!(45, crab_engine_fuel_cost(14 - 5));...
rust_cleaned_test_functions.jsonl/7860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32331, 370, 24823, 761, 4000, 15890, 368, 341, 286, 2060, 10714, 10297, 21, 21, 11, 59412, 24823, 761, 4000, 15890, 7, 16, 21, 481, 220, 20, 1106, 286, 2060, 10714, 10297, 16, 15, 11, 59412, 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_secret_length_err() { let key = SecretKey::generate(31).unwrap(); assert!(StreamSealer::new(&key).is_err()); assert!(StreamOpener::new(&key, &Nonce::generate()).is_err()); }
rust_cleaned_test_functions.jsonl/104199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21962, 5118, 9266, 368, 341, 310, 1077, 1376, 284, 8599, 1592, 486, 19366, 7, 18, 16, 568, 15454, 543, 310, 2060, 10297, 3027, 1514, 13111, 486, 931, 2099, 792, 568, 285, 9266, 1423, 310, 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
#[test] fn test_ids() { assert_eq!(ids("id"), Ok(("", vec!["id"]))); assert_eq!(ids("id, abr"), Ok(("", vec!["id", "abr"]))); // assert_eq!( // Err(NomErr::Error(VerboseError { // errors: vec![ asse...
rust_cleaned_test_functions.jsonl/17454
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8077, 368, 341, 286, 2060, 10714, 10297, 3365, 445, 307, 3975, 7622, 7, 19814, 7486, 0, 1183, 307, 1341, 4945, 286, 2060, 10714, 10297, 3365, 445, 307, 11, 668, 81, 3975, 7622, 7, 19814, 7486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_str_read() { let source = CodeSource::str("\ 123456789012345678901234567890123456789012345678901234567890123456789012345\n\ 6789012345678901234567890123456789012345678901234567890123456789012345678901234567\n\ 890123456789012345678901234567890123456789...
rust_cleaned_test_functions.jsonl/31199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2895, 6443, 368, 341, 286, 1077, 2530, 284, 6119, 3608, 486, 495, 4921, 198, 310, 220, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 15, 16, 17, 18, 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...
2
#[test] fn test_static_fn_cursor() { run_test_with_periodicity(Timestamp::new(10.0), || { let ipps = [TTFPoint { at: Timestamp::ZERO, val: FlWeight::new(5.0), }]; let mut cursor = Cursor::new(&ipps); assert_eq!( ...
rust_cleaned_test_functions.jsonl/38571
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1070 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25360, 15246, 28601, 368, 341, 286, 1598, 4452, 6615, 20818, 61691, 4140, 4702, 486, 931, 7, 16, 15, 13, 15, 701, 1369, 341, 310, 1077, 5997, 1690, 284, 508, 51, 10808, 2609, 341, 394, 518, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_to_from_bincode() { pyo3::prepare_freethreaded_python(); Python::with_gil(|py| -> () { let input = create_measurement(py); let program_type = py.get_type::<QuantumProgramWrapper>(); let program = program_type .call1((input, vec!["test".to_string()])) ...
rust_cleaned_test_functions.jsonl/8608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 698 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 5673, 21816, 1851, 368, 341, 262, 4510, 78, 18, 486, 13609, 74179, 769, 878, 291, 55869, 543, 262, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 1464, 1719, 341, 286, 1077, 1946, 284, 1855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_process_ledger_options_override_threads() { let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(123); let (ledger_path, _blockhash) = create_new_tmp_ledger_auto_delete!(&genesis_config); let blockstore = Blockstore::open(ledger_path.path()).unwrap(); ...
rust_cleaned_test_functions.jsonl/46804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 38367, 1389, 8743, 48576, 29725, 368, 341, 286, 1077, 40788, 2648, 1731, 314, 59366, 5332, 11, 5241, 335, 284, 1855, 16322, 13774, 5332, 7, 16, 17, 18, 317, 286, 1077, 320, 50704, 2638, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_status_rpc() { // set up the logging. The level and enabled logging or not let log_level = Level::Trace; let enable_logging = false; let log = common::build_log(log_level, enable_logging); // get sender/receiver let (mut sender, mut receiver) = common::build_node_pair(&...
rust_cleaned_test_functions.jsonl/57320
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4773, 60799, 368, 341, 262, 442, 738, 705, 279, 8392, 13, 576, 2188, 323, 8970, 8392, 476, 537, 198, 262, 1077, 1487, 8274, 284, 9395, 486, 6550, 280, 262, 1077, 7283, 59982, 284, 895, 401, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
#[test] fn test_each_else() { let mut handlebars = Registry::new(); assert!(handlebars .register_template_string("t0", "{{#each a}}1{{else}}empty{{/each}}") .is_ok()); let m1 = btreemap! { "a".to_string() => Vec::<String>::new(), }; let...
rust_cleaned_test_functions.jsonl/127938
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32046, 62628, 368, 341, 286, 1077, 5206, 3705, 24950, 284, 32112, 486, 931, 543, 286, 2060, 10297, 8192, 24950, 198, 310, 659, 6343, 8693, 3904, 445, 83, 15, 497, 47219, 2, 9547, 264, 3417, 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_pass_doesnt_produce_invalid_code3() { test( concat!( "function f(x = void 0) {", " var z;", " const y = {};", " x && (y['x'] = x);", " z = y;", " {", " return z;", " }", ...
rust_cleaned_test_functions.jsonl/27594
{ "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, 15464, 96374, 406, 2540, 13373, 31433, 4136, 18, 368, 341, 262, 1273, 1006, 286, 33720, 33673, 310, 330, 1688, 282, 2075, 284, 737, 220, 15, 8, 314, 756, 310, 330, 220, 762, 1147, 64497, 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_commit_after_remove_node() -> Result<()> { let l = default_logger(); // Create a cluster with two nodes. let s = new_storage(); let mut r = new_test_raft(1, vec![1, 2], 5, 1, s.clone(), &l); r.become_candidate(); r.become_leader(); // Begin to remove the second node....
rust_cleaned_test_functions.jsonl/30315
{ "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, 36346, 19844, 18193, 5084, 368, 1464, 5714, 71698, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 442, 4230, 264, 10652, 448, 1378, 7798, 624, 262, 1077, 274, 284, 501, 23310, 543, 262, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_attach_legacy_devices_with_uart() { let mut vmm = create_vmm_object(InstanceState::Uninitialized); assert!(vmm.init_guest_memory().is_ok()); assert!(vmm.guest_memory.is_some()); let guest_mem = vmm.guest_memory.clone().unwrap(); let device_manager = MMIOD...
rust_cleaned_test_functions.jsonl/93128
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 535 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40719, 97555, 41334, 6615, 56789, 368, 341, 286, 1077, 5206, 348, 3821, 284, 1855, 2273, 3821, 5314, 7, 8846, 486, 1806, 36161, 317, 286, 2060, 10297, 85, 3821, 8271, 62739, 19195, 1005, 285, 1981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_link() { const TMPDIR_POSTFIX: &str = "wslcmd-link"; // init tmpdir let tmpdir = init_tmpdir(TMPDIR_POSTFIX).expect("Tmp dir initialize"); let (bin1, _) = copy_tmpbin(&tmpdir, None).expect("Bin initialize"); // test linking only let mut wslcmd_li...
rust_cleaned_test_functions.jsonl/34190
{ "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, 7233, 368, 341, 286, 733, 66253, 12251, 20506, 39690, 25, 609, 495, 284, 330, 86, 3226, 8710, 8965, 3302, 286, 442, 2930, 4174, 3741, 198, 286, 1077, 4174, 3741, 284, 2930, 16125, 3741, 4140, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cache() -> Result<()> { let cache = Cache::init()?; let data = String::from("cache_test"); let cache_data = CacheData::new( &data, &Path::new(env!("CARGO_MANIFEST_DIR")).join("Cargo.toml"), )?; cache.write(cache_data, "data")?; ...
rust_cleaned_test_functions.jsonl/131398
{ "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, 11529, 368, 1464, 5714, 71698, 341, 286, 1077, 6500, 284, 19479, 486, 2327, 94136, 286, 1077, 821, 284, 923, 486, 1499, 445, 9360, 4452, 797, 286, 1077, 6500, 1769, 284, 19479, 1043, 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...
5
#[test] fn test_uri_parse_error() { fn err(s: &str) { Uri::from_str(s).unwrap_err(); } err("http://"); err("htt:p//host"); err("hyper.rs/"); err("hyper.rs?key=val"); err("?key=val"); err("localhost/"); err("localhost?key=val"); }
rust_cleaned_test_functions.jsonl/52043
{ "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, 15572, 21039, 4096, 368, 341, 262, 5168, 1848, 1141, 25, 609, 495, 8, 341, 286, 17226, 486, 1499, 2895, 1141, 568, 15454, 9266, 543, 262, 555, 262, 1848, 445, 1254, 1110, 797, 262, 1848, 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_size_of() { use core::mem::size_of; assert_eq!(size_of::<default::Transform2D<f32>>(), 6*size_of::<f32>()); assert_eq!(size_of::<default::Transform2D<f64>>(), 6*size_of::<f64>()); }
rust_cleaned_test_functions.jsonl/598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 3575, 368, 341, 286, 990, 6200, 486, 10536, 486, 2141, 3575, 280, 286, 2060, 10714, 10297, 2141, 3575, 27638, 2258, 486, 8963, 17, 35, 63895, 18, 17, 2452, 1507, 220, 21, 80831, 3575, 2763...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deny_duplicate_tokens_pool() { let (mut context, mut contract) = setup_contract(); create_pool_with_liquidity( &mut context, &mut contract, accounts(3), vec![(accounts(1), to_yocto("5")), (accounts(1), to_yocto("10"))], ); ...
rust_cleaned_test_functions.jsonl/46654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 32395, 70434, 28838, 15709, 368, 341, 286, 1077, 320, 6984, 2266, 11, 5206, 5116, 8, 284, 6505, 51499, 543, 286, 1855, 15709, 6615, 62, 39993, 18518, 1006, 310, 609, 6984, 2266, 345, 310, 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_series_set_conversion_different_time_columns() { let time1_array: ArrayRef = Arc::new(TimestampNanosecondArray::from_vec(vec![1, 2, 3], None)); let string1_array: ArrayRef = Arc::new(StringArray::from(vec!["foo", "bar", "baz"])); let time2_array: ArrayRef = ...
rust_cleaned_test_functions.jsonl/98444
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 840 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35015, 2602, 64132, 82741, 3009, 22590, 368, 341, 286, 1077, 882, 16, 3858, 25, 2910, 3945, 4035, 310, 19689, 486, 931, 4140, 4702, 45, 276, 960, 1297, 1857, 486, 1499, 13251, 25592, 20703, 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_coords_from_text_include_negative_coord() { let txt = "2 1 -2"; let res = coords_from_text(0, txt); assert!(res.is_ok()); let pt = res.unwrap(); assert_eq!(2, pt.id); assert_eq!(2, pt.dim()); assert_eq!(Some(1.0), pt.get(0)); asser...
rust_cleaned_test_functions.jsonl/58853
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32576, 5673, 4326, 37878, 53865, 30096, 368, 341, 286, 1077, 7932, 284, 330, 17, 220, 16, 481, 17, 3302, 286, 1077, 592, 284, 23897, 5673, 4326, 7, 15, 11, 7932, 317, 286, 2060, 10297, 416, 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_string() { let input = &[0, 0, 0, 3, 0x78, 0x78, 0x78, 0xff]; let res: NomResult<String> = string(input); assert_eq!(res, Ok((&[0xffu8][..], "xxx".to_string()))) }
rust_cleaned_test_functions.jsonl/39178
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 368, 341, 286, 1077, 1946, 284, 44590, 15, 11, 220, 15, 11, 220, 15, 11, 220, 18, 11, 220, 15, 87, 22, 23, 11, 220, 15, 87, 22, 23, 11, 220, 15, 87, 22, 23, 11, 220, 15, 9020, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mkfifo() { let tempdir = tempdir().unwrap(); let mkfifo_fifo = tempdir.path().join("mkfifo_fifo"); mkfifo(&mkfifo_fifo, Mode::S_IRUSR).unwrap(); let stats = stat::stat(&mkfifo_fifo).unwrap(); let typ = stat::SFlag::from_bits_truncate(stats.st_mode as mode_t); assert!(ty...
rust_cleaned_test_functions.jsonl/104799
{ "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, 64861, 74031, 368, 341, 262, 1077, 2730, 3741, 284, 2730, 3741, 1005, 15454, 543, 262, 1077, 23789, 74031, 56590, 284, 2730, 3741, 3875, 1005, 5987, 445, 24452, 74031, 56590, 3071, 262, 23789, 74031...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_not_cross_compiling() { assert!( cross_compiling("aarch64-apple-darwin", "x86_64", "apple", "darwin") .unwrap() .is_none() ); assert!( cross_compiling("x86_64-apple-darwin", "aarch64", "apple", "darwin") ...
rust_cleaned_test_functions.jsonl/13940
{ "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, 7913, 35284, 18177, 7979, 368, 341, 286, 2060, 33673, 310, 5312, 18177, 7979, 445, 64, 1113, 21, 19, 20023, 273, 1737, 277, 7526, 497, 330, 87, 23, 21, 62, 21, 19, 497, 330, 22377, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_redirect_followall() { let mut client = Client::with_connector(MockRedirectPolicy); client.set_redirect_policy(RedirectPolicy::FollowAll); let res = client.get("http://127.0.0.1").send().unwrap(); assert_eq!(res.headers.get(), Some(&Server("mock3".to_owned()))); ...
rust_cleaned_test_functions.jsonl/56110
{ "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, 30043, 43490, 541, 368, 341, 286, 1077, 5206, 2943, 284, 8423, 486, 4197, 76393, 66436, 17725, 13825, 317, 286, 2943, 980, 30043, 22773, 2785, 291, 1226, 13825, 486, 12480, 2403, 626, 286, 1077, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fancy() { let test: Vec<u8> = vec![171, 165, 176, 206, 234, 247]; let convert = string_to_cp437("½Ñ░╬Ω≈"); assert_eq!(test, convert); }
rust_cleaned_test_functions.jsonl/1074
{ "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, 6572, 368, 341, 286, 1077, 1273, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 16, 22, 16, 11, 220, 16, 21, 20, 11, 220, 16, 22, 21, 11, 220, 17, 15, 21, 11, 220, 17, 18, 19, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cast() { // create execution context let mut ctx = ExecutionContext::local(); let schema = Schema::new(vec![ Field::new("c_int", DataType::UInt32, false), Field::new("c_float", DataType::Float64, false), Field::new("c_string", DataType...
rust_cleaned_test_functions.jsonl/2516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 594 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 368, 341, 286, 442, 1855, 11320, 2266, 198, 286, 1077, 5206, 5635, 284, 85451, 486, 2438, 1428, 286, 1077, 10802, 284, 12539, 486, 931, 25592, 90515, 310, 8601, 486, 931, 445, 66, 4042, 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_uint32_shr() { 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..50 { for i in 0..60 { let num = rng.next_u32(); ...
rust_cleaned_test_functions.jsonl/20442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 473 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15807, 18, 17, 3712, 81, 368, 341, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 486, 1499, 33809, 8956, 310, 220, 15, 87, 20, 24, 11, 220, 15, 87, 21, 17, 11, 220, 15, 42459, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_recover_2_parts_share() { let hash = get_test_hash(); let share1 = Share { id: 1, threshold: TEST_THRESHOLD, shares_count: TEST_SHARES_COUNT, data: "CgmKQZHMO+5n5pU".to_string().into_bytes(), hash: hash.clone(), metadata: None, }; ...
rust_cleaned_test_functions.jsonl/74531
{ "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, 1288, 3688, 62, 17, 33217, 38272, 368, 341, 262, 1077, 5175, 284, 633, 4452, 8950, 1428, 262, 1077, 4332, 16, 284, 11775, 341, 286, 877, 25, 220, 16, 345, 286, 12171, 25, 13602, 44405, 345, 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_mv_interactive() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let file_a = "test_mv_interactive_file_a"; let file_b = "test_mv_interactive_file_b"; at.touch(file_a); at.touch(file_b); scene .ucmd() .arg("-i") .arg(...
rust_cleaned_test_functions.jsonl/41610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73187, 15318, 3028, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 280, 262, 1077, 1034, 4306, 284, 330, 1944, 73187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_row() { let db = Connection::open_in_memory().unwrap(); let sql = "BEGIN; CREATE TABLE foo(x INTEGER, y INTEGER); INSERT INTO foo VALUES(1, 3); INSERT INTO foo VALUES(2, 4); END;"; db.execut...
rust_cleaned_test_functions.jsonl/57182
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 8530, 368, 341, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 1005, 15454, 543, 286, 1077, 5704, 284, 330, 37588, 280, 4293, 30776, 14363, 15229, 2075, 30381, 11, 379, 30381, 317, 429...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_file_definition() -> Result<(), Box<dyn std::error::Error>> { let data = [ 0x43, 0x52, 0x41, 0x4d, // magic number = b"CRAM" 0x03, 0x00, 0x00, 0x68, 0xac, 0xf3, 0x06, 0x4d, 0xaa, 0x1e, 0x29, 0xa4, 0xa0, 0x8c, 0x56, 0xee, 0x91, 0x9b, 0...
rust_cleaned_test_functions.jsonl/29932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 361 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 2458, 31698, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 821, 284, 2278, 310, 220, 15, 87, 19, 18, 11, 220, 15, 87, 20, 17, 11, 220, 15, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_op_reinterpret() { // Doesn't matter for this test. let encoding = encoding4(); check_op_parse( |s| s.D8(constants::DW_OP_reinterpret.0).uleb(100), &Operation::Reinterpret { base_type: UnitOffset(100), }, en...
rust_cleaned_test_functions.jsonl/45760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 318 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10287, 1288, 16897, 368, 341, 286, 442, 48832, 944, 4925, 369, 419, 1273, 624, 286, 1077, 11170, 284, 11170, 19, 1428, 286, 1779, 10287, 21039, 1006, 310, 760, 82, 91, 274, 909, 23, 80368, 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_claim_sizeable_push_msat() { // Incidentally test SpendableOutput event generation due to detection of to_local output on commitment tx let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[Non...
rust_cleaned_test_functions.jsonl/16899
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 560 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84969, 2368, 480, 14218, 21416, 266, 368, 341, 197, 322, 4848, 56122, 1273, 77037, 480, 5097, 1538, 9471, 4152, 311, 17984, 315, 311, 13564, 2550, 389, 15155, 9854, 198, 10217, 26023, 1645, 18343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serialization() { use crate::test_utilities::create_random_integers; use serde_json; const SIZE: usize = 20; let points = create_random_integers::<[i32; 2]>(SIZE, SEED_1); let tree = RTree::bulk_load(points.clone()); let json = serde_json::to_stri...
rust_cleaned_test_functions.jsonl/71305
{ "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, 25602, 2022, 368, 341, 286, 990, 17717, 486, 1944, 94044, 486, 3182, 22644, 4042, 67592, 401, 286, 990, 61570, 9455, 280, 286, 733, 25341, 25, 22301, 284, 220, 17, 15, 280, 286, 1077, 3501, 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_create_program_spec_invalid_hw_spec() { let mut context_builder = ContextBuilder::new(); context_builder.log_in(&[RoleType::SpecCreator]); let runner = QueryRunner::new(context_builder); let values_list: InputValue = InputValue::list( [1, 2, 3].iter().map(|v| InputValue:...
rust_cleaned_test_functions.jsonl/90806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 508 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 25096, 13594, 31433, 28792, 13594, 368, 341, 262, 1077, 5206, 2266, 28532, 284, 9608, 3297, 486, 931, 543, 262, 2266, 28532, 1665, 1243, 2099, 58, 9030, 929, 486, 8327, 31865, 2558, 262, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_doc_output_expectations() { Command::cargo_bin("specdown") .unwrap() .arg("--no-colour") .arg("run") .arg("--running-dir") .arg(".specdown") .arg("docs/specs/output_expectations.md") .assert() .success(); }
rust_cleaned_test_functions.jsonl/104100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18869, 7645, 68918, 804, 368, 341, 262, 7348, 486, 66715, 21816, 445, 9535, 2923, 1138, 286, 659, 15454, 741, 286, 659, 858, 21549, 2152, 19459, 413, 1138, 286, 659, 858, 445, 6108, 1138, 286, 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_duplicate_htlc_different_direction_onchain() { // Test that ChannelMonitor doesn't generate 2 preimage txn // when we have 2 HTLCs with same preimage that go across a node // in opposite directions. let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs...
rust_cleaned_test_functions.jsonl/28287
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1350 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 49086, 17257, 82741, 25438, 4470, 8819, 368, 341, 197, 322, 3393, 429, 13434, 30098, 3171, 944, 6923, 220, 17, 855, 1805, 49721, 198, 197, 322, 979, 582, 614, 220, 17, 5260, 8556, 82, 448...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_packet_unmarshal_empty() -> Result<()> { let result = unmarshal(&mut Bytes::new()); if let Err(got) = result { let want = Error::InvalidHeader; assert!( want.equal(&got), "Unmarshal(nil) err = {}, want {}", g...
rust_cleaned_test_functions.jsonl/86340
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 261 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21078, 4907, 27121, 15124, 368, 1464, 5714, 71698, 341, 286, 1077, 1102, 284, 650, 27121, 2099, 6984, 30024, 486, 931, 1423, 286, 421, 1077, 15495, 3268, 354, 8, 284, 1102, 341, 310, 1077, 1366, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_read_allocations() { let alice_pubkey = Pubkey::new_rand(); let allocation = Allocation { recipient: alice_pubkey.to_string(), amount: 42.0, }; let file = NamedTempFile::new().unwrap(); let input_csv = file.path().to_str().unwrap()....
rust_cleaned_test_functions.jsonl/78032
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 14802, 804, 368, 341, 286, 1077, 70433, 34014, 792, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 23757, 284, 72667, 341, 310, 21713, 25, 70433, 34014, 792, 2389, 3904, 3148, 310, 3311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_2() { assert_eq!(log_2(0), 1); assert_eq!(log_2(1), 1); assert_eq!(log_2(7), 3); assert_eq!(log_2(8), 4); }
rust_cleaned_test_functions.jsonl/14585
{ "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, 5224, 62, 17, 368, 341, 262, 2060, 10714, 10297, 839, 62, 17, 7, 15, 701, 220, 16, 317, 262, 2060, 10714, 10297, 839, 62, 17, 7, 16, 701, 220, 16, 317, 262, 2060, 10714, 10297, 839, 62, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_match_partial_query_by_regex() { let _m = mock("GET", "/hello") .match_query(Matcher::Regex("number=one".to_string())) .create(); let (status_line, _, _) = request("GET /hello?something=else&number=one", ""); assert_eq!("HTTP/1.1 200 OK\r\n", status_line); }
rust_cleaned_test_functions.jsonl/82450
{ "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, 10708, 52068, 5738, 3710, 41832, 368, 341, 262, 1077, 716, 76, 284, 7860, 445, 3806, 497, 3521, 14990, 1138, 286, 659, 6347, 5738, 3189, 28058, 486, 32464, 445, 4082, 28, 603, 3263, 983, 3904, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiple_method_routes() { #[api_v2_operation] fn test_get() -> impl Future<Output = String> { ready("get".into()) } #[api_v2_operation] fn test_post() -> impl Future<Output = String> { ready("post".into()) } fn test_app<F, T, B>(f: F) where ...
rust_cleaned_test_functions.jsonl/18940
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1732 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 9032, 64314, 368, 341, 262, 11506, 2068, 2273, 17, 32565, 921, 262, 5168, 1273, 3062, 368, 1464, 11605, 12498, 27, 5097, 284, 923, 29, 341, 286, 5527, 445, 455, 3263, 18122, 2398, 262, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tiling_info_from_tile_count() { let sb_size_log2 = 6; let (width, height) = (160, 144); let frame_rate = 25f64; let ti = TilingInfo::from_target_tiles( sb_size_log2, width, height, frame_rate, 0, 0, false, ); assert_eq!(1, ti.col...
rust_cleaned_test_functions.jsonl/30653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 864 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 7979, 3109, 5673, 29844, 3180, 368, 341, 262, 1077, 7898, 2368, 5224, 17, 284, 220, 21, 280, 262, 1077, 320, 3098, 11, 2608, 8, 284, 320, 16, 21, 15, 11, 220, 16, 19, 19, 317, 262, 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_serialize() { let x11 = WindowIdentifier::from_xid(1024); assert_eq!(x11.to_string(), "x11:0x400"); assert_eq!(WindowIdentifier::default().to_string(), ""); }
rust_cleaned_test_functions.jsonl/79353
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 368, 341, 286, 1077, 856, 16, 16, 284, 13642, 8714, 486, 1499, 3212, 307, 7, 16, 15, 17, 19, 317, 286, 2060, 10714, 10297, 87, 16, 16, 2389, 3904, 1507, 330, 87, 16, 16, 25, 15, 87,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fetches_a_league_successfully() { run_test!(|client, conn, _jwt| { let league = gen_league(&conn); let mut response = client.get(format!("/leagues/{}", league.id)).dispatch(); assert_eq!(response.status(), Status::Ok); let body = response.body_string().unwr...
rust_cleaned_test_functions.jsonl/94933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11803, 288, 4306, 11751, 4663, 18632, 3641, 368, 341, 262, 1598, 4452, 10297, 91, 2972, 11, 4534, 11, 716, 41592, 91, 341, 286, 1077, 10734, 284, 4081, 11751, 4663, 2099, 5148, 626, 286, 1077, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_erc20_transfer() { // Init virtual machine. let mut builder = TestBuilder::default(); builder.run_genesis(&DEFAULT_GENESIS_CONFIG).commit(); transfer_motes(&mut builder, ACCOUNT_1, ACCOUNT_2, 200_000_000); // Deploy token. // ACCOUNT_1 should have 1000 at start. // A...
rust_cleaned_test_functions.jsonl/116113
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 2962, 17, 15, 35403, 368, 341, 262, 442, 15690, 4108, 5662, 624, 262, 1077, 5206, 7363, 284, 3393, 3297, 486, 2258, 543, 262, 7363, 7634, 16322, 13774, 2099, 17285, 42362, 83366, 12568, 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_insert() { Interpreter::default().enter(|vm| { let dict = Dict::default(); assert_eq!(0, dict.len()); let key1 = vm.new_pyobj(true); let value1 = vm.new_pyobj(ascii!("abc")); dict.insert(&vm, key1.clone(), value1.clone()).unwra...
rust_cleaned_test_functions.jsonl/65638
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 634 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 368, 341, 286, 82493, 486, 2258, 1005, 1950, 22428, 7338, 91, 341, 310, 1077, 6451, 284, 29126, 486, 2258, 543, 310, 2060, 10714, 10297, 15, 11, 6451, 19406, 5231, 310, 1077, 1376, 16, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_file_reader_iter_projection() -> Result<()> { let path = get_test_path("alltypes_plain.parquet"); let values = vec![path] .iter() .map(|p| SerializedFileReader::try_from(p.as_path()).unwrap()) .flat_map(|r| { let schema = "messa...
rust_cleaned_test_functions.jsonl/69596
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 394 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 22306, 11723, 72738, 368, 1464, 5714, 71698, 341, 286, 1077, 1815, 284, 633, 4452, 2638, 445, 541, 9242, 41015, 33277, 23300, 797, 286, 1077, 2750, 284, 7486, 20703, 2343, 921, 310, 659, 201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ipc_with_projection() { let mut buf: Cursor<Vec<u8>> = Cursor::new(Vec::new()); let df = df!("a" => [1, 2, 3], "b" => [2, 3, 4], "c" => [3, 4, 5]).unwrap(); IpcWriter::new(&mut buf).finish(&df).expect("ipc writer"); buf.set_position(0); let expected...
rust_cleaned_test_functions.jsonl/81039
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 317 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 83806, 6615, 72738, 368, 341, 286, 1077, 5206, 6607, 25, 28067, 50439, 34837, 23, 2452, 284, 28067, 486, 931, 49923, 486, 931, 1423, 286, 1077, 6764, 284, 6764, 17223, 64, 1, 589, 508, 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_serialize_data() { let ser_string = serializer() .separator("=") .newline("\r\n") .pairs([("foo", "bar"), ("baz", "123")].iter()) .extra_lines(["extra=lines", "and stuff"].iter()) .serialize(); let expected = "\ ...
rust_cleaned_test_functions.jsonl/101322
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 1769, 368, 341, 286, 1077, 1420, 3904, 284, 21759, 741, 310, 659, 40120, 66377, 340, 310, 659, 89202, 4921, 81, 1699, 1138, 310, 659, 77256, 2561, 445, 7975, 497, 330, 2257, 3975, 3489, 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_bst() { let mut bst = BST::<i32>::new(); let mut arr = [1234, 3, 13, 23, 6, 30, 54, 531, 213, 40, 10]; for n in arr.iter() { bst.insert(n); } for n in &mut arr { assert_eq!(bst.search(*n, |a, b| a.cmp(b)), Some(n)); } assert_eq!(bst.sear...
rust_cleaned_test_functions.jsonl/62383
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 303 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 267, 368, 972, 262, 1077, 5206, 70231, 284, 43541, 27638, 72, 18, 17, 6831, 931, 1647, 262, 1077, 5206, 2890, 284, 508, 16, 17, 18, 19, 11, 220, 18, 11, 220, 16, 18, 11, 220, 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...
3
#[test] fn test_light_chain_with_length() { const CHAIN_HEIGHT: u64 = 10; let chain = LightChain::default_with_length(CHAIN_HEIGHT); let blocks = chain .light_blocks .into_iter() .flat_map(|lb| lb.generate()) .collect::<Vec<_>>(); ...
rust_cleaned_test_functions.jsonl/10100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 739 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28663, 30583, 6615, 5118, 368, 341, 286, 733, 6826, 6836, 17355, 25, 575, 21, 19, 284, 220, 16, 15, 401, 286, 1077, 8781, 284, 8658, 18837, 486, 2258, 6615, 5118, 82934, 6836, 17355, 626, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_st_dev_const() { for i in 2..30 { let input = (i as ValueType + 56.0) / 16.3251; let mut method = TestingMethod::new(i, input).unwrap(); test_const_float(&mut method, input, 0.0); } }
rust_cleaned_test_functions.jsonl/35575
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 10433, 13610, 368, 341, 197, 2023, 600, 304, 220, 17, 496, 18, 15, 341, 298, 10217, 1946, 284, 320, 72, 438, 55545, 488, 220, 20, 21, 13, 15, 8, 608, 220, 16, 21, 13, 18, 17, 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...
2
#[test] fn test_two_channels() { let translator = super::KucoinCommandTranslator {}; let commands = translator.translate_to_commands( true, &vec![ ( "/contractMarket/execution".to_string(), "BTC_USD".to_string(), ...
rust_cleaned_test_functions.jsonl/105088
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 997 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 19291, 368, 341, 286, 1077, 45488, 284, 2256, 486, 42, 84, 7160, 4062, 51653, 9321, 286, 1077, 11293, 284, 45488, 25909, 2346, 44151, 1006, 310, 830, 345, 310, 609, 4083, 90515, 394, 2399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_numbers() { new_ucmd!() .args(&["-s", "0X", "file"]) .fails() .stderr_contains("Invalid number: '0X'"); new_ucmd!() .args(&["-s", "0XB", "file"]) .fails() .stderr_contains("Invalid number: '0XB'"); new_ucmd!() .args(&["-...
rust_cleaned_test_functions.jsonl/77095
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 32964, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 82, 497, 330, 15, 55, 497, 330, 1192, 14108, 286, 659, 59631, 741, 286, 659, 36422, 63598, 445, 7928, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_device_band_info() { assert_eq!( fidl_common::Band::WlanBand5Ghz, get_device_band_info(&fake_device_info_ht(ChanWidthSet::TWENTY_FORTY), 36) .unwrap() .band_id ); }
rust_cleaned_test_functions.jsonl/12089
{ "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, 3062, 9204, 45344, 3109, 368, 341, 286, 2060, 10714, 33673, 310, 32104, 75, 21107, 486, 33744, 486, 54, 10715, 33744, 20, 38, 37259, 345, 310, 633, 9204, 45344, 3109, 2099, 30570, 9204, 3109, 4908...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_exclude() { let mut config = configure("test", &["A"], &["A"]); config.exclude = vec![TaskPath::parse("src/tools/tidy")]; let cache = run_build(&[], config); // Ensure we have really excluded tidy assert!(!cache.contains::<test::Tidy>()); // Ensure other tests are not a...
rust_cleaned_test_functions.jsonl/104201
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88668, 368, 341, 262, 1077, 5206, 2193, 284, 14411, 445, 1944, 497, 609, 1183, 32, 7914, 609, 1183, 32, 15049, 262, 2193, 89941, 284, 7486, 20703, 6262, 1820, 486, 6400, 445, 3548, 45714, 5523, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fr_to_repr_bool() { let f = Fr::one(); let v = fr_to_repr_u64(&f); assert!(v.into_iter().enumerate().all(|(i,x)| (i > 0) ^ (x == 1) ), "Should be converted into 1, 0, 0, 0, ..."); }
rust_cleaned_test_functions.jsonl/101397
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41537, 2346, 68535, 22159, 368, 341, 286, 1077, 282, 284, 2869, 486, 603, 543, 286, 1077, 348, 284, 1422, 2346, 68535, 7300, 21, 19, 2099, 69, 626, 286, 2060, 10297, 85, 39860, 11723, 1005, 7656...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rf() { let xs = vec![1, 2, 3] .iter() .map(|x| Sum { get_sum: *x }) .collect::<Vec<_>>(); assert_eq!(Monoid::mconcat(&xs), Sum { get_sum: 6 }); }
rust_cleaned_test_functions.jsonl/43684
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65466, 368, 341, 286, 1077, 11943, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 921, 310, 659, 2015, 741, 310, 659, 2186, 22428, 87, 91, 8116, 314, 633, 10160, 25, 353, 87, 2751, 310, 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...
1
#[test] fn test_make_cast_inherent() -> Fallible<()> { let transformation = Result::from(opendp_trans__make_cast_inherent( "String".to_char_p(), "f64".to_char_p(), ))?; let arg = AnyObject::new_raw(vec!["a".to_string(), "1".to_string()]); let res = core::o...
rust_cleaned_test_functions.jsonl/60452
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 5303, 1243, 37538, 368, 1464, 14785, 1238, 71698, 341, 286, 1077, 17991, 284, 5714, 486, 1499, 17096, 408, 79, 7965, 563, 6927, 5303, 1243, 37538, 1006, 310, 330, 703, 3263, 983, 9232, 620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_proxy_view_assistant_first_call_pointer_event() -> std::result::Result<(), anyhow::Error> { let context = &mut ViewAssistantContext::new_for_testing(); let mut mock1 = MockProxyViewAssistant::new(); mock1.expect_handle_pointer_event().times(2).returning(|_, _, _| Ok((...
rust_cleaned_test_functions.jsonl/86702
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 452 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29712, 7122, 12083, 11202, 12978, 13429, 21425, 6748, 368, 1464, 1460, 486, 1382, 486, 2077, 68843, 88964, 486, 1454, 397, 262, 341, 286, 1077, 2266, 284, 609, 6984, 2738, 71703, 1972, 486, 931, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_assembler_comments() { test_case(&["SET A, [B] ; This is a comment"], &[0x2401]); test_case(&["; Comments", "; More comments", "DAT 1"], &[1]); test_case(&[":label;comment", "SET A, label"], &[0x8401]); }
rust_cleaned_test_functions.jsonl/44776
{ "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, 11898, 35401, 30359, 368, 341, 262, 1273, 19096, 2099, 1183, 5884, 362, 11, 508, 33, 60, 220, 2587, 1096, 374, 264, 3980, 7914, 44590, 15, 87, 17, 19, 15, 16, 2558, 262, 1273, 19096, 2099, 118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duplicate_frozen_duplicate_confirmed() { // Common state let slot = 0; let is_dead = false; let is_slot_duplicate = true; // Bank is not frozen yet let mut cluster_duplicate_confirmed_hash = None; let mut bank_frozen_hash = Hash::default()...
rust_cleaned_test_functions.jsonl/48609
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70434, 761, 42240, 70434, 16059, 8434, 368, 341, 286, 442, 7718, 1584, 198, 286, 1077, 9446, 284, 220, 15, 280, 286, 1077, 374, 53427, 284, 895, 280, 286, 1077, 374, 27563, 70434, 284, 830, 401,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fold_constant_comma_expressions() { test("if (true, false) {foo()}", ""); test("if (false, true) {foo()}", "foo()"); test("true, foo()", "foo()"); test("(1 + 2 + ''), foo()", "foo()"); }
rust_cleaned_test_functions.jsonl/386
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61187, 34967, 2965, 1728, 2702, 39873, 368, 341, 262, 1273, 445, 333, 320, 1866, 11, 895, 8, 314, 7975, 368, 9545, 14498, 262, 1273, 445, 333, 320, 3849, 11, 830, 8, 314, 7975, 368, 9545, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multi_proposer() { let epoch = 0u64; let mut signers = vec![]; let mut proposers = vec![]; for i in 0..8 { let signer = ValidatorSigner::<Ed25519PrivateKey>::random([i; 32]); proposers.push(signer.author()); signers.push(signer); } let mut pe: Box<...
rust_cleaned_test_functions.jsonl/64921
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 947 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 21663, 23438, 368, 341, 262, 1077, 16342, 284, 220, 15, 84, 21, 19, 280, 262, 1077, 5206, 1841, 388, 284, 7486, 0, 15078, 262, 1077, 5206, 9844, 388, 284, 7486, 0, 15078, 262, 369, 600,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_contains() { let r = Rect::new(Point2D::new(-20, 15), Size2D::new(100, 200)); assert!(r.contains(&Point2D::new(0, 50))); assert!(r.contains(&Point2D::new(-10, 200))); // bottom/right edges. assert!(r.contains(&Point2D::new(-20, 15))); assert!(!r.contains(&Point2D::...
rust_cleaned_test_functions.jsonl/82775
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 451 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63598, 368, 341, 262, 1077, 435, 284, 11920, 486, 931, 32737, 17, 35, 486, 931, 4080, 17, 15, 11, 220, 16, 20, 701, 8478, 17, 35, 486, 931, 7, 16, 15, 15, 11, 220, 17, 15, 15, 3237, 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_supplies_constructor() { let supplies = Supplies::new(); assert_eq!(700, supplies.money); assert_eq!(0, supplies.oxen); }
rust_cleaned_test_functions.jsonl/28648
{ "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, 23723, 7202, 66210, 368, 341, 286, 1077, 16720, 284, 50252, 486, 931, 543, 1066, 286, 2060, 10714, 10297, 22, 15, 15, 11, 16720, 59909, 317, 286, 2060, 10714, 10297, 15, 11, 16720, 13, 5131, 268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { const INITIAL: &[u8] = b"abcdef123456"; let mut rbuf = vec![0; 4]; const EXPECT: &[u8] = b"cdef"; let mut f = tempfile().unwrap(); f.write_all(INITIAL).unwrap(); { let mut aiocb = AioCb::from_mut_slice( f.as_raw_fd(), 2, /...
rust_cleaned_test_functions.jsonl/90410
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 460 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 368, 341, 262, 733, 56854, 25, 44590, 84, 23, 60, 284, 293, 1, 41202, 16, 17, 18, 19, 20, 21, 876, 262, 1077, 5206, 435, 5909, 284, 7486, 20703, 15, 26, 220, 19, 935, 262, 733, 8921,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shared_buffer_simple_read() { paychains_logger::setup(); let (sender, receiver) = unbounded(); let file = SimpleReader::new(receiver); let shared_buffer = SharedBuffer::new(file); let mut reader = SharedBufferReader::new(&shared_buffer); let done_s...
rust_cleaned_test_functions.jsonl/84067
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20405, 7776, 30015, 6443, 368, 341, 286, 2291, 58358, 27413, 486, 15188, 543, 286, 1077, 320, 11644, 11, 13964, 8, 284, 650, 65686, 543, 286, 1077, 1034, 284, 8993, 5062, 486, 931, 78126, 317, 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_process_votes2() { // Create some voters at genesis let (vote_tracker, _, validator_voting_keypairs, subscriptions) = setup(); // Create bank with the voters let stake_per_validator = 100; let GenesisConfigInfo { genesis_config, .. } = genesis...
rust_cleaned_test_functions.jsonl/32277
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 65116, 17, 368, 341, 286, 442, 4230, 1045, 11707, 518, 59366, 198, 286, 1077, 320, 29358, 50264, 11, 8358, 22935, 2273, 11519, 3097, 77256, 11, 40355, 8, 284, 6505, 1428, 286, 442, 4230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_update_role_positions() { let route = Route::UpdateRolePositions { guild_id: GUILD_ID }; assert_eq!( route.to_string(), format!("guilds/{guild_id}/roles", guild_id = GUILD_ID) ); }
rust_cleaned_test_functions.jsonl/119869
{ "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, 8882, 19792, 37219, 368, 341, 286, 1077, 6021, 284, 9572, 486, 4289, 9030, 45793, 314, 26411, 842, 25, 479, 18023, 3450, 2605, 286, 2060, 10714, 33673, 310, 6021, 2389, 3904, 3148, 310, 3561, 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
#[test] fn test_test_sintvars() { assert_emscripten_output!( "../../emtests/test_sintvars.wasm", "test_sintvars", vec![], "../../emtests/test_sintvars.out" ); }
rust_cleaned_test_functions.jsonl/1809
{ "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, 4452, 643, 396, 15380, 368, 341, 262, 2060, 22504, 2282, 268, 7645, 33673, 286, 10208, 336, 23841, 12697, 643, 396, 15380, 1418, 10530, 756, 286, 330, 1944, 643, 396, 15380, 756, 286, 7486, 20703,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_8XY1() { // 0x8XY1 - Set VX to VX OR VY let opcode = 0x89A1; let mut vm = get_vm(); vm.v[0x9] = 0x99; vm.v[0xA] = 0xAA; vm.execute_instruction(decode_opcode(opcode), opcode); assert_eq!(vm.v[0x9], 0x99 | 0xAA); }
rust_cleaned_test_functions.jsonl/249
{ "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, 62, 23, 16356, 16, 368, 341, 262, 442, 220, 15, 87, 23, 16356, 16, 481, 2573, 78177, 311, 78177, 2726, 647, 56, 271, 262, 1077, 30028, 284, 220, 15, 87, 23, 24, 32, 16, 280, 262, 1077, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_socket_addr() { let tbls = vec![ ("", false), ("127.0.0.1", false), ("localhost", false), ("127.0.0.1:80", true), ("localhost:80", true), ]; for (addr, ok) in tbls { assert_eq!(to_socket_addr(addr...
rust_cleaned_test_functions.jsonl/10228
{ "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, 2346, 19555, 7387, 368, 341, 286, 1077, 21173, 82, 284, 7486, 90515, 310, 3489, 497, 895, 1326, 310, 3489, 16, 17, 22, 13, 15, 13, 15, 13, 16, 497, 895, 1326, 310, 3489, 8301, 497, 895, 1326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_topn_limit_oom() { let topn_heap = TopNHeap::new( usize::MAX - 1, Arc::new(RefCell::new(EvalContext::default())), ); assert!(topn_heap.is_ok()); let topn_heap = TopNHeap::new(usize::MAX, Arc::new(RefCell::new(EvalContext::default()))); ...
rust_cleaned_test_functions.jsonl/61770
{ "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, 10426, 77, 14763, 62, 4191, 368, 341, 286, 1077, 1909, 77, 33059, 284, 6909, 45, 27909, 486, 931, 1006, 310, 22301, 486, 10586, 481, 220, 16, 345, 310, 19689, 486, 931, 7, 3945, 3599, 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_match_indices() { let haystack = "111 a 111b"; let needle = "1"; let mut m = haystack.match_indices(needle); assert_eq!(m.next(), Some((0, "1"))); assert_eq!(m.next(), Some((1, "1"))); assert_eq!(m.next(), Some((2, "1"))); assert_eq!(m.next...
rust_cleaned_test_functions.jsonl/19419
{ "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, 10708, 18333, 368, 341, 286, 1077, 88447, 284, 330, 16, 16, 16, 264, 220, 16, 16, 16, 65, 876, 286, 1077, 30309, 284, 330, 16, 876, 286, 1077, 5206, 296, 284, 88447, 11072, 18333, 7, 59519, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_inherit_session_from_top() { let envelopes = capture_envelopes(|| { sentry::start_session(); let err = "NaN".parse::<usize>().unwrap_err(); sentry::capture_error(&err); // create a new Hub which should have the same session le...
rust_cleaned_test_functions.jsonl/115613
{ "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, 1243, 9263, 12316, 5673, 10426, 368, 341, 286, 1077, 86606, 284, 12322, 6205, 1813, 288, 79453, 341, 310, 3208, 884, 486, 2468, 12316, 1428, 310, 1077, 1848, 284, 330, 22831, 3263, 6400, 27638, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_checked_add() { let five_less = uint::MAX - 5; assert_eq!(five_less.checked_add(&0), Some(uint::MAX - 5)); assert_eq!(five_less.checked_add(&1), Some(uint::MAX - 4)); assert_eq!(five_less.checked_add(&2), Some(uint::MAX - 3)); assert_eq!(five_less.checked_...
rust_cleaned_test_functions.jsonl/23667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56456, 2891, 368, 341, 286, 1077, 4236, 50747, 284, 2622, 486, 10586, 481, 220, 20, 280, 286, 2060, 10714, 10297, 52670, 50747, 29101, 2891, 2099, 15, 701, 4329, 8488, 486, 10586, 481, 220, 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_decode_lsl_reg_t2() { assert_eq!( decode_32(0xfa0cf505), Instruction::LSL_reg { params: Reg3Params { rd: Reg::R5, rn: Reg::R12, rm: Reg::R5, setflags: SetFlags::False }, ...
rust_cleaned_test_functions.jsonl/64869
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 907, 3226, 4920, 528, 17, 368, 341, 14808, 262, 2060, 10714, 33673, 286, 16895, 62, 18, 17, 7, 15, 48890, 15, 9792, 20, 15, 20, 1326, 286, 29051, 486, 7268, 43, 4920, 341, 310, 3628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_identify_ebml() { let data = MemReader::new(vec!(0x1A, 0x45, 0xDF, 0xA3, 0x80)); }
rust_cleaned_test_functions.jsonl/89500
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 58 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38399, 1437, 2204, 65, 1014, 368, 341, 10217, 821, 284, 13550, 5062, 486, 931, 25592, 10297, 15, 87, 16, 32, 11, 220, 15, 87, 19, 20, 11, 220, 15, 73334, 11, 220, 15, 14673, 18, 11, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_insert_into_email_table_with_email_change() { #[derive(Deserialize)] struct R { user: EncodablePrivateUser, } #[derive(Deserialize)] struct S { ok: bool, } let (_b, app, middle) = app(); let mut req = req(Method::Get, "/me"); let user = { ...
rust_cleaned_test_functions.jsonl/29162
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1010 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 45514, 9172, 5237, 6615, 9172, 15947, 368, 341, 262, 11506, 27098, 7, 64465, 5563, 262, 2036, 431, 341, 286, 1196, 25, 10751, 69129, 16787, 1474, 345, 262, 555, 262, 11506, 27098, 7, 64465,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_filter_shred_version() { let from = solana_sdk::pubkey::new_rand(); let my_shred_version = 1; let other_shred_version = 1; // Allow same shred_version let mut values = test_crds_values(from); ClusterInfo::filter_by_shred_version( &from...
rust_cleaned_test_functions.jsonl/11649
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 807 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 3712, 1151, 9438, 368, 341, 286, 1077, 504, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 847, 3712, 1151, 9438, 284, 220, 16, 280, 286, 1077, 1008, 3712, 1151, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_selected_field() { new_ucmd!() .args(&["--from=auto", "--field", "3", "1K 2K 3K"]) .succeeds() .stdout_only("1K 2K 3000\n"); new_ucmd!() .args(&["--from=auto", "--field", "2", "1K 2K 3K"]) .succeeds() .stdout_only("1K 2000 3K\n"); }
rust_cleaned_test_functions.jsonl/46016
{ "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, 8955, 23755, 5013, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 1499, 28, 3902, 497, 14482, 2566, 497, 330, 18, 497, 330, 16, 42, 220, 17, 42, 220, 18, 42, 14108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_from() { let r = RangeFrom { start: 2 }; let mut count = 0; for (i, ri) in r.take(10).enumerate() { assert!(ri == i + 2); assert!(ri >= 2 && ri < 12); count += 1; } assert!(count == 10); }
rust_cleaned_test_functions.jsonl/33484
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 5673, 368, 341, 262, 1077, 435, 284, 16437, 3830, 314, 1191, 25, 220, 17, 2605, 262, 1077, 5206, 1760, 284, 220, 15, 280, 262, 369, 320, 72, 11, 24185, 8, 304, 435, 40161, 7, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_empty_fast_aggregate_verify() { let agg_sig = AggregateSignature::new(); // Empty PublicKey array should fail assert!(!agg_sig.fast_aggregate_verify(&[0; 32], &[])); }
rust_cleaned_test_functions.jsonl/112214
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 35743, 20587, 14240, 35638, 368, 341, 286, 1077, 50020, 29252, 284, 56922, 25088, 486, 931, 1428, 286, 442, 22228, 70280, 1334, 1265, 3690, 198, 286, 2060, 0, 3471, 15718, 29252, 39570, 20587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_process_nonce_ix_bad_recent_blockhash_state_fail() { assert_eq!( process_instruction( &Pubkey::default(), vec![ KeyedAccount::new(&Pubkey::default(), true, &create_default_account()), KeyedAccount::new( ...
rust_cleaned_test_functions.jsonl/73062
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 384 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 48508, 62686, 34199, 62361, 7113, 8296, 4387, 22121, 368, 341, 286, 2060, 10714, 33673, 310, 1882, 54923, 1006, 394, 609, 29162, 792, 486, 2258, 3148, 394, 7486, 90515, 503, 5309, 291, 7365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_take_nth() { let xs = [0, 1, 2, 4, 5]; let mut it = xs.iter(); { let mut take = it.by_ref().take(3); let mut i = 0; while let Some(&x) = take.nth(0) { assert_eq!(x, i); i += 1; } } assert_eq!(it.nth(1), Some(&5)...
rust_cleaned_test_functions.jsonl/25913
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 73261, 78342, 368, 341, 262, 1077, 11943, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 5206, 432, 284, 11943, 19471, 543, 262, 341, 286, 1077, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_basic_catch_up() { let mut env = SynchronizerEnv::new(2); env.start_next_synchronizer( SynchronizerEnv::default_handler(), RoleType::Validator, Waypoint::default(), false, None, ); env.start_next_synchronizer( SynchronizerEnv::defau...
rust_cleaned_test_functions.jsonl/32151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 460 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 666, 754, 8237, 368, 341, 262, 1077, 5206, 6105, 284, 328, 14113, 3135, 14359, 486, 931, 7, 17, 317, 262, 6105, 4962, 11257, 643, 14113, 3135, 1006, 286, 328, 14113, 3135, 14359, 486, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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