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_tracker_token() { let shard_id = 47; let seq = SEQ_BITS_MASK - 3; let key = 65535; let token = TrackerToken::new(shard_id, seq, key); assert_eq!(token.shard_id(), shard_id); assert_eq!(token.seq(), seq); assert_eq!(token.key(), key); }
rust_cleaned_test_functions.jsonl/1057
{ "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, 50264, 6458, 368, 341, 286, 1077, 52069, 842, 284, 220, 19, 22, 280, 286, 1077, 12981, 284, 71408, 32695, 11720, 481, 220, 18, 280, 286, 1077, 1376, 284, 220, 21, 20, 20, 18, 20, 280, 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...
1
#[test] fn test_datum_codec() { let table = vec![ vec![Datum::I64(1)], vec![Datum::F64(1.0), Datum::F64(3.15), b"123".as_ref().into()], vec![ Datum::U64(1), Datum::F64(3.15), b"123".as_ref().into(), Datum...
rust_cleaned_test_functions.jsonl/10803
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2022 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15353, 372, 51084, 368, 341, 286, 1077, 1965, 284, 7486, 90515, 310, 7486, 20703, 68036, 486, 40, 21, 19, 7, 16, 30749, 310, 7486, 20703, 68036, 486, 37, 21, 19, 7, 16, 13, 15, 701, 68459, 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...
2
#[test] fn test_find_min_max() { let store: ArtifactStore = serde_json::from_str( r#" { "schema_version": "v1", "artifact_groups": [ { "artifacts": [ ], "attributes": { "creation_time": "2021-09-0...
rust_cleaned_test_functions.jsonl/7946
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 815 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 7260, 6345, 368, 341, 286, 1077, 3553, 25, 86082, 6093, 284, 61570, 9455, 486, 1499, 2895, 1006, 310, 435, 2, 698, 688, 341, 310, 330, 17349, 9438, 788, 330, 85, 16, 756, 310, 330, 6372...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_config() { let mut c = super::config::Config { config_file: "".to_string(), ..Default::default() }; assert!(c.config().is_err()); let mut c = super::config::Config { config_file: "config.txt".to_string(), ..Default::default() }; assert!(...
rust_cleaned_test_functions.jsonl/104438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 363 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 368, 341, 262, 1077, 5206, 272, 284, 2256, 486, 1676, 486, 2648, 341, 286, 2193, 2458, 25, 44907, 983, 3904, 3148, 286, 5241, 3675, 486, 2258, 741, 262, 3634, 262, 2060, 10297, 66, 5423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unprocessed_error() { block_on(assert_commands_error( "echo okay; exec 1>&-; false; cat > /dev/null", )); // error processed block_on(assert_commands_okay( "echo okay; exec 1>&-; false && true; cat > /dev/null", )); }
rust_cleaned_test_functions.jsonl/86514
{ "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, 4907, 34022, 4096, 368, 341, 262, 2504, 4470, 75846, 44151, 4096, 1006, 286, 330, 3047, 16910, 26, 3883, 220, 16, 5789, 12, 26, 895, 26, 8251, 861, 608, 3583, 19293, 756, 262, 33351, 262, 442, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pub_rec() { let mut data = bm(&[0b01010000, 0b00000010, 0, 10]); match decode(&mut data) { Ok(Some(Packet::Pubrec(a))) => assert_eq!(a.get(), 10), other => panic!("Failed decode: {:?}", other), }; }
rust_cleaned_test_functions.jsonl/95620
{ "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, 34014, 7080, 368, 341, 262, 1077, 5206, 821, 284, 34868, 2099, 58, 15, 65, 15, 16, 15, 16, 15, 15, 15, 15, 11, 220, 15, 65, 15, 15, 15, 15, 15, 15, 16, 15, 11, 220, 15, 11, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_vect_sub() { let vec1 = vec![1.0, 2.0, 3.0, 4.0]; let vec2 = vec![1.0, 2.0, 3.0, 4.0]; let vectors = Vectors::new(vec1, vec2).unwrap(); let vec_sub = vectors.sub(); assert_eq!(vec_sub, vec![0.0, 0.0, 0.0, 0.0]) }
rust_cleaned_test_functions.jsonl/60426
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59402, 5228, 368, 341, 286, 1077, 7486, 16, 284, 7486, 20703, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 11, 220, 19, 13, 15, 935, 286, 1077, 7486, 17, 284, 7486, 20703, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bulk_implementation() -> Result<(), Box<dyn Error>> { // correct for different k_B in old code let KB_old = 1.38064852e-23 * JOULE / KELVIN; let NAV_old = 6.022140857e23 / MOL; let parameters = GcPcSaftEosParameters::from_json_segments( &["propane"], "parameters/...
rust_cleaned_test_functions.jsonl/61405
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1470 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71392, 62, 14369, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 262, 442, 4396, 369, 2155, 595, 1668, 304, 2310, 2038, 198, 262, 1077, 25016, 21108, 284, 220, 16, 13, 18, 23, 15, 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...
3
#[test] fn test_node_async_fetch_leader_change() { let count = 5; let mut cluster = new_node_cluster(0, count); cluster.pd_client.disable_default_operator(); cluster.cfg.raft_store.raft_log_gc_count_limit = Some(80); cluster.cfg.raft_store.raft_log_gc_threshold = 50; cluster.cfg.raft_st...
rust_cleaned_test_functions.jsonl/117674
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 934 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 28346, 11803, 79991, 15947, 368, 341, 262, 1077, 1760, 284, 220, 20, 280, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 1760, 317, 262, 10652, 556, 67, 8179, 42628, 9993, 40594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_drawing() { let mut board = Board { cells: vec![vec![BingoNumber { number: 1, is_called: false, }, BingoNumber { number: 2, is_called: false, }], vec![BingoNumber { number: 3, ...
rust_cleaned_test_functions.jsonl/117729
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 420 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 1696, 368, 341, 262, 1077, 5206, 4479, 284, 8751, 341, 286, 7761, 25, 7486, 20703, 4083, 20703, 33, 27908, 2833, 341, 310, 1372, 25, 220, 16, 345, 310, 374, 27859, 25, 895, 345, 286, 2470...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_presign_put() { let s3_path = "/test/test.file"; let bucket = test_aws_bucket(); let mut custom_headers = HashMap::new(); custom_headers.insert("custom_header".to_string(), "custom_value".to_string()); let url = bucket .presign_put(s3_path, 8...
rust_cleaned_test_functions.jsonl/100390
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 234 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32116, 622, 15557, 368, 341, 286, 1077, 274, 18, 2638, 284, 3521, 1944, 12697, 9715, 876, 286, 1077, 15621, 284, 1273, 62, 8635, 38749, 1428, 286, 1077, 5206, 2526, 26719, 284, 10528, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dummy_memory_layout() { use std::mem; assert_eq!(mem::size_of::<DrawVert>(), mem::size_of::<Dummy>()); assert_eq!(mem::align_of::<DrawVert>(), mem::align_of::<Dummy>()); use memoffset::offset_of; macro_rules! assert_field_offset { ($l:ident, $r...
rust_cleaned_test_functions.jsonl/123847
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60321, 19195, 14466, 368, 341, 286, 990, 1460, 486, 10536, 280, 286, 2060, 10714, 10297, 10536, 486, 2141, 3575, 27638, 8137, 6103, 39019, 1833, 486, 2141, 3575, 27638, 43344, 32872, 286, 2060, 1071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reindent_multiline_block() { assert_eq!("\ if x { y } else { z }", reindent_multiline(" if x { y } else { z }".into(), false, None)); assert_eq!("\ if x { \ty } else { \tz }", reindent_mult...
rust_cleaned_test_functions.jsonl/6180
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 32840, 26290, 26560, 7113, 368, 341, 286, 2060, 10714, 0, 4921, 198, 262, 421, 856, 341, 286, 379, 198, 262, 335, 770, 341, 286, 1147, 198, 262, 335, 497, 312, 32840, 26290, 26560, 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_no_inline_aliases5() { test_same("var x = this.foo(); this.bar(); var y = x; this.bing(); this.baz(y); x = 3;"); }
rust_cleaned_test_functions.jsonl/27685
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 65 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 41871, 90233, 20, 368, 341, 262, 1273, 33574, 445, 947, 856, 284, 419, 58432, 2129, 419, 22001, 2129, 762, 379, 284, 856, 26, 419, 948, 287, 2129, 419, 948, 1370, 7021, 1215, 856, 284, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_list_records() { let mut collection = setup_collection(); collection.create().unwrap(); for _ in 0..10 { collection.new_record().create().unwrap(); } let records = collection.list_records(); assert_eq!(records.unwrap().len(), 10); }
rust_cleaned_test_functions.jsonl/63504
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 31279, 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, 3182, 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_simple_operator_gt_plaintext_to_string() { let name1 = _random_vector(10); let value1 = _random_string(10); let query = Operator::Gt( TagName::PlainTagName(name1.clone()), TargetValue::Unencrypted(value1.clone()) ); let json = que...
rust_cleaned_test_functions.jsonl/11880
{ "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, 30015, 40594, 37479, 6317, 1641, 427, 2346, 3904, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 12247, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 626, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simple_fog_transaction() { let mut rng: StdRng = SeedableRng::from_seed([1u8; 32]); let sender = AccountKey::random(&mut rng); let recipient = AccountKey::random_with_fog(&mut rng); let ingest_private_key = RistrettoPrivate::from_random(&mut rng); let valu...
rust_cleaned_test_functions.jsonl/32205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1563 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 761, 538, 28884, 368, 341, 286, 1077, 5206, 28422, 25, 42517, 49, 968, 284, 35822, 480, 49, 968, 486, 1499, 33809, 2561, 16, 84, 23, 26, 220, 18, 17, 2558, 286, 1077, 4646, 284, 8615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_first_phase_no_segment() { let mut asm = Assembler::new(); let test_string = "hello: .asciiz 'Fail'"; let result = program(test_string); assert!(result.is_ok()); let (_, p) = result.unwrap(); asm.process_first_phase(&p); assert_eq!(asm.erro...
rust_cleaned_test_functions.jsonl/7204
{ "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, 12978, 37593, 6536, 28061, 368, 341, 286, 1077, 5206, 32828, 284, 1634, 35401, 486, 931, 543, 286, 1077, 1273, 3904, 284, 330, 14990, 25, 659, 5061, 72, 449, 364, 19524, 21689, 286, 1077, 1102, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_and_set_values() { let key = "key1".to_string(); let value1 = "value1".to_string(); // Fails with invalid key assert_eq!(get_config_value(&key), Err(error::INVALID_CONFIGURATION.code_num)); set_config_value(&key, &value1); assert_eq!(get_conf...
rust_cleaned_test_functions.jsonl/115827
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 8378, 2602, 9146, 368, 341, 286, 1077, 1376, 284, 330, 792, 16, 3263, 983, 3904, 543, 286, 1077, 897, 16, 284, 330, 957, 16, 3263, 983, 3904, 1428, 286, 442, 434, 6209, 448, 8318, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_case_2() { assert_eq!(66, (0..=(5_i32 - 16_i32).abs()).sum::<i32>()); let input = vec![16, 1, 2, 0, 4, 2, 7, 1, 2, 14]; assert_eq!(168, align_cheapest_2(&input)); }
rust_cleaned_test_functions.jsonl/27455
{ "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, 19096, 62, 17, 368, 341, 286, 2060, 10714, 10297, 21, 21, 11, 320, 15, 496, 4539, 20, 5318, 18, 17, 481, 220, 16, 21, 5318, 18, 17, 568, 3435, 6011, 1242, 27638, 72, 18, 17, 93718, 286, 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_cp_parents_dest_not_directory() { new_ucmd!() .arg("--parents") .arg(TEST_COPY_FROM_FOLDER_FILE) .arg(TEST_HELLO_WORLD_DEST) .fails() .stderr_contains("with --parents, the destination must be a directory"); }
rust_cleaned_test_functions.jsonl/21269
{ "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, 39811, 81719, 25264, 7913, 14846, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 21549, 25456, 1138, 286, 659, 858, 50320, 35556, 27108, 33637, 8087, 340, 286, 659, 858, 50320, 69235, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_split_split_not_uninitialized() { let stake_pubkey = solana_sdk::pubkey::new_rand(); let stake_lamports = 42; let stake_account = AccountSharedData::new_ref_data_with_space( stake_lamports, &StakeState::Stake(Meta::auto(&stake_pubkey), just_stake(s...
rust_cleaned_test_functions.jsonl/87016
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 759 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 17052, 7913, 4907, 36161, 368, 341, 286, 1077, 18279, 34014, 792, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 18279, 907, 309, 3394, 284, 220, 19, 17, 280, 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_multiple() { struct Foo; impl fmt::Debug for Foo { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_struct("Foo") .field("bar", &true) .field("baz", &format_args!("{}/{}", 10, 20)) ...
rust_cleaned_test_functions.jsonl/69309
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 368, 341, 286, 2036, 33428, 401, 286, 11605, 8879, 486, 7939, 369, 33428, 341, 310, 5168, 8879, 2099, 721, 11, 8879, 25, 609, 6984, 8879, 486, 14183, 18291, 62, 9231, 1464, 8879, 486, 207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_apply_content_changes() { let mut content = "a\nb\nc\nd".to_string(); let content_changes = vec![lsp_types::TextDocumentContentChangeEvent { range: Some(lsp_types::Range { start: lsp_types::Position { line: 1, character: 0, }, end: lsp_ty...
rust_cleaned_test_functions.jsonl/39677
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36551, 7495, 47526, 368, 341, 262, 1077, 5206, 2213, 284, 330, 64, 1699, 65, 59, 1016, 59, 303, 3263, 983, 3904, 543, 262, 1077, 2213, 47526, 284, 7486, 20703, 75, 2154, 9763, 486, 1178, 7524, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_closure() { fn field_i(i: usize) -> Ident { format_ident!("__field{}", i) } let fields = (0usize..3) .map(field_i as fn(_) -> _) .map(|var| quote! { #var }); let tokens = quote! { #(#fields)* }; assert_eq!("__field0 __field1 __field2", tokens.to_stri...
rust_cleaned_test_functions.jsonl/53414
{ "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, 72823, 368, 341, 262, 5168, 2070, 5318, 1956, 25, 22301, 8, 1464, 22507, 341, 286, 3561, 38399, 17223, 563, 2566, 42351, 600, 340, 262, 555, 262, 1077, 5043, 284, 320, 15, 51878, 496, 18, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cls_impl() { let gil = Python::acquire_gil(); let py = gil.python(); let ob = Py::new(py, Test {}).unwrap(); py_assert!(py, ob, "ob[1] == 'int'"); py_assert!(py, ob, "ob[100:200:1] == 'slice'"); }
rust_cleaned_test_functions.jsonl/109534
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38656, 21007, 368, 341, 262, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 262, 1077, 4510, 284, 342, 321, 43193, 1428, 262, 1077, 1508, 284, 5355, 486, 931, 46827, 11, 3393, 72727,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from() { assert_eq!(Point3::from([1, 2, 3]), POINT3); { let p = &[1, 2, 3]; let p: &Point3<_> = From::from(p); assert_eq!(p, &POINT3); } { let p = &mut [1, 2, 3]; let p...
rust_cleaned_test_functions.jsonl/45384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 542 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 368, 341, 310, 2060, 10714, 10297, 2609, 18, 486, 1499, 2561, 16, 11, 220, 17, 11, 220, 18, 9719, 46595, 18, 317, 310, 341, 394, 1077, 281, 284, 44590, 16, 11, 220, 17, 11, 220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cdc_extract_rollback_if_gc_fence_set() { let mut suite = TestSuite::new(1); let req = suite.new_changedata_request(1); let (mut req_tx, _, receive_event) = new_event_feed(suite.get_region_cdc_client(1)); block_on(req_tx.send((req, WriteFlags::default()))).unwrap(); let event...
rust_cleaned_test_functions.jsonl/13017
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 7628, 39123, 62, 33559, 11119, 49423, 81073, 2602, 368, 341, 262, 1077, 5206, 16182, 284, 3393, 28000, 486, 931, 7, 16, 626, 262, 1077, 4232, 284, 16182, 4618, 25213, 459, 7893, 7, 16, 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...
9
#[test] fn test_duplicate_query() { check_error( "query=foo&query=bar", vec![Error::from(ErrorKind::Duplicate).with_name("query")], false, ); }
rust_cleaned_test_functions.jsonl/24077
{ "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, 70434, 5738, 368, 341, 286, 1779, 4096, 1006, 310, 330, 1631, 28, 7975, 5, 1631, 28, 2257, 756, 310, 7486, 20703, 1454, 486, 1499, 37396, 10629, 486, 53979, 568, 4197, 1269, 445, 1631, 899, 1259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_x_mask_permutations() { let mut permutations = Vec::new(); x_mask_permutations(0b101001, &mut permutations); assert_eq!(permutations, [0, 1, 8, 9, 32, 33, 40, 41]); }
rust_cleaned_test_functions.jsonl/22250
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 9999, 31961, 82141, 368, 341, 286, 1077, 5206, 71949, 284, 11312, 486, 931, 543, 286, 856, 9999, 31961, 82141, 7, 15, 65, 16, 15, 16, 15, 15, 16, 11, 609, 6984, 71949, 626, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_any_quantified() { let mut reader = ParserInput::new("This is a test"); let result = read_any_quantified(4)(&mut reader); assert_eq!(result, Ok("This")); let result = read_any_quantified(4)(&mut reader); assert_eq!(result, Ok(" is ")); let ...
rust_cleaned_test_functions.jsonl/10086
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 37248, 53346, 1870, 368, 341, 286, 1077, 5206, 6604, 284, 21102, 2505, 486, 931, 445, 1986, 374, 264, 1273, 3071, 286, 1077, 1102, 284, 1349, 37248, 53346, 1870, 7, 19, 8, 2099, 6984, 6604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_with_dquote_quoted_pair() { let mime = Mime::from_str(r#"application/x-custom; title="the \" char""#).unwrap(); assert_eq!(mime.get_param("title").unwrap(), "the \" char"); }
rust_cleaned_test_functions.jsonl/99129
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 83624, 6615, 814, 2949, 11280, 9253, 14445, 368, 341, 286, 1077, 45270, 284, 82430, 486, 1499, 2895, 2601, 55543, 5132, 10776, 36898, 26, 2265, 428, 1782, 7245, 1161, 3014, 2, 568, 15454, 543, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_to_string_succeeds() { set_default_and_enable_test_mode(); let handle = create_new_credentialdef("SourceId".to_string(), CREDENTIAL_DEF_NAME.to_string(), ISSUER_DID.to_string(), ...
rust_cleaned_test_functions.jsonl/67968
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 399 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 3904, 643, 29264, 82, 368, 341, 286, 738, 9993, 8378, 18988, 4452, 7302, 1428, 286, 1077, 3705, 284, 1855, 5921, 666, 30320, 750, 445, 3608, 764, 3263, 983, 3904, 3148, 13463, 356, 81509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_struct_field_missing() { err( " struct Foo { a: int, b: int, } fun f() { Foo { a: 1 }; }", pos(7, 17), Msg::StructFieldNotInitialized("Foo".into(), "b".into...
rust_cleaned_test_functions.jsonl/106646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 5013, 40447, 368, 341, 286, 1848, 1006, 310, 6228, 310, 2036, 33428, 341, 394, 264, 25, 526, 345, 394, 293, 25, 526, 345, 310, 456, 310, 2464, 282, 368, 341, 394, 33428, 314, 264, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_directory_completions() { let input = BashCompletionInput::from("democli sr"); let completions = input.complete_directory(); assert_eq!(vec!["src"], completions); }
rust_cleaned_test_functions.jsonl/103207
{ "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, 14846, 2965, 10819, 908, 368, 341, 286, 1077, 1946, 284, 38530, 33190, 2505, 486, 1499, 445, 27431, 509, 742, 18962, 3071, 286, 1077, 3459, 908, 284, 1946, 42928, 14846, 1428, 286, 2060, 10714, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_theme_selection() { #[derive(PartialEq)] enum Mode { Light, Dark, }; for ( theme_option, bat_theme_env_var, mode_option, expected_theme, expected_mode, ) in vec![ ...
rust_cleaned_test_functions.jsonl/85885
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2515 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19864, 23672, 368, 341, 286, 11506, 27098, 5304, 20894, 27312, 5563, 286, 7618, 14562, 341, 310, 8658, 345, 310, 12258, 345, 286, 2605, 286, 369, 2399, 310, 6912, 9672, 345, 310, 15743, 19864, 158...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encoding_seckey( ) -> Result<(), DataEncodingTestFailure<secp256k1::SecretKey>> { let secp = secp256k1::Secp256k1::new(); static SK_BYTES: [u8; 32] = [ 0x15, 0x2d, 0x1c, 0x97, 0x61, 0xd4, 0x64, 0x66, 0x68, 0xdf, 0xcd, 0xeb, 0x11, 0x98, 0x70, 0x84, 0x4e...
rust_cleaned_test_functions.jsonl/43958
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 439 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 3453, 377, 1195, 1006, 262, 873, 1464, 5714, 68843, 2885, 14690, 2271, 17507, 27, 325, 4672, 17, 20, 21, 74, 16, 486, 19773, 1592, 2452, 341, 286, 1077, 511, 4672, 284, 511, 4672, 17, 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_is_unified() { let storage = StorageReadPoolConfig::default(); assert!(!storage.use_unified_pool()); let coprocessor = CoprReadPoolConfig::default(); assert!(coprocessor.use_unified_pool()); let mut cfg = ReadPoolConfig { storage, ...
rust_cleaned_test_functions.jsonl/55410
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 4907, 1870, 368, 341, 286, 1077, 5819, 284, 14693, 4418, 10551, 2648, 486, 2258, 543, 286, 2060, 0, 3471, 16172, 7397, 4907, 1870, 15709, 1423, 286, 1077, 6162, 40848, 269, 284, 24946, 81, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_with_captured_wildcard_at_root() { allocations::record(|| { let language = get_language("python"); let query = Query::new( language, " ; captured wildcard at the root (_ [ (except_clause (block) @bl...
rust_cleaned_test_functions.jsonl/25181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1736 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 38344, 6615, 666, 80228, 1670, 695, 4951, 3752, 12993, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 12669, 797, 286, 1077, 3239, 284, 11361, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_rng() { let mut rng = Prng::new(b"foo", b"bar!"); let r1: [u8; 32] = [ 155, 11, 21, 97, 252, 65, 160, 190, 100, 126, 85, 251, 47, 73, 160, 49, 216, 182, 93, 30, 185, 67, 166, 22, 34, 10, 213, 112, 21, 136, 49, 214, ]; let r2: [u8; 32] = [ ...
rust_cleaned_test_functions.jsonl/95247
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 610 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66849, 368, 341, 286, 1077, 5206, 28422, 284, 2340, 968, 486, 931, 1883, 1, 7975, 497, 293, 1, 2257, 11142, 286, 1077, 435, 16, 25, 508, 84, 23, 26, 220, 18, 17, 60, 284, 2278, 310, 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...
1
#[test] fn test_template() { println!( "Parsed {:#?}", parse!(template, "template(emea.events\\[2019\\].clicks)") ); println!( "Parsed {:#?}", parse!( template, "template(emea.events\\[2019\\].clicks,skip_emp...
rust_cleaned_test_functions.jsonl/130542
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 685 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8693, 368, 341, 286, 13751, 33673, 310, 330, 82959, 314, 14111, 30, 24375, 310, 4715, 10297, 4214, 11, 330, 4214, 7, 3894, 64, 18133, 3422, 58, 17, 15, 16, 24, 3422, 936, 3678, 82, 19107, 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_lookup_ipv4_like() { let authority = create_ip_like_example(); let mut catalog = Catalog::new(); catalog.upsert(authority.origin().clone(), Box::new(authority)); let mut io_loop = Runtime::new().unwrap(); let (stream, sender) = TestClientStream::new(Arc::new(Mutex::new(catal...
rust_cleaned_test_functions.jsonl/21985
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 472 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27464, 49378, 19, 25535, 368, 341, 262, 1077, 11198, 284, 1855, 10385, 25535, 39304, 543, 262, 1077, 5206, 16403, 284, 31221, 486, 931, 543, 262, 16403, 17652, 6047, 48269, 487, 20248, 1005, 19982, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_and_eq() { let mut rec0 = VersRec::default(); rec0.countryCode = 14; let random_string = b"Hello, world!A)R\xE2Q$"; for i in 0..random_string.len() { rec0.shortVersion[i] = random_string[i]; } let rec1 = rec0.clone(); ...
rust_cleaned_test_functions.jsonl/42767
{ "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, 54742, 8378, 10714, 368, 972, 286, 1077, 5206, 1395, 15, 284, 24209, 3820, 486, 2258, 1647, 286, 1395, 15, 33324, 2078, 284, 220, 16, 19, 1926, 286, 1077, 4194, 3904, 284, 293, 1, 9707, 11, 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...
2
#[test] fn test_preboot_load_snap_disallowed_after_boot_resources() { // Verify LoadSnapshot not allowed after configuring various boot-specific resources. let req = VmmAction::ConfigureBootSource(BootSourceConfig::default()); verify_load_snap_disallowed_after_boot_resources(req, "Config...
rust_cleaned_test_functions.jsonl/44549
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 793 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10442, 4619, 12411, 74175, 9932, 20967, 19844, 52062, 35569, 368, 341, 286, 442, 25429, 8893, 15009, 537, 5420, 1283, 71783, 5257, 10459, 18906, 4963, 624, 286, 1077, 4232, 284, 647, 3821, 2512, 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_last_child() { let node = div(); assert!(node.last_child().is_none()); let child1 = div(); node.append_child(&child1); assert_eq!(node.last_child().unwrap().as_ref(), child1.as_ref()); let child2 = div(); node.append_child(&child2); ...
rust_cleaned_test_functions.jsonl/33756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12195, 17268, 368, 341, 286, 1077, 2436, 284, 3429, 543, 286, 2060, 10297, 3509, 9110, 17268, 1005, 285, 31488, 5231, 286, 1077, 1682, 16, 284, 3429, 543, 286, 2436, 2057, 17268, 2099, 3048, 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_shrink_all_slots_none() { for startup in &[false, true] { let accounts = AccountsDb::new_single_for_tests(); for _ in 0..10 { accounts.shrink_candidate_slots(); } accounts.shrink_all_slots(*startup, None); } }
rust_cleaned_test_functions.jsonl/7003
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 34365, 5705, 54161, 31488, 368, 341, 286, 369, 20567, 304, 44590, 3849, 11, 830, 60, 341, 310, 1077, 9618, 284, 40655, 7994, 486, 931, 19487, 5478, 32509, 1428, 310, 369, 716, 304, 220, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_lazy_groupby_cast() { let df = df! { "a" => ["a", "a", "a", "b", "b", "c"], "b" => [1, 2, 3, 4, 5, 6] } .unwrap(); // test if it runs in groupby context let _out = df .lazy() .groupby(vec![col("a")]) .agg(vec![col("b").mean().cast(Data...
rust_cleaned_test_functions.jsonl/22389
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 6288, 1694, 5303, 368, 341, 262, 1077, 6764, 284, 6764, 0, 341, 286, 330, 64, 1, 589, 4383, 64, 497, 330, 64, 497, 330, 64, 497, 330, 65, 497, 330, 65, 497, 330, 66, 8097, 286, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_meta_api_v2() { let cases = vec![ // only deletion flag. (&b""[..], None, true, &[2][..]), (&b""[..], None, false, &[0][..]), // deletion flag with value. (&b""[..], Some(2), true, &[0, 0, 0, 0, 0, 0, 0, 2, 3][..]), ...
rust_cleaned_test_functions.jsonl/71719
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 572 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13381, 11697, 2273, 17, 368, 341, 1789, 286, 1077, 5048, 284, 7486, 90515, 310, 442, 1172, 36066, 5181, 624, 310, 15899, 65, 3014, 95874, 1125, 2240, 11, 830, 11, 44590, 17, 1457, 496, 17036, 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...
7
#[test] fn test_eh_frame_hdr_varlen_table() { let section = Section::with_endian(Endian::Little) .L8(1) .L8(0x0b) .L8(0x03) .L8(0x01) .L32(0x12345) .L32(2); let section = section.get_contents().unwrap(); let bases = ...
rust_cleaned_test_functions.jsonl/9376
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 421 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 71, 8929, 28238, 4612, 2892, 5237, 368, 341, 286, 1077, 3772, 284, 11113, 486, 4197, 87193, 7, 43231, 486, 38103, 340, 310, 659, 43, 23, 7, 16, 340, 310, 659, 43, 23, 7, 15, 87, 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_for_loop_with_specified_next_counter_lower_case() { let input = " FOR i% = 1 TO 5 PRINT i% NEXT I% "; assert_prints!(input, "1", "2", "3", "4", "5"); }
rust_cleaned_test_functions.jsonl/64161
{ "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, 5478, 17198, 6615, 13594, 1870, 11257, 15730, 30425, 19096, 368, 341, 262, 1077, 1946, 284, 6228, 262, 4613, 600, 4, 284, 220, 16, 5146, 220, 20, 198, 286, 35893, 600, 13744, 262, 45011, 358, 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_minus_one_squared() { let mut minus_one = Z25519::from(0) - Z25519::from(1); minus_one.square(); assert_eq!(minus_one, 1.into()); }
rust_cleaned_test_functions.jsonl/64949
{ "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, 38457, 11667, 54641, 368, 341, 286, 1077, 5206, 27283, 11667, 284, 1863, 17, 20, 20, 16, 24, 486, 1499, 7, 15, 8, 481, 1863, 17, 20, 20, 16, 24, 486, 1499, 7, 16, 317, 286, 27283, 11667, 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
#[test] fn test_string_as_string() { test_none_with_ctx_and_extra(cast_string_as_string); let test_vec_1 = Vec::from(b"".as_ref()); let test_vec_2 = (0..1024).map(|_| b'0').collect::<Vec<u8>>(); let cs: Vec<(BytesRef, Vec<u8>, String)> = vec![ ( test...
rust_cleaned_test_functions.jsonl/1973
{ "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, 3904, 11898, 3904, 368, 341, 286, 1273, 31488, 6615, 15147, 8378, 31858, 1337, 559, 3904, 11898, 3904, 626, 286, 1077, 1273, 13251, 62, 16, 284, 11312, 486, 1499, 1883, 69355, 300, 7793, 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_render_context_promotion_and_demotion() { use crate::json::value::to_json; let mut render_context = RenderContext::new(None); let mut block = BlockContext::new(); block.set_local_var("index", to_json(0)); render_context.push_block(block); render_context.push_block(Block...
rust_cleaned_test_functions.jsonl/15109
{ "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, 22781, 8467, 47877, 5956, 8378, 69403, 5956, 368, 341, 262, 990, 17717, 486, 2236, 486, 957, 486, 983, 9455, 280, 262, 1077, 5206, 3141, 8467, 284, 13848, 1972, 486, 931, 26717, 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...
1
#[test] fn test_is_ascii_uppercase() { assert_all!(is_ascii_uppercase, "", "ABCDEFGHIJKLMNOQPRSTUVWXYZ", ); assert_none!(is_ascii_uppercase, "abcdefghijklmnopqrstuvwxyz", "0123456789", "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~", ...
rust_cleaned_test_functions.jsonl/35075
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 425 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 50238, 34445, 5638, 368, 341, 286, 2060, 5705, 10297, 285, 50238, 34445, 5638, 345, 310, 8324, 310, 330, 71286, 70518, 8996, 48, 6480, 784, 22246, 70226, 756, 286, 1439, 286, 2060, 31488, 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_idle_timeout_catches_delayed_idle() { let (clock, mock) = Clock::mock(); let recorder = PrometheusBuilder::new() .idle_timeout(MetricKindMask::ALL, Some(Duration::from_secs(10))) .build_with_clock(clock); let key = Key::from_name("basic_counter")...
rust_cleaned_test_functions.jsonl/48732
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 567 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47810, 20537, 666, 9118, 22198, 291, 47810, 368, 341, 286, 1077, 320, 20666, 11, 7860, 8, 284, 26142, 486, 16712, 1428, 286, 1077, 48835, 284, 97137, 3297, 486, 931, 741, 310, 659, 47273, 20537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_str_by_value() { let cxx = indoc! {" std::string get_str() { return \"hello\"; } "}; let hdr = indoc! {" #include <string> std::string get_str(); "}; let rs = quote! { assert_eq!(ffi::get_str().as_ref().unwrap(), "hello"...
rust_cleaned_test_functions.jsonl/9749
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 2895, 3710, 3142, 368, 341, 262, 1077, 272, 4146, 284, 1257, 509, 0, 314, 698, 286, 1460, 486, 917, 633, 2895, 368, 341, 310, 470, 7245, 14990, 59, 876, 286, 456, 262, 330, 2440, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_key_length_is_16() { let key = Some("0123456789ABCDEF"); assert!(verify_key(key).is_ok()); }
rust_cleaned_test_functions.jsonl/39159
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 5118, 6892, 62, 16, 21, 368, 341, 286, 1077, 1376, 284, 4329, 445, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25411, 13649, 797, 286, 2060, 10297, 12446, 3097, 4857, 568, 285, 19817, 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
#[test] fn test_key_management_threshold() { KeysManagerTest::new(ALICE) .set_key_weight(ALICE, Weight::new(3)) .assert_success_status_and_commit() .set_key_management_threshold(3) .assert_success_status_and_commit() .assert_keys(vec![(ALICE, Weight::new(3))]) ...
rust_cleaned_test_functions.jsonl/96213
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 45363, 21858, 368, 341, 262, 24133, 2043, 2271, 486, 931, 46232, 5487, 340, 286, 659, 746, 3097, 15876, 46232, 5487, 11, 16516, 486, 931, 7, 18, 1171, 286, 659, 2207, 18632, 4773, 8378, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_streaming_pipeline_framed() { if false { let addr = "0.0.0.0:12345".parse().unwrap(); TcpServer::new(PipelineProto, addr) .serve(|| Ok(TestService)); } }
rust_cleaned_test_functions.jsonl/102964
{ "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, 12673, 287, 45187, 761, 2396, 291, 368, 341, 9401, 262, 421, 895, 341, 286, 1077, 10789, 284, 330, 15, 13, 15, 13, 15, 13, 15, 25, 16, 17, 18, 19, 20, 3263, 6400, 1005, 15454, 543, 286, 64...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_defaults() -> Result<(), String> { let vec = vec!["presign", "--bucket-name", "mybucket", "--file", "foo.txt"]; let args = Cli::from_iter(vec.iter()); assert_eq!(args.bucket_name, "mybucket"); assert_eq!(args.expiration, 3600); assert_eq!(args.file, "foo.t...
rust_cleaned_test_functions.jsonl/5087
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42290, 368, 1464, 5714, 68843, 923, 29, 341, 286, 1077, 7486, 284, 7486, 0, 1183, 23623, 622, 497, 14482, 30410, 11494, 497, 330, 2408, 30410, 497, 14482, 1192, 497, 330, 7975, 3909, 6332, 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_snapshot_store_get() { let key_num = 100; let store = TestStore::new(key_num); let snapshot_store = store.store(); let mut statistics = Statistics::default(); for key in &store.keys { let key = key.as_bytes(); let data = snapshot_st...
rust_cleaned_test_functions.jsonl/7569
{ "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, 53265, 14809, 3062, 368, 341, 286, 1077, 1376, 4273, 284, 220, 16, 15, 15, 280, 286, 1077, 3553, 284, 3393, 6093, 486, 931, 4857, 4273, 317, 286, 1077, 16295, 14809, 284, 3553, 16114, 543, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_rpc_request_processor_new() { let bob_pubkey = Pubkey::new_rand(); let exit = Arc::new(AtomicBool::new(false)); let (bank_forks, alice) = new_bank_forks(); let bank = bank_forks.read().unwrap().working_bank(); let request_processor = JsonRpcRequestProcesso...
rust_cleaned_test_functions.jsonl/20295
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 393 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 7893, 50127, 5921, 368, 341, 286, 1077, 35192, 34014, 792, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 4869, 284, 19689, 486, 931, 7, 65857, 11233, 486, 931, 3576, 1106, 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...
2
#[test] fn test_verified_vote_packets_receive_and_process_vote_packets_max_len() { let (s, r) = unbounded(); let vote_account_key = solana_sdk::pubkey::new_rand(); // Construct the buffer let mut verified_vote_packets = VerifiedVotePackets(HashMap::new()); // Send many ...
rust_cleaned_test_functions.jsonl/22007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 649 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71871, 54360, 63569, 38557, 8378, 11305, 54360, 63569, 6345, 6043, 368, 341, 286, 1077, 320, 82, 11, 435, 8, 284, 650, 65686, 543, 286, 1077, 6910, 13500, 3097, 284, 2048, 3362, 61783, 486, 9585, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_e2e_empty_just_flush() { use super::ItemVecAllocator; use brotli; use divans::{DivansCompressorFactory, Compressor}; use divans; let m8 = ItemVecAllocator::<u8>::default(); let mut obuffer= [0u8;64]; let opts = divans::DivansCompressorOptions::default(); let mut ...
rust_cleaned_test_functions.jsonl/19829
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1594 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 17, 68, 15124, 62, 4250, 39213, 368, 341, 262, 990, 2256, 486, 1234, 10050, 42730, 280, 262, 990, 2896, 83, 742, 280, 262, 990, 3429, 596, 22964, 12509, 596, 1092, 56220, 4153, 11, 1198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unknown_context_specific() { let bytes = hex!("80 01 00"); let res = parse_ber(&bytes).expect("parsing failed"); assert!(res.0.is_empty()); assert_eq!( res.1, BerObject { class: 2, structured: 0, tag: BerTag(0), cont...
rust_cleaned_test_functions.jsonl/73528
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57507, 8467, 56592, 368, 341, 262, 1077, 5820, 284, 12371, 17223, 23, 15, 220, 15, 16, 220, 15, 15, 797, 262, 1077, 592, 284, 4715, 88165, 2099, 9651, 568, 17119, 445, 79, 28598, 4641, 797, 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...
1
#[test] fn test_zeros_to_file() { let tname = "zero-256k"; let test_fn = format!("{}.txt", tname); let tmp_fn = format!("TESTFILE-{}.tmp", &tname); assert_fixture_exists!(test_fn); let (fix, mut ucmd) = at_and_ucmd!(); ucmd.args(&["status=none", inf!(test_fn), of!(tmp_fn)]) .run...
rust_cleaned_test_functions.jsonl/59398
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 83761, 2346, 2458, 368, 341, 262, 1077, 259, 606, 284, 330, 14154, 12, 17, 20, 21, 74, 876, 262, 1077, 1273, 15246, 284, 3561, 17223, 46391, 8586, 497, 259, 606, 317, 262, 1077, 4174, 15246, 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_aligner_new() { let x = b"ACCGTGGAT"; let y = b"AAAAACCGTTGAT"; let score = |a: u8, b: u8| if a == b { 1i32 } else { -1i32 }; let mut aligner = Aligner::new(-5, -1, &score); let alignment = aligner.semiglobal(x, y); assert_eq!(alignment.ystart, 4)...
rust_cleaned_test_functions.jsonl/16846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 537 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37015, 261, 5921, 368, 341, 286, 1077, 856, 284, 293, 1, 1706, 8798, 51, 22254, 828, 876, 286, 1077, 379, 284, 293, 1, 25699, 1706, 8798, 14903, 38, 828, 876, 286, 1077, 5456, 284, 760, 64, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_struct() { #[derive(CheckBytes, Debug)] struct Test { a: u32, b: bool, c: char, } let value = Test { a: 42, b: true, c: 'x', }; check_as_bytes(&value, &mut ()); unsa...
rust_cleaned_test_functions.jsonl/28476
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1605 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 368, 341, 286, 11506, 27098, 3025, 1227, 7078, 11, 11091, 5563, 286, 2036, 3393, 341, 310, 264, 25, 575, 18, 17, 345, 310, 293, 25, 1807, 345, 310, 272, 25, 1161, 345, 286, 555, 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_address_serialization() { let example_key = SecretConnectionKey::from_raw_ed25519( &hex::decode_upper(EXAMPLE_SECRET_CONN_KEY).unwrap(), ) .unwrap(); assert_eq!( example_key.to_string(), "117C95C4FD7E636C38D303493302D2C271A3966...
rust_cleaned_test_functions.jsonl/62135
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6744, 25602, 2022, 368, 341, 286, 1077, 3110, 3097, 284, 8599, 4526, 1592, 486, 1499, 16067, 32370, 17, 20, 20, 16, 24, 1006, 310, 609, 17308, 486, 18196, 34445, 25409, 18918, 31408, 60376, 6600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fuzz_shrinking() { let compiled = COMPILED.find("GreeterTest").expect("could not find contract"); let (_, code, _) = compiled.into_parts_or_default(); let mut libs = vec![]; let runner = runner(compiled.abi.as_ref().unwrap(), code, &mut libs); ...
rust_cleaned_test_functions.jsonl/50721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 859 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 8889, 3712, 81, 15736, 368, 341, 310, 1077, 19697, 284, 7682, 1893, 13639, 2658, 445, 64747, 1404, 2271, 1827, 17119, 445, 28077, 537, 1477, 5116, 797, 310, 1077, 39464, 2038, 11, 27439, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sem_as_cvar() { /* Child waits and parent signals */ let (tx, rx) = channel(); let s = Arc::new(Semaphore::new(0)); let s2 = s.clone(); let _t = Thread::spawn(move|| { s2.acquire(); tx.send(()).unwrap(); }); s.releas...
rust_cleaned_test_functions.jsonl/13026
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 363 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30442, 11898, 666, 947, 368, 341, 286, 1391, 9391, 46936, 323, 2681, 17289, 735, 286, 1077, 320, 3998, 11, 19111, 8, 284, 5496, 543, 286, 1077, 274, 284, 19689, 486, 931, 3759, 336, 25545, 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...
3
#[test] fn test_call_frame_instruction_iter_err() { // DW_CFA_advance_loc1 without an operand. let section = Section::with_endian(Endian::Big).D8(constants::DW_CFA_advance_loc1.0); let contents = section.get_contents().unwrap(); let input = EndianSlice::new(&contents, BigEndian)...
rust_cleaned_test_functions.jsonl/9342
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 417 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 8929, 54923, 11723, 9266, 368, 341, 286, 442, 37752, 920, 3627, 98093, 13400, 16, 2041, 458, 27213, 624, 286, 1077, 3772, 284, 11113, 486, 4197, 87193, 7, 43231, 486, 15636, 568, 35, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_buffer_enqueue_many_with() { let mut ring = RingBuffer::new(vec![b'.'; 12]); assert_eq!( ring.enqueue_many_with(|buf| { assert_eq!(buf.len(), 12); buf[0..2].copy_from_slice(b"ab"); (2, true) }), ...
rust_cleaned_test_functions.jsonl/37263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1032 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 28395, 22101, 6615, 368, 341, 286, 1077, 5206, 10058, 284, 21525, 4095, 486, 931, 25592, 20703, 65, 6, 3159, 26, 220, 16, 17, 10149, 286, 2060, 10714, 33673, 310, 10058, 47468, 22101, 6615, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_doublesymbols() { let input = "!=x==y>=z<=r"; let expected = vec![ Token::NotEqual, Token::Ident("x".to_string()), Token::Equal, Token::Ident("y".to_string()), Token::GE, Token::Ident("z".to_string()), ...
rust_cleaned_test_functions.jsonl/28384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 282 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 85613, 11786, 368, 341, 286, 1077, 1946, 284, 330, 5824, 87, 418, 88, 9922, 89, 8203, 81, 876, 286, 1077, 3601, 284, 7486, 90515, 310, 9660, 486, 2623, 2993, 345, 310, 9660, 486, 28301, 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_initialize_cheaptrick_option() { let fs = 44100; let option = CheapTrickOption::new(fs); assert_eq!(option, CheapTrickOption { q1: -0.15, f0_floor: 71.0, fft_size: 2048 }); }
rust_cleaned_test_functions.jsonl/20833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40889, 62, 61690, 376, 865, 9672, 368, 341, 286, 1077, 8619, 257, 284, 220, 19, 19, 16, 15, 15, 280, 286, 1077, 2999, 284, 35934, 1282, 865, 5341, 486, 931, 31856, 317, 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_dispatch_heap_zero_copy_bufs() { let (mut isolate, dispatch_count) = setup(Mode::AsyncZeroCopy(5)); js_check(isolate.execute( "filename.js", r#" let zero_copy_a = new Uint8Array([0]); let zero_copy_b = new Uint8Array([1]); let zero_copy_c = new Uint8Ar...
rust_cleaned_test_functions.jsonl/23802
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42991, 33059, 19359, 16096, 10363, 82, 368, 341, 262, 1077, 320, 6984, 42123, 11, 6845, 3180, 8, 284, 6505, 3189, 534, 486, 6525, 17999, 12106, 7, 20, 1106, 262, 6994, 7200, 82669, 7769, 1006, 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_for_loop() { let mut c = Compiler::new("<unknown>", ""); c.add(Instruction::Lookup("items")); c.start_for_loop(true, false); c.add(Instruction::Emit); c.end_for_loop(false); c.add(Instruction::EmitRaw("!")); insta::assert_debug_snapshot!(&c); }
rust_cleaned_test_functions.jsonl/34186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5478, 17198, 368, 341, 262, 1077, 5206, 272, 284, 45631, 486, 931, 9639, 16088, 21156, 14498, 262, 272, 1364, 7, 16664, 486, 34247, 445, 3615, 4010, 262, 272, 4962, 5478, 17198, 3715, 11, 895, 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_and_with_multiple_gt_parse() { let name1 = _random_string(10); let value1 = _random_string(10); let name2 = _random_string(10); let value2 = _random_string(10); let name3 = _random_string(10); let value3 = _random_string(10); let json = fo...
rust_cleaned_test_functions.jsonl/11837
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 730 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 6615, 45233, 37479, 21039, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 829, 17, 284, 716,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unknown_attribute_string_value() { let schemaReplicant = SchemaReplicant::default(); let causetq = r#"[:find ?x :where [?x _ "horses"]]"#; let SQLCausetQ { allegrosql, args } = translate(&schemaReplicant, causetq); assert_eq!(allegrosql, "SELECT DISTINCT `all_Causets0...
rust_cleaned_test_functions.jsonl/90697
{ "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, 57507, 16791, 3904, 3142, 368, 341, 262, 1077, 10802, 18327, 35237, 284, 12539, 18327, 35237, 486, 2258, 1428, 262, 1077, 2162, 18187, 80, 284, 435, 55543, 3447, 3903, 937, 87, 549, 2870, 508, 30,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sound() { let program = Program::load( "set a 1\n\ add a 2\n\ mul a a\n\ mod a 5\n\ snd a\n\ set a 0\n\ rcv a\n\ jgz a -1\n\ set a 1\n\ jgz a -2", ); assert_eq!(program.execute_sound(), 4); }
rust_cleaned_test_functions.jsonl/34180
{ "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, 37676, 368, 341, 262, 1077, 2025, 284, 6687, 486, 1078, 1006, 286, 330, 746, 264, 220, 16, 1699, 5661, 260, 912, 264, 220, 17, 1699, 5661, 260, 15602, 264, 264, 1699, 5661, 260, 1463, 264, 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_response_incomplete() { let raw_response = "250-smtp.example.org\r\n"; let res = parse_response(raw_response); match res { Err(nom::Err::Incomplete(_)) => {} _ => panic!("Expected incomplete response, got {:?}", res), } }
rust_cleaned_test_functions.jsonl/10045
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 1243, 14737, 368, 341, 286, 1077, 7112, 9655, 284, 330, 17, 20, 15, 4668, 790, 7724, 2659, 12016, 1699, 876, 286, 1077, 592, 284, 4715, 9655, 22460, 9655, 317, 286, 2432, 592, 341, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_rectangle() { let r = Rectangle::new(10, 10, 50, 50); assert_eq!(r, Rectangle::new(10, 10, 50, 50)); }
rust_cleaned_test_functions.jsonl/97935
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 67 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61847, 368, 972, 262, 1077, 435, 284, 19280, 486, 931, 7, 16, 15, 11, 220, 16, 15, 11, 220, 20, 15, 11, 220, 20, 15, 736, 262, 2060, 10714, 10297, 81, 11, 19280, 486, 931, 7, 16, 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
#[test] fn test_mkfifoat() { let tempdir = tempfile::tempdir().unwrap(); let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); let mkfifoat_name = "mkfifoat_name"; mkfifoat(Some(dirfd), mkfifoat_name, Mode::S_IRUSR).unwrap(); let stats = stat::fstatat(dirfd, mkfifoat_na...
rust_cleaned_test_functions.jsonl/30591
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64861, 74031, 266, 368, 341, 262, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 262, 1077, 5419, 6902, 284, 1787, 9758, 3741, 3875, 1507, 3008, 13363, 486, 3194, 1507, 14562, 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_number_parsing_errors() { let te = TestEnv::new(&[], &[]); te.assert_failure(&["--threads=a"]); te.assert_failure(&["-j", ""]); te.assert_failure(&["--threads=0"]); te.assert_failure(&["--min-depth=a"]); te.assert_failure(&["--max-depth=a"]); te.assert_failure(&["--...
rust_cleaned_test_functions.jsonl/65636
{ "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, 5500, 620, 28598, 20196, 368, 341, 262, 1077, 1013, 284, 3393, 14359, 486, 931, 2099, 12995, 609, 1294, 626, 262, 1013, 3713, 43618, 2099, 1183, 313, 27286, 24239, 15049, 262, 1013, 3713, 43618, 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_max_height_for_leader() { let bootstrap_leader_keypair = Keypair::new(); let bootstrap_leader_id = bootstrap_leader_keypair.pubkey(); let bootstrap_height = 500; let leader_rotation_interval = 100; let seed_rotation_interval = 2 * leader_rotation_interval;...
rust_cleaned_test_functions.jsonl/18358
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 9561, 5478, 79991, 368, 341, 286, 1077, 26925, 79991, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 26925, 79991, 842, 284, 26925, 79991, 3097, 12670, 47773, 792, 543, 286, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_x() { assert_decompressed_input_matches_output(include_bytes!("../../testdata/x.compressed"), include_bytes!("../../testdata/x"), 65536, 65536); }
rust_cleaned_test_functions.jsonl/26460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 368, 341, 220, 2060, 2259, 45703, 5898, 38344, 7645, 77863, 12524, 17223, 2748, 92425, 10776, 905, 14318, 4461, 14265, 2924, 12524, 17223, 2748, 92425, 10776, 4461, 14265, 220, 21, 20, 20, 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
#[test] fn test_namespaces_and_names() { let schema = Schema::from_str( r#"{"type": "fixed", "namespace": "namespace", "name": "name", "size": 1}"#, ) .unwrap(); assert_eq!(schema.named.len(), 1); assert_eq!( schema.named[0].name, ...
rust_cleaned_test_functions.jsonl/23013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4066 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9187, 27338, 8378, 9187, 368, 341, 1789, 286, 1077, 10802, 284, 12539, 486, 1499, 2895, 1006, 310, 435, 55543, 4913, 1313, 788, 330, 22021, 497, 330, 2231, 788, 330, 2231, 497, 330, 606, 788, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_explode() { let arbitrary = 0; assert_eq!( explode(&vec![(arbitrary, "ab")]), vec![(arbitrary, 'a'), (arbitrary, 'b')] ) }
rust_cleaned_test_functions.jsonl/58629
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2702, 70744, 368, 341, 310, 1077, 24168, 284, 220, 15, 280, 310, 2060, 10714, 33673, 394, 15758, 2099, 4083, 0, 9697, 277, 87851, 11, 330, 370, 899, 17036, 394, 7486, 0, 9697, 277, 87851, 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
#[test] fn test_circuit_error_handler_service() { // Set up disptacher and mock sender let sender = Box::new(MockSender::default()); let mut dispatcher = Dispatcher::new(sender.box_clone()); // Add circuit and service to splinter state let circuit = Circuit::builder() ...
rust_cleaned_test_functions.jsonl/93793
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1640 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 37268, 4096, 10183, 12267, 368, 341, 286, 442, 2573, 705, 827, 417, 11007, 323, 7860, 4646, 198, 286, 1077, 4646, 284, 8261, 486, 931, 66436, 20381, 486, 2258, 1423, 286, 1077, 5206, 38799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty_drained_market() { let mut jump_model = JumpModel::new_model( FixedU128::from_float(0.01), FixedU128::from_float(0.11), FixedU128::from_float(0.31), Percent::zero(), ) .unwrap(); let borrow_rate = jump_model .get_borrow_rate(Percent::zero()) .expect("borrow rate m...
rust_cleaned_test_functions.jsonl/99033
{ "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, 15124, 26680, 2627, 68725, 368, 341, 197, 10217, 5206, 7784, 5047, 284, 28788, 1712, 486, 931, 5047, 1006, 298, 12727, 3286, 52, 16, 17, 23, 486, 1499, 17586, 7, 15, 13, 15, 16, 1326, 298, 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_not_expired() { let key_set = KeyStore::new(); let jwk = key_set.decode(TOKEN).unwrap(); let time = SystemTime::UNIX_EPOCH + Duration::new(TIME_EXP - 1, 0); assert!(!jwk.expired_time(time).unwrap()); }
rust_cleaned_test_functions.jsonl/124813
{ "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, 7913, 80221, 368, 341, 286, 1077, 1376, 2602, 284, 5309, 6093, 486, 931, 1428, 286, 1077, 502, 50522, 284, 1376, 2602, 15922, 4140, 12900, 568, 15454, 1428, 286, 1077, 882, 284, 739, 1462, 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_count_sep() { init(); let p1 = elm_ref(b'a'); let p2 = elm_ref(b','); let p = p1.map(|e| *e).of_count_sep(3, p2); let r = p.parse_as_result(b"a,a,a").unwrap(); assert_eq!(r, vec![b'a', b'a', b'a']); }
rust_cleaned_test_functions.jsonl/16791
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3180, 54775, 368, 341, 262, 2930, 543, 262, 1077, 281, 16, 284, 42205, 7793, 1883, 25184, 1157, 262, 1077, 281, 17, 284, 42205, 7793, 1883, 516, 1157, 262, 1077, 281, 284, 281, 16, 4770, 22428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let mut p = EdgeProperties::default(); p.bike_forward = BIKE_LANE; p.normalize(); assert_eq!(BIKE_LANE, p.bike_backward); p.bike_forward = BIKE_ALLOWED; p.normalize(); assert_eq!(BIKE_LANE, p.bike_backward); p.car_forward = CAR_SECONDARY; p.car_...
rust_cleaned_test_functions.jsonl/62184
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80807, 368, 341, 262, 1077, 5206, 281, 284, 10349, 7903, 486, 2258, 543, 262, 281, 948, 2970, 32121, 284, 47053, 3390, 68488, 280, 262, 281, 44657, 543, 262, 2060, 10714, 10297, 8598, 3390, 68488,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_check_memory_locks() { let engine = TestEngineBuilder::new().build().unwrap(); let read_pool = ReadPool::from(build_read_pool_for_test( &CoprReadPoolConfig::default_for_test(), engine, )); let cm = ConcurrencyManager::new(1.into()); ...
rust_cleaned_test_functions.jsonl/83663
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 790 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 19195, 9818, 82, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 1349, 15709, 284, 4457, 10551, 486, 1499, 43333, 6443, 15709, 5478, 4452...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_from_put_snapshot() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); let body = "{ \ \"snapshot_path\": \"foo\", \ \"mem_file_path\": \"bar\", \ \"version\": \"0.23.0\" ...
rust_cleaned_test_functions.jsonl/106586
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 525 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 15557, 53265, 368, 341, 286, 1077, 320, 6984, 4646, 11, 13964, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 5206, 3633, 284, 4823, 4526, 486, 931, 78126, 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_request_with_high_priority() { let builder = PlainNotificationBuilder::new("test"); let payload = builder.build( "a_test_id", NotificationOptions { apns_priority: Some(Priority::High), ..Default::default() }, ...
rust_cleaned_test_functions.jsonl/109651
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 6615, 22680, 38161, 368, 341, 286, 1077, 7363, 284, 43199, 11196, 3297, 486, 931, 445, 1944, 3071, 286, 1077, 7729, 284, 7363, 13239, 1006, 310, 330, 64, 4452, 842, 756, 310, 16571, 3798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_non_ascii_space() { // Check ASCII space assert_eq!(is_non_ascii_space(SPACE), false); // Check character not in `Space_Separator` general category assert_eq!(is_non_ascii_space('a'), false); // Check character in `Space_Separator` that is not `0x0020...
rust_cleaned_test_functions.jsonl/124158
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 21637, 50238, 14663, 368, 341, 286, 442, 4248, 39316, 3550, 198, 286, 2060, 10714, 10297, 285, 21637, 50238, 14663, 3759, 23383, 701, 895, 626, 286, 442, 4248, 3668, 537, 304, 1565, 9914, 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_btreemap_encode() { let mut map = BTreeMap::new(); let value = vec![54, 20, 21, 200]; let key1 = vec![0]; let key2 = vec![0, 6]; let key3 = vec![1]; let key4 = vec![2]; map.insert(key1.clone(), value.clone()); map.insert(key2.clone(), value.clone()); map.i...
rust_cleaned_test_functions.jsonl/1863
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 503 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 10157, 42040, 11224, 368, 341, 262, 1077, 5206, 2415, 284, 425, 6533, 2227, 486, 931, 543, 262, 1077, 897, 284, 7486, 20703, 20, 19, 11, 220, 17, 15, 11, 220, 17, 16, 11, 220, 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_duration_num_milliseconds() { assert_eq!(Duration::zero().num_milliseconds(), 0); assert_eq!(Duration::milliseconds(1).num_milliseconds(), 1); assert_eq!(Duration::milliseconds(-1).num_milliseconds(), -1); assert_eq!(Duration::microseconds(999).num_milliseconds(),...
rust_cleaned_test_functions.jsonl/976
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25454, 4273, 717, 56194, 368, 341, 286, 2060, 10714, 10297, 12945, 486, 14154, 1005, 2413, 717, 56194, 1507, 220, 15, 317, 286, 2060, 10714, 10297, 12945, 486, 60772, 7, 16, 568, 2413, 717, 56194,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_struct_equal() { let strings: ArrayRef = Arc::new(StringArray::from(vec![ Some("joe"), None, None, Some("mark"), Some("doe"), ])); let ints: ArrayRef = Arc::new(Int32Array::from(vec![ Some(1), ...
rust_cleaned_test_functions.jsonl/46960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 437 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 11478, 368, 341, 286, 1077, 9069, 25, 2910, 3945, 284, 19689, 486, 931, 2242, 1857, 486, 1499, 25592, 90515, 310, 4329, 445, 73, 4644, 4461, 310, 2240, 345, 310, 2240, 345, 310, 4329, 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