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_face_from_table_func() { let face = Face::from_table_func(|table_tag| { let content = format!("{}-table", table_tag); Some(content.into_bytes().into()) }); let maxp_table = face.table_with_tag(Tag::new('m', 'a', 'x', 'p')).unwrap(); assert...
rust_cleaned_test_functions.jsonl/29049
{ "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, 30985, 5673, 5237, 9596, 368, 341, 286, 1077, 3579, 284, 18596, 486, 1499, 5237, 9596, 22428, 2005, 9372, 91, 341, 310, 1077, 2213, 284, 3561, 17223, 6257, 12, 2005, 497, 1965, 9372, 317, 310, 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_zmq_encrypted() { let pubkey1 = secp256k1::PublicKey::from_str( "022e58afe51f9ed8ad3cc7897f634d881fdbe49a81564629ded8156bebd2ffd1af" ).unwrap(); let pubkey2 = secp256k1::PublicKey::from_str( "032e58afe51f9ed8ad3cc7897f634d881fdbe49a81564629ded8156b...
rust_cleaned_test_functions.jsonl/117289
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1944 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6415, 27674, 13781, 14026, 368, 341, 286, 1077, 95116, 16, 284, 511, 4672, 17, 20, 21, 74, 16, 486, 61822, 486, 1499, 2895, 1006, 310, 330, 15, 17, 17, 68, 20, 23, 5645, 20, 16, 69, 24, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_signaling_state_string() { let tests = vec![ (RTCSignalingState::Unspecified, "Unspecified"), (RTCSignalingState::Stable, "stable"), (RTCSignalingState::HaveLocalOffer, "have-local-offer"), (RTCSignalingState::HaveRemoteOffer, "have-remote-...
rust_cleaned_test_functions.jsonl/115799
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 352 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11172, 6132, 4387, 3904, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 320, 5350, 6412, 622, 6132, 1397, 486, 1806, 53434, 11, 330, 1806, 53434, 4461, 310, 320, 5350, 6412, 622, 6132, 1397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_post_base_index() { /* * Base index: D * Target value: B * * VAS: ]GFEDCBA] * abs: 1234567 * rel: 3210--- * pst: ----012 * pos: 0123456 */ let mut vas = VirtualAddressSpace::default(); (0...
rust_cleaned_test_functions.jsonl/17702
{ "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, 6333, 7651, 3560, 368, 341, 286, 9049, 260, 353, 5351, 1922, 25, 422, 198, 260, 353, 13483, 897, 25, 425, 198, 260, 1213, 260, 353, 647, 1911, 25, 2279, 36332, 1479, 34, 7064, 921, 260, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vsock_insert() { let mut store = VsockBuilder::new(); let tmp_sock_file = TempSockFile::new(TempFile::new().unwrap()); let mut vsock_config = default_config(&tmp_sock_file); store.insert(vsock_config.clone()).unwrap(); let vsock = store.get().unwrap(); ...
rust_cleaned_test_functions.jsonl/124163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 13199, 17678, 368, 341, 286, 1077, 5206, 3553, 284, 647, 13199, 3297, 486, 931, 543, 286, 1077, 4174, 33103, 2458, 284, 19944, 79812, 1703, 486, 931, 75387, 1703, 486, 931, 1005, 15454, 1423...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_account_transfer_states() { let location = TempLocation::new(); let inspector = Arc::new(Inspector::new()); request_stream_test( location.to_persistent_lifetime(), create_clean_pre_auth_manager(), None, Arc::clone(&inspector...
rust_cleaned_test_functions.jsonl/105843
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 931 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 35403, 22972, 368, 341, 286, 1077, 3728, 284, 19944, 4707, 486, 931, 543, 286, 1077, 44725, 284, 19689, 486, 931, 7, 46230, 486, 931, 1423, 286, 1681, 12673, 4452, 1006, 310, 3728, 2389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_write_error() { let wbuf = "CDEF".to_string().into_bytes(); let mut aiocb = AioCb::from_slice( 666, // An invalid file descriptor 0, //offset &wbuf, 0, //priority SigevNotify::...
rust_cleaned_test_functions.jsonl/90418
{ "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, 9165, 4096, 368, 341, 262, 1077, 289, 5909, 284, 330, 34, 13649, 3263, 983, 3904, 1005, 18122, 12524, 543, 262, 1077, 5206, 16391, 509, 65, 284, 362, 815, 49737, 486, 1499, 26488, 7, 220, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_tag_class_not_closed() { let input = "{blue_circle"; let input_chars: Vec<char> = input.chars().collect(); let tag = tag_classes().parse(&input_chars).expect("should parse"); assert_eq!(tag, vec!["blue_circle".to_string()]); }
rust_cleaned_test_functions.jsonl/36477
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 9372, 4790, 7913, 44697, 368, 341, 310, 1077, 1946, 284, 13868, 12203, 42222, 876, 310, 1077, 1946, 37418, 25, 11312, 21919, 29, 284, 1946, 85062, 1005, 17384, 543, 310, 1077, 4772, 284, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_restore_with_learner() { setup_for_test(); let mut s = new_snapshot(11, 11, vec![1, 2]); s.mut_metadata().mut_conf_state().mut_learners().push(3); let mut sm = new_test_learner_raft(3, vec![1, 2], vec![3], 10, 1, new_storage()); assert!(sm.is_learner); assert!(sm.restore...
rust_cleaned_test_functions.jsonl/107181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62677, 6615, 62, 93595, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 5206, 274, 284, 501, 53265, 7, 16, 16, 11, 220, 16, 16, 11, 7486, 20703, 16, 11, 220, 17, 2558, 262, 274, 744, 332, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mixed_valid() { assert_valid_str( r"This is the tale of a string with a newline in between, no emoji at all, nor unicode escapes or weird stuff", ); }
rust_cleaned_test_functions.jsonl/4169
{ "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, 717, 3286, 8337, 368, 341, 286, 2060, 8337, 2895, 1006, 310, 435, 21520, 374, 279, 23281, 315, 264, 914, 198, 4197, 264, 39027, 304, 1948, 11, 902, 42365, 518, 678, 345, 44707, 26077, 65109, 476...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_delimited_square() { equal_tokens! { <nodes> "[abc]" -> b::token_list(vec![b::square(vec![b::bare("abc")])]) } equal_tokens! { <nodes> "[ abc ]" -> b::token_list(vec![b::square(vec![b::ws(" "), b::bare("abc"), b::ws(" "...
rust_cleaned_test_functions.jsonl/5868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 467 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18029, 31511, 39794, 368, 341, 286, 6144, 28838, 0, 341, 310, 366, 20008, 397, 310, 10545, 13683, 19177, 1464, 293, 486, 5839, 2019, 25592, 20703, 65, 486, 37476, 25592, 20703, 65, 486, 54102, 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_upconvert_kerning_glyphname_groupname() { let ufo_v1 = Ufo::load("testdata/upconversion_kerning/glyphname_groupname_UFOv1.ufo").unwrap(); let ufo_v2 = Ufo::load("testdata/upconversion_kerning/glyphname_groupname_UFOv2.ufo").unwrap(); let groups_ex...
rust_cleaned_test_functions.jsonl/65556
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8237, 14166, 4698, 932, 287, 88703, 606, 6288, 606, 368, 341, 286, 1077, 575, 824, 2273, 16, 4035, 310, 547, 824, 486, 1078, 445, 92425, 71843, 73725, 4698, 932, 287, 4846, 9525, 606, 6288, 606,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bomful_valid_utf8_to_cow_without_bom_handling_and_without_replacement() { match UTF_8.decode_without_bom_handling_and_without_replacement( b"\xEF\xBB\xBF\xE2\x82\xAC\xC3\xA4", ) { Some(cow) => match cow { Cow::Borrowed(s) => { ...
rust_cleaned_test_functions.jsonl/90261
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 880, 316, 1262, 8337, 39453, 23, 2346, 666, 363, 39904, 880, 316, 75642, 8378, 39904, 1288, 16101, 368, 341, 286, 2432, 20076, 62, 23, 15922, 39904, 880, 316, 75642, 8378, 39904, 1288, 1610...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_write_timestamp_second() { let expected = vec![ "+---------------------+", "| f |", "+---------------------+", "| 1970-05-09 14:25:11 |", "| |", "+---------------------+", ...
rust_cleaned_test_functions.jsonl/39714
{ "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, 9165, 23073, 29644, 368, 341, 286, 1077, 3601, 284, 7486, 90515, 310, 6630, 771, 15081, 10, 756, 310, 25203, 282, 4293, 760, 756, 310, 6630, 771, 15081, 10, 756, 310, 25203, 220, 16, 24, 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...
1
#[test] fn test_url_error_message() { let input = r#" "foo"; "#; let err = serde_json::from_str::<Url>(input).expect_err("must fail"); assert_eq!( err.to_string(), "invalid value: string \"foo\", expected a valid URL at line 2 \ co...
rust_cleaned_test_functions.jsonl/98675
{ "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, 2903, 4096, 6462, 368, 341, 286, 1077, 1946, 284, 435, 2, 698, 310, 330, 7975, 876, 286, 5869, 280, 286, 1077, 1848, 284, 61570, 9455, 486, 1499, 2895, 27638, 2864, 2235, 1355, 568, 17119, 9266,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_std_clock() { let clock = StdClock::new(); let time = clock.now_us(); std::thread::sleep(Duration::from_millis(100)); let elapsed = clock.now_us().saturating_sub(time); assert_eq!(us_to_ms_rounded(elapsed), 100); }
rust_cleaned_test_functions.jsonl/127926
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15656, 23062, 368, 341, 262, 1077, 8866, 284, 42517, 26104, 486, 931, 1428, 262, 1077, 882, 284, 8866, 10700, 11306, 543, 262, 1460, 486, 4528, 486, 25809, 64114, 486, 1499, 717, 56212, 7, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_ansi_term_style_with_special_syntax_color() { assert_eq!( parse_ansi_term_style("syntax", None, None, false), (ansi_term::Style::new(), true) ); assert_eq!( parse_ansi_term_style("syntax italic white hidden", None, None, false), ...
rust_cleaned_test_functions.jsonl/24964
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 774 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 62, 52067, 17464, 15117, 6615, 41629, 78894, 6714, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 62, 52067, 17464, 15117, 445, 56193, 497, 2240, 11, 2240, 11, 895, 1326, 310, 320, 52067, 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_tree_mark_as_allocated() { let range = RangeInclusive::new(0x100, 0x110).unwrap(); let range2 = RangeInclusive::new(0x200, 0x2FF).unwrap(); let mut tree = Box::new(InnerNode::new(range, NodeState::Allocated)); tree = tree.insert(range2, NodeState::Free).unwrap(); ...
rust_cleaned_test_functions.jsonl/90297
{ "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, 11663, 18924, 11898, 82342, 368, 341, 286, 1077, 2088, 284, 16437, 641, 8336, 486, 931, 7, 15, 87, 16, 15, 15, 11, 220, 15, 87, 16, 16, 15, 568, 15454, 543, 286, 1077, 2088, 17, 284, 16437, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_snapshot_download() { solana_logger::setup_with_default(RUST_LOG_FILTER); // First set up the cluster with 1 node let snapshot_interval_slots = 50; let num_account_paths = 3; let leader_snapshot_test_config = setup_snapshot_validator_config(snapshot_interval_slots, n...
rust_cleaned_test_functions.jsonl/45699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 833 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53265, 35939, 368, 341, 262, 2048, 3362, 27413, 486, 15188, 6615, 9993, 2785, 8553, 8419, 23728, 317, 262, 442, 5512, 738, 705, 279, 10652, 448, 220, 16, 2436, 198, 262, 1077, 16295, 20541, 54161,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_size() { let input = &[0xff, 0xff, 0xff, 0xff]; let res: NomResult<u32> = size(input); assert_eq!(res, Ok((&[][..], 0xffffffff))) }
rust_cleaned_test_functions.jsonl/39174
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 368, 341, 286, 1077, 1946, 284, 44590, 15, 9020, 11, 220, 15, 9020, 11, 220, 15, 9020, 11, 220, 15, 9020, 935, 286, 1077, 592, 25, 36900, 2077, 34837, 18, 17, 29, 284, 1379, 5384, 317,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_region_split() { let mut suite = TestSuite::new(3); let region = suite.cluster.get_region(&[]); let mut req = ChangeDataRequest::default(); req.region_id = region.get_id(); req.set_region_epoch(region.get_region_epoch().clone()); let (event_feed_wrap, receive_event) = ne...
rust_cleaned_test_functions.jsonl/3783
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 805 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20627, 17052, 368, 341, 262, 1077, 5206, 16182, 284, 3393, 28000, 486, 931, 7, 18, 626, 262, 1077, 5537, 284, 16182, 40501, 670, 20627, 2099, 56703, 262, 1077, 5206, 4232, 284, 10388, 1043, 1900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_sign_download_url_with_deadline() -> Result<(), Box<dyn Error>> { let credential = get_credential(); assert_eq!( credential.sign_download_url_with_deadline( Url::parse("http://www.qiniu.com/?go=1")?, SystemTime::UNIX_EPOCH + Duration::f...
rust_cleaned_test_functions.jsonl/84488
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 523 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11172, 35939, 2903, 6615, 53427, 1056, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 1077, 40207, 284, 633, 666, 30320, 543, 286, 2060, 10714, 33673, 310, 40207, 15499, 35939, 2903, 661...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_date_fmt() { assert_eq!(format!("{:?}", NaiveDate::from_ymd(2012, 3, 4)), "2012-03-04"); assert_eq!(format!("{:?}", NaiveDate::from_ymd(0, 3, 4)), "0000-03-04"); assert_eq!(format!("{:?}", NaiveDate::from_ymd(-307, 3, 4)), "-0307-03-04"); assert_eq!(for...
rust_cleaned_test_functions.jsonl/4772
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 497 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 38128, 368, 341, 286, 2060, 10714, 10297, 2243, 88928, 25, 52652, 12812, 533, 1916, 486, 1499, 62, 1600, 67, 7, 17, 15, 16, 17, 11, 220, 220, 18, 11, 220, 19, 5731, 256, 330, 17, 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_decrypt() { let mut output = Vec::with_capacity(CIPHERTEXT.len()); decrypt(KEY, NONCE, AAD, CIPHERTEXT, TAG, &mut output).expect("test failed"); assert_eq!(&output[..], PLAINTEXT.as_bytes()); }
rust_cleaned_test_functions.jsonl/78048
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80764, 368, 341, 286, 1077, 5206, 2550, 284, 11312, 486, 4197, 35603, 3025, 58088, 12708, 19406, 1423, 286, 38126, 37076, 11, 20575, 2104, 11, 362, 1808, 11, 356, 58088, 12708, 11, 21494, 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_serialize_with_enum() { let a = 1; assert_ser_tokens( &SerializeWithEnum::Struct { a: &a, b: 2 }, &[ Token::StructVariant { name: "SerializeWithEnum", variant: "Struct", len: 2 }, Token::Str("a"), Token::I8(1), Token::Str(...
rust_cleaned_test_functions.jsonl/58617
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 6615, 31054, 368, 341, 262, 1077, 264, 284, 220, 16, 280, 262, 2060, 75861, 28838, 1006, 286, 609, 15680, 2354, 10766, 486, 9422, 314, 264, 25, 609, 64, 11, 293, 25, 220, 17, 1153, 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_tabs_keep_last_trailing_specifier() { // before the number. new_ucmd!() .arg("--tabs=1,+/+/5") .pipe_in("\ta\tb\tc") .succeeds() .stdout_is(" a b c"); }
rust_cleaned_test_functions.jsonl/121805
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57953, 50293, 12195, 3547, 14277, 13594, 3049, 368, 341, 1066, 262, 442, 1573, 279, 1372, 624, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 21549, 30993, 28, 16, 11, 40631, 40631, 20, 1138, 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_calculate_array_levels_1() { let parent_levels = LevelInfo { definition: vec![0; 5], repetition: None, array_offsets: vec![0, 1, 2, 3, 4, 5], array_mask: vec![true, true, true, true, true], max_definition: 0, ...
rust_cleaned_test_functions.jsonl/77704
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 891 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24005, 11207, 3858, 37819, 62, 16, 368, 341, 16885, 286, 1077, 2681, 37819, 284, 9395, 1731, 341, 310, 7271, 25, 7486, 20703, 15, 26, 220, 20, 1259, 310, 53415, 25, 2240, 345, 310, 1334, 56924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decode_int96() { let mut data = vec![Int96::new(); 4]; data[0].set_data(11, 22, 33); data[1].set_data(44, 55, 66); data[2].set_data(10, 20, 30); data[3].set_data(40, 50, 60); let data_bytes = Int96Type::to_byte_array(&data[..]); let m...
rust_cleaned_test_functions.jsonl/38509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41015, 15227, 4042, 24, 21, 368, 341, 286, 1077, 5206, 821, 284, 7486, 20703, 1072, 24, 21, 486, 931, 2129, 220, 19, 935, 286, 821, 58, 15, 936, 746, 1769, 7, 16, 16, 11, 220, 17, 17, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_thread_reset() -> Result<()> { use mlua::{AnyUserData, UserData}; use std::sync::Arc; let lua = Lua::new(); struct MyUserData(Arc<()>); impl UserData for MyUserData {} let arc = Arc::new(()); let func: Function = lua.load(r#"function(ud) coroutine.yield(ud) end"#)...
rust_cleaned_test_functions.jsonl/69330
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 607 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10814, 18983, 368, 1464, 5714, 71698, 341, 262, 990, 15739, 4284, 22964, 8610, 39485, 11, 71294, 2440, 262, 990, 1460, 486, 12996, 486, 36809, 401, 262, 1077, 20357, 284, 37662, 486, 931, 1428, 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...
9
#[test] fn test_read_record() -> io::Result<()> { let data = [ 0x04, 0x00, 0x00, 0x00, // block_size = 4 0x6e, 0x64, 0x6c, 0x73, ]; let mut reader = &data[..]; let mut record = Record::default(); let block_size = read_record(&mut reader, &mut rec...
rust_cleaned_test_functions.jsonl/64399
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 14192, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 821, 284, 2278, 310, 220, 15, 87, 15, 19, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_escape_2() { let test = "a\nb\tc"; assert_eq!(escape_string(test), "a\\nb\\tc".to_owned()); assert_eq!(unescape_string(escape_string(test).as_str()), test); }
rust_cleaned_test_functions.jsonl/12475
{ "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, 21832, 62, 17, 368, 341, 286, 1077, 1273, 284, 330, 64, 1699, 65, 4955, 66, 876, 286, 2060, 10714, 10297, 12998, 3904, 8623, 701, 330, 64, 3422, 18080, 3422, 10413, 3263, 983, 51973, 1423, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_bbox2_intersect() { let bbox: BBox2<usize> = BBox2::new(Point2::new(1, 0), Point2::new(0, 1)); let bbox1: BBox2<usize> = BBox2::new(Point2::new(20, 4), Point2::new(10, 8)); assert!(bbox1.intersect(&bbox)==None); let bbox = BBox2::new(Point2::new(0, 0), Point2::new...
rust_cleaned_test_functions.jsonl/133231
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59390, 17, 72747, 368, 341, 286, 1077, 29749, 25, 425, 1611, 17, 90244, 29, 284, 425, 1611, 17, 486, 931, 32737, 17, 486, 931, 7, 16, 11, 220, 15, 701, 5126, 17, 486, 931, 7, 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_current_user_saved_tracks() { let mut oauth = SpotifyOAuth::default().scope("user-library-read").build(); match get_token(&mut oauth) { Some(token_info) => { let client_credential = SpotifyClientCredentials::default() .token_info(token_info) ...
rust_cleaned_test_functions.jsonl/79263
{ "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, 11080, 3317, 53709, 66953, 368, 1476, 262, 1077, 5206, 46415, 284, 40537, 57850, 486, 2258, 1005, 4186, 445, 872, 52421, 28806, 1827, 5834, 543, 262, 2432, 633, 6458, 2099, 6984, 46415, 8, 341, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_source_chain() { let root = Error::new(Kind::Request, None::<Error>); assert!(root.source().is_none()); let link = super::body(root); assert!(link.source().is_some()); assert_send::<Error>(); assert_sync::<Error>(); }
rust_cleaned_test_functions.jsonl/18123
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10347, 30583, 368, 341, 286, 1077, 3704, 284, 4600, 486, 931, 7, 10629, 486, 1900, 11, 2240, 27638, 1454, 42013, 286, 2060, 10297, 2888, 14698, 1005, 285, 31488, 5231, 286, 1077, 2656, 284, 2256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rdp() { let mut ss = SimpleStore::new(); let tup1 = tuple![E::D(3.14), E::I(123)]; let tup2 = tuple![E::D(3.14), E::Any]; let tup3 = tuple![E::D(3.14), E::Any]; ss.out(tup1).unwrap(); let tup4 = ss.rdp(&tup2).unwrap().unwrap(); assert!(tup3.matches(&tup4)); }
rust_cleaned_test_functions.jsonl/74947
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 9796, 368, 341, 262, 1077, 5206, 10870, 284, 8993, 6093, 486, 931, 543, 262, 1077, 57385, 16, 284, 14405, 20703, 36, 486, 35, 7, 18, 13, 16, 19, 701, 468, 486, 40, 7, 16, 17, 18, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_skewnewss() { test_almost(1.0, 0.1, 2.0, 1e-13, |x| x.skewness()); test_almost(1.0, 1.0, 2.0, 1e-13, |x| x.skewness()); test_almost(10.0, 10.0, -0.63763713390314440916597757156663888653981696212127, 1e-11, |x| x.skewness()); test_almost(10.0, 1.0, -0.6376371339031...
rust_cleaned_test_functions.jsonl/84307
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33811, 365, 931, 778, 368, 341, 286, 1273, 94418, 7, 16, 13, 15, 11, 220, 15, 13, 16, 11, 220, 17, 13, 15, 11, 220, 16, 68, 12, 16, 18, 11, 760, 87, 91, 856, 39454, 365, 2090, 1423, 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_client_connect() { let actual_client_connection: bool = client::connect(); let expected_response: bool = true; assert_eq!(actual_client_connection, expected_response); }
rust_cleaned_test_functions.jsonl/131114
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8179, 15720, 368, 341, 286, 1077, 5042, 8179, 15866, 25, 1807, 284, 2943, 486, 6459, 543, 286, 1077, 3601, 9655, 25, 1807, 284, 830, 280, 286, 2060, 10714, 10297, 11944, 8179, 15866, 11, 3601, 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
#[test] fn test_foldr_non_consuming() { let h = hlist![1, false, 42f32]; let folder = hlist![ |&i, acc| i + acc, |&_, acc| if acc > 42f32 { 9000 } else { 0 }, |&f, acc| f + acc ]; let folded = h.to_ref().foldr(folder, 1f32); assert_eq!(...
rust_cleaned_test_functions.jsonl/24756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61187, 81, 21637, 3382, 61117, 368, 341, 286, 1077, 305, 284, 305, 1607, 20703, 16, 11, 895, 11, 220, 19, 17, 69, 18, 17, 935, 286, 1077, 8527, 284, 305, 1607, 90515, 310, 760, 5, 72, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_create_plain_message() { let payload = "test-message"; let plain_message = PlainMessage::create(payload); assert_eq!(plain_message.payload(), payload); assert_eq!(plain_message.to_dto(), "00746573742D6D657373616765"); }
rust_cleaned_test_functions.jsonl/25396
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 41015, 6462, 368, 341, 286, 1077, 7729, 284, 330, 1944, 29332, 3302, 286, 1077, 14396, 6462, 284, 43199, 2052, 486, 3182, 26772, 317, 286, 2060, 10714, 10297, 20772, 6462, 17492, 1507, 7729, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_at_signs_file_not_readable() { let td = TempDir::new("sccache").unwrap(); let arg = format!("-@{}", td.path().join("foo").display()); // File foo doesn't exist. assert_eq!( _parse_arguments(&[arg]), CompilerArguments::CannotCache("-@", None...
rust_cleaned_test_functions.jsonl/37628
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3752, 11172, 82, 2458, 7913, 91232, 368, 341, 286, 1077, 17941, 284, 19944, 6184, 486, 931, 445, 82, 638, 1777, 1827, 15454, 543, 286, 1077, 1392, 284, 3561, 0, 13645, 31, 42351, 17941, 3875, 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_inversion() { let a = Fp([ 0x43b43a5078ac2076, 0x1ce0763046f8962b, 0x724a5276486d735c, 0x6f05c2a6282d48fd, 0x2095bd5bb4ca9331, 0x3b35b3894b0f7da, ]); let b = Fp([ 0x69ecd7040952148f, 0x985ccc2022190f55, 0xe19bba3...
rust_cleaned_test_functions.jsonl/70428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 4366, 368, 341, 262, 1077, 264, 284, 434, 79, 8956, 286, 220, 15, 87, 19, 18, 65, 19, 18, 64, 20, 15, 22, 23, 580, 17, 15, 22, 21, 345, 286, 220, 15, 87, 16, 346, 15, 22, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_grep_n_match() { let fake_parent_grep_command = "/usr/local/bin/git --doesnt-matter grep --nor-this nor_this -- nor_this"; let _args = FakeParentArgs::for_scope(fake_parent_grep_command); assert_eq!( parse_grep_line("src/co-7-fig.rs:7:xxx"),...
rust_cleaned_test_functions.jsonl/43040
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 1889, 9995, 1089, 10708, 368, 341, 286, 1077, 12418, 15960, 1889, 9995, 10811, 4035, 310, 3521, 7063, 22270, 8749, 60590, 1177, 27057, 406, 1448, 1650, 20675, 1177, 44707, 60191, 6329, 24868, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pull_request_comments_ignore_empty_messages() { let mut test = new_test(); test.handler.event = "pull_request_review_comment".into(); test.handler.action = "created".into(); test.handler.data.pull_request = some_pr(); test.handler.data.comment = Some(Comment { commit_...
rust_cleaned_test_functions.jsonl/89634
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65693, 7893, 30359, 58493, 15124, 23428, 368, 341, 262, 1077, 5206, 1273, 284, 501, 4452, 543, 262, 1273, 31171, 5773, 284, 330, 23441, 7893, 38661, 17638, 3263, 18122, 543, 262, 1273, 31171, 12395,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_batch_get_memory_lock() { test_with_memory_lock_cluster(|client, ctx, raw_key, lock| { let mut req = BatchGetRequest::default(); req.set_context(ctx); req.set_keys(vec![b"unlocked".to_vec(), raw_key.clone()].into()); req.version = 50; let resp = client...
rust_cleaned_test_functions.jsonl/61705
{ "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, 14534, 3062, 19195, 9818, 368, 341, 262, 1273, 6615, 19195, 9818, 28441, 22428, 2972, 11, 5635, 11, 7112, 3097, 11, 5296, 91, 341, 286, 1077, 5206, 4232, 284, 33904, 1949, 1900, 486, 2258, 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_failed_update_does_not_trigger_reboot() { block_on(async { let config = config_generator(); let response = json!({"response":{ "server": "prod", "protocol": "3.0", "app": [{ "appid": "{00000000-0000-0000-00...
rust_cleaned_test_functions.jsonl/104646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 669 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35060, 8882, 96374, 7913, 32925, 1288, 4619, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2193, 284, 2193, 25813, 543, 310, 1077, 2033, 284, 2951, 0, 16864, 2322, 12602, 1060, 330, 4030, 788,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_inputsize_79() { // Generated with libsodium let sk = [ 49u8, 50u8, 51u8, 52u8, 53u8, 54u8, 55u8, 56u8, 57u8, 97u8, 98u8, 99u8, 100u8, 101u8, 102u8, 103u8, 104u8, 105u8, 106u8, 107u8, 108u8, 109u8, 111u8, 110u8, 112u8, 113u8, 114u8, 115u8, 116u...
rust_cleaned_test_functions.jsonl/75559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1609 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5898, 2141, 62, 22, 24, 368, 341, 286, 442, 30488, 448, 63974, 46776, 198, 286, 1077, 1901, 284, 2278, 310, 220, 19, 24, 84, 23, 11, 220, 20, 15, 84, 23, 11, 220, 20, 16, 84, 23, 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_trap_trace() -> Result<()> { let store = get_store(false); let wat = r#" (module $hello_mod (func (export "run") (call $hello)) (func $hello (unreachable)) ) "#; let module = Module::new(&store, wat)?; let instance = Instance::new(&mod...
rust_cleaned_test_functions.jsonl/38855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88536, 23575, 368, 1464, 5714, 71698, 341, 262, 1077, 3553, 284, 633, 14809, 3576, 317, 262, 1077, 29025, 284, 435, 2, 698, 286, 320, 4352, 400, 14990, 7480, 198, 310, 320, 2830, 320, 1533, 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...
3
#[test] fn test_in_values() { use crate::{col, values}; let expected_sql = "SELECT `test`.* FROM `test` WHERE (`id1`,`id2`) IN (VALUES (?,?),(?,?))"; let query = Select::from_table("test") .so_that(Row::from((col!("id1"), col!("id2"))).in_selection(values!((1, 2), (3, 4))));...
rust_cleaned_test_functions.jsonl/52901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 9146, 368, 341, 286, 990, 17717, 22964, 2074, 11, 2750, 2315, 286, 1077, 3601, 18063, 284, 330, 4858, 1565, 1944, 63, 4908, 4295, 1565, 1944, 63, 5288, 28654, 307, 16, 40181, 307, 17, 3288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_explicit_drop() { use std::thread; let x = Test { x: 5 }; let y = Blocker::new(&x); let z = y.get(); let w = y.get(); let v = y.get(); thread::spawn(move || { thread::sleep_ms(1000); println!("z{:?}", *z); }); thread::spawn(move || { ...
rust_cleaned_test_functions.jsonl/94622
{ "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, 25133, 14214, 6026, 29584, 368, 341, 262, 990, 1460, 486, 4528, 280, 262, 1077, 856, 284, 3393, 314, 856, 25, 220, 20, 2605, 262, 1077, 379, 284, 8362, 261, 486, 931, 2099, 87, 317, 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...
4
#[test] fn test_tags_columns_measured_in_utf16_code_units() { let language = get_language("python"); let tags_config = TagsConfiguration::new(language, PYTHON_TAG_QUERY, "").unwrap(); let mut tag_context = TagsContext::new(); let source = r#""❤️❤️❤️".hello_α_ω()"#.as_bytes(); let tag = tag...
rust_cleaned_test_functions.jsonl/66037
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 295 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16333, 22590, 16612, 39312, 1243, 39453, 16, 21, 4136, 28345, 368, 341, 262, 1077, 4128, 284, 633, 29021, 445, 12669, 797, 262, 1077, 9492, 5332, 284, 27683, 7688, 486, 931, 60740, 11, 76678, 1659...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transform_with_suffix_and_delimiter() { new_ucmd!() .args(&["--suffix=b", "--to=si", "-d=|"]) .pipe_in("1000b|2000|3000") .succeeds() .stdout_only("1.0Kb|2000|3000\n"); }
rust_cleaned_test_functions.jsonl/93651
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18449, 6615, 37151, 8378, 18029, 17700, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 26786, 22086, 497, 14482, 983, 28, 6321, 497, 6523, 67, 28, 91, 14108, 286, 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_parse_redis_url() { let redis_url = "redis://127.0.0.1:1234/0".to_string(); redis::parse_redis_url(&redis_url).unwrap(); redis::parse_redis_url("unix:/var/run/redis/redis.sock").unwrap(); assert!(redis::parse_redis_url("127.0.0.1").is_err()); }
rust_cleaned_test_functions.jsonl/108940
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 87542, 2903, 368, 341, 262, 1077, 20870, 2903, 284, 330, 21748, 1110, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 16, 17, 18, 19, 14, 15, 3263, 983, 3904, 543, 262, 20870, 486, 6400, 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_field_string() { let test_cases = vec![ ( vec![ Some(b"foo".to_vec()), Some(b"foo".to_vec()), Some(b"bar".to_vec()), Some(b"baz".to_vec()), ], Some(...
rust_cleaned_test_functions.jsonl/10178
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1387 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5013, 3904, 368, 341, 286, 1077, 1273, 41427, 284, 7486, 90515, 310, 2399, 394, 7486, 90515, 503, 4329, 1883, 1, 7975, 3263, 983, 13251, 14702, 503, 4329, 1883, 1, 7975, 3263, 983, 13251, 14702, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_filter() { let fstab = r#"# /etc/fstab # blah /dev/foo /bar something defaults 1 1 1.2.3.4@tcp:/foobar /mnt/lustre_clients/foobar lustre x-systemd.mount-timeout=20m,noauto,_netdev 1.2.3.4@tcp:/foobar1 /mnt/lustre_clients/foobar1 ...
rust_cleaned_test_functions.jsonl/125148
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 414 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 368, 341, 286, 1077, 48434, 370, 284, 435, 55543, 2, 608, 12107, 6663, 67488, 198, 2, 52561, 271, 35061, 60555, 286, 608, 2257, 286, 2494, 256, 16674, 262, 220, 16, 220, 16, 198, 16, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_whitespace() { assert!("".chars().all(|c| c.is_whitespace())); assert!(" ".chars().all(|c| c.is_whitespace())); assert!("\u{2009}".chars().all(|c| c.is_whitespace())); // Thin space assert!(" \n\t ".chars().all(|c| c.is_whitespace())); assert!(!" _...
rust_cleaned_test_functions.jsonl/2446
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 86175, 368, 341, 286, 2060, 17223, 3263, 19255, 1005, 541, 22428, 66, 91, 272, 2079, 86175, 7392, 286, 2060, 17223, 5933, 19255, 1005, 541, 22428, 66, 91, 272, 2079, 86175, 7392, 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_retention_policy_from_str() { let actual = RetentionPolicy::from_str("h24d30w8m6y1").unwrap(); let expected = RetentionPolicy { yearly: Some(1), monthly: Some(6), weekly: Some(8), daily: Some(30), hourly: Some(24), ...
rust_cleaned_test_functions.jsonl/48501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21695, 2939, 22773, 5673, 2895, 368, 341, 286, 1077, 5042, 284, 10392, 78165, 486, 1499, 2895, 445, 71, 17, 19, 67, 18, 15, 86, 23, 76, 21, 88, 16, 1827, 15454, 543, 286, 1077, 3601, 284, 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_missing_file_error() { let mut cmd = main_command(); let filename = format!("non-existing-file-{}", uuid::Uuid::new_v4().to_string()); cmd.arg(&filename) .assert() .failure() .code(1) .stderr(contains(format!( ...
rust_cleaned_test_functions.jsonl/134340
{ "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, 40447, 2458, 4096, 368, 341, 286, 1077, 5206, 5439, 284, 1887, 10811, 543, 286, 1077, 3899, 284, 3561, 17223, 6280, 49357, 14203, 12, 42351, 16040, 486, 38431, 486, 931, 2273, 19, 1005, 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
#[test] fn test_dense_mixed() { let mut builder = UnionBuilder::new_dense(7); builder.append::<Int32Type>("a", 1).unwrap(); builder.append::<Int64Type>("c", 3).unwrap(); builder.append::<Int32Type>("a", 4).unwrap(); builder.append::<Int64Type>("c", 5).unwrap(); bu...
rust_cleaned_test_functions.jsonl/25631
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72619, 717, 3286, 368, 341, 286, 1077, 5206, 7363, 284, 9145, 3297, 486, 931, 72619, 7, 22, 317, 286, 7363, 2057, 27638, 1072, 18, 17, 929, 13211, 64, 497, 220, 16, 568, 15454, 543, 286, 7363,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fill_rpool_r1_wrong_dh_publics() { let result = fill_rpool( "[\"312a8e55996f72a708929e68c7c0f4dcdcdcddb35d512f9ded388bcd7dce8633\"]".to_string(), "[\"\"]".to_string(), Curve::Secp256r1, "{\"n\":\"9e2f24f407914eff43b7c7df083c5cc9765c05386485...
rust_cleaned_test_functions.jsonl/49758
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 569 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30728, 1710, 10285, 1710, 16, 75198, 814, 71, 27074, 82, 368, 341, 286, 1077, 1102, 284, 5155, 1710, 10285, 1006, 310, 10545, 2105, 18, 16, 17, 64, 23, 68, 20, 20, 24, 24, 21, 69, 22, 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_parse_chunked_payload_chunk_extension() { let mut buf = BytesMut::from( &"GET /test HTTP/1.1\r\n\ transfer-encoding: chunked\r\n\r\n"[..], ); let mut reader = MessageDecoder::<Request>::default(); let (msg, pl) = reader.decode(&mut buf)....
rust_cleaned_test_functions.jsonl/22289
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 422 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 30539, 291, 32813, 30539, 31035, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 1499, 1006, 310, 609, 1, 3806, 608, 1944, 10130, 14, 16, 13, 16, 12016, 1699, 5661, 1060, 8317, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pruned_string() { test_helpers::maybe_start_logging(); // column1 > "z" where let observer = TestObserver::new(); let c1 = Arc::new( TestChunk::new("chunk1").with_string_field_column_with_stats( "column1", Some...
rust_cleaned_test_functions.jsonl/47391
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 358 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 48883, 3904, 368, 341, 286, 1273, 54473, 486, 36760, 4906, 59982, 543, 286, 442, 3250, 16, 861, 330, 89, 1, 1380, 198, 23459, 286, 1077, 22067, 284, 3393, 17151, 486, 931, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_legal_moves_banmen_with_kaku_next_occupied_lefttop_to_rightbottom_sente() { let blank_banmen = Banmen([[Blank; 9]; 9]); for y in 0..8 { for x in 0..8 { let mut banmen = blank_banmen.clone(); banmen.0[y][x] = SKaku; banmen.0[y+1][x+1] = GFu; assert_eq!(legal_moves_fro...
rust_cleaned_test_functions.jsonl/81159
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 274 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82324, 45390, 880, 276, 5676, 6615, 4698, 23557, 11257, 62, 40356, 9579, 3481, 2346, 10539, 14860, 643, 6817, 368, 972, 10217, 10113, 880, 276, 5676, 284, 22730, 5676, 27119, 22770, 26, 220, 24, 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_calculate_accounts_hash_check_hash() { solana_logger::setup(); let db = AccountsDb::new(Vec::new(), &ClusterType::Development); let key = solana_sdk::pubkey::new_rand(); let some_data_len = 0; let some_slot: Slot = 0; let account = AccountSharedDa...
rust_cleaned_test_functions.jsonl/6986
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24005, 11207, 55665, 8950, 7200, 8950, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 2927, 284, 40655, 7994, 486, 931, 49923, 486, 931, 1507, 609, 28678, 929, 486, 39419, 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...
1
#[test] fn test_sample_length() { let sample_num = 20; let mut key_ranges = vec![]; for _ in 0..sample_num { key_ranges.push(vec![build_key_range(b"a", b"b", false)]); } check_sample_length(sample_num, key_ranges); let mut key_ranges = vec![]; ...
rust_cleaned_test_functions.jsonl/33009
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17491, 5118, 368, 341, 286, 1077, 6077, 4273, 284, 220, 17, 15, 280, 286, 1077, 5206, 1376, 58748, 284, 7486, 0, 15078, 286, 369, 716, 304, 220, 15, 496, 13611, 4273, 341, 310, 1376, 58748, 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...
5
#[test] fn test_square() { let fe : FE =ECScalar::new_random(); let mut fp_curv = FpCurv(fe); let fp_curv_1 = fp_curv.clone(); fp_curv.square_in_place(); let fp_curv_2 = fp_curv_1 * fp_curv_1; assert_eq!(fp_curv, fp_curv_2); }
rust_cleaned_test_functions.jsonl/50444
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39794, 368, 341, 286, 1077, 1152, 549, 27931, 284, 7498, 20639, 486, 931, 22644, 543, 286, 1077, 5206, 12007, 18956, 85, 284, 434, 79, 16704, 85, 91921, 317, 286, 1077, 12007, 18956, 85, 62, 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_query_matches_different_queries_same_cursor() { allocations::record(|| { let language = get_language("javascript"); let query1 = Query::new( language, " (array (identifier) @id1) ", ) .unwrap(); let query2 = ...
rust_cleaned_test_functions.jsonl/25179
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 945 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 38344, 82741, 65588, 33574, 28601, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 14073, 797, 286, 1077, 3239, 16, 284, 11361, 486, 931, 1006, 310, 4128,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_integer_decode() { assert_eq!(3.14159265359f64.integer_decode(), (7074237752028906u64, -51i16, 1i8)); assert_eq!((-8573.5918555f64).integer_decode(), (4713381968463931u64, -39i16, -1i8)); assert_eq!(2f64.powf(100.0).integer_decode(), (4503599627370496u64, 48i16, 1i8)); ...
rust_cleaned_test_functions.jsonl/34495
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31725, 15227, 368, 341, 286, 2060, 10714, 10297, 18, 13, 16, 19, 16, 20, 24, 17, 21, 20, 18, 20, 24, 69, 21, 19, 27593, 15227, 1507, 320, 22, 15, 22, 19, 17, 18, 22, 22, 20, 17, 15, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_and_serialize_igmpv2_leave_with_options() { use crate::testdata::igmpv2_membership::leave::*; test_parse_and_serialize::<IgmpLeaveGroup, _, _>( IP_PACKET_BYTES, |ip| { assert_eq!(ip.ttl(), 1); assert_eq!(ip.iter_option...
rust_cleaned_test_functions.jsonl/15948
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8378, 88686, 62, 343, 1307, 85, 17, 62666, 6615, 8743, 368, 341, 286, 990, 17717, 486, 92425, 486, 343, 1307, 85, 17, 84635, 486, 21510, 56162, 286, 1273, 21039, 8378, 88686, 27638, 40, 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_recursive_load() { let loader = MockLoader::new(); let loads = loader.loads.clone(); let mut runtime = JsRuntime::new(RuntimeOptions { module_loader: Some(loader), ..Default::default() }); let spec = resolve_url("file:///a.js").unwrap(); let a_id_fut = runtime...
rust_cleaned_test_functions.jsonl/12398
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 972 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66242, 12411, 368, 341, 262, 1077, 16047, 284, 14563, 9181, 486, 931, 543, 262, 1077, 20907, 284, 16047, 22961, 15997, 543, 262, 1077, 5206, 15592, 284, 39122, 15123, 486, 931, 52610, 3798, 341, 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_all_validators() { let validators = vec![1, 2, 3, 4]; let mut leaders = HashSet::new(); let random = broken_random(validators.len() as i64 * 50); for leader in random { leaders.insert(select_winner(&validators, leader).unwrap()); } a...
rust_cleaned_test_functions.jsonl/129484
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 8337, 2973, 368, 341, 286, 1077, 38588, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 4821, 286, 1077, 5206, 6036, 284, 18931, 486, 931, 1428, 286, 1077, 4194, 284, 10865,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_base58_encode() { // Basics assert_eq!(&encode_slice(&[0][..]), "1"); assert_eq!(&encode_slice(&[1][..]), "2"); assert_eq!(&encode_slice(&[58][..]), "21"); assert_eq!(&encode_slice(&[13, 36][..]), "211"); // Leading zeroes assert_eq!(&enco...
rust_cleaned_test_functions.jsonl/76587
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 586 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7651, 20, 23, 11224, 368, 341, 286, 442, 67176, 198, 286, 2060, 10714, 0, 2099, 6180, 26488, 2099, 58, 15, 1457, 496, 9719, 330, 16, 797, 286, 2060, 10714, 0, 2099, 6180, 26488, 2099, 58, 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_get_values() { let db = MerkleTree::from_vec((0..5).collect::<Vec<_>>()); assert_eq!(db.get_vals(), Some(vec![0, 1, 2, 3, 4])); }
rust_cleaned_test_functions.jsonl/98840
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 9146, 368, 341, 262, 1077, 2927, 284, 8755, 23089, 6533, 486, 1499, 13251, 1188, 15, 496, 20, 568, 17384, 27638, 10050, 32399, 2452, 1423, 262, 2060, 10714, 10297, 1999, 670, 29550, 1507, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_array_to_tensor_to_array() { let array = arr1(&[12i32, 42]); let tensor = Tensor::from(array.clone()); let view = tensor.to_array_view::<i32>().unwrap(); assert_eq!(array, view.into_dimensionality().unwrap()); }
rust_cleaned_test_functions.jsonl/4230
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 2346, 23188, 2346, 3858, 368, 341, 286, 1077, 1334, 284, 2890, 16, 2099, 58, 16, 17, 72, 18, 17, 11, 220, 19, 17, 2558, 286, 1077, 15626, 284, 26036, 486, 1499, 6110, 15997, 1423, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_branch_create_by_base_branch() { let hdr: MapxOrdRawKeyVs<usize> = MapxOrdRawKeyVs::new(); pnk!(hdr.version_create(VersionName(b"manster0"))); let bn1 = BranchName(b"test1"); let vn11 = VersionName(b"testversion11"); pnk!(hdr.branch_create(bn1, vn11, false)); let key = <...
rust_cleaned_test_functions.jsonl/53976
{ "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, 28031, 8657, 3710, 7651, 28031, 368, 341, 262, 1077, 36615, 25, 5027, 87, 24621, 20015, 1592, 51737, 90244, 29, 284, 5027, 87, 24621, 20015, 1592, 51737, 486, 931, 543, 262, 43050, 74, 10297, 2878...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_basic_setabf() { let s = b"\\E[48;5;%p1%dm"; assert_eq!( expand(s, &[Number(1)], &mut Variables::new()).unwrap(), "\\E[48;5;1m".bytes().collect::<Vec<_>>() ); }
rust_cleaned_test_functions.jsonl/35443
{ "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, 34729, 2602, 370, 69, 368, 341, 262, 1077, 274, 284, 293, 1, 3422, 36, 58, 19, 23, 26, 20, 38402, 79, 16, 4, 13849, 876, 262, 2060, 10714, 33673, 286, 9225, 1141, 11, 44590, 2833, 7, 16, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_sort() { let mut v1 = vec![5, 2, 10, 3]; merge_sort(&mut v1, 0, 3); assert_eq!(v1, [2, 3, 5, 10]); let mut v2 = vec![5, 1, 6, 3, 7, 4, 55, 9, 0]; merge_sort(&mut v2, 0, 8); assert_eq!(v2, [0, 1, 3, 4, 5, 6, 7, 9, 55]); let mut v3 = ...
rust_cleaned_test_functions.jsonl/106608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 407 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 18435, 368, 341, 286, 1077, 5206, 348, 16, 284, 7486, 20703, 20, 11, 220, 17, 11, 220, 16, 15, 11, 220, 18, 935, 286, 10880, 18435, 2099, 6984, 348, 16, 11, 220, 15, 11, 220, 18, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_proposal_gc() { let props = (1..1000) .collect::<Vec<u64>>() .iter() .map(|x| { ( *x, ProposalData { id: Some(ProposalId { id: *x }), decided_timestamp_seconds: 60, ...
rust_cleaned_test_functions.jsonl/1180
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1427 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21663, 32556, 49423, 368, 341, 262, 1077, 6914, 284, 320, 16, 496, 16, 15, 15, 15, 340, 286, 659, 17384, 27638, 10050, 34837, 21, 19, 2452, 741, 286, 659, 2015, 741, 286, 659, 2186, 22428, 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...
4
#[test] fn test_parse_operation() { assert!(parse_operation("").is_err()); assert!(parse_operation("++").is_err()); assert_eq!("\u{E9}".len(), 2); assert!(parse_operation("\u{E9}").is_err()); assert_eq!(parse_operation("+").unwrap(), Operation::Forced); }
rust_cleaned_test_functions.jsonl/23894
{ "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, 21039, 32565, 368, 341, 286, 2060, 10297, 6400, 32565, 80821, 285, 9266, 1423, 286, 2060, 10297, 6400, 32565, 445, 1027, 1827, 285, 9266, 1423, 286, 2060, 10714, 0, 4921, 84, 90, 36, 24, 21901, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rfloat() { let a = Rfloat::from(20.); let b = Rfloat::from(10.); assert_eq!(a + b, Rfloat::from(30.)); assert_eq!(a - b, Rfloat::from(10.)); assert_eq!(a * b, Rfloat::from(200.)); assert_eq!(a / b, Rfloat::from(2.)); assert_eq!(-a, Rfloat::from(-20.)); assert_eq!...
rust_cleaned_test_functions.jsonl/88393
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1084 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 3649, 368, 341, 262, 1077, 264, 284, 431, 3649, 486, 1499, 7, 17, 15, 58957, 262, 1077, 293, 284, 431, 3649, 486, 1499, 7, 16, 15, 58957, 262, 2060, 10714, 10297, 64, 488, 293, 11, 431...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_not_read_not_file_to_string() { let path = workspace_path(&["not-a-file.txt"]); let io = real_filesystem(); let err = io.read_to_string(&path).unwrap_err(); assert!(err.kind() == std::io::ErrorKind::NotFound); }
rust_cleaned_test_functions.jsonl/74975
{ "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, 27421, 7913, 6443, 7913, 2458, 2346, 3904, 368, 341, 286, 1077, 1815, 284, 27514, 2638, 2099, 1183, 1921, 7409, 14203, 3909, 15049, 286, 1077, 6399, 284, 1931, 2458, 8948, 543, 286, 1077, 1848, 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_clone() { let mut a = VecMap::new(); a.insert(1, 'x'); a.insert(4, 'y'); a.insert(6, 'z'); assert!(a.clone() == a); }
rust_cleaned_test_functions.jsonl/53277
{ "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, 54742, 368, 341, 286, 1077, 5206, 264, 284, 11312, 2227, 486, 931, 1428, 286, 264, 7030, 7, 16, 11, 364, 87, 1157, 286, 264, 7030, 7, 19, 11, 364, 88, 1157, 286, 264, 7030, 7, 21, 11, 364,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_compare_long_to_double() { let schemaReplicant = prepopulated_typed_schemaReplicant(MinkowskiValueType::Double); // You can compare longs to doubles. let causetq = r#"[:find ?e . :where [?e :foo/bar ?t] [(< ?t 1234512345)]]...
rust_cleaned_test_functions.jsonl/90709
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32235, 17799, 2346, 24598, 368, 341, 262, 1077, 10802, 18327, 35237, 284, 855, 8374, 7757, 528, 32501, 25371, 18327, 35237, 3189, 766, 28284, 60897, 486, 7378, 626, 262, 442, 1446, 646, 9429, 1293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_region_ready_after_deregister() { let mut suite = TestSuite::new(1); let fp = "cdc_incremental_scan_start"; fail::cfg(fp, "pause").unwrap(); let mut req = ChangeDataRequest::default(); req.region_id = 1; req.set_region_epoch(suite.get_context(1).take_region_epoch()); ...
rust_cleaned_test_functions.jsonl/49114
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 429 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20627, 35456, 19844, 814, 52633, 1571, 368, 341, 262, 1077, 5206, 16182, 284, 3393, 28000, 486, 931, 7, 16, 626, 262, 1077, 12007, 284, 330, 72026, 51482, 278, 28857, 4906, 876, 262, 3690, 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_backup_purging() { ic_test_utilities::artifact_pool_config::with_test_pool_config(|pool_config| { let time_source = FastForwardTimeSource::new(); let backup_dir = tempfile::Builder::new().tempdir().unwrap(); let subnet_id = subnet_test_id(0); ...
rust_cleaned_test_functions.jsonl/118228
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3502 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44710, 620, 324, 3173, 368, 341, 286, 17902, 4452, 94044, 486, 63722, 15709, 5332, 486, 4197, 4452, 15709, 5332, 22428, 10285, 5332, 91, 341, 310, 1077, 882, 10347, 284, 17288, 25925, 1462, 3608, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_list_table_instance_no_header() { test_list_table_instance( INSTANCES_LIST_HEADER, INSTANCES_LIST_DICOM_TAGS, true, include_str!("../tests/data/unit/list_instances_no_header").trim_end(), ); }
rust_cleaned_test_functions.jsonl/76482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 2019, 5237, 11904, 6536, 8757, 368, 341, 286, 1273, 2019, 5237, 11904, 1006, 310, 65344, 84410, 11899, 20330, 345, 310, 65344, 84410, 11899, 1557, 1317, 1898, 84182, 345, 310, 830, 345, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cred_def_id_parts_for_id_as_unqualified_with_schema_as_seq() { let (_, did, signature_type, schema_id, tag) = _cred_def_id_unqualified_with_schema_as_seq_no() .parts() .unwrap(); assert_eq!(_did(), did); ...
rust_cleaned_test_functions.jsonl/38087
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73475, 7844, 842, 33217, 5478, 842, 11898, 4907, 36335, 6615, 25371, 11898, 14486, 368, 341, 310, 1077, 39464, 1521, 11, 11957, 1819, 11, 10802, 842, 11, 4772, 8, 4035, 394, 716, 10844, 7844, 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_frag_parse_non_strict() { let (frag1, frag2) = frag_parse!("%s%d", "%s%d__test__42").expect("failed to parse"); assert_eq!(frag1, "test"); assert_eq!(frag2, 42); assert!(frag_parse!("%s%d", "%s%d%s__test__42__foo").is_none()); let (frag1, frag2) = frag_parse!("%s%d*", "%s%d...
rust_cleaned_test_functions.jsonl/133372
{ "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, 80817, 21039, 21637, 2895, 849, 368, 341, 262, 1077, 320, 33198, 16, 11, 8343, 17, 8, 284, 8343, 21039, 0, 4430, 82, 14841, 497, 5962, 82, 14841, 563, 1944, 563, 19, 17, 1827, 17119, 445, 1609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bencode_num() { let left = vec![ Value::Int(1), Value::Int(10), Value::Int(100_000), Value::Int(-1), Value::Int(-999), ]; let right = vec!["i1e", "i10e", "i100000e", "i-1e", "i-999e"]; for i in 0.....
rust_cleaned_test_functions.jsonl/107900
{ "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, 21039, 880, 6180, 4273, 368, 341, 286, 1077, 2115, 284, 7486, 90515, 310, 5162, 486, 1072, 7, 16, 1326, 310, 5162, 486, 1072, 7, 16, 15, 1326, 310, 5162, 486, 1072, 7, 16, 15, 15, 62, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_serialize_router_alert() { let mut buffer = [0u8; 4]; let option = Ipv4Option { copied: true, data: Ipv4OptionData::RouterAlert { data: 0 } }; <Ipv4OptionsImpl as RecordsSerializerImpl>::serialize(&mut buffer, &option); assert_eq!(buffer[0], 148); ...
rust_cleaned_test_functions.jsonl/52093
{ "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, 88686, 55587, 35717, 368, 341, 310, 1077, 5206, 4147, 284, 508, 15, 84, 23, 26, 220, 19, 935, 310, 1077, 2999, 284, 358, 30168, 19, 5341, 314, 21774, 25, 830, 11, 821, 25, 358, 30168, 19, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_genesis_success() { let store = StorageMock::new(); init_storage(store.clone(), GenesisConfig::default()).unwrap(); let state = State::new(store); contains_core_module(&state, "PONT"); contains_core_module(&state, "Signer"); contains_core_module(&state, "U256"); cont...
rust_cleaned_test_functions.jsonl/41551
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 826 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 13774, 18632, 368, 341, 262, 1077, 3553, 284, 14693, 11571, 486, 931, 543, 262, 2930, 23310, 31200, 15997, 1507, 40788, 2648, 486, 2258, 6011, 15454, 543, 262, 1077, 1584, 284, 3234, 486, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_str_with_invalid_timestamp() { let input = r#"{ "time" : "2013-06-2217:03:14.000658767+02:00" }"#; let expected_error = r#"Invalid ISO8601 timestamp (expected YYYY-MM-DDThh:mm:ss.sss.±hh:mm): "2013-06-2217:03:14.000658767+02:00": input contains invalid charact...
rust_cleaned_test_functions.jsonl/117065
{ "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, 2895, 6615, 31433, 23073, 368, 341, 286, 1077, 1946, 284, 435, 55543, 515, 310, 330, 1678, 1, 549, 330, 17, 15, 16, 18, 12, 15, 21, 12, 17, 17, 16, 22, 25, 15, 18, 25, 16, 19, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_static() { static X: &str = indent!("abc\ndef\nghi\njkl\n", "- "); static Y: &str = "- abc\n- def\n- ghi\n- jkl\n"; assert_eq!(X, Y); }
rust_cleaned_test_functions.jsonl/70368
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 93 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25360, 368, 341, 262, 1099, 1599, 25, 609, 495, 284, 17504, 17223, 13683, 59, 5037, 1699, 75076, 1699, 73, 10561, 1699, 497, 6523, 7318, 262, 1099, 809, 25, 609, 495, 284, 6523, 39022, 1699, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_simple_convex_hull() { let points = [ Point2::new(4.723881f32, 3.597233), Point2::new(3.333363, 3.429991), Point2::new(3.137215, 2.812263), ]; let chull = transformation::convex_hull(points.as_slice()); assert!(chull.coords.le...
rust_cleaned_test_functions.jsonl/20957
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 22716, 327, 1523, 617, 368, 341, 286, 1077, 3501, 284, 2278, 310, 5126, 17, 486, 931, 7, 19, 13, 22, 17, 18, 23, 23, 16, 69, 18, 17, 11, 220, 18, 13, 20, 24, 22, 17, 18, 18, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_credit_update_to_peer() { let mut ctx = CsmTestContext::new_established(); ctx.conn.last_fwd_cnt_to_peer = Wrapping(0); // Since a credit update token is sent when the fwd_cnt value exceeds // fwd_cnt at 6 bytes below the threshold. let...
rust_cleaned_test_functions.jsonl/105003
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 583 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51569, 8882, 2346, 45159, 368, 341, 286, 1077, 5206, 5635, 284, 356, 3563, 2271, 1972, 486, 931, 18583, 5102, 291, 1428, 1789, 286, 5635, 22810, 9110, 81083, 15982, 2346, 45159, 284, 31630, 3629, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_v8_set_flags_preprocess_2() { let js_args = v8_set_flags_preprocess(vec!["deno".to_string(), "--help".to_string()]); assert_eq!( js_args, (vec!["deno".to_string()], vec!["--help".to_string()]) ); }
rust_cleaned_test_functions.jsonl/110204
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 23, 2602, 14130, 10442, 4630, 62, 17, 368, 341, 220, 1077, 6994, 8384, 4035, 262, 348, 23, 2602, 14130, 10442, 4630, 25592, 0, 1183, 5183, 78, 3263, 983, 3904, 1507, 14482, 8653, 3263, 983...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compaction() { let dbname = "target/tests/testcompaction"; let _ = Index::drop(dbname); let mut batch = Batch::new(); let mut index = Index::open(dbname, Some(OpenOptions::Create)).unwrap(); let id = index.add(r#"{"foo":"bar"}"#, &mut batch).unwrap(); ...
rust_cleaned_test_functions.jsonl/15062
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 436 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18177, 1311, 368, 341, 286, 1077, 83492, 284, 330, 5657, 62468, 12697, 5689, 1311, 876, 286, 1077, 716, 284, 8008, 486, 6719, 9791, 606, 317, 286, 1077, 5206, 7162, 284, 33904, 486, 931, 1428, 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_regex_match_header() { let _m = mock("GET", "/") .match_header( "Authorization", Matcher::Regex(r"^Bearer token\.\w+$".to_string()), ) .with_body("{}") .create(); let (_, _, body_json) = request("GET /", "Authorization: Bearer toke...
rust_cleaned_test_functions.jsonl/82407
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41832, 10708, 8757, 368, 341, 262, 1077, 716, 76, 284, 7860, 445, 3806, 497, 3521, 1138, 286, 659, 6347, 8757, 1006, 310, 330, 18124, 756, 310, 60632, 486, 32464, 2601, 86490, 26399, 3950, 59, 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_max_directory_entries() { let mut d64 = D64::open_memory(D64::geometry(false)).unwrap(); d64.write_format(&"test".into(), &"t1".into()).unwrap(); assert_eq!(d64.disk_format().unwrap().max_directory_entries(), 144); let mut d71 = D71::open_memory(D71::geometry(fal...
rust_cleaned_test_functions.jsonl/9183
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 14846, 26092, 368, 341, 286, 1077, 5206, 294, 21, 19, 284, 422, 21, 19, 486, 2508, 19195, 5432, 21, 19, 486, 15281, 3576, 4579, 15454, 543, 286, 294, 21, 19, 3836, 8955, 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...
1
#[test] fn test_filter_hard_links() -> io::Result<()> { let dir = tempfile::Builder::new().tempdir()?; let (src, dst) = (dir.path().join("a"), dir.path().join("b")); File::create(&src)?; fs::hard_link(src.clone(), dst.clone())?; let e1 = FileEntry { path: src, ..Default::...
rust_cleaned_test_functions.jsonl/112499
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 77712, 25258, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 5419, 284, 54819, 486, 3297, 486, 931, 1005, 3888, 3741, 94136, 286, 1077, 320, 3548, 11, 10648, 8, 284, 320, 3741, 3875, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_try_into_ndarray3_0x0x0() { let hw = RefCell::new(CpuHardware::new()); let src = Array::fill_f32(&hw, Shape::new([0, 0, 0]), 42.); let dest = ndarray::Array3::<f32>::try_from(&src).unwrap(); assert_eq!(dest, ndarray::arr3(&[[[42.; 0]; 0]; 0])); }
rust_cleaned_test_functions.jsonl/73971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 45514, 43544, 1653, 18, 62, 15, 87, 15, 87, 15, 368, 341, 262, 1077, 31256, 284, 8550, 3599, 486, 931, 3025, 5584, 66862, 486, 931, 1423, 262, 1077, 2286, 284, 2910, 486, 7559, 761, 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