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_bigtest() { // the actual file is completely different from the example on let mut writer = NbtWriter::new(); let mut root = writer.root("Level"); root.field("longTest").long(9223372036854775807); root.field("shortTest").short(32767); root.field("stringTest") ...
rust_cleaned_test_functions.jsonl/90956
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36386, 1944, 368, 341, 1066, 262, 442, 279, 5042, 1034, 374, 6587, 2155, 504, 279, 3110, 389, 87079, 262, 1077, 5206, 6916, 284, 451, 12755, 6492, 486, 931, 543, 262, 1077, 5206, 3704, 284, 6916...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_css_styles_with_new_line() { let input = "{fill:blue;\n\ stroke:red;}"; let input_chars: Vec<char> = input.chars().collect(); let css = css_styles().parse(&input_chars).expect("should parse"); println!("css: {}", css); a...
rust_cleaned_test_functions.jsonl/36475
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25924, 37857, 6615, 5921, 6528, 368, 341, 310, 1077, 1946, 284, 13868, 7559, 25, 12203, 17882, 77, 5661, 394, 12654, 41584, 26, 26259, 310, 1077, 1946, 37418, 25, 11312, 21919, 29, 284, 1946, 8506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_no_data() -> io::Result<()> { let mut reader = make_reader(vec![vec![1, 2, 3]]); let out = do_read(&mut reader, 4)?; assert_eq!(out, vec![1, 2, 3]); let out = do_read(&mut reader, 1)?; assert_eq!(out, vec![]); Ok(()) }
rust_cleaned_test_functions.jsonl/8710
{ "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, 6443, 6536, 1769, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 5206, 6604, 284, 1281, 22306, 25592, 20703, 4083, 20703, 16, 11, 220, 17, 11, 220, 18, 49854, 286, 1077, 700, 284, 653, 6443,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_header() { let valset1 = [ Validator::new("a"), Validator::new("b"), Validator::new("c"), ]; let valset2 = [ Validator::new("b"), Validator::new("c"), Validator::new("d"), ]; let now1...
rust_cleaned_test_functions.jsonl/28085
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 789 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8757, 368, 341, 286, 1077, 1044, 746, 16, 284, 2278, 310, 32566, 486, 931, 445, 64, 4461, 310, 32566, 486, 931, 445, 65, 4461, 310, 32566, 486, 931, 445, 66, 4461, 286, 9747, 286, 1077, 1044, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_call_hierarchy_in_different_fn() { check_hierarchy( r#" //- /lib.rs fn callee() {} fn caller1() { call$0ee(); } fn caller2() { callee(); } "#, "callee Function FileId(0) 0..14 3..9", &[ "caller1 Function FileId(0) 15..45 18..25...
rust_cleaned_test_functions.jsonl/734
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 95043, 1243, 82741, 15246, 368, 341, 286, 1779, 95043, 1006, 310, 435, 2, 698, 61463, 608, 2740, 25638, 198, 8822, 94800, 368, 5613, 8822, 19865, 16, 368, 341, 262, 1618, 3, 15, 2127, 543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_plain_text_summary() { fn t(input: &str, expect: &str) { let output = plain_text_summary(input); assert_eq!(output, expect, "original: {}", input); } t("hello [Rust](https://www.rust-lang.org) :)", "hello Rust :)"); t("**bold**", "bold"); t("Multi-line\nsumma...
rust_cleaned_test_functions.jsonl/95123
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 528 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41015, 4326, 27251, 368, 341, 262, 5168, 259, 5384, 25, 609, 495, 11, 1720, 25, 609, 495, 8, 341, 286, 1077, 2550, 284, 14396, 4326, 27251, 5384, 317, 286, 2060, 10714, 10297, 3006, 11, 1720, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_for_loop_assigning_to_function_name() { let input = " PRINT ForVar FUNCTION ForVar FOR ForVar = 1 TO 5 NEXT END FUNCTION "; assert_prints!(input, "6"); }
rust_cleaned_test_functions.jsonl/64165
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5478, 17198, 20688, 287, 2346, 9174, 1269, 368, 341, 262, 1077, 1946, 284, 6228, 262, 35893, 1752, 3962, 271, 262, 24819, 1752, 3962, 198, 286, 4613, 1752, 3962, 284, 220, 16, 5146, 220, 20, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_sub() { assert_eq!( parse("Sub RX1 RX4").unwrap().body, vec![Node( Statement::Operator(Node( Operator::Sub( Node(RegisterRef::User(1), span(1, 5, 1, 8)), Node( ...
rust_cleaned_test_functions.jsonl/118219
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 519 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 445, 3136, 28170, 16, 28170, 19, 1827, 15454, 1005, 2599, 345, 310, 7486, 20703, 1955, 1006, 394, 21756, 486, 18461, 22078, 1006, 503, 28498, 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_into_request() { let expected_request = Request { request_line: RequestLine { http_version: Version::Http10, method: Method::Get, uri: Uri::new("http://localhost/home"), }, body: None, headers...
rust_cleaned_test_functions.jsonl/41855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1837 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 7893, 368, 341, 286, 1077, 3601, 7893, 284, 6145, 341, 310, 1681, 6528, 25, 6145, 2460, 341, 394, 1758, 9438, 25, 6079, 486, 2905, 16, 15, 345, 394, 1714, 25, 6730, 486, 1949, 345, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_discrete() { test::check_discrete_distribution(&try_create(0.3, 5), 5); test::check_discrete_distribution(&try_create(0.7, 10), 10); }
rust_cleaned_test_functions.jsonl/114736
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9932, 9353, 368, 341, 286, 1273, 486, 2028, 9932, 9353, 41465, 2099, 1539, 8657, 7, 15, 13, 18, 11, 220, 20, 701, 220, 20, 317, 286, 1273, 486, 2028, 9932, 9353, 41465, 2099, 1539, 8657, 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
#[test] fn test_illegal_character() { assert_illegal_character("\0"); assert_illegal_character("—x;"); assert_illegal_character("const ONE_THIRD = 1 ÷ 3;"); }
rust_cleaned_test_functions.jsonl/7967
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26743, 6428, 40988, 368, 341, 262, 2060, 26743, 6428, 40988, 4921, 15, 797, 262, 2060, 26743, 6428, 40988, 445, 2293, 87, 34649, 262, 2060, 26743, 6428, 40988, 445, 1024, 24038, 10625, 45180, 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
#[test] fn test_map() { let mut message = TestTypesMap::new(); let descriptor = message.descriptor(); for field in descriptor.fields() { test_map_field(&mut message, field); } }
rust_cleaned_test_functions.jsonl/74905
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5376, 368, 341, 262, 1077, 5206, 1943, 284, 3393, 4173, 2227, 486, 931, 543, 262, 1077, 16414, 284, 1943, 94802, 1428, 262, 369, 2070, 304, 16414, 12920, 368, 341, 286, 1273, 5376, 5013, 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 ]
2
#[test] fn test_from_tryte_string() { let tryte_string = "YEZNMEQWF"; let ascii_text = from_tryte_string(tryte_string); assert_eq!("Hello", ascii_text); }
rust_cleaned_test_functions.jsonl/42602
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 53283, 665, 3904, 368, 341, 286, 1077, 1430, 665, 3904, 284, 330, 59644, 44847, 7462, 48, 32131, 876, 286, 1077, 47120, 4326, 284, 504, 53283, 665, 3904, 7, 1539, 665, 3904, 626, 1789, 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
#[test] fn test_queryable() { let query = LogReopenCommand::new().to_query(); let url_encoded = "/d/log_reopen?"; assert_eq!(url_encoded.to_string(), query); }
rust_cleaned_test_functions.jsonl/75911
{ "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, 5738, 480, 368, 341, 286, 1077, 3239, 284, 2835, 693, 2508, 4062, 486, 931, 1005, 983, 5738, 543, 286, 1077, 2515, 73069, 284, 3521, 67, 19413, 1288, 2508, 75558, 286, 2060, 10714, 10297, 1085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_openfile_from_fd_invalid_fd() { let mut test_subprocess = start_c_program("./multi_pipe_test"); let process = ps_utils::get_target("multi_pipe_test").unwrap().unwrap(); assert!( OpenFile::from_fd(process.pid, 30).is_none(), "Expected None ...
rust_cleaned_test_functions.jsonl/36944
{ "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, 11311, 1192, 5673, 17676, 31433, 17676, 368, 341, 286, 1077, 5206, 1273, 5228, 4630, 284, 1191, 666, 25096, 13988, 26268, 41862, 4452, 797, 286, 1077, 1882, 284, 4726, 17309, 486, 455, 11123, 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_unfoldr() { fn count(st: &mut uint) -> Option<uint> { if *st < 10 { let ret = Some(*st); *st += 1; ret } else { None } } let mut it = Unfold::new(0, count); let mu...
rust_cleaned_test_functions.jsonl/1007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 19961, 81, 368, 341, 286, 5168, 1760, 5895, 25, 609, 6984, 2622, 8, 1464, 6959, 16434, 29, 341, 310, 421, 353, 267, 366, 220, 16, 15, 341, 394, 1077, 2112, 284, 4329, 4071, 267, 317, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_cookie_add_private() { let client = Client::debug(rocket()).unwrap(); let response = client.post("/").dispatch(); let cookies = response.cookies(); assert_eq!(cookies.iter().count(), 3); assert_eq!(cookies.get("a").unwrap().value(), "v1"); assert_e...
rust_cleaned_test_functions.jsonl/4797
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38663, 2891, 26249, 368, 341, 286, 1077, 2943, 284, 8423, 486, 8349, 7, 46790, 6011, 15454, 543, 286, 1077, 2033, 284, 2943, 6542, 4283, 1827, 18274, 543, 286, 1077, 8279, 284, 2033, 65298, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_var_last_expr() { cov_mark::check!(test_extract_var_last_expr); check_assist( extract_variable, r#" fn foo() { bar($01 + 1$0) } "#, r#" fn foo() { let $0var_name = 1 + 1; bar(var_name) } "#, ); check_assist( ...
rust_cleaned_test_functions.jsonl/133779
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 4612, 12195, 21915, 368, 341, 286, 21836, 18924, 486, 2028, 10297, 1944, 39123, 4612, 12195, 21915, 317, 286, 1779, 12083, 380, 1006, 310, 8649, 14635, 345, 310, 435, 2, 698, 8822, 15229, 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_signature() { assert_eq!( signature("/foo/bar\nbar", "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"), "mwbstmHPMEJjTe2ksXi5H5f0c8U=" ); assert_eq!( signature("/bar/foo\nbaz", "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"), "F9gZMs...
rust_cleaned_test_functions.jsonl/5279
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39859, 368, 341, 286, 2060, 10714, 33673, 310, 11957, 4283, 7975, 49513, 1699, 2257, 497, 330, 86, 41, 278, 81, 55, 52, 1517, 37, 2716, 40, 32854, 22, 6076, 42475, 3470, 60977, 49, 9983, 34525, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_value_hash() { let mut table = HashMap::new(); table.insert(value!(0), "0"); table.insert(value!(1), "1"); table.insert(value!("one"), "one"); table.insert(value!(btreemap! {sym!("a") => term!(1)}), "a:1"); table.insert(value!(btreemap! {sym!("b") ...
rust_cleaned_test_functions.jsonl/49234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 518 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3142, 8950, 368, 341, 286, 1077, 5206, 1965, 284, 10528, 486, 931, 543, 286, 1965, 7030, 3679, 10297, 15, 701, 330, 15, 797, 286, 1965, 7030, 3679, 10297, 16, 701, 330, 16, 797, 286, 1965, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_new() { let mut context = get_context(accounts(1)); context.attached_deposit(SUPPLY + STORAGE_COVER); testing_env!(context.build()); let mut contract = SimpleToken::new(None, None); contract.ft_mint(); testing_env!(context.is_view(true).build()); ...
rust_cleaned_test_functions.jsonl/82286
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 368, 341, 286, 1077, 5206, 2266, 284, 633, 8467, 91868, 7, 16, 1106, 286, 2266, 44057, 3854, 85798, 3759, 3124, 24834, 488, 90484, 19628, 3763, 317, 286, 7497, 15879, 10297, 2147, 13239, 142...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wipe() { let dir = TempDir::new("storage_dir").unwrap(); let mut storage = SimplePayloadStorage::open(dir.path()).unwrap(); let payload = PayloadType::Integer(vec![1, 2, 3]); let key = "key".to_owned(); storage.assign(100, &key, payload.clone()).unwrap(); ...
rust_cleaned_test_functions.jsonl/75893
{ "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, 1670, 3444, 368, 341, 286, 1077, 5419, 284, 19944, 6184, 486, 931, 445, 16172, 4334, 1827, 15454, 543, 286, 1077, 5206, 5819, 284, 8993, 29683, 5793, 486, 2508, 14161, 3875, 6011, 15454, 543, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_can_issue_getinfo_unquote() { let mut c = run_testing_tor_instance( &[ "--DisableNetwork", "1", "--ControlPort", &TOR_TESTING_PORT.to_string(), ]); block_on_with_env(async move { let mut s = TcpStream::connect(&...
rust_cleaned_test_functions.jsonl/58488
{ "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, 27421, 53340, 3062, 2733, 4907, 2949, 368, 341, 286, 1077, 5206, 272, 284, 1598, 70962, 528, 269, 11904, 1006, 310, 609, 9640, 394, 14482, 25479, 12320, 497, 330, 16, 756, 394, 14482, 3273, 7084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_sockets_dir_path_default() { let sockets_dir = env::var(SOCKETS_DIR_PATH_ENV_VAR); let sockets_dir_path_f = get_sockets_dir_path(); if let Ok(sockets_dir) = sockets_dir { assert_eq!(sockets_dir, sockets_dir_path_f.as_path().to_str().unwrap()); } e...
rust_cleaned_test_functions.jsonl/79721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 643, 19601, 4334, 2638, 9993, 368, 341, 286, 1077, 47557, 4334, 284, 6105, 486, 947, 3759, 33195, 50, 8291, 7944, 22027, 25750, 317, 286, 1077, 47557, 4334, 2638, 761, 284, 633, 643, 19601, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_issue() { // This triggers div_3by2 to go into an edge case division. let a = u256h!("0000000000000054000000000000004f000000000000001f0000000000000028"); let b = u256h!("0000000000000054000000000000005b000000000000002b000000000000005d"); let _ = gcd(a, b); }
rust_cleaned_test_functions.jsonl/13589
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53340, 368, 341, 286, 442, 1096, 30754, 3429, 62, 18, 1694, 17, 311, 728, 1119, 458, 6821, 1142, 12804, 624, 286, 1077, 264, 284, 575, 17, 20, 21, 71, 17223, 15, 15, 15, 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_check_vote_threshold_below_threshold() { let mut tower = Tower::new_for_tests(1, 0.67); let stakes = vec![(0, 1 as Stake)].into_iter().collect(); tower.record_vote(0, Hash::default()); assert!(!tower.check_vote_stake_threshold(1, &stakes, 2)); }
rust_cleaned_test_functions.jsonl/77035
{ "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, 7200, 54360, 21858, 82750, 21858, 368, 341, 286, 1077, 5206, 21271, 284, 21938, 486, 931, 5478, 32509, 7, 16, 11, 220, 15, 13, 21, 22, 317, 286, 1077, 44425, 284, 7486, 0, 9697, 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...
1
#[test] fn test_error() { match run_async_local(|tx, l| { let c = crate::Cancellable::new(); let t = crate::Task::new( None, Some(&c), move |a: &AsyncResult, _b: Option<&glib::Object>| { let t = a.downcast_ref::<...
rust_cleaned_test_functions.jsonl/102157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 502 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 368, 341, 286, 2432, 1598, 28346, 13564, 22428, 3998, 11, 326, 91, 341, 310, 1077, 272, 284, 17717, 486, 34, 83603, 486, 931, 543, 310, 1077, 259, 284, 17717, 486, 6262, 486, 931, 1006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bad_stmt() { let file = parse_string("bad_stmt_test", "a = 1\nb = \nc=2"); let got = check(walk::Node::File(&file)); let want = vec![Error { location: SourceLocation { file: Some(String::from("bad_stmt_test")), start: Position { line: 3, column: 2 }, ...
rust_cleaned_test_functions.jsonl/89891
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34199, 21824, 368, 341, 262, 1077, 1034, 284, 4715, 3904, 445, 13855, 21824, 4452, 497, 330, 64, 284, 220, 16, 1699, 65, 284, 1124, 1016, 28, 17, 797, 262, 1077, 2684, 284, 1779, 3622, 1692, 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_get_updates_since_one_batch() { let path = DBPath::new("_rust_rocksdb_test_get_updates_since_one_batch"); let db = DB::open_default(&path).unwrap(); db.put(b"key2", b"value2").unwrap(); // verify 1 put and 1 delete were done let seq1 = db.latest_sequence_number(); as...
rust_cleaned_test_functions.jsonl/91351
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 387 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 57829, 56262, 11667, 14534, 368, 341, 262, 1077, 1815, 284, 5952, 1820, 486, 931, 16975, 35788, 26608, 14553, 1999, 4452, 3062, 57829, 56262, 11667, 14534, 797, 262, 1077, 2927, 284, 5952, 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_read_indexed() { let (names, flags, seqs, quals, cigars) = gold(); let mut bam = IndexedReader::from_path(&"test/test.bam") .ok() .expect("Expected valid index."); let tid = bam.header.tid(b"CHROMOSOME_I").expect("Expected tid."); assert!(...
rust_cleaned_test_functions.jsonl/102379
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 736 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 3560, 291, 368, 341, 286, 1077, 320, 11400, 11, 8042, 11, 12981, 82, 11, 922, 1127, 11, 81115, 8, 284, 6623, 543, 286, 1077, 5206, 41304, 284, 8008, 17120, 486, 1499, 2638, 2099, 1, 1944...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cast() { let mut rng = test_rng(); let expected = Fr::rand(&mut rng); let actual = field_cast::<_, Fr>(expected).unwrap(); assert_eq!(actual, expected); let expected: Vec<_> = (0..10).map(|_| Fr::rand(&mut rng)).collect(); let mut actual = Vec::new...
rust_cleaned_test_functions.jsonl/67721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 368, 341, 286, 1077, 5206, 28422, 284, 1273, 66849, 543, 286, 1077, 3601, 284, 2869, 486, 11335, 2099, 6984, 28422, 317, 286, 1077, 5042, 284, 2070, 5303, 27638, 6878, 2869, 2235, 7325, 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_settings_from_args() { let options = match SearchOptions::new() { Ok(options) => options, Err(error) => { log(error.description()); assert!(false); process::exit(1); } }; assert!(!options....
rust_cleaned_test_functions.jsonl/74917
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 852 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10853, 5673, 8384, 368, 341, 286, 1077, 2606, 284, 2432, 7542, 3798, 486, 931, 368, 341, 310, 7622, 12078, 8, 589, 2606, 345, 310, 15495, 6390, 8, 589, 341, 394, 1487, 6390, 13178, 1423, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_aces_can_end_a_straight_high() { test( &vec!["4S 5H 4C 8D 4H", "10D JH QS KD AC"], &vec!["10D JH QS KD AC"], ) }
rust_cleaned_test_functions.jsonl/121272
{ "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, 62, 2434, 27421, 6213, 4306, 2895, 7386, 22680, 368, 341, 1066, 262, 1273, 1006, 286, 609, 4083, 0, 1183, 19, 50, 220, 20, 39, 220, 19, 34, 220, 23, 35, 220, 19, 39, 497, 330, 16, 15, 35, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scan() { let region_id = 1; let mut region = Region::default(); region.set_id(region_id); region.mut_peers().push(Default::default()); region.mut_region_epoch().set_version(2); region.mut_region_epoch().set_conf_ver(2); let region_epoch = r...
rust_cleaned_test_functions.jsonl/116108
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28857, 368, 341, 286, 1077, 5537, 842, 284, 220, 16, 280, 286, 1077, 5206, 5537, 284, 17152, 486, 2258, 543, 286, 5537, 980, 842, 48059, 842, 317, 286, 5537, 744, 332, 36367, 388, 1005, 9077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rest_vars() -> TestResult { let mut p = Polar::new(); qvar(&mut p, "[1,2,3] = [*rest]", "rest", vec![value!([1, 2, 3])]); qvar(&mut p, "[1,2,3] = [1,*rest]", "rest", vec![value!([2, 3])]); qvar(&mut p, "[1,2,3] = [1,2,*rest]", "rest", vec![value!([3])]); qvar(&mut p, "[1,2,3]...
rust_cleaned_test_functions.jsonl/97647
{ "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, 32231, 11168, 368, 1464, 3393, 2077, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 2804, 947, 2099, 6984, 281, 11, 10545, 16, 11, 17, 11, 18, 60, 284, 60974, 3927, 19076, 330, 392...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reserve() { let mut s = <InlinableString as StringExt>::new(); StringExt::reserve(&mut s, 100); assert!(InlinableString::capacity(&s) >= 100); }
rust_cleaned_test_functions.jsonl/109718
{ "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, 89591, 368, 341, 286, 1077, 5206, 274, 284, 366, 641, 3732, 480, 703, 438, 923, 6756, 6831, 931, 543, 286, 923, 6756, 486, 56985, 2099, 6984, 274, 11, 220, 16, 15, 15, 317, 286, 2060, 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
#[test] fn test_fork_and_waitpid() { #[allow(unused_variables)] let m = ::FORK_MTX.lock().expect("Mutex got poisoned by another test"); match fork().expect("Error: Fork Failed") { Child => unsafe { _exit(0) }, Parent { child } => { // assert that child was created a...
rust_cleaned_test_functions.jsonl/8982
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 439 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 669, 8378, 18760, 10412, 368, 341, 262, 11506, 7183, 18364, 2591, 28182, 5563, 262, 1077, 296, 284, 3504, 37, 10647, 1245, 22867, 21003, 1005, 17119, 445, 38099, 2684, 70498, 553, 2441, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_inner_product() { let a = vec![ Scalar::from(1u64), Scalar::from(2u64), Scalar::from(3u64), Scalar::from(4u64), ]; let b = vec![ Scalar::from(2u64), Scalar::from(3u64), Scalar::from(4u64),...
rust_cleaned_test_functions.jsonl/58912
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34345, 9840, 368, 341, 286, 1077, 264, 284, 7486, 90515, 310, 35176, 486, 1499, 7, 16, 84, 21, 19, 1326, 310, 35176, 486, 1499, 7, 17, 84, 21, 19, 1326, 310, 35176, 486, 1499, 7, 18, 84, 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_total_len_overflow() { let mut bytes = vec![]; bytes.extend(&PACKET_BYTES[..]); Packet::new(&mut bytes).set_total_len(128); assert_eq!(Packet::new_checked(&bytes).unwrap_err(), Error::Truncated); }
rust_cleaned_test_functions.jsonl/82360
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10784, 6043, 79073, 368, 341, 286, 1077, 5206, 5820, 284, 7486, 0, 15078, 286, 5820, 15831, 2099, 17279, 1348, 40705, 95874, 2558, 286, 28889, 486, 931, 2099, 6984, 5820, 568, 746, 10784, 6043, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_large_sigs() { // use any large number to be misinterpreted as 2 bytes when decoded as short_vec let required_num_sigs = 214; let actual_num_sigs = 5; let message = Message { header: MessageHeader { num_required_signatures: required_nu...
rust_cleaned_test_functions.jsonl/73476
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 660 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45228, 643, 14462, 368, 341, 286, 442, 990, 894, 3460, 1372, 311, 387, 5786, 93461, 438, 220, 17, 5820, 979, 29213, 438, 2805, 13251, 198, 286, 1077, 2567, 4273, 643, 14462, 284, 220, 17, 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_aggr_extre() { let data = vec![ (1, Some("name:0"), 2), (2, Some("name:3"), 3), (4, Some("name:0"), 1), (5, Some("name:5"), 4), (6, Some("name:5"), 5), (7, None, 4), ]; let product = ProductTable::new(); let (mut store, endpoint) =...
rust_cleaned_test_functions.jsonl/34852
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1024 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20587, 901, 9927, 265, 368, 341, 262, 1077, 821, 284, 7486, 90515, 286, 320, 16, 11, 4329, 445, 606, 25, 15, 3975, 220, 17, 1326, 286, 320, 17, 11, 4329, 445, 606, 25, 18, 3975, 220, 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...
3
#[test] fn test_parse_error() { let mut fixed_hdr = new_fixed_hdr(); fixed_hdr.version_tc_flowlabel[0] = 0x50; assert_eq!( (&fixed_hdr_to_bytes(fixed_hdr)[..]).parse::<Ipv6Packet<_>>().unwrap_err(), ParseError::Format.into() ); l...
rust_cleaned_test_functions.jsonl/85890
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3411 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 4096, 368, 341, 1789, 286, 1077, 5206, 8356, 28238, 284, 501, 37839, 28238, 543, 286, 8356, 28238, 19484, 63126, 27441, 1502, 58, 15, 60, 284, 220, 15, 87, 20, 15, 280, 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, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sumcheck_correctness() { let rng = &mut ark_std::test_rng(); let d = 1 << (10); let f = DensePolynomial::<F>::rand(d, rng).coeffs().to_vec(); let g = DensePolynomial::<F>::rand(d, rng).coeffs().to_vec(); let twist = F::rand(rng); let twist_powers = powers(twist, d + 1); ...
rust_cleaned_test_functions.jsonl/118309
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 350 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10160, 2028, 31550, 2090, 368, 341, 262, 1077, 28422, 284, 609, 6984, 55217, 15656, 486, 1944, 66849, 543, 262, 1077, 294, 284, 220, 16, 1115, 320, 16, 15, 626, 262, 1077, 282, 284, 42522, 14658...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_string_fails() { let _setup = SetupEmpty::init(); let rc = to_string(0); assert_eq!(rc.unwrap_err().kind(), VcxErrorKind::InvalidHandle); }
rust_cleaned_test_functions.jsonl/20876
{ "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, 3062, 3904, 761, 6209, 368, 341, 286, 1077, 716, 15188, 284, 18626, 3522, 486, 2327, 1428, 286, 1077, 10192, 284, 311, 3904, 7, 15, 317, 286, 2060, 10714, 10297, 1287, 55395, 9266, 1005, 15314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_enum_resolution() { let writer_raw_schema = r#" { "type": "record", "name": "test", "fields": [ {"name": "a", "type": "long", "default": 42}, {"name": "b", "type": "string"}, ...
rust_cleaned_test_functions.jsonl/77302
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31054, 39849, 368, 341, 286, 1077, 6916, 16067, 25371, 284, 435, 2, 698, 310, 341, 394, 330, 1313, 788, 330, 8548, 756, 394, 330, 606, 788, 330, 1944, 756, 394, 330, 9007, 788, 2278, 503, 5212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_handle_udp_broadcast() { use crate::socket::{UdpSocket, UdpSocketBuffer, UdpPacketMetadata}; use crate::wire::IpEndpoint; static UDP_PAYLOAD: [u8; 5] = [0x48, 0x65, 0x6c, 0x6c, 0x6f]; let (iface, mut socket_set) = create_loopback(); let rx_buffer = UdpS...
rust_cleaned_test_functions.jsonl/100741
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1417 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 69432, 74923, 368, 341, 286, 990, 17717, 486, 9556, 22964, 52, 9796, 10286, 11, 547, 9796, 10286, 4095, 11, 547, 9796, 16679, 14610, 2440, 286, 990, 17717, 486, 35531, 486, 23378, 27380, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_interval_check() { assert!(!is_snapshot_config_invalid(0, 100)); assert!(is_snapshot_config_invalid(1, 100)); assert!(is_snapshot_config_invalid(230, 100)); assert!(!is_snapshot_config_invalid(500, 100)); assert!(!is_snapshot_config_invalid(5, 5)); }
rust_cleaned_test_functions.jsonl/2045
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20541, 7200, 368, 341, 286, 2060, 0, 3471, 285, 53265, 5332, 31433, 7, 15, 11, 220, 16, 15, 15, 1106, 286, 2060, 10297, 285, 53265, 5332, 31433, 7, 16, 11, 220, 16, 15, 15, 1106, 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_read_fixed_array_param() { assert_eq!(Reader::read("address[2]").unwrap(), ParamType::FixedArray(Box::new(ParamType::Address), 2)); assert_eq!(Reader::read("bool[17]").unwrap(), ParamType::FixedArray(Box::new(ParamType::Bool), 17)); assert_eq!( Reader::read("bytes[45][3]").unwrap(), ...
rust_cleaned_test_functions.jsonl/110635
{ "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, 6443, 37839, 3858, 4090, 368, 341, 197, 6948, 10714, 10297, 5062, 486, 878, 445, 4995, 58, 17, 44891, 15454, 1507, 6991, 929, 486, 13520, 1857, 67758, 486, 931, 7, 2001, 929, 486, 4286, 701, 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_get_struct_type() { let context = Context::create(); let module = context.create_module("my_module"); assert_eq!(*module.get_context(), context); assert!(module.get_struct_type("foo").is_none()); let opaque = context.opaque_struct_type("foo"); assert_eq!(module.get_str...
rust_cleaned_test_functions.jsonl/111710
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 15126, 1819, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 543, 262, 1077, 4688, 284, 2266, 2520, 10750, 445, 2408, 10750, 3071, 262, 2060, 10714, 0, 4071, 4352, 670, 8467, 1507, 2266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_c_to_rust() { let argv = vec![String::from("./deno"), String::from("hello.js")]; let d = Deno::new(argv); let d2 = from_c(d.ptr); assert!(d.ptr == d2.ptr); assert!(d.dir.root.join("gen") == d.dir.gen, "Sanity check"); }
rust_cleaned_test_functions.jsonl/117977
{ "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, 666, 2346, 1710, 590, 368, 341, 220, 1077, 10213, 284, 7486, 20703, 703, 486, 1499, 13988, 5183, 78, 3975, 923, 486, 1499, 445, 14990, 2857, 899, 935, 220, 1077, 294, 284, 9774, 78, 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_reserve() { let mut d = RingBuf::new(); d.push_back(0u64); d.reserve(50); assert!(d.capacity() >= 51); let mut d = RingBuf::new(); d.push_back(0u32); d.reserve(50); assert!(d.capacity() >= 51); }
rust_cleaned_test_functions.jsonl/26216
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89591, 368, 341, 286, 1077, 5206, 294, 284, 21525, 15064, 486, 931, 543, 286, 294, 2552, 3895, 7, 15, 84, 21, 19, 317, 286, 294, 48520, 7, 20, 15, 317, 286, 2060, 10297, 67, 59168, 368, 2604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_disabled_diagnostics() { let mut config = DiagnosticsConfig::default(); config.disabled.insert("unresolved-module".into()); let (analysis, file_id) = fixture::file(r#"mod foo;"#); let diagnostics = analysis.diagnostics(&config, file_id).unwrap(); assert!...
rust_cleaned_test_functions.jsonl/11432
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 188 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51401, 814, 18938, 368, 341, 286, 1077, 5206, 2193, 284, 7767, 15550, 2648, 486, 2258, 543, 286, 2193, 34956, 7030, 445, 359, 39747, 46718, 3263, 18122, 5231, 286, 1077, 320, 34484, 11, 1034, 842,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mixed_formats() { assert_eq!( parse_format_flags(&[ "od".to_string(), "--skip-bytes=2".to_string(), "-vItu1z".to_string(), "-N".to_string(), "1000".to_string(), "-xt".to_string(), "acdx1".to_string(),...
rust_cleaned_test_functions.jsonl/78708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 787 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 3286, 68351, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 8955, 14130, 2099, 9640, 310, 330, 347, 3263, 983, 3904, 3148, 310, 14482, 20599, 14319, 2338, 28, 17, 3263, 983, 3904, 3148, 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_nullable_array_with_offset_is_not_null() { let a = Primitive::from(vec![ None, None, None, None, None, None, None, None, Some(1), None, Some(2)...
rust_cleaned_test_functions.jsonl/80396
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69743, 3858, 6615, 6917, 6892, 7913, 15162, 368, 341, 286, 1077, 264, 284, 51460, 486, 1499, 25592, 90515, 310, 2240, 345, 310, 2240, 345, 310, 2240, 345, 310, 2240, 345, 310, 2240, 345, 310, 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_query_directed_probe() { let l2 = <L2>::new(4, 4., 3, 1); let hashes = l2.query_directed_probe(&[1., 2., 3., 1.], 4).unwrap(); println!("{:?}", hashes) }
rust_cleaned_test_functions.jsonl/107650
{ "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, 5738, 32871, 291, 49108, 368, 341, 286, 1077, 326, 17, 284, 366, 43, 17, 6831, 931, 7, 19, 11, 220, 19, 2572, 220, 18, 11, 220, 16, 317, 286, 1077, 50257, 284, 326, 17, 4786, 32871, 291, 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_mailbox_data_response() { match parse_response(b"* LIST (\\HasNoChildren) \".\" INBOX.Tests\r\n") { Ok((_, Response::MailboxData(_))) => {} rsp => panic!("unexpected response {:?}", rsp), } }
rust_cleaned_test_functions.jsonl/24530
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25176, 2011, 1769, 9655, 368, 341, 262, 2432, 4715, 9655, 1883, 61593, 26966, 320, 3422, 10281, 2753, 11539, 8, 1124, 3263, 2105, 1964, 23026, 37133, 12016, 1699, 899, 341, 286, 7622, 1188, 6878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sql_lexer_dontconfuseidentswithkeywords() { use super::Token::*; assert_eq!(parse("asdf"), vec![Ident("asdf".to_string())]); }
rust_cleaned_test_functions.jsonl/94434
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18063, 62, 38815, 814, 544, 6135, 810, 6880, 4197, 28995, 368, 341, 286, 990, 2256, 486, 3323, 56162, 1789, 286, 2060, 10714, 10297, 6400, 445, 76615, 3975, 7486, 20703, 28301, 445, 76615, 3263, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_hashing_and_signing() { let mut context = SimulatedContext::new( Author(0), /* num_nodes */ 2, /* max commands per epoch */ 2, ); let h1 = context.hash(&Foo(35)); let h2 = context.hash(&Bar(35)); let sig1 = context.sign(h1); assert!(context.verify...
rust_cleaned_test_functions.jsonl/95861
{ "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, 8950, 287, 8378, 11172, 287, 368, 341, 262, 1077, 5206, 2266, 284, 4467, 7757, 1972, 486, 931, 1006, 286, 6885, 7, 15, 1326, 286, 1391, 1629, 14896, 639, 220, 17, 345, 286, 1391, 1932, 11293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_report_invalid_empty_number_on_blank_stdin() { new_ucmd!() .args(&["--from=auto"]) .pipe_in(" \t \n") .run() .stderr_is("numfmt: invalid number: ''\n"); }
rust_cleaned_test_functions.jsonl/46004
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 14813, 31433, 15124, 5500, 4470, 56103, 15656, 258, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 1499, 28, 3902, 14108, 286, 659, 13768, 1243, 445, 220, 1124, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_metadata_tf2x_scalar_tensor_without_dataclass() { let md = pb::SummaryMetadata { plugin_data: Some(PluginData { plugin_name: SCALARS_PLUGIN_NAME.to_string(), content: b"preserved!".to_vec(), ..Default::defaul...
rust_cleaned_test_functions.jsonl/105062
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22220, 47719, 17, 87, 41652, 23188, 39904, 1769, 1040, 368, 341, 310, 1077, 10688, 284, 17310, 486, 19237, 14610, 341, 394, 9006, 1769, 25, 4329, 7, 11546, 1043, 341, 503, 9006, 1269, 25, 7531, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_truncate_f64() { let cases = vec![ (100.114, 10, 2, Res::Ok(100.11)), (100.115, 10, 2, Res::Ok(100.12)), (100.1156, 10, 3, Res::Ok(100.116)), (100.1156, 3, 1, Res::Overflow(99.9)), (1.36, 10, 2, Res::Ok(1.36)), (f64:...
rust_cleaned_test_functions.jsonl/48549
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 26900, 761, 21, 19, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 16, 15, 15, 13, 16, 16, 19, 11, 220, 16, 15, 11, 220, 17, 11, 1800, 486, 11578, 7, 16, 15, 15, 13, 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...
2
#[test] fn test_expand256() { let key = [0u8; 32]; let mut rkeys = [[0u8; 16]; 15]; expand256_slice(&key, &mut rkeys); let mut rkeys_bis = [[0u8; 16]; 15]; expand256_bis(&key, &mut rkeys_bis); assert_eq!(rkeys, rkeys_bis); }
rust_cleaned_test_functions.jsonl/89390
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67875, 17, 20, 21, 368, 341, 286, 1077, 1376, 284, 508, 15, 84, 23, 26, 220, 18, 17, 935, 286, 1077, 5206, 435, 10563, 284, 4318, 15, 84, 23, 26, 220, 16, 21, 5265, 220, 16, 20, 935, 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_get_registrations_invalid_entries() { run_async_test(async { ffx_config::set( (CONFIG_KEY_REGISTRATIONS, ConfigLevel::User), json!({ // Ignores empty repositories. "empty-entries": {}, ...
rust_cleaned_test_functions.jsonl/98274
{ "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, 3062, 4920, 3758, 804, 31433, 26092, 368, 341, 286, 1598, 28346, 4452, 18285, 341, 310, 282, 8298, 5332, 486, 746, 1006, 394, 320, 24652, 6600, 8064, 29503, 21792, 11, 5532, 4449, 486, 1474, 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...
1
#[test] fn test_tcpds_query_1() { assert_eq!( parse_sql( " WITH customer_total_return AS (SELECT sr_customer_sk AS ctr_customer_sk, sr_store_sk AS ctr_store_sk, Sum(sr_return_amt) AS ctr_total_return ...
rust_cleaned_test_functions.jsonl/50100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 884 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45562, 5356, 5738, 62, 16, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 18063, 1006, 310, 6228, 286, 4769, 6002, 10784, 12511, 198, 1797, 5752, 320, 4858, 18962, 28840, 33811, 257, 5752, 50638, 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_feature_cache() { // Constructing the test case. let setting = FeatureTestSetting::new(); let mut features_cache = setting.features_cache; // Testing the cache. assert!(features_cache.contains::<FeatureA>()); assert!(features_cache.contains::<Feat...
rust_cleaned_test_functions.jsonl/90227
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17069, 11529, 368, 341, 286, 442, 18678, 287, 279, 1273, 1142, 624, 286, 1077, 6243, 284, 19998, 2271, 15400, 486, 931, 543, 286, 1077, 5206, 4419, 11529, 284, 6243, 38310, 11529, 401, 286, 442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_closure_return() { assert_eq!( eval_ok( "class T {} direct method test self boo: { return 42 }. return 31! direct method boo: block block value! end T test", ...
rust_cleaned_test_functions.jsonl/15566
{ "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, 72823, 12511, 368, 341, 262, 2060, 10714, 33673, 286, 5603, 19817, 1006, 310, 330, 1040, 350, 5613, 2290, 2118, 1714, 1273, 198, 338, 656, 46270, 25, 314, 470, 220, 19, 17, 335, 624, 338, 470, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_text() { let text = r#" a /* sdfs */ b c // sdf d {} "#; let paths = load_css_paths(text.as_bytes()); assert!(paths.children.contains(&CssPath::new("a b c d".to_owned()))); }
rust_cleaned_test_functions.jsonl/106111
{ "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, 4326, 368, 341, 262, 1077, 1467, 284, 435, 2, 698, 64, 198, 1057, 274, 34378, 198, 1812, 293, 198, 66, 442, 50157, 198, 67, 5613, 57676, 280, 262, 1077, 12716, 284, 2795, 25924, 24152, 7235, 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_merge_active_stake() { let mut transaction_context = TransactionContext::new(Vec::new(), 1); let invoke_context = InvokeContext::new_mock(&mut transaction_context, &[]); let base_lamports = 4242424242; let stake_address = Pubkey::new_unique(); let source_a...
rust_cleaned_test_functions.jsonl/51804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 5192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 12930, 1261, 726, 368, 341, 286, 1077, 5206, 7745, 8467, 284, 17869, 1972, 486, 931, 49923, 486, 931, 1507, 220, 16, 317, 286, 1077, 19873, 8467, 284, 39667, 1972, 486, 931, 34134, 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_prewrite_should_not_exist() { let engine = TestEngineBuilder::new().build().unwrap(); // concurency_manager.max_tx = 5 let cm = ConcurrencyManager::new(5.into()); let mut statistics = Statistics::default(); let (key, value) = (b"k", b"val"); ...
rust_cleaned_test_functions.jsonl/31429
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 851 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 52473, 43378, 7913, 35906, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 442, 3529, 552, 20735, 12144, 6678, 17805, 284, 220, 20, 198, 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_cache_emoji() { let cache = InMemoryCache::new(); // The user to do some of the inserts fn user_mod(id: EmojiId) -> Option<User> { if id.0 % 2 == 0 { // Only use user for half Some(test::user(UserId(1))) } else { ...
rust_cleaned_test_functions.jsonl/17485
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11529, 62, 37523, 368, 341, 286, 1077, 6500, 284, 758, 10642, 8233, 486, 931, 1428, 286, 442, 576, 1196, 311, 653, 1045, 315, 279, 49298, 198, 286, 5168, 1196, 7480, 3724, 25, 82367, 764, 8, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_hover_unknown_target() { check( r#" pub struct Foo; /// [baz](Baz) pub struct B$0ar "#, expect![[r#" *Bar* ```rust test ``` ```rust pub struct Bar ```...
rust_cleaned_test_functions.jsonl/66659
{ "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, 53445, 57507, 11123, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 9585, 2036, 33428, 280, 2575, 508, 42573, 9533, 33, 1370, 340, 9585, 2036, 425, 3, 15, 277, 198, 57676, 345, 310, 1720, 0, 155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reformat_config() { let input = indoc! {r#" datasource pg { provider = "postgresql" url = "postgresql://" } "#}; let expected = expect![[r#" datasource pg { provider = "postgresql" url = "postgresql://" } ...
rust_cleaned_test_functions.jsonl/73216
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 2243, 5332, 368, 341, 262, 1077, 1946, 284, 1257, 509, 0, 314, 81, 2, 698, 286, 69156, 17495, 341, 688, 9109, 284, 330, 88470, 698, 688, 2515, 284, 330, 88470, 1110, 698, 286, 456, 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_diff_with_merge_conflict_is_passed_on_unchanged_under_raw() { let config = integration_test_utils::make_config_from_args(&["--raw"]); let output = integration_test_utils::run_delta(DIFF_WITH_MERGE_CONFLICT, &config); assert_eq!(strip_ansi_codes(&output), DIFF_WITH_MERGE_C...
rust_cleaned_test_functions.jsonl/70049
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15850, 6615, 20888, 16059, 21242, 6892, 87405, 4470, 62, 3185, 3726, 58228, 16067, 368, 341, 286, 1077, 2193, 284, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 1183, 313, 1041, 15049, 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_split() { let region = Region::new(); let mut ctx = ObserverContext::new(&region); let mut req = AdminRequest::new(); let observer = SplitObserver; let resp = observer.pre_propose_admin(&mut ctx, &mut req); assert!(resp.is_ok()); ...
rust_cleaned_test_functions.jsonl/95032
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1396 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 368, 341, 286, 1077, 5537, 284, 17152, 486, 931, 543, 286, 1077, 5206, 5635, 284, 34041, 1972, 486, 931, 2099, 3943, 317, 286, 1077, 5206, 4232, 284, 7582, 1900, 486, 931, 1428, 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_simple_arithmetic_operation() { let dummy_code_line = 123; let mut vm = VM::new(); let mut chunk = Chunk::new(); let constant = chunk.add_constants(2.0); chunk.write(OP_CONSTANT, dummy_code_line.clone()); chunk.write(constant as u8, dummy_code_lin...
rust_cleaned_test_functions.jsonl/123519
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 377 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 25842, 25922, 32565, 368, 341, 286, 1077, 17292, 4136, 6528, 284, 220, 16, 17, 18, 280, 286, 1077, 5206, 10995, 284, 17792, 486, 931, 543, 286, 1077, 5206, 11879, 284, 45513, 486, 931, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_clear_path_exists() { let map = string_to_asteroid_map( ".#..#\n\ .....\n\ #####\n\ ....#\n\ ...##", ); assert!(map.clear_path_exists(&(1, 0).into(), &(4, 0).into())); assert!(map.clear_path_exists(&...
rust_cleaned_test_functions.jsonl/69384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21811, 2638, 9766, 368, 341, 286, 1077, 2415, 284, 914, 2346, 62, 2300, 588, 5376, 1006, 310, 5933, 2, 496, 88084, 77, 5661, 1797, 5241, 30801, 77, 5661, 1797, 68684, 59, 77, 5661, 1797, 21903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reject_proposal_during_region_merge() { let mut cluster = new_node_cluster(0, 3); configure_for_merge(&mut cluster); let pd_client = cluster.pd_client.clone(); pd_client.disable_default_operator(); cluster.run(); cluster.must_transfer_leader(1, new_peer(1, 1)); cluste...
rust_cleaned_test_functions.jsonl/50879
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1900 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 583, 21663, 32556, 814, 1677, 20627, 20888, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 18, 317, 262, 14411, 5478, 20888, 2099, 6984, 10652, 317, 262, 1077, 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...
9
#[test] fn test_readwrite() { use rustix::fs::{cwd, openat, seek, Mode, OFlags}; use rustix::io::{read, write}; use std::io::SeekFrom; let tmp = tempfile::tempdir().unwrap(); let dir = openat(&cwd(), tmp.path(), OFlags::RDONLY, Mode::empty()).unwrap(); let foo = openat( &dir, ...
rust_cleaned_test_functions.jsonl/33397
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 342 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 4934, 368, 341, 262, 990, 23071, 941, 486, 3848, 22964, 32165, 11, 1787, 266, 11, 5931, 11, 14562, 11, 3008, 22851, 2440, 262, 990, 23071, 941, 486, 815, 22964, 878, 11, 3270, 2440, 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_fr_repr_is_odd() { assert!(!FrRepr::from(0).is_odd()); assert!(FrRepr::from(0).is_even()); assert!(FrRepr::from(1).is_odd()); assert!(!FrRepr::from(1).is_even()); assert!(!FrRepr::from(324834872).is_odd()); assert!(FrRepr::from(324834872).is_even()); assert!(FrRepr::f...
rust_cleaned_test_functions.jsonl/66314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41537, 68535, 6892, 74668, 368, 341, 262, 2060, 0, 3471, 22560, 693, 649, 486, 1499, 7, 15, 568, 285, 74668, 1423, 262, 2060, 10297, 22560, 693, 649, 486, 1499, 7, 15, 568, 285, 68347, 1423, 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_package_doc() { let src = " // Package foo does a thing. package foo "; assert_docs_full( src, PackageDoc { path: "path".to_string(), name: "foo".to_string(), headline: "Package foo do...
rust_cleaned_test_functions.jsonl/9983
{ "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, 26328, 18869, 368, 341, 286, 1077, 2286, 284, 6228, 286, 442, 16906, 15229, 1558, 264, 3166, 624, 286, 6328, 15229, 198, 286, 7620, 286, 2060, 49692, 16372, 1006, 310, 2286, 345, 310, 16906, 9550,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vcf() { let builder = Builder::vcf(); assert_eq!(builder.format, Format::Vcf); assert_eq!(builder.reference_sequence_name_index, 1); assert_eq!(builder.start_position_index, 2); assert_eq!(builder.end_position_index, None); assert_eq!(builder.line_...
rust_cleaned_test_functions.jsonl/102502
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 9792, 368, 341, 286, 1077, 7363, 284, 20626, 486, 7362, 69, 543, 286, 2060, 10714, 10297, 17850, 8021, 11, 15042, 486, 53, 9792, 317, 286, 2060, 10714, 10297, 17850, 50513, 23735, 1269, 3560...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_interval() { let path = Path::new("sample_mp3s/constant_stereo_128.mp3"); let file = File::open(&path).unwrap(); let decoder = Decoder::decode_interval(file, Duration::from_secs(3), Duration::from_secs(4)).unwrap(); let mut frame_count = 0; ...
rust_cleaned_test_functions.jsonl/88771
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 540 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 20541, 368, 341, 286, 1077, 1815, 284, 7933, 486, 931, 445, 13611, 39898, 18, 82, 14, 18077, 1261, 64853, 62, 16, 17, 23, 16870, 18, 797, 286, 1077, 1034, 284, 2887, 486, 2508, 2099, 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...
4
#[test] fn test_shared_ptr_weak_ptr() { let shared_ptr = ffi::c_return_shared_ptr(); let weak_ptr = SharedPtr::downgrade(&shared_ptr); assert_eq!(1, ffi::c_get_use_count(&weak_ptr)); assert!(!weak_ptr.upgrade().is_null()); assert_eq!(1, ffi::c_get_use_count(&weak_ptr)); drop(shared_ptr...
rust_cleaned_test_functions.jsonl/50901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20405, 4348, 86356, 4348, 368, 341, 262, 1077, 6094, 4348, 284, 76956, 486, 66, 12511, 20405, 4348, 543, 262, 1077, 7469, 4348, 284, 16990, 5348, 486, 2923, 6937, 2099, 6100, 4348, 317, 262, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cp_arg_link() { use std::os::linux::fs::MetadataExt; let (at, mut ucmd) = at_and_ucmd!(); ucmd.arg(TEST_HELLO_WORLD_SOURCE) .arg("--link") .arg(TEST_HELLO_WORLD_DEST) .succeeds(); assert_eq!(at.metadata(TEST_HELLO_WORLD_SOURCE).st_nlink(), 2); }
rust_cleaned_test_functions.jsonl/21241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39811, 6057, 7233, 368, 341, 262, 990, 1460, 486, 436, 486, 14210, 486, 3848, 486, 14610, 6756, 401, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 575,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_position_read_after_skip() { let v: Vec<u32> = (0..1_000).collect(); let (stream, skip) = create_stream_buffer(&v[..]); assert_eq!(skip.len(), 12); assert_eq!(stream.len(), 1168); let mut position_reader = PositionReader::new(stream, skip, 0u64); ...
rust_cleaned_test_functions.jsonl/106041
{ "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, 9661, 6443, 19844, 44830, 368, 341, 286, 1077, 348, 25, 11312, 34837, 18, 17, 29, 284, 320, 15, 496, 16, 62, 15, 15, 15, 568, 17384, 543, 286, 1077, 320, 4027, 11, 10706, 8, 284, 1855, 12673...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fake_tool_provider() { let expected_log: ToolCommandLog = serde_json::from_value(json!({ "commands": [ { "tool": "./host_x64/my_tool", "args": [ "foo", "bar", ...
rust_cleaned_test_functions.jsonl/55985
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 584 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56881, 22785, 29518, 368, 341, 286, 1077, 3601, 5224, 25, 13474, 4062, 2201, 284, 61570, 9455, 486, 1499, 3142, 9304, 0, 2262, 310, 330, 24270, 788, 2278, 394, 341, 503, 330, 14172, 788, 5924, 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_parse_empty_data() { let input = "-----BEGIN DATA----- -----END DATA-----"; let pem = parse(&input).unwrap(); assert_eq!(pem.contents.len(), 0); }
rust_cleaned_test_functions.jsonl/56532
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 15124, 1769, 368, 341, 286, 1077, 1946, 284, 330, 15081, 37588, 14112, 34764, 15081, 4689, 14112, 15081, 876, 286, 1077, 54184, 284, 4715, 2099, 1355, 568, 15454, 543, 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
#[test] fn test_dollar_continuation() { test_statement(b"select $$ ; $ab$ test; $$ ;", 27); test_statement(b"select $a$ ; $$ test; $a$ ;", 27); test_statement(b"select $a$ ; test; $a$ ;", 24); test_statement(b"select $a$a$ ; $$ test; $a$;", 28); test_statement(b"select $a$ ; $b$ ; $c$ ; $b$ ...
rust_cleaned_test_functions.jsonl/44562
{ "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, 814, 21295, 68948, 4002, 368, 341, 262, 1273, 37404, 1883, 1, 1742, 26107, 2587, 400, 370, 3, 1273, 26, 26107, 2587, 497, 220, 17, 22, 317, 262, 1273, 37404, 1883, 1, 1742, 400, 64, 3, 2587, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_credential_issuance() { let schema = get_test_issuance_schema(); let issuer = CredentialIssuer::new(); let holder = CredentialHolder::new(); let pk = issuer.get_public_key(); let offer = issuer.create_offer(&schema); let res = holder.accept_creden...
rust_cleaned_test_functions.jsonl/32383
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 675 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 30320, 62, 1038, 84, 681, 368, 341, 286, 1077, 10802, 284, 633, 4452, 62, 1038, 84, 681, 25371, 543, 286, 1077, 54835, 284, 93379, 98902, 486, 931, 543, 286, 1077, 11839, 284, 93379, 8589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_global_dispatcher_add_local_dispatcher() { let dispatcher_type = DispatcherType::Named("test".to_string()); let local_dispatcher = Arc::new(Box::new(Dispatcher::with_type(dispatcher_type.clone()))); let global_dispatcher = GlobalDispatcher::new(); assert_eq!( ...
rust_cleaned_test_functions.jsonl/21760
{ "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, 19296, 92189, 2891, 13564, 92189, 368, 341, 286, 1077, 38799, 1819, 284, 58969, 929, 486, 15810, 445, 1944, 3263, 983, 3904, 1423, 286, 1077, 2205, 92189, 284, 19689, 486, 931, 67758, 486, 931, 7,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_round_timeout() { let initial_model = vec![array![0.0, 0.0].into_dyn()]; let mut training = Training::new(TrainingParams { model_dim: vec![IxDyn(&[2])], initial_model: initial_model.clone(), n_participants: 2, n_rounds: 1, ...
rust_cleaned_test_functions.jsonl/49747
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 432 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 20537, 368, 341, 286, 1077, 2856, 5047, 284, 7486, 20703, 1653, 20703, 15, 13, 15, 11, 220, 15, 13, 15, 936, 18122, 69213, 33800, 286, 1077, 5206, 4862, 284, 16151, 486, 931, 7, 36930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_find_by_headers_empty() { let headers: [&str; 0] = []; assert_eq!(None, Table::find_by_headers("", &headers)); assert_eq!(None, Table::find_by_headers("foo", &headers)); assert_eq!(None, Table::find_by_headers(HTML_NO_TABLE, &headers)); assert!(Table::fi...
rust_cleaned_test_functions.jsonl/47582
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 3710, 26719, 15124, 368, 341, 286, 1077, 7102, 25, 34336, 495, 26, 220, 15, 60, 284, 15436, 286, 2060, 10714, 10297, 4064, 11, 6633, 486, 3903, 3710, 26719, 19814, 609, 7713, 1106, 286, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hashmap() { type MyObj = HashMap<String, i32>; assert_eq!( MyObj::schema_ref().unwrap_inline(), &MetaSchema { additional_properties: Some(Box::new(i32::schema_ref())), ..MetaSchema::new("object") } ); ...
rust_cleaned_test_functions.jsonl/20097
{ "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, 8950, 2186, 368, 341, 286, 943, 3017, 5261, 284, 10528, 3464, 11, 600, 18, 17, 19421, 286, 2060, 10714, 33673, 310, 3017, 5261, 486, 17349, 7793, 1005, 15454, 41871, 3148, 310, 609, 12175, 8632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ffi_serial_queue() { use std::os::raw::c_void; use std::ptr; extern fn serial_queue_test_add(num: *mut c_void) { unsafe { *(num as *mut u32) = 1; } } let mut num: u32 = 0; let num_ptr: *mut u32 = &mut num; ...
rust_cleaned_test_functions.jsonl/61402
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 316 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 53799, 25602, 10841, 368, 341, 286, 990, 1460, 486, 436, 486, 1041, 486, 66, 37775, 280, 286, 990, 1460, 486, 3505, 401, 286, 15637, 5168, 6146, 10841, 4452, 2891, 8068, 25, 353, 6984, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vectors() { let vector_a = Vector { x: 1.0, y: 1.5, z: 2.0, }; let vector_b = Vector { x: -1.0, y: 0.5, z: 0.0, }; let expected_result = Vector { x: 0.0, y...
rust_cleaned_test_functions.jsonl/134052
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 360 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 49158, 368, 341, 286, 1077, 4621, 4306, 284, 4196, 341, 310, 856, 25, 220, 16, 13, 15, 345, 310, 379, 25, 220, 16, 13, 20, 345, 310, 1147, 25, 220, 17, 13, 15, 345, 286, 2605, 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_der_generalizedtime() { let empty = &b""[..]; let bytes = [ 0x18, 0x0D, 0x30, 0x32, 0x31, 0x32, 0x31, 0x33, 0x31, 0x34, 0x32, 0x39, 0x32, 0x33, 0x5A, ]; let expected = DerObject::from_obj(BerObjectContent::GeneralizedTime( std::str::from_utf8(&bytes[2..]).unwrap()...
rust_cleaned_test_functions.jsonl/45878
{ "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, 35345, 39177, 1506, 1678, 368, 341, 262, 1077, 4287, 284, 609, 65, 3014, 95874, 935, 262, 1077, 5820, 284, 2278, 286, 220, 15, 87, 16, 23, 11, 220, 15, 87, 15, 35, 11, 220, 15, 87, 18, 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_transfer_request_to_operations() { assert_eq!( Request::requests_to_operations( &[Request::Transfer(LedgerOperation::Transfer { from: test_account(1), to: test_account(2), amount: Tokens::from_e8s(100), fee: ...
rust_cleaned_test_functions.jsonl/61472
{ "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, 35403, 7893, 2346, 57345, 368, 341, 262, 2060, 10714, 33673, 286, 6145, 486, 36242, 2346, 57345, 1006, 310, 44590, 1900, 486, 21970, 4957, 291, 1389, 8432, 486, 21970, 341, 394, 504, 25, 1273, 135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_gitignore_and_fdignore() { let files = &[ "ignored-by-nothing", "ignored-by-fdignore", "ignored-by-gitignore", "ignored-by-both", ]; let te = TestEnv::new(&[], files); fs::File::create(te.test_root().join(".fdignore")) .unwrap() .w...
rust_cleaned_test_functions.jsonl/10865
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 456 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68801, 13130, 8378, 17676, 13130, 368, 341, 262, 1077, 3542, 284, 609, 9640, 286, 330, 58471, 14319, 28366, 1596, 756, 286, 330, 58471, 14319, 2220, 67, 13130, 756, 286, 330, 58471, 14319, 81749, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_include_b() { let code: Vec<char> = "#include <asdf>".to_string().chars().collect(); let result = try_parse_include(&code, 0); assert_eq!( result, Some(ParseIncludeResult { end_position: code.len(), include_typ...
rust_cleaned_test_functions.jsonl/126907
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 221 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 37878, 880, 368, 341, 286, 1077, 2038, 25, 11312, 21919, 29, 284, 5869, 997, 366, 76615, 52946, 983, 3904, 1005, 19255, 1005, 17384, 543, 286, 1077, 1102, 284, 1430, 21039, 37878, 2099, 185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_main_menu_state() { amethyst::start_logger(amethyst::LoggerConfig::default()); let test_result = crate::test_harness::IntegrationTestApplication::pong_base() .with_state(|| { SendMockEvents::test_state(|_world| Box::new(MainMenu::default())) ...
rust_cleaned_test_functions.jsonl/26328
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11027, 10403, 4387, 368, 341, 286, 1079, 87303, 486, 2468, 27413, 75033, 87303, 486, 7395, 2648, 486, 2258, 1423, 286, 1077, 1273, 5287, 284, 17717, 486, 1944, 1523, 23518, 486, 52464, 2271, 4988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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