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_from_f64() { let cs = vec![ ( std::f64::INFINITY, Err(Error::InvalidDataType(String::new())), ), ( -std::f64::INFINITY, Err(Error::InvalidDataType(String::new())), ), ...
rust_cleaned_test_functions.jsonl/40303
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 761, 21, 19, 368, 341, 286, 1077, 10532, 284, 7486, 90515, 310, 2399, 394, 1460, 486, 69, 21, 19, 486, 687, 55990, 345, 394, 15495, 37396, 486, 7928, 22653, 2242, 486, 931, 73727, 310, 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...
4
#[test] fn test_parse_noise_ik() { let pubkey_str = "080e287879c918794170e258bfaddd75acac5b3e350419044655e4983a487120"; let pubkey = x25519::PublicKey::from_encoded_string(pubkey_str).unwrap(); let addr = NetworkAddress::from_str(&format!("/ln-noise-ik/{}", pubkey_str)).unwrap(); ...
rust_cleaned_test_functions.jsonl/4283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 465 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 40313, 62, 1579, 368, 341, 286, 1077, 95116, 2895, 284, 330, 15, 23, 15, 68, 17, 23, 22, 23, 22, 24, 66, 24, 16, 23, 22, 24, 19, 16, 22, 15, 68, 17, 20, 23, 13233, 329, 631, 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_addition_minus_infinity() { let summand1 = ExtendedBigInt::BigInt(BigInt::zero()); let summand2 = ExtendedBigInt::MinusInfinity; assert_eq!(summand1 + summand2, ExtendedBigInt::MinusInfinity); }
rust_cleaned_test_functions.jsonl/101399
{ "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, 2891, 680, 38457, 1243, 19888, 368, 341, 286, 1077, 2629, 1928, 16, 284, 40565, 87474, 486, 87474, 5349, 343, 1072, 486, 14154, 1423, 286, 1077, 2629, 1928, 17, 284, 40565, 87474, 486, 74458, 4509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_7xnn_add() { let mut machine = Machine::new(TestContext::new()); // Seed registers machine.register_set(0xB, 3); machine.test_opcode(0x7BCD); // Should add NN to reg_x assert_eq!(machine.register_get(0xB), 3 + 0xCD); // Should increment program counter by two ass...
rust_cleaned_test_functions.jsonl/127955
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 22, 87, 7370, 2891, 368, 341, 262, 1077, 5206, 5662, 284, 12960, 486, 931, 31159, 1972, 486, 931, 1423, 262, 442, 35822, 24740, 198, 262, 5662, 9929, 2602, 7, 15, 14377, 11, 220, 18, 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, 1, 1...
1
#[test] fn test_link_enum() { assert_eq!( GiDocgen::from_str("[enum@Orientation]"), Ok(GiDocgen::Enum { namespace: None, type_: "Orientation".to_string() }) ); }
rust_cleaned_test_functions.jsonl/78469
{ "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, 7233, 31054, 368, 341, 286, 2060, 10714, 33673, 310, 15392, 9550, 4370, 486, 1499, 2895, 10937, 9018, 31, 22332, 60, 4461, 310, 7622, 6699, 72, 9550, 4370, 486, 10766, 341, 394, 4473, 25, 2240, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_auto_import_add_use() { check_assist( add_import, " use stdx; impl std::fmt::Debug<|> for Foo { } ", " use stdx; use std::fmt::Debug; impl Debug<|> for Foo { } ", ); }
rust_cleaned_test_functions.jsonl/39948
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27740, 18434, 2891, 15951, 368, 341, 286, 1779, 12083, 380, 1006, 310, 912, 18434, 345, 310, 6228, 810, 1460, 87, 401, 6383, 1460, 486, 12501, 486, 7939, 27, 91, 29, 369, 33428, 341, 532, 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_mime_type_guessing() { assert_eq!( from_ext("gif").first_or_octet_stream().to_string(), "image/gif".to_string() ); assert_eq!( from_ext("TXT").first_or_octet_stream().to_string(), "text/plain".to_string() ); assert_eq!( from_ext("blahblah").first_or_octet_stream().to_str...
rust_cleaned_test_functions.jsonl/61806
{ "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, 83624, 1819, 54737, 287, 368, 341, 197, 6948, 10714, 33673, 298, 42727, 9927, 445, 33186, 1827, 3896, 8734, 70135, 295, 12673, 1005, 983, 3904, 3148, 298, 197, 1, 1805, 90831, 3263, 983, 3904, 741...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_string() { let mut p = Parser::new(); assert_eq!(p.string("\"βáƨïç_ƨƭřïñϱ\"").1, Done("", TOMLValue::String("βáƨïç_ƨƭřïñϱ".into(), StrType::Basic))); p = Parser::new(); assert_eq!(p.string(r#""""₥ℓ_βáƨïç_ƨƭřïñϱ ñú₥βèř_ƭωô NÛMÃ...
rust_cleaned_test_functions.jsonl/27411
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 627 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 368, 341, 262, 1077, 5206, 281, 284, 21102, 486, 931, 543, 262, 2060, 10714, 10297, 79, 4804, 38915, 71807, 29456, 18791, 39832, 144839, 75005, 18791, 33985, 18791, 17851, 62, 144839, 75005, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sequences() { test_roundtrip("var x = (1, 2, 3);"); test_roundtrip("foo((1, 2, 3), 4);"); }
rust_cleaned_test_functions.jsonl/102596
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 60 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58732, 368, 341, 262, 1273, 29896, 32981, 445, 947, 856, 284, 320, 16, 11, 220, 17, 11, 220, 18, 1215, 797, 262, 1273, 29896, 32981, 445, 7975, 1188, 16, 11, 220, 17, 11, 220, 18, 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
#[test] fn test_sum_two_dwords() { assert_eq!(sum_two_dwords(2000000000, 1000000000), 3000000000); }
rust_cleaned_test_functions.jsonl/123617
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 59 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10160, 23241, 814, 5761, 368, 972, 286, 2060, 10714, 10297, 1242, 23241, 814, 5761, 7, 17, 15, 15, 15, 15, 15, 15, 15, 15, 15, 11, 220, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 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
#[test] fn test_paginated_records_list() { let mut collection = setup_collection(); collection.create().unwrap(); for _ in 0..10 { collection.new_record().create().unwrap(); } let resource = Record::new(collection.clone()); let response = resource ...
rust_cleaned_test_functions.jsonl/63505
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51003, 15479, 31279, 2019, 368, 341, 286, 1077, 5206, 4426, 284, 6505, 25019, 543, 286, 4426, 2520, 1005, 15454, 543, 286, 369, 716, 304, 220, 15, 496, 16, 15, 341, 310, 4426, 4618, 14192, 1005,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_unsplit_uri() { assert_eq!(unsplit_uri("", ""), ""); assert_eq!(unsplit_uri("data", ""), "data:"); assert_eq!(unsplit_uri("data", "foo"), "data://foo"); assert_eq!(unsplit_uri("http", ""), "http://"); assert_eq!(unsplit_uri("http", "foo"), "http://foo"); ...
rust_cleaned_test_functions.jsonl/4014
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 6960, 15572, 368, 341, 286, 2060, 10714, 10297, 359, 6960, 15572, 19814, 77130, 14498, 286, 2060, 10714, 10297, 359, 6960, 15572, 445, 691, 497, 77130, 330, 691, 24305, 286, 2060, 10714, 10297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_take_sized() { let v = [1, 2, 3]; let mut c = Cursor::new(v); let (v, got) = take_sized(&mut c, 2).unwrap(); assert_eq!(v, vec![1, 2]); assert_eq!(got, 2); let (v, got) = take_sized(&mut c, 2).unwrap(); assert_eq!(v, vec![3]); asse...
rust_cleaned_test_functions.jsonl/107630
{ "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, 73261, 643, 1506, 368, 341, 286, 1077, 348, 284, 508, 16, 11, 220, 17, 11, 220, 18, 935, 286, 1077, 5206, 272, 284, 28067, 486, 931, 3747, 317, 286, 1077, 320, 85, 11, 2684, 8, 284, 1896, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_path() { equal_tokens! { <nodes> "chrome.exe" -> b::token_list(vec![b::bare("chrome"), b::op(Operator::Dot), b::bare("exe")]) } equal_tokens! { <nodes> ".azure" -> b::token_list(vec![b::op(Operator::Dot), b::bare("az...
rust_cleaned_test_functions.jsonl/5861
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 408 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 2638, 368, 341, 286, 6144, 28838, 0, 341, 310, 366, 20008, 397, 310, 330, 31902, 19399, 1, 1464, 293, 486, 5839, 2019, 25592, 20703, 65, 486, 54102, 445, 31902, 3975, 293, 486, 453, 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_samples_in_range() { use rand::rngs::StdRng; use rand::SeedableRng; use rand::distributions::Distribution; let seed = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ...
rust_cleaned_test_functions.jsonl/47380
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 374 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18297, 1243, 9698, 368, 341, 286, 990, 10382, 486, 69890, 82, 486, 22748, 49, 968, 280, 286, 990, 10382, 486, 41471, 480, 49, 968, 280, 286, 990, 10382, 486, 67, 17994, 486, 62377, 401, 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...
2
#[test] fn test_split_off_front() { fn make_block(timestamp: TimeStamp) -> Block { let transaction = Transaction::new( AccountIdentifier::new(CanisterId::from_u64(1).get(), None), AccountIdentifier::new(CanisterId::from_u64(2).get(), None), ICP...
rust_cleaned_test_functions.jsonl/43528
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 773 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 13651, 22926, 368, 341, 286, 5168, 1281, 7113, 51027, 25, 4120, 20906, 8, 1464, 8362, 341, 310, 1077, 7745, 284, 17869, 486, 931, 1006, 394, 8615, 8714, 486, 931, 3025, 276, 1571, 764, 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_normalize_path_trailing_slashes_disabled() { let app = App::new() .resource("/resource1", |r| r.method(Method::GET).f(index)) .resource("/resource2/", |r| r.method(Method::GET).f(index)) .default_resource(|r| { r.h(NormalizePath::new( ...
rust_cleaned_test_functions.jsonl/38137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 665 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80807, 2638, 3547, 14277, 11886, 14051, 51401, 368, 341, 286, 1077, 906, 284, 1845, 486, 931, 741, 310, 659, 9233, 4283, 9233, 16, 497, 760, 81, 91, 435, 12908, 35419, 486, 3806, 568, 69, 7195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_match_group_in_group() { parse_macro( r#" macro_rules! foo { { $( ( $($i:ident)* ) )* } => ( $( ( $($i)* ) )* ); }"#, ) .assert_expand_items("foo! ( (a b) );", "(a b)"); }
rust_cleaned_test_functions.jsonl/28719
{ "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, 10708, 6288, 1243, 6288, 368, 341, 262, 4715, 58810, 1006, 286, 435, 2, 698, 286, 18072, 21407, 0, 15229, 341, 310, 314, 4930, 320, 93977, 72, 25, 1713, 4806, 873, 89401, 335, 589, 320, 4930, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_request_extract() { let req = TestRequest::with_uri("/name/user1/?id=test").finish(); let mut router = Router::<()>::default(); router.register_resource(Resource::new(ResourceDef::new("/{key}/{value}/"))); let info = router.recognize(&req, &(), 0); let re...
rust_cleaned_test_functions.jsonl/46187
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 713 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 39123, 368, 341, 286, 1077, 4232, 284, 3393, 1900, 486, 4197, 15572, 4283, 606, 11739, 16, 17763, 307, 53538, 1827, 30150, 1428, 286, 1077, 5206, 9273, 284, 10554, 27638, 368, 6831, 2258, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_jwt_initialize_claims() { let key = service_account_key_from_file(&TEST_PRIVATE_KEY_PATH.to_string()).unwrap(); let scopes = vec!["scope1", "scope2", "scope3"]; let claims = super::init_claims_from_key(&key, &scopes); assert_eq!(claims.iss, "oa...
rust_cleaned_test_functions.jsonl/25282
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 346 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 95576, 40889, 6794, 25676, 368, 341, 286, 1077, 1376, 284, 2473, 13500, 3097, 5673, 2458, 2099, 10033, 30470, 6600, 7944, 2389, 3904, 6011, 15454, 543, 286, 1077, 50598, 284, 7486, 0, 1183, 4186, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_massive_task_creation() { let test_tasks = 4_200_000; let pool = Pool::<ThunkWorker<()>>::new(TEST_TASKS); let b0 = Arc::new(Barrier::new(TEST_TASKS + 1)); let b1 = Arc::new(Barrier::new(TEST_TASKS + 1)); let (tx, rx) = channel(); for i in 0..te...
rust_cleaned_test_functions.jsonl/22900
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 647 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36714, 533, 12184, 46163, 368, 341, 286, 1077, 1273, 32823, 284, 220, 19, 62, 17, 15, 15, 62, 15, 15, 15, 401, 286, 1077, 7314, 284, 22728, 27638, 38223, 21936, 27, 368, 77595, 931, 50320, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cli_compatibility() { let input = include_bytes!("../../assets/example.txt.zst"); let output = decode_all(&input[..]).unwrap(); let expected = include_bytes!("../../assets/example.txt"); assert_eq!( &output[..], &expected[..], "error decoding cli-compre...
rust_cleaned_test_functions.jsonl/134372
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 141 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47147, 2965, 53053, 368, 341, 262, 1077, 1946, 284, 2924, 12524, 17223, 2748, 5160, 65182, 3909, 3938, 267, 3071, 262, 1077, 2550, 284, 16895, 5705, 2099, 1355, 95874, 10697, 15454, 1428, 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...
1
#[test] fn test_scheme() { assert_eq!(scheme("https://yay"), Ok(("yay", Scheme::HTTPS))); assert_eq!(scheme("http://yay"), Ok(("yay", Scheme::HTTP))); assert_eq!( scheme("bla://yay"), Err(NomErr::Error(VerboseError { errors: vec![ ...
rust_cleaned_test_functions.jsonl/118912
{ "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, 53293, 368, 341, 286, 2060, 10714, 10297, 46141, 445, 2428, 1110, 88, 352, 3975, 7622, 30873, 88, 352, 497, 43781, 486, 82354, 4945, 286, 2060, 10714, 10297, 46141, 445, 1254, 1110, 88, 352, 3975,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_and_load_snapshot() { // Create diff snapshot. let (snapshot_file, memory_file) = verify_create_snapshot(true); // Create a new microVm from snapshot. This only tests code-level logic; it verifies // that a microVM can be built with no errors from given snapshot. // It...
rust_cleaned_test_functions.jsonl/132812
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 8378, 12411, 53265, 368, 341, 262, 442, 4230, 3638, 16295, 624, 262, 1077, 320, 35501, 2458, 11, 4938, 2458, 8, 284, 10146, 8657, 53265, 3715, 317, 262, 442, 4230, 264, 501, 8003, 88124, 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_1() { let program = vec![ 3, 26, 1001, 26, -4, 26, 3, 27, 1002, 27, 2, 27, 1, 27, 26, 27, 4, 27, 1001, 28, -1, 28, 1005, 28, 6, 99, 0, 0, 5, ]; let mut amps = Amplifiers::new(&program, &[9, 8, 7, 6, 5]); let actual = amps.run_to_end(0); assert_eq!(actual, 139_629_...
rust_cleaned_test_functions.jsonl/69054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 16, 368, 341, 262, 1077, 2025, 284, 7486, 90515, 414, 220, 18, 11, 220, 17, 21, 11, 220, 16, 15, 15, 16, 11, 220, 17, 21, 11, 481, 19, 11, 220, 17, 21, 11, 220, 18, 11, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_various() { let tmp = tempfile::Builder::new() .prefix("rust-htslib") .tempdir() .expect("Cannot create temp dir"); let out_path = tmp.path().join("test_various.out.vcf"); let vcf = Reader::from_path(&"test/test_various....
rust_cleaned_test_functions.jsonl/8773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1715 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 4612, 1223, 368, 341, 1789, 286, 1077, 4174, 284, 54819, 486, 3297, 486, 931, 741, 310, 659, 11849, 445, 35788, 12, 426, 82, 2740, 1138, 310, 659, 3888, 3741, 741, 310, 659, 17119, 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_canonicalize_idents_by_stripping_trailing_url_slash() { let ident1 = ident(&url("https://github.com/PistonDevelopers/piston/")); let ident2 = ident(&url("https://github.com/PistonDevelopers/piston")); assert_eq!(ident1, ident2); }
rust_cleaned_test_functions.jsonl/74051
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27421, 22391, 551, 842, 805, 3710, 1261, 461, 10732, 3547, 14277, 2903, 11886, 988, 368, 341, 286, 1077, 3524, 16, 284, 3524, 2099, 1085, 445, 2428, 1110, 5204, 905, 16341, 58819, 20444, 388, 4322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_default_headers() { let server = server::http(move |req| { async move { assert_eq!(req.headers()["reqwest-test"], "orly"); http::Response::default() } }); let mut headers = http::HeaderMap::with_capacity(1); headers.insert("reqwest-test", ...
rust_cleaned_test_functions.jsonl/131409
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 26719, 368, 341, 262, 1077, 3538, 284, 3538, 486, 1254, 34081, 760, 2958, 91, 341, 286, 3312, 3271, 341, 310, 2060, 10714, 10297, 2958, 18022, 64322, 2958, 11039, 16839, 7914, 330, 269, 398,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_intraday_volumes_400_failed() { let it = crawler::IntradayBuilder::default().build(); assert_err!(it.volumes("").call(), Err(FugleError::General(_))); }
rust_cleaned_test_functions.jsonl/49451
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 47026, 352, 2273, 19705, 62, 19, 15, 15, 35060, 368, 341, 262, 1077, 432, 284, 73094, 486, 641, 47026, 352, 3297, 486, 2258, 1005, 5834, 543, 262, 2060, 9266, 10297, 275, 3133, 19705, 8082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_article_without_reply() { let documents = load_document("../tests/Soft_Job_M.1181804025.A.7A7.html"); let article_date = Some( FixedOffset::east(8 * 3600) .ymd(2007, 6, 14) .and_hms(14, 53, 44), ); assert_eq!(pars...
rust_cleaned_test_functions.jsonl/87157
{ "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, 21039, 37321, 39904, 15323, 368, 341, 286, 1077, 9293, 284, 2795, 26231, 17409, 23841, 14, 30531, 10598, 674, 1245, 13, 16, 16, 23, 16, 23, 15, 19, 15, 17, 20, 875, 13, 22, 32, 22, 2564, 797...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extensible_extended_1() { // from playground serialize_and_deserialize_uper( 16, &[0x83, 0xD6], &BasicConstrainedExtensible { abc: BitVec::from_bytes(vec![0b1010_1100], 7), }, ); }
rust_cleaned_test_functions.jsonl/50182
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 141 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9927, 36764, 61678, 62, 16, 368, 341, 262, 442, 504, 41615, 198, 262, 24235, 8378, 15768, 9050, 62, 3466, 1006, 286, 220, 16, 21, 345, 286, 44590, 15, 87, 23, 18, 11, 220, 15, 15764, 21, 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_arp_table_static_cancel_waiting_timer() { let mut ctx = DummyContext::default(); // Perform a lookup in order to kick off a request and install a retry // timer. lookup(&mut ctx, (), TEST_LOCAL_MAC, TEST_REMOTE_IPV4); // We should be i...
rust_cleaned_test_functions.jsonl/17004
{ "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, 62, 7876, 5237, 25360, 28895, 84683, 16255, 368, 341, 1789, 23459, 286, 1077, 5206, 5635, 284, 50567, 1972, 486, 2258, 1428, 286, 442, 25001, 264, 18615, 304, 1973, 311, 10323, 1007, 264, 1681, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_comparisons_corner_cases() { for (&x, &y, &z) in iproduct!(test_values(), test_values(), test_values()) { println!("Testing combined comparisons with inputs {:?}", (x, y, z)); test_multi_comparisons(x, y, z); } }
rust_cleaned_test_functions.jsonl/122904
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 2965, 1732, 19379, 66884, 41427, 368, 341, 262, 369, 15899, 87, 11, 609, 88, 11, 609, 89, 8, 304, 5997, 299, 1058, 10297, 1944, 9146, 1507, 1273, 9146, 1507, 1273, 9146, 2140, 341, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_random_bit_extraction() { // Length of the data vector we'll be extracting from. let len = 20; let rng = &mut XorShiftRng::from_seed(TEST_SEED); let data: Vec<u8> = (0..len).map(|_| rng.gen()).collect(); // TODO: Evaluate designing a scattered pattered o...
rust_cleaned_test_functions.jsonl/75455
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 598 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 13996, 94842, 368, 341, 286, 442, 17287, 315, 279, 821, 4621, 582, 3278, 387, 59408, 504, 624, 286, 1077, 2422, 284, 220, 17, 15, 401, 286, 1077, 28422, 284, 609, 6984, 1599, 269, 24841, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unaligned_sizes() { macro_rules! test_size { ($size:expr) => { let mut buf = FixedVecDeque::<[u32; $size]>::new(); assert_eq!(buf.back(), None); assert_eq!(buf.front(), None); assert_eq!(buf.get(0), None); ...
rust_cleaned_test_functions.jsonl/3285
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 47142, 32159, 368, 341, 286, 18072, 21407, 0, 1273, 2368, 341, 310, 1711, 2141, 96011, 8, 589, 341, 394, 1077, 5206, 6607, 284, 20149, 10050, 73891, 27638, 58, 84, 18, 17, 26, 400, 2141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_le_advertising_data() { let buf = [7, 2, 240, 255, 229, 255, 224, 255]; assert_eq!(le_advertising_data(&buf), Ok((&[][..], vec![ServiceClassUUID16(65520), ...
rust_cleaned_test_functions.jsonl/125937
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 418 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11751, 10027, 29924, 1769, 368, 341, 286, 1077, 6607, 284, 508, 22, 11, 220, 17, 11, 220, 17, 19, 15, 11, 220, 17, 20, 20, 11, 220, 17, 17, 24, 11, 220, 17, 20, 20, 11, 220, 17, 17, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_locate_latest_common_block2() { let consensus = Consensus::default(); let (chain_controller1, shared1, _notify1) = start_chain(Some(consensus.clone()), None); let (chain_controller2, shared2, _notify2) = start_chain(Some(consensus.clone()), None); let block_number...
rust_cleaned_test_functions.jsonl/113659
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1305 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13400, 349, 64880, 21107, 7113, 17, 368, 341, 286, 1077, 23869, 284, 7292, 13626, 486, 2258, 543, 286, 1077, 320, 8819, 21600, 16, 11, 6094, 16, 11, 716, 21948, 16, 8, 284, 1191, 30583, 65405, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reading_deflate_encoding_large_random_ssl() { use openssl::ssl::{SslConnector, SslMethod, SslVerifyMode}; use rustls::internal::pemfile::{certs, rsa_private_keys}; use rustls::{NoClientAuth, ServerConfig}; use std::fs::File; use std::io::BufReader; let addr = TestServer:...
rust_cleaned_test_functions.jsonl/48239
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 81859, 7844, 5075, 37613, 45228, 22644, 48210, 368, 341, 262, 990, 80733, 486, 24635, 22964, 50, 3226, 35954, 11, 328, 3226, 3523, 11, 328, 3226, 32627, 3636, 2440, 262, 990, 23071, 4730, 486, 104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_run() { let elevator = ELEVATOR.lock().unwrap(); println!("The elevator will now do a run from the bottom floor to the top floor. It will stop in the floor below the top floor"); elevator.set_direction(ElevatorDirection::Down); while elevator.read_floor_sensor() !...
rust_cleaned_test_functions.jsonl/42307
{ "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, 14007, 368, 341, 286, 1077, 38636, 284, 468, 85411, 11857, 21003, 1005, 15454, 543, 286, 13751, 17223, 785, 38636, 686, 1431, 653, 264, 1598, 504, 279, 5622, 6422, 311, 279, 1909, 6422, 13, 1084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_supplies_buy_misc_success() { let mut supplies = Supplies::new(); supplies.buy_misc(200).unwrap(); assert_eq!(500, supplies.money); assert_eq!(200, supplies.misc); }
rust_cleaned_test_functions.jsonl/28668
{ "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, 23723, 7202, 46348, 69350, 18632, 368, 341, 286, 1077, 5206, 16720, 284, 50252, 486, 931, 543, 286, 16720, 63871, 69350, 7, 17, 15, 15, 568, 15454, 543, 1066, 286, 2060, 10714, 10297, 20, 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
#[test] fn test_global_var_f32() { // create a GlobalType instance let result = GlobalType::create(ValType::F32, Mutability::Var); assert!(result.is_ok()); let mut ty = result.unwrap(); assert!(!ty.ctx.is_null()); // create a Var Global instance let resul...
rust_cleaned_test_functions.jsonl/130797
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 501 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19296, 4612, 761, 18, 17, 368, 341, 286, 442, 1855, 264, 7962, 929, 2867, 198, 286, 1077, 1102, 284, 7962, 929, 486, 3182, 7, 2208, 929, 486, 37, 18, 17, 11, 31228, 2897, 486, 3962, 317, 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_pow_function() -> Result<()> { let tests = vec![ ScalarFunctionTest { name: "pow-with-literal", columns: vec![Series::from_data([2]), Series::from_data([2])], expect: Series::from_data(vec![4_f64]), error: "", }, ScalarF...
rust_cleaned_test_functions.jsonl/66267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 883 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56183, 9174, 368, 1464, 5714, 71698, 341, 262, 1077, 7032, 284, 7486, 90515, 286, 35176, 5152, 2271, 341, 310, 829, 25, 330, 21743, 26189, 2852, 9953, 756, 310, 8147, 25, 7486, 20703, 25544, 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_default() { let g = MatrixGraph::<i32, i32>::default(); assert_eq!(g.node_count(), 0); assert_eq!(g.edge_count(), 0); }
rust_cleaned_test_functions.jsonl/81954
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 368, 341, 286, 1077, 342, 284, 11631, 11212, 27638, 72, 18, 17, 11, 600, 18, 17, 6831, 2258, 543, 286, 2060, 10714, 10297, 70, 12097, 3180, 1507, 220, 15, 317, 286, 2060, 10714, 10297, 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
#[test] fn test_02() { let alloc: bumpalo::Bump = bumpalo::Bump::new(); let mut buf = bumpalo::vec![in &alloc; 1, 2, 3]; let _s = BumpSliceMut::new(&alloc, buf.as_mut_slice()); }
rust_cleaned_test_functions.jsonl/115370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 15, 17, 368, 341, 286, 1077, 5574, 25, 27575, 12529, 486, 33, 1510, 284, 27575, 12529, 486, 33, 1510, 486, 931, 543, 286, 1077, 5206, 6607, 284, 27575, 12529, 486, 4083, 20703, 258, 609, 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_select() { let sql = "SELECT * FROM label1 Where a = 123 and b != '456'"; let mut tokenizer = Tokenizer::new(&sql); let tokens = tokenizer.tokenize().unwrap_or_default(); assert_eq!( vec![ Token::Keyword(Keyword::SELECT), ...
rust_cleaned_test_functions.jsonl/83085
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 792 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 368, 341, 286, 1077, 5704, 284, 330, 4858, 353, 4295, 2383, 16, 10967, 264, 284, 220, 16, 17, 18, 323, 293, 961, 364, 19, 20, 21, 21689, 286, 1077, 5206, 45958, 284, 9660, 3135, 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_m_limit() { let s = "copy 1 m\n"; assert_eq!( parse_text(s), Ok(vec![Instruction::Copy( Target::Literal(1), Target::Register("m".into()), )]) ); let s = "copy m m\n"; assert_eq...
rust_cleaned_test_functions.jsonl/72903
{ "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, 717, 14763, 368, 972, 286, 1077, 274, 284, 330, 8560, 220, 16, 296, 1699, 3534, 286, 2060, 10714, 0, 7805, 310, 4715, 4326, 1141, 9912, 310, 7622, 25592, 20703, 16664, 486, 12106, 7805, 394, 134...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_accessible() { let mut p = EdgeProperties::default(); p.normalize(); assert!(!p.accessible()); p.foot = FOOT_ALLOWED; assert!(p.accessible()) }
rust_cleaned_test_functions.jsonl/62183
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88724, 368, 341, 262, 1077, 5206, 281, 284, 10349, 7903, 486, 2258, 543, 262, 281, 44657, 543, 262, 2060, 0, 3471, 79, 21986, 1238, 5231, 262, 281, 13, 5334, 284, 80037, 73186, 280, 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
#[test] fn test_decimal_as_json() { test_none_with_ctx(cast_any_as_any::<Decimal, Json>); let cs = vec![ ( Decimal::from_f64(i64::MIN as f64).unwrap(), Json::Double(i64::MIN as f64), ), ( Decimal::from_f64(i64::M...
rust_cleaned_test_functions.jsonl/101817
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 695 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74429, 11898, 9455, 368, 341, 286, 1273, 31488, 6615, 15147, 1337, 559, 37248, 11898, 37248, 27638, 11269, 11, 8308, 42013, 286, 1077, 10532, 284, 7486, 90515, 310, 2399, 394, 26728, 486, 1499, 761,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_forecast_request_builder_defaults() { let request = ForecastRequestBuilder::new(API_KEY, LAT, LONG).build(); let expected_url = Url::parse(&format!( "{base}/{key}/{lat:.16},{long:.16}?", base = FORECAST_URL, key = API_KEY, lat = LA...
rust_cleaned_test_functions.jsonl/24714
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 534 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35563, 3829, 7893, 28532, 42290, 368, 341, 286, 1077, 1681, 284, 55675, 1900, 3297, 486, 931, 48953, 6600, 11, 53187, 11, 33942, 568, 5834, 1428, 286, 1077, 3601, 2903, 284, 22840, 486, 6400, 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...
1
#[test] fn test_without_miter_limit(){ let expected_limit = 4.0; let stroke_options = StrokeOptions::default(); assert_eq!(expected_limit, stroke_options.miter_limit); }
rust_cleaned_test_functions.jsonl/25092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39904, 717, 2015, 14763, 3032, 262, 1077, 3601, 14763, 284, 220, 19, 13, 15, 280, 262, 1077, 12654, 8743, 284, 68934, 3798, 486, 2258, 1428, 262, 2060, 10714, 10297, 7325, 14763, 11, 12654, 8743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let value = CurrentUser { accent_color: Some(16_711_680), avatar: Some("avatar hash".to_owned()), banner: None, bot: true, discriminator: 9999, email: None, id: UserId::new(1).expect("non...
rust_cleaned_test_functions.jsonl/21722
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 509 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11080, 3317, 368, 341, 286, 1077, 897, 284, 9125, 1474, 341, 310, 29100, 6714, 25, 4329, 7, 16, 21, 62, 22, 16, 16, 62, 21, 23, 15, 1326, 310, 20701, 25, 4329, 445, 11962, 5175, 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_target_redirect_not_found() { wrapper(|env| { let web = env.frontend(); assert_eq!( web.get("/crate/fdsafdsafdsafdsa/0.1.0/target-redirect/x86_64-apple-darwin/") .send()? .status(), StatusCode...
rust_cleaned_test_functions.jsonl/13867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11123, 30043, 7913, 21480, 368, 341, 286, 13261, 22428, 3160, 91, 341, 310, 1077, 3482, 284, 6105, 23445, 408, 543, 310, 2060, 10714, 33673, 394, 3482, 670, 4283, 61711, 6663, 5356, 2577, 5356, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_peer_selector() { let peers = vec![ PeerInfo::new( PeerId::random(), ChainInfo::new(1.into(), HashValue::zero(), mock_chain_status(100.into())), vec![], vec![], ), PeerInfo::new( PeerId::random(), ...
rust_cleaned_test_functions.jsonl/100338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 577 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45159, 28890, 368, 341, 262, 1077, 25029, 284, 7486, 90515, 286, 45147, 1731, 486, 931, 1006, 310, 45147, 764, 486, 11463, 3148, 310, 28525, 1731, 486, 931, 7, 16, 39860, 1507, 6531, 1130, 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_snapshot_hash_of() { assert_eq!( snapshot_hash_of(&format!("snapshot-42-{}.tar.bz2", Hash::default())), Some((42, Hash::default())) ); assert!(snapshot_hash_of("invalid").is_none()); }
rust_cleaned_test_functions.jsonl/38788
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53265, 8950, 3575, 368, 341, 286, 2060, 10714, 33673, 310, 16295, 8950, 3575, 2099, 2243, 17223, 35501, 12, 19, 17, 12, 46391, 26737, 81374, 17, 497, 6531, 486, 2258, 73727, 310, 4329, 1188, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_wallet_create_tx() { let cli_args = vec!["bdk-cli", "--network", "testnet", "wallet", "--descriptor", "wpkh(tpubDEnoLuPdBep9bzw5LoGYpsxUQYheRQ9gcgrJhJEcdKFB9cWQRyYmkCyRoTqeD4tJYiVVgt6A3rN6rWn9RYhR9sBsGxji29LYWHuKKbdb1ev/0/*)", ...
rust_cleaned_test_functions.jsonl/53341
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 62308, 8657, 17805, 368, 341, 286, 1077, 21348, 8384, 284, 7486, 0, 1183, 65, 7584, 54797, 497, 14482, 17511, 497, 330, 1944, 4711, 497, 330, 35735, 756, 999, 14482, 53132, 497, 330, 8421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_valid_suffixes() { let all_suffixes = vec![ (KubeQuantity("500m".into()), Suffix::Millicpu), (KubeQuantity("123456".into()), Suffix::None), (KubeQuantity("1.23456".into()), Suffix::None), (KubeQuantity("500K".into()), Suffix::Kilobyte), ...
rust_cleaned_test_functions.jsonl/51863
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 598 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8337, 37151, 288, 368, 341, 286, 1077, 678, 37151, 288, 284, 7486, 90515, 310, 320, 42, 3760, 17342, 445, 20, 15, 15, 76, 3263, 18122, 11858, 328, 13554, 486, 59232, 415, 5584, 1326, 310, 320, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_net_unreachable() { // Receive an IP packet for an unreachable destination address. Check to // make sure that we respond with the appropriate ICMP message. test_receive_ip_packet::<Ipv4, _, _, _, _>( |_| {}, &mut [0u8; 128], Ipv4Addr::...
rust_cleaned_test_functions.jsonl/122961
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 687 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19722, 4907, 46550, 368, 341, 286, 442, 37422, 458, 6790, 10151, 369, 458, 69322, 9106, 2621, 13, 4248, 311, 198, 286, 442, 1281, 2704, 429, 582, 5889, 448, 279, 8311, 83988, 1943, 624, 286, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_probe() { crate::init().unwrap(); let (major, minor, micro, _) = crate::version(); let pad = crate::Pad::new(Some("src"), crate::PadDirection::Src); let events = Arc::new(Mutex::new(Vec::new())); let buffers = Arc::new(Mutex::new(Vec::new())); le...
rust_cleaned_test_functions.jsonl/4738
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1805 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49108, 368, 341, 286, 17717, 486, 2327, 1005, 15454, 1428, 286, 1077, 320, 36505, 11, 8922, 11, 8003, 11, 27439, 284, 17717, 486, 4366, 543, 286, 1077, 11016, 284, 17717, 486, 13731, 486, 931, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_vrna_eval() { let sequence = "GGGUUUGCGGUGUAAGUGCAGCCCGUCUUACACCGUGCGGCACAGGCACUAGUACUGAUGUCGUAUACAGGGCUUUUGACAU"; let vc = VCompound::new(sequence); // MFE structure: // minimum free energy = -25.80 kcal/mol let pt = Array1::from_vec...
rust_cleaned_test_functions.jsonl/10738
{ "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, 2273, 89231, 21296, 368, 341, 286, 1077, 8500, 4035, 310, 330, 22254, 54695, 52, 2941, 8798, 38, 2941, 17782, 1890, 60902, 1890, 3706, 8798, 5459, 86564, 1706, 1706, 8798, 2941, 8798, 22863, 1706, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_contains() { let mut cache = LruCache::new(2); cache.put("apple", "red"); cache.put("banana", "yellow"); cache.put("pear", "green"); assert!(!cache.contains(&"apple")); assert!(cache.contains(&"banana")); assert!(cache.contains(&"pear"));...
rust_cleaned_test_functions.jsonl/77937
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63598, 368, 341, 286, 1077, 5206, 6500, 284, 444, 2672, 8233, 486, 931, 7, 17, 626, 286, 6500, 3597, 445, 22377, 497, 330, 1151, 797, 286, 6500, 3597, 445, 87747, 497, 330, 27869, 797, 286, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bcrypt_sha256() { let django = Django { version: DjangoVersion::V1_9, }; let encoded = django.make_password_with_settings("lètmein", "", Algorithm::BCryptSHA256); assert!(is_password_usable(&encoded)); assert!(encoded.starts_with("bcrypt_sha256$")); assert!(check_...
rust_cleaned_test_functions.jsonl/104132
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 505 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 48125, 48836, 17, 20, 21, 368, 341, 262, 1077, 8262, 284, 52604, 341, 286, 2319, 25, 52604, 5637, 486, 53, 16, 62, 24, 345, 262, 2605, 262, 1077, 20498, 284, 8262, 10117, 10122, 6615, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compose() { let scale = scale_transform(2.0, 3.0); let translate = translate_transform(1.0, 10.0); assert_eq!(apply(compose(translate, scale), [5.0, 7.0]), [11.0, 31.0]); assert_eq!(apply(compose(scale, translate), [5.0, 7.0]), ...
rust_cleaned_test_functions.jsonl/39373
{ "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, 2965, 2900, 368, 341, 286, 1077, 5452, 284, 5452, 18449, 7, 17, 13, 15, 11, 220, 18, 13, 15, 317, 286, 1077, 14683, 284, 14683, 18449, 7, 16, 13, 15, 11, 220, 16, 15, 13, 15, 317, 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_dad_b_carry() { let mut state = State8080::empty_state(); state.memory = vec![0x09]; state.b = 0xff; state.c = 0xff; state.h = 0x00; state.l = 0x02; emulate_8080_op(&mut state); assert_eq!(state.b, 0xff); assert_eq!(state.c,...
rust_cleaned_test_functions.jsonl/7760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 329, 880, 666, 11433, 368, 341, 286, 1077, 5206, 1584, 284, 3234, 23, 15, 23, 15, 486, 3194, 4387, 543, 286, 1584, 36611, 284, 7486, 20703, 15, 87, 15, 24, 935, 286, 1584, 948, 284, 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_deep_nesting_group() { fn build_and_roundtrip(depth: usize) -> Result<(), prost::DecodeError> { use crate::groups::{nested_group2::OptionalGroup, NestedGroup2}; let mut a = NestedGroup2::default(); for _ in 0..depth { a = NestedGroup2 ...
rust_cleaned_test_functions.jsonl/8854
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 401 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 87044, 1089, 59855, 6288, 368, 341, 286, 5168, 1936, 8378, 29896, 32981, 53675, 25, 22301, 8, 1464, 5714, 68843, 35221, 486, 32564, 1454, 29, 341, 310, 990, 17717, 486, 16753, 22964, 59271, 6288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_heapsizeof() { use heapsize::HeapSizeOf; let h = H128::zero(); assert_eq!(h.heap_size_of_children(),0); }
rust_cleaned_test_functions.jsonl/123492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 68 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33059, 10318, 368, 341, 197, 41819, 17364, 2141, 486, 27909, 1695, 2124, 280, 197, 10217, 305, 284, 472, 16, 17, 23, 486, 14154, 543, 197, 6948, 10714, 10297, 71, 77147, 2368, 3575, 31206, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_network() { let temp_config = Config::new( String::from("goodday"), Option::Some(String::from("127.0.0.1:8081")), ); assert_eq!(temp_config.get_network(), "127.0.0.1:8081"); }
rust_cleaned_test_functions.jsonl/123545
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 20966, 368, 341, 286, 1077, 2730, 5332, 284, 5532, 486, 931, 1006, 310, 923, 486, 1499, 445, 18536, 1292, 4461, 310, 6959, 486, 8373, 2242, 486, 1499, 445, 16, 17, 22, 13, 15, 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_fetch() { assert_eq!( Opt { force: false, verbose: 3, cmd: Sub::Fetch {} }, Opt::parse_from(&["test", "-vvv", "fetch"]) ); assert_eq!( Opt { force: true, verbose: 0, cmd: Sub::Fetc...
rust_cleaned_test_functions.jsonl/46408
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11803, 368, 341, 262, 2060, 10714, 33673, 286, 16554, 341, 310, 5344, 25, 895, 345, 310, 13694, 25, 220, 18, 345, 310, 5439, 25, 3719, 486, 20714, 5613, 286, 1153, 286, 16554, 486, 6400, 5673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_registration_query() { assert_eq!(registration_query("", ""), format!("{}..", CONFIG_KEY_REGISTRATIONS)); assert_eq!( registration_query("a-b", "c-d"), format!("{}.a-b.c-d", CONFIG_KEY_REGISTRATIONS) ); assert_eq!( registration_...
rust_cleaned_test_functions.jsonl/98260
{ "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, 49101, 5738, 368, 341, 286, 2060, 10714, 10297, 25862, 5738, 19814, 77130, 3561, 17223, 6257, 496, 497, 13202, 6600, 8064, 29503, 21792, 1106, 286, 2060, 10714, 33673, 310, 12227, 5738, 445, 64, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serde() { let strings = ["3", "4+4", "21^(2*2)--3>5||!true"]; for string in &strings { let manual_tree = build_operator_tree(string).unwrap(); let serde_tree: Node = ron::de::from_str(&format!("\"{}\"", string)).unwrap(); assert_eq!(manual_tree.eval(), serde_tree...
rust_cleaned_test_functions.jsonl/105356
{ "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, 75861, 450, 368, 341, 262, 1077, 9069, 284, 4383, 18, 497, 330, 19, 10, 19, 497, 330, 17, 16, 13268, 17, 9, 17, 29621, 18, 29, 20, 8484, 0, 1866, 31797, 262, 369, 914, 304, 609, 18594, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_binop() { test_roundtrip("null + null"); test_roundtrip("1 + 1"); test_roundtrip("1 * 2 + (3 + 4)"); test_roundtrip("1 ** 2 ** 3 ** 4"); test_roundtrip("1 in 2 + (2 - 4) / 3"); test_roundtrip("1 instanceof 2 + (2 - 4) / 3"); }
rust_cleaned_test_functions.jsonl/102589
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21816, 453, 368, 341, 262, 1273, 29896, 32981, 445, 2921, 488, 845, 797, 262, 1273, 29896, 32981, 445, 16, 488, 220, 16, 797, 262, 1273, 29896, 32981, 445, 16, 353, 220, 17, 488, 320, 18, 488,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_that_pop_actually_detaches_node() { let mut cache = LruCache::new(5); cache.put("a", 1); cache.put("b", 2); cache.put("c", 3); cache.put("d", 4); cache.put("e", 5); assert!(cache.contains(&"c")); assert_eq!(cache.pop(&"c"), Some(3...
rust_cleaned_test_functions.jsonl/77942
{ "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, 70197, 17061, 29370, 1832, 24409, 14242, 5084, 368, 341, 286, 1077, 5206, 6500, 284, 444, 2672, 8233, 486, 931, 7, 20, 626, 286, 6500, 3597, 445, 64, 497, 220, 16, 317, 286, 6500, 3597, 445, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scm_credentials() { use libc; use nix::sys::uio::IoVec; use nix::unistd::{close, getpid, getuid, getgid}; use nix::sys::socket::{socketpair, sendmsg, recvmsg, setsockopt, AddressFamily, SockType, SockFlag, ControlMessage, Cmsg...
rust_cleaned_test_functions.jsonl/44198
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 960 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 6226, 47396, 368, 341, 262, 990, 42142, 280, 262, 990, 308, 941, 486, 7791, 486, 84, 815, 486, 42799, 10050, 280, 262, 990, 308, 941, 486, 27483, 22964, 5552, 11, 95378, 11, 633, 2423, 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...
3
#[test] fn test_338() { assert_eq!(Solution::count_bits(2), vec![0, 1, 1]); assert_eq!(Solution::count_bits(5), vec![0, 1, 1, 2, 1, 2]); }
rust_cleaned_test_functions.jsonl/123843
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 18, 18, 23, 368, 341, 286, 2060, 10714, 10297, 36842, 486, 1830, 20034, 7, 17, 701, 7486, 20703, 15, 11, 220, 16, 11, 220, 16, 2558, 286, 2060, 10714, 10297, 36842, 486, 1830, 20034, 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_int_counter() { let counter = IntCounter::new("foo", "bar").unwrap(); counter.inc(); assert_eq!(counter.get(), 1); counter.inc_by(11); assert_eq!(counter.get(), 12); let mut mfs = counter.collect(); assert_eq!(mfs.len(), 1); let m...
rust_cleaned_test_functions.jsonl/46516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 284 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 15730, 368, 341, 286, 1077, 5546, 284, 1333, 14099, 486, 931, 445, 7975, 497, 330, 2257, 1827, 15454, 543, 286, 5546, 26797, 543, 286, 2060, 10714, 10297, 8292, 670, 1507, 220, 16, 317, 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_latex() { let gate = Y::new(); let mut state = LatexExportState::new(1, 0); assert_eq!(gate.latex(&[0], &mut state), Ok(())); assert_eq!(state.code(), r#"\Qcircuit @C=1em @R=.7em { \lstick{\ket{0}} & \gate{Y} & \qw \\ } "#); }
rust_cleaned_test_functions.jsonl/21205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26174, 327, 741, 262, 341, 286, 1077, 18126, 284, 809, 486, 931, 543, 286, 1077, 5206, 1584, 284, 9926, 327, 16894, 1397, 486, 931, 7, 16, 11, 220, 15, 317, 286, 2060, 10714, 10297, 24601, 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_shred_type_compat() { assert_eq!(std::mem::size_of::<ShredType>(), std::mem::size_of::<u8>()); assert_eq!(ShredType::from_u8(0), None); assert_eq!(ShredType::from_u8(1), None); assert_matches!(bincode::deserialize::<ShredType>(&[0u8]), Err(_)); // data shr...
rust_cleaned_test_functions.jsonl/125660
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 576 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 1151, 1819, 89602, 368, 341, 286, 2060, 10714, 10297, 1834, 486, 10536, 486, 2141, 3575, 27638, 2016, 1151, 929, 39019, 1460, 486, 10536, 486, 2141, 3575, 27638, 84, 23, 32872, 286, 2060, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_logical() { test_roundtrip("a && b || c"); test_roundtrip("a || b && c"); test_roundtrip("(a || b) && c"); test_roundtrip("(a || b) ?? c"); test_roundtrip("(a ?? b) || c"); }
rust_cleaned_test_functions.jsonl/102595
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86484, 368, 341, 262, 1273, 29896, 32981, 445, 64, 1009, 293, 1369, 272, 797, 262, 1273, 29896, 32981, 445, 64, 1369, 293, 1009, 272, 797, 262, 1273, 29896, 32981, 31732, 64, 1369, 293, 8, 1009,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_success() { let output = "{\"success\":true}"; let o: Result<Success, serde_json::error::Error> = serde_json::from_str(output); assert!(o.is_ok()); }
rust_cleaned_test_functions.jsonl/56066
{ "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, 18632, 368, 341, 286, 1077, 2550, 284, 54734, 5630, 11693, 1866, 26259, 286, 1077, 297, 25, 5714, 27, 7188, 11, 61570, 9455, 486, 841, 486, 1454, 29, 284, 61570, 9455, 486, 1499, 2895, 11057, 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
#[test] fn test_mark_read_non_existing_post() { let readlist = readlist_from(vec![ ("feed1", vec!["post1", "post2"]), ("feed2", vec!["post3", "post5"]), ]); let output = _mark_read(readlist.clone(), "post4"); assert_eq!(readlist, output); }
rust_cleaned_test_functions.jsonl/56105
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18924, 6443, 21637, 62630, 6333, 368, 341, 286, 1077, 1349, 1607, 284, 1349, 1607, 5673, 25592, 90515, 310, 3489, 11184, 16, 497, 7486, 0, 1183, 2203, 16, 497, 330, 2203, 17, 46442, 310, 3489, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_new() { let region = Region::new(RegionType::CacheFast); assert_eq!(region.status, RegionStatus::Init); assert!(!region.has_user_io()); assert!(region.seg.is_empty()); assert_eq!(region.chunks.len(), 0); assert_eq!(region.tags.len(), 0); ...
rust_cleaned_test_functions.jsonl/130989
{ "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, 20627, 5921, 368, 341, 286, 1077, 5537, 284, 17152, 486, 931, 7, 14091, 929, 486, 8233, 32174, 626, 286, 2060, 10714, 10297, 3943, 4299, 11, 17152, 2522, 486, 3803, 317, 286, 2060, 0, 3471, 3943...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_set_c() { let mut cpu: CPU = CPU::new(); let pc = cpu.pc; cpu = cpu.set_c(Register { value: 0 }); cpu.memory.write_64bit(1, 10); cpu = execute_set(cpu, pc, 0b010); assert_eq!(cpu.pc.value, 9); assert_eq!(cpu.f.value, 0); assert_e...
rust_cleaned_test_functions.jsonl/123554
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 666, 368, 341, 286, 1077, 5206, 17319, 25, 13940, 284, 13940, 486, 931, 543, 286, 1077, 13312, 284, 17319, 53335, 401, 286, 17319, 284, 17319, 980, 666, 79203, 314, 897, 25, 220, 15, 1625,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_assignment_up_not_last_not_applicable() { check_assist_not_applicable( pull_assignment_up, r#" fn foo() { let mut a = 1; if true { $0a = 2; b = a; } else { a = 3; } }"#, ) }
rust_cleaned_test_functions.jsonl/117255
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65693, 51891, 8237, 7913, 12195, 7913, 8191, 46114, 368, 341, 286, 1779, 12083, 380, 7913, 8191, 46114, 1006, 310, 6815, 51891, 8237, 345, 310, 435, 2, 698, 8822, 15229, 368, 341, 262, 1077, 5206,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_functions_keys() -> anyhow::Result<()> { let func1 = new_null_func(S3X_AMZ_COPY_SOURCE, ValueSet::new(vec![Value::Bool(true)]))?; let func2 = new_ip_address_func( AWS_SOURCE_IP, ValueSet::new(vec![Value::String("192.168.1.0/24".to_string())]), )?; ...
rust_cleaned_test_functions.jsonl/29806
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 614 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31708, 12631, 368, 1464, 88964, 486, 2077, 71698, 341, 286, 1077, 2915, 16, 284, 501, 15162, 9596, 3759, 18, 55, 25022, 57, 35556, 25430, 11, 5162, 1649, 486, 931, 25592, 20703, 1130, 486, 11233, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encode() { let input = b"Burning 'em, if you ain't quick and nimble I go crazy when I hear a cymbal"; let output = String::from("0b3637272a2b2e63622c2e69692a23693a2a3c6324202d623d63343c2a26226324272765272a282b2f20430a652e2c652a3124333a653e2b2027630c692b20283165286326302e27282f");...
rust_cleaned_test_functions.jsonl/51160
{ "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, 11224, 368, 341, 286, 1077, 1946, 284, 293, 63590, 53344, 364, 336, 11, 421, 498, 36102, 944, 3974, 323, 45692, 891, 198, 40, 728, 14264, 979, 358, 6723, 264, 272, 3356, 278, 876, 286, 1077, 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_mat_times_identity_equals_identity_times_mat() { test_cases().iter().for_each(|test| { let a_mat_times_identity = test.a_mat * Matrix2x2::identity(); let identity_times_a_mat = Matrix2x2::identity() * test.a_mat; let b_mat_times_identity = test.b_mat *...
rust_cleaned_test_functions.jsonl/128959
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 280 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16610, 22353, 46244, 61664, 46244, 22353, 16610, 368, 341, 286, 1273, 41427, 1005, 2015, 1005, 1958, 32046, 22428, 1944, 91, 341, 310, 1077, 264, 16610, 22353, 46244, 284, 1273, 5849, 16610, 353, 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_data_attributes() { use crate as typed_html; use crate::dom::DOMTree; let frag: DOMTree<String> = html!(<div data-id="1234">"Boo!"</div>); assert_eq!("<div data-id=\"1234\">Boo!</div>", frag.to_string()); }
rust_cleaned_test_functions.jsonl/24614
{ "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, 1769, 18240, 368, 341, 262, 990, 17717, 438, 31969, 9564, 280, 262, 990, 17717, 486, 5600, 486, 15242, 6533, 401, 262, 1077, 8343, 25, 18051, 6533, 3464, 29, 284, 5272, 10297, 27, 611, 821, 1289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_builder_finish() { let mut b = Int32BufferBuilder::new(5); assert_eq!(16, b.capacity()); for i in 0..10 { b.append(i); } let mut a = b.finish(); assert_eq!(40, a.len()); assert_eq!(0, b.len()); assert_eq!(0, b.capacity()...
rust_cleaned_test_functions.jsonl/74109
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28532, 42980, 368, 341, 286, 1077, 5206, 293, 284, 1333, 18, 17, 4095, 3297, 486, 931, 7, 20, 317, 286, 2060, 10714, 10297, 16, 21, 11, 293, 59168, 1423, 286, 369, 600, 304, 220, 15, 496, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_end_training_selected_participant_no_success() { let mut protocol = Protocol::new(get_default_fl_settings()); let client_id = ClientId::new(); protocol.counters = Counters { waiting: 0, selected: 2, done: 5, done_and_inactiv...
rust_cleaned_test_functions.jsonl/97787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 445 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6213, 32891, 23755, 10495, 21757, 6536, 18632, 368, 341, 286, 1077, 5206, 11507, 284, 24572, 486, 931, 5433, 9993, 5081, 10853, 1423, 286, 1077, 2943, 842, 284, 8423, 764, 486, 931, 543, 286, 1150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cast_i32_utf8() -> Result<()> { generic_test_cast!( Int32Array, DataType::Int32, vec![1, 2, 3, 4, 5], StringArray, DataType::Utf8, vec![Some("1"), Some("2"), Some("3"), Some("4"), Some("5")], DEFAULT_DATA...
rust_cleaned_test_functions.jsonl/57555
{ "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, 5303, 5318, 18, 17, 39453, 23, 368, 1464, 5714, 71698, 341, 286, 13954, 4452, 5303, 33673, 310, 1333, 18, 17, 1857, 345, 310, 33172, 486, 1072, 18, 17, 345, 310, 7486, 20703, 16, 11, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_none_this_week() { let metric = Metric { id: Some("1".to_string()), habit: "2".to_string(), user: "3".to_string(), time: Some(100) }; let stats = into_weekly_figures(&vec![metric]); assert_eq!(Stats { suc...
rust_cleaned_test_functions.jsonl/117602
{ "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, 31488, 24868, 31277, 368, 341, 286, 1077, 18266, 284, 52458, 341, 310, 877, 25, 4329, 445, 16, 3263, 983, 3904, 14702, 310, 14132, 25, 330, 17, 3263, 983, 3904, 3148, 310, 1196, 25, 330, 18, 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_headers() { match parse_http_headers("Host: 127.0.0.1\r\nUser-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0\r\n") { Ok((_, hdrs)) => { let mut headers = Headers::new(); headers.push((...
rust_cleaned_test_functions.jsonl/50870
{ "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, 21039, 26719, 368, 341, 286, 2432, 4715, 25888, 26719, 445, 9296, 25, 220, 16, 17, 22, 13, 15, 13, 15, 13, 16, 12016, 1699, 1474, 45118, 25, 34733, 14, 20, 13, 15, 320, 19552, 61594, 26, 156...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fs_is_valid() { let mut a = Fs(MODULUS); assert!(!a.is_valid()); a.0.sub_noborrow(&FsRepr::from(1)); assert!(a.is_valid()); assert!(Fs(FsRepr::from(0)).is_valid()); assert!(!Fs(FsRepr([0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff]))....
rust_cleaned_test_functions.jsonl/95510
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 261 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34470, 6892, 8337, 368, 341, 262, 1077, 5206, 264, 284, 84619, 3189, 2069, 1094, 2034, 317, 262, 2060, 0, 3471, 64, 2079, 8337, 1423, 262, 264, 13, 15, 4309, 1089, 674, 7768, 2099, 48300, 693, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_fq2_inverse() { use super::fq::FqRepr; use PrimeField; assert!(Fq2::zero().inverse().is_none()); let a = Fq2 { c0: Fq::from_repr(FqRepr([ 0x85c9f989e1461f03, 0xa2e33c333449a1d6, 0x41e461154a7354a3, 0x9ee53e7e84d7532e, ...
rust_cleaned_test_functions.jsonl/130065
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 944 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 17, 63333, 368, 341, 262, 990, 2256, 486, 63919, 486, 37, 80, 693, 649, 280, 262, 990, 12518, 1877, 401, 262, 2060, 10297, 37, 80, 17, 486, 14154, 1005, 61482, 1005, 285, 31488, 5231,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_builder_no_inline() { let expected = EmbedField { inline: false, name: "name".to_owned(), value: "value".to_owned(), }; let actual = EmbedFieldBuilder::new("name", "value").build(); assert_eq!(actual, expected); }
rust_cleaned_test_functions.jsonl/62786
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28532, 6536, 41871, 368, 341, 286, 1077, 3601, 284, 37068, 1877, 341, 310, 7381, 25, 895, 345, 310, 829, 25, 330, 606, 3263, 983, 51973, 3148, 310, 897, 25, 330, 957, 3263, 983, 51973, 3148, 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_fold_after_tab_as_word_boundary() { new_ucmd!() .args(&["-w10", "-s"]) .pipe_in("a\tbbb\n") .succeeds() .stdout_is("a\t\nbbb\n"); }
rust_cleaned_test_functions.jsonl/23286
{ "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, 61187, 19844, 17344, 11898, 13533, 54004, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 86, 16, 15, 497, 6523, 82, 14108, 286, 659, 13768, 1243, 445, 64, 4955, 53151, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cluster_nodes_broadcast() { let mut rng = rand::thread_rng(); let (nodes, stakes, cluster_info) = make_cluster(&mut rng); // ClusterInfo::tvu_peers excludes the node itself. assert_eq!(cluster_info.tvu_peers().len(), nodes.len() - 1); let cluster_nodes = C...
rust_cleaned_test_functions.jsonl/18830
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1094 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28441, 14896, 74923, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 1077, 320, 20008, 11, 44425, 11, 10652, 3109, 8, 284, 1281, 28441, 2099, 6984, 28422, 317, 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...
6
#[test] fn test_max_sum() { assert_eq!(max_sum(0), 0); assert_eq!(max_sum(1), 1); assert_eq!(max_sum(2), 1); assert_eq!(max_sum(3), 2); assert_eq!(max_sum(4), 2); assert_eq!(max_sum(5), 2); assert_eq!(max_sum(6), 3); assert_eq!(max_sum(7), 3); assert_eq!(max_sum(8), 3); a...
rust_cleaned_test_functions.jsonl/2727
{ "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, 6345, 10160, 368, 341, 262, 2060, 10714, 10297, 2810, 10160, 7, 15, 701, 220, 15, 317, 262, 2060, 10714, 10297, 2810, 10160, 7, 16, 701, 220, 16, 317, 262, 2060, 10714, 10297, 2810, 10160, 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_metrics_report_update_check_failure_reason_omaha() { block_on(async { let mut metrics_reporter = MockMetricsReporter::new(); let mut state_machine = StateMachineBuilder::new_stub() .metrics_reporter(&mut metrics_reporter) .build() ...
rust_cleaned_test_functions.jsonl/59689
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 283 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37686, 14813, 8882, 7200, 43618, 38229, 62, 316, 13546, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 5206, 16734, 14813, 261, 284, 14563, 27328, 52766, 486, 931, 543, 310, 1077, 5206, 1584, 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_init_with_empty_state() { let initial_state_json: serde_json::Value = serde_json::from_str("{}").unwrap(); let value = Value::from_json(&initial_state_json); let (frontend, _) = Frontend::new_with_initial_state(value).unwrap(); let result_state = frontend.state().to_json(); a...
rust_cleaned_test_functions.jsonl/75975
{ "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, 6137, 6615, 15124, 4387, 368, 341, 262, 1077, 2856, 4387, 9455, 25, 61570, 9455, 486, 1130, 284, 61570, 9455, 486, 1499, 2895, 53430, 1827, 15454, 543, 262, 1077, 897, 284, 5162, 486, 1499, 9455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cpuset_systemd_too_old() -> Result<()> { let systemd_version = 235; let cpu = LinuxCpuBuilder::default() .build() .context("build cpu spec")?; let mut properties: HashMap<&str, Box<dyn RefArg>> = HashMap::new(); let result = CpuSet::apply(...
rust_cleaned_test_functions.jsonl/39170
{ "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, 90673, 295, 17687, 67, 2346, 78, 21108, 368, 1464, 5714, 71698, 341, 286, 1077, 74966, 9438, 284, 220, 17, 18, 20, 280, 286, 1077, 17319, 284, 14340, 34, 5584, 3297, 486, 2258, 741, 310, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2