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_as_handle() { let hw = RefCell::new(CpuHardware::new()); unsafe { let buf = Buffer::raw(&hw, 1); assert!(ptr::eq(buf.as_handle(), buf.handle)); } }
rust_cleaned_test_functions.jsonl/78622
{ "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, 11898, 10630, 368, 341, 286, 1077, 31256, 284, 8550, 3599, 486, 931, 3025, 5584, 66862, 486, 931, 1423, 286, 19860, 341, 310, 1077, 6607, 284, 10312, 486, 1041, 2099, 27827, 11, 220, 16, 317, 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
#[test] fn test_restart_tower_rollback() { // Test node crashing and failing to save its tower before restart solana_logger::setup_with_default(RUST_LOG_FILTER); // First set up the cluster with 4 nodes let slots_per_epoch = 2048; let node_stakes = vec![10000, 1]; let validator_strings...
rust_cleaned_test_functions.jsonl/98816
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69392, 528, 1202, 62, 33559, 368, 341, 262, 442, 3393, 2436, 45474, 323, 21394, 311, 3581, 1181, 21271, 1573, 17024, 198, 262, 2048, 3362, 27413, 486, 15188, 6615, 9993, 2785, 8553, 8419, 23728, 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...
4
#[test] fn test_loading_atoi() { if cfg!(windows) { return } // The C library does not need to be loaded since it is already linked in let lib = match DynamicLibrary::open(None) { Err(error) => panic!("Could not load self as module: {}", error), ...
rust_cleaned_test_functions.jsonl/125773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 461 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57726, 3752, 6728, 368, 341, 286, 421, 13286, 10297, 27077, 8, 341, 310, 470, 198, 286, 555, 286, 442, 576, 356, 6733, 1558, 537, 1184, 311, 387, 6661, 2474, 432, 374, 2669, 10592, 304, 198, 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...
2
#[test] fn test_is_f64(){ let json_value = from_str("12").unwrap(); assert!(!json_value.is_f64()); let json_value = from_str("-12").unwrap(); assert!(!json_value.is_f64()); let json_value = from_str("12.0").unwrap(); assert!(json_value.is_f64()); let js...
rust_cleaned_test_functions.jsonl/6574
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 761, 21, 19, 3032, 286, 1077, 2951, 3142, 284, 504, 2895, 445, 16, 17, 1827, 15454, 543, 286, 2060, 0, 3471, 2236, 3142, 2079, 761, 21, 19, 5231, 286, 1077, 2951, 3142, 284, 504, 2895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bt_pipein_synthesizes() { let mut uut = rust_hdl_synth::TopWrap::new(BTPipeIn::new(0x80)); uut.uut.ok1.connect(); uut.uut.ready.connect(); uut.connect_all(); rust_hdl_synth::yosys_validate("btpipein", &generate_verilog(&uut)).unwrap(); }
rust_cleaned_test_functions.jsonl/55823
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48626, 41862, 258, 51393, 6375, 4756, 368, 341, 262, 1077, 5206, 575, 332, 284, 23071, 66154, 643, 45809, 486, 5366, 26787, 486, 931, 5349, 4239, 3444, 641, 486, 931, 7, 15, 87, 23, 15, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eq() { test_generic::<i32, _>( vec!["arrow", "arrow", "arrow", "arrow"], vec!["arrow", "parquet", "datafusion", "flight"], eq, vec![true, false, false, false], ) }
rust_cleaned_test_functions.jsonl/64917
{ "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, 10714, 368, 341, 286, 1273, 41232, 27638, 72, 18, 17, 11, 716, 17055, 310, 7486, 0, 1183, 6044, 497, 330, 6044, 497, 330, 6044, 497, 330, 6044, 8097, 310, 7486, 0, 1183, 6044, 497, 330, 1732, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_established_no_ack() { let mut s = socket_established(); send!(s, TcpRepr { seq_number: REMOTE_SEQ + 1, ack_number: None, ..SEND_TEMPL }, Err(Error::Dropped)); }
rust_cleaned_test_functions.jsonl/1725
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18583, 5102, 291, 6536, 48447, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 3624, 10297, 82, 11, 64876, 693, 649, 341, 310, 12981, 5500, 25, 25587, 19158, 50045, 488, 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_two_fields() { let multipart = Multipart::with_body( mock_stream(&[ b"--boundary\r", b"\n", b"Content-Disposition:", b" form-data; name=", b"\"foo\"", b"\r\n\r\n", ...
rust_cleaned_test_functions.jsonl/118935
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 12132, 368, 341, 286, 1077, 68058, 284, 386, 18204, 486, 4197, 14114, 1006, 310, 7860, 12673, 2099, 9640, 394, 293, 74757, 65180, 12016, 756, 394, 293, 11934, 77, 756, 394, 293, 1, 2762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_recursive_struct_hash() { let schema_text = " package rec_test; struct node { int32_t count; node children[count]; }"; let (_, schema) = parser::schema(schema_text).unwrap(); let s = &schema.structs[0].clone(); assert_eq!(struct_base_hash(&s), 0xAC4115EBB8910...
rust_cleaned_test_functions.jsonl/91340
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66242, 15126, 8950, 368, 341, 286, 1077, 10802, 4326, 284, 6228, 1722, 1395, 4452, 280, 1235, 2436, 341, 220, 526, 18, 17, 528, 1760, 280, 220, 2436, 2841, 27537, 935, 26259, 286, 1077, 39464, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_files() { let n = "testfile.xyz".to_string(); let name = n.as_ref(); let env = PosixDiskEnv::new(); assert!(env.open_appendable_file(name).is_ok()); assert!(env.exists(name).unwrap_or(false)); assert_eq!(env.size_of(name).unwrap_or(1), 0)...
rust_cleaned_test_functions.jsonl/75781
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 857 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10931, 368, 341, 286, 1077, 308, 284, 330, 1944, 1192, 55699, 3263, 983, 3904, 543, 286, 1077, 829, 284, 308, 5357, 7793, 543, 286, 1077, 6105, 284, 18876, 941, 47583, 14359, 486, 931, 1428, 178...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_drop_messages_peer_disconnect_a() { do_test_drop_messages_peer_disconnect(0, true); do_test_drop_messages_peer_disconnect(0, false); do_test_drop_messages_peer_disconnect(1, false); do_test_drop_messages_peer_disconnect(2, false); }
rust_cleaned_test_functions.jsonl/16888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29584, 23428, 45159, 67972, 4306, 368, 341, 19935, 4452, 29584, 23428, 45159, 67972, 7, 15, 11, 830, 317, 19935, 4452, 29584, 23428, 45159, 67972, 7, 15, 11, 895, 317, 19935, 4452, 29584, 23428, 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
#[test] fn test_check_latest_ledger_info_timestamp() { let now = SystemTime::now(); let ledger_latest_timestamp_lack = 10; let ledger_latest_timestamp = now .sub(Duration::from_secs(ledger_latest_timestamp_lack)) .duration_since(UNIX_EPOCH) .unwrap() .as_micros() as ...
rust_cleaned_test_functions.jsonl/102720
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 304 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 64880, 38367, 1389, 3109, 23073, 368, 341, 262, 1077, 1431, 284, 739, 1462, 486, 3328, 543, 262, 1077, 46933, 64880, 23073, 907, 473, 284, 220, 16, 15, 401, 262, 1077, 46933, 64880, 23073, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_escape_216() { let hbs = Handlebars::new(); let data = json!({ "FOO": "foo", "BAR": "bar" }); assert_eq!( hbs.render_template(r"\\\\ {{FOO}} {{BAR}} {{FOO}}{{BAR}} {{FOO}}#{{BAR}} {{FOO}}//{{BAR}} {{FOO}}\\{{FOO}} {{FOO}}\\\\{{FOO}}\\\{{FOO}} \\\{{FOO}} ...
rust_cleaned_test_functions.jsonl/102895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21832, 62, 17, 16, 21, 368, 341, 262, 1077, 305, 1279, 284, 13760, 24950, 486, 931, 1428, 262, 1077, 821, 284, 2951, 0, 2262, 286, 330, 3788, 46, 788, 330, 7975, 756, 286, 330, 33065, 788, 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_fix_log_level() { let config = "TRACE DEBUG INFO WARN ERROR".to_string(); let fixed_config = GlobalConfig::fix_log_level(config); assert_eq!(fixed_config, "Trace Debug Info Warning Error"); }
rust_cleaned_test_functions.jsonl/87121
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36060, 5224, 8274, 368, 341, 10217, 2193, 284, 330, 33361, 12657, 30771, 68509, 12874, 3263, 983, 3904, 543, 10217, 8356, 5332, 284, 7962, 2648, 486, 5743, 5224, 8274, 8754, 317, 6948, 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
#[test] fn test_reset() { let input = "\x1B[35mA\x1B[mB"; let ansistring = ANSIParser::default().parse_ansi(input); assert_eq!(ansistring.fragments.as_ref().map(|x| x.len()).unwrap(), 2); assert_eq!(ansistring.stripped(), "AB"); }
rust_cleaned_test_functions.jsonl/92165
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18983, 368, 341, 286, 1077, 1946, 284, 2917, 87, 16, 33, 58, 18, 20, 69265, 3462, 16, 33, 12065, 33, 876, 286, 1077, 8099, 73756, 284, 2100, 50, 3298, 10425, 486, 2258, 1005, 6400, 62, 52067, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_s3_custom_region_toml() { let config = ConfigBuilder::new() .with_log() .with_api() .with_pet() .with_mask() .with_model() .with_metrics() .with_redis() .with_restore() .with_s3() ...
rust_cleaned_test_functions.jsonl/19535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 367 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 18, 15875, 20627, 528, 316, 75, 368, 341, 286, 1077, 2193, 284, 5532, 3297, 486, 931, 741, 310, 659, 4197, 5224, 741, 310, 659, 4197, 11697, 741, 310, 659, 4197, 75963, 741, 310, 659, 419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_textobject_word() { let tests = &[ ( "cursor at beginning of doc", vec![(0, Inside, (0, 6)), (0, Around, (0, 7))], ), ( "cursor at middle of word", vec![ (13, ...
rust_cleaned_test_functions.jsonl/107625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2603 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4326, 1700, 13533, 368, 341, 1789, 286, 1077, 7032, 284, 609, 9640, 310, 2399, 394, 330, 17437, 518, 7167, 315, 4629, 756, 394, 7486, 0, 9697, 15, 11, 27368, 11, 320, 15, 11, 220, 21, 5731, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_convert_range() { assert_eq!( Measure::from_str("5-10 dollars"), convert( Measure::from_str("1-2 whole"), MeasureKind::Money, vec![(Measure::from_str("4 whole"), Measure::from_str("20 dollar"))] ) ...
rust_cleaned_test_functions.jsonl/38589
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 9698, 368, 341, 286, 2060, 10714, 33673, 310, 34104, 486, 1499, 2895, 445, 20, 12, 16, 15, 11192, 4461, 310, 5508, 1006, 394, 34104, 486, 1499, 2895, 445, 16, 12, 17, 4361, 4461, 394, 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_binary_search() { assert_eq!([1i,2,3,4,5].binary_search(&5).ok(), Some(4)); assert_eq!([1i,2,3,4,5].binary_search(&4).ok(), Some(3)); assert_eq!([1i,2,3,4,5].binary_search(&3).ok(), Some(2)); assert_eq!([1i,2,3,4,5].binary_search(&2).ok(), Some(1)); assert...
rust_cleaned_test_functions.jsonl/31841
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1082 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31761, 10716, 368, 341, 286, 2060, 10714, 0, 2561, 16, 72, 11, 17, 11, 18, 11, 19, 11, 20, 936, 25891, 10716, 2099, 20, 568, 562, 1507, 4329, 7, 19, 1106, 286, 2060, 10714, 0, 2561, 16, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_productive() { solana_logger::setup(); let s1 = AccountStorageEntry::new(Path::new("."), 0, 0, 1024); let stores = vec![Arc::new(s1)]; assert!(!AccountsDb::is_shrinking_productive(0, &stores)); let s1 = AccountStorageEntry::new(Path::new("."), 0, 0...
rust_cleaned_test_functions.jsonl/1438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 492 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 34365, 9840, 533, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 274, 16, 284, 8615, 5793, 5874, 486, 931, 33030, 486, 931, 73133, 701, 220, 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...
1
#[test] fn test_curator_tsv() -> Result<(), Error> { let mut rdr = ReaderBuilder::new() .delimiter(b'\t') .from_path("tests/data/import-test/c.tsv")?; rdr.deserialize() .collect::<Result<Vec<MozilliansGroupCurator>, csv::Error>>()?; Ok(()) }
rust_cleaned_test_functions.jsonl/52238
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18956, 850, 528, 3492, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 5206, 66984, 284, 25166, 3297, 486, 931, 741, 310, 659, 58116, 1883, 15777, 83, 1305, 310, 659, 1499, 2638, 445, 23841, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_basic_get_on_mixed_tables() { let _ = env_logger::init(); let parser = TOMLParser::new(); let (parser, _) = parser.parse(TT::get()); // test getting bare key assert_eq!(Value::basic_string("halibut").unwrap(), parser.get_value("fish").unwrap()); // test table key lookup assert_...
rust_cleaned_test_functions.jsonl/122801
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 3062, 4470, 717, 3286, 35632, 368, 341, 220, 1077, 716, 284, 6105, 27413, 486, 2327, 1428, 220, 1077, 6729, 284, 82465, 43, 6570, 486, 931, 543, 220, 1077, 320, 9657, 11, 27439, 284, 6729...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_less_equal_than() { assert_eq!(less_equal_than(&json!(1), &json!(1)), true); assert_eq!(less_equal_than(&json!([1]), &json!("1")), true); assert_eq!(less_equal_than(&json!([1]), &json!("12")), true); assert_eq!(less_equal_than(&json!(2), &json!(1)), false); ...
rust_cleaned_test_functions.jsonl/15403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50747, 11478, 51613, 368, 341, 286, 2060, 10714, 10297, 1717, 11478, 51613, 2099, 2236, 10297, 16, 701, 609, 2236, 10297, 16, 5731, 830, 317, 286, 2060, 10714, 10297, 1717, 11478, 51613, 2099, 2236,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_delete_tunnel_linux() { use std::os::unix::process::ExitStatusExt; use std::process::ExitStatus; use std::process::Output; use KI; let ip_args = &["link", "del", "wg1"]; KI.set_mock(Box::new(move |program, args| { assert_eq!(program, "ip"); assert_eq!(a...
rust_cleaned_test_functions.jsonl/122562
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 274 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11353, 95692, 77463, 368, 341, 262, 990, 1460, 486, 436, 486, 56646, 486, 4630, 486, 15339, 2522, 6756, 280, 262, 990, 1460, 486, 4630, 486, 15339, 2522, 280, 262, 990, 1460, 486, 4630, 486, 509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_word_delimiter_true() { assert!(Navigator::is_word_delimiter('a', ':')); assert!(Navigator::is_word_delimiter(':', 'a')); assert!(Navigator::is_word_delimiter(' ', 'a')); assert!(Navigator::is_word_delimiter('"', 'a')); assert!(Navigator::is_word_delimiter('a', '"')); }
rust_cleaned_test_functions.jsonl/52833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 13533, 18029, 17700, 16082, 368, 341, 262, 2060, 10297, 19994, 486, 285, 13533, 18029, 17700, 492, 64, 516, 13592, 6336, 262, 2060, 10297, 19994, 486, 285, 13533, 18029, 17700, 96580, 364, 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...
1
#[test] fn test_primitive_array_lt_eq_scalar_nulls() { cmp_i64_scalar!( lt_eq_scalar, vec![None, Some(1), Some(2), None, Some(1), Some(2), None, Some(1), Some(2)], 1, vec![None, Some(true), Some(false), None, Some(true), Some(false), None, Some(true), Some...
rust_cleaned_test_functions.jsonl/36025
{ "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, 84087, 3858, 39164, 10714, 41652, 15162, 82, 368, 341, 286, 26089, 5318, 21, 19, 41652, 33673, 310, 25175, 10714, 41652, 345, 310, 7486, 20703, 4064, 11, 4329, 7, 16, 701, 4329, 7, 17, 701, 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, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_version() -> Result<()> { // https://github.com/termoshtt/llvmenv/issues/36 let version = "clang version 6.0.1-svn331815-1~exp1~20180510084719.80 (branches/release_60)"; let (major, minor, patch) = parse_version(version)?; assert_eq!(major, 6); ...
rust_cleaned_test_functions.jsonl/128932
{ "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, 21039, 9438, 368, 1464, 5714, 71698, 341, 286, 442, 3703, 1110, 5204, 905, 14, 4991, 436, 96336, 14, 29042, 3160, 38745, 14, 18, 21, 198, 286, 1077, 2319, 4035, 310, 330, 25380, 2319, 220, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_case_2() { let hkdf = Hkdf { salt: decode( "606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f\ 808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9f\ a0a1a2a3a4a5a6a7a8a9aaabacadaeaf", ).u...
rust_cleaned_test_functions.jsonl/85134
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1043 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 62, 17, 368, 341, 286, 1077, 83381, 2940, 284, 472, 74, 2940, 341, 310, 12021, 25, 16895, 1006, 394, 330, 21, 15, 21, 16, 21, 17, 21, 18, 21, 19, 21, 20, 21, 21, 21, 22, 21, 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_publish_filtered_dhcp_logs_command_failure() { let dhcp: Dhcp = Dhcp::default(); let kafka: Kafka = Kafka::default(); assert_eq!(publish_dhcp_logs(true, ERROR_MESSAGE, dhcp, kafka), ERROR_MESSAGE); }
rust_cleaned_test_functions.jsonl/13567
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58779, 51429, 814, 62169, 42899, 10811, 43618, 368, 341, 286, 1077, 85787, 25, 43227, 4672, 284, 43227, 4672, 486, 2258, 543, 286, 1077, 67852, 25, 57025, 284, 57025, 486, 2258, 543, 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
#[test] fn test_sha1hash_function() -> Result<()> { let tests = vec![ScalarFunctionTest { name: "valid input", columns: vec![Series::from_data(["abc"])], expect: Series::from_data(["a9993e364706816aba3e25717850c26c9cd0d89d"]), error: "", }]; test_scalar_functions("sh...
rust_cleaned_test_functions.jsonl/130771
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48836, 16, 8296, 9174, 368, 1464, 5714, 71698, 341, 262, 1077, 7032, 284, 7486, 20703, 20639, 5152, 2271, 341, 286, 829, 25, 330, 1891, 1946, 756, 286, 8147, 25, 7486, 20703, 25544, 486, 1499, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let (at, mut ucmd) = at_and_ucmd!(); let file_read = |f| { let mut s = String::new(); at.open(f).read_to_string(&mut s).unwrap(); s }; ucmd.args(&["-n", "5", "asciilowercase.txt"]).succeeds(); assert_eq!(file_read("xaa"), "abcde"); asser...
rust_cleaned_test_functions.jsonl/25871
{ "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, 5500, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 1034, 6443, 284, 760, 69, 91, 341, 286, 1077, 5206, 274, 284, 923, 486, 931, 543,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_noto_serif() { run_test( &TEST_DATA, "harfbuzz/good-noto-serif.kn", "noto/NotoSerifKannada-Regular.ttf", &[JOINER_GLYPH_INDEX], 82, ); }
rust_cleaned_test_functions.jsonl/91183
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 2072, 75861, 333, 368, 341, 394, 1598, 4452, 1006, 503, 609, 10033, 7896, 345, 503, 330, 12982, 10798, 8889, 4846, 1386, 29169, 78, 27566, 5202, 77, 756, 503, 330, 1921, 78, 20290, 2072, 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_db_config() { let db = Connection::open_in_memory().unwrap(); let opposite = !db.db_config(DbConfig::SQLITE_DBCONFIG_ENABLE_FKEY).unwrap(); assert_eq!( db.set_db_config(DbConfig::SQLITE_DBCONFIG_ENABLE_FKEY, opposite), Ok(opposite) ); ...
rust_cleaned_test_functions.jsonl/8669
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 454 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8685, 5332, 368, 341, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 1005, 15454, 1428, 286, 1077, 14002, 284, 753, 1999, 7076, 5332, 52169, 2648, 486, 6688, 5991, 1557, 4897, 711, 6373, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_required_headers() { let request = Request::builder() .uri("/") .header("X-Foo", "foo") .body(()) .unwrap(); require_headers(&request, &["X-Foo"]).expect("header present"); require_headers(&request, &["X-Bar"]).expect_err("h...
rust_cleaned_test_functions.jsonl/12136
{ "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, 18743, 26719, 368, 341, 286, 1077, 1681, 284, 6145, 486, 17850, 741, 310, 659, 6070, 61710, 310, 659, 2708, 445, 55, 7276, 2624, 497, 330, 7975, 1138, 310, 659, 2599, 50432, 310, 659, 15454, 543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_struct_field_completion_autoderef() { check_ref_completion( "struct_field_completion_autoderef", r" struct A { the_field: (u32, i32) } impl A { fn foo(&self) { self.<|> } } ...
rust_cleaned_test_functions.jsonl/53643
{ "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, 15126, 5013, 60164, 32808, 347, 43970, 368, 341, 286, 1779, 7793, 60164, 1006, 310, 330, 1235, 5013, 60164, 32808, 347, 43970, 756, 310, 435, 698, 310, 2036, 362, 314, 279, 5013, 25, 320, 84, 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_intersects() { let first_move = Move { start: Point { x: 10, y: 0 }, end: Point { x: 10, y: 50 }, move_type: MoveType::Vertical, }; let valid_point = Point { x: 10, y: 25 }; let invalid_point = Point { x: 15, y: 25 }...
rust_cleaned_test_functions.jsonl/44997
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15318, 54429, 368, 341, 286, 1077, 1156, 17134, 284, 14561, 341, 394, 1191, 25, 5126, 314, 856, 25, 220, 16, 15, 11, 379, 25, 220, 15, 1153, 394, 835, 25, 5126, 314, 856, 25, 220, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_printf_permissions() { use std::fs::File; let temp_dir = Builder::new().prefix("example").tempdir().unwrap(); let temp_dir_path = temp_dir.path().to_string_lossy(); let new_file_name = "newFile"; let file = File::create(temp_dir.path().join(new_file_name)...
rust_cleaned_test_functions.jsonl/69256
{ "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, 21823, 44767, 368, 341, 286, 990, 1460, 486, 3848, 486, 1703, 401, 286, 1077, 2730, 4334, 284, 20626, 486, 931, 1005, 11849, 445, 8687, 1827, 3888, 3741, 1005, 15454, 543, 286, 1077, 2730, 4334, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ok() { let file = parse_string("test_ok", "a = 1\nb=2"); let got = check(walk::Node::File(&file)); assert_eq!(got.len(), 0); }
rust_cleaned_test_functions.jsonl/89893
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 19817, 368, 341, 262, 1077, 1034, 284, 4715, 3904, 445, 1944, 19817, 497, 330, 64, 284, 220, 16, 1699, 65, 28, 17, 797, 262, 1077, 2684, 284, 1779, 3622, 1692, 486, 1955, 486, 1703, 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
#[test] fn test_schedule_for_unconfirmed_epoch() { let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(2); let bank = Arc::new(Bank::new(&genesis_config)); let cache = LeaderScheduleCache::new_from_bank(&bank); assert_eq!(*cache.max_epoch.read().unwrap(), 1); ...
rust_cleaned_test_functions.jsonl/26073
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 613 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34530, 5478, 4907, 41028, 20682, 368, 341, 286, 1077, 40788, 2648, 1731, 314, 59366, 5332, 11, 5241, 335, 284, 1855, 16322, 13774, 5332, 7, 17, 317, 286, 1077, 6073, 284, 19689, 486, 931, 5349, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_display_path() { let dir = Builder::new() .prefix("test-display-path") .tempdir() .unwrap(); let key = SnapKey::new(1, 1, 1); let prefix = format!("{}_{}", SNAP_GEN_PREFIX, key); let display_path = Snap::get_display_path(dir.pat...
rust_cleaned_test_functions.jsonl/39233
{ "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, 14825, 2638, 368, 341, 286, 1077, 5419, 284, 20626, 486, 931, 741, 310, 659, 11849, 445, 1944, 52839, 33095, 1138, 310, 659, 3888, 3741, 741, 310, 659, 15454, 543, 286, 1077, 1376, 284, 28232, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_poly1305_key_generation() { let key = [ 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, ]; let nonce = [ ...
rust_cleaned_test_functions.jsonl/46412
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 588 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36133, 16, 18, 15, 20, 3097, 64191, 368, 341, 9401, 262, 1077, 1376, 284, 2278, 286, 220, 15, 87, 23, 15, 11, 220, 15, 87, 23, 16, 11, 220, 15, 87, 23, 17, 11, 220, 15, 87, 23, 18, 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_attr4() { let mut st = CellStyle::new("c00", &"f00".into()); st.set_diagonal_bl_tr(pt!(0.2), Border::Ridge, Rgb::new(0, 127, 0)); assert_eq!( st.cellstyle().attr("style:diagonal-bl-tr"), Some(&"0.2pt ridge #007f00".to_string()) ); st.set_diagonal_tl_br(pt!(0...
rust_cleaned_test_functions.jsonl/60151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 739 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10422, 19, 368, 341, 262, 1077, 5206, 357, 284, 13972, 2323, 486, 931, 445, 66, 15, 15, 497, 609, 1, 69, 15, 15, 3263, 18122, 5231, 262, 357, 980, 29477, 23450, 13141, 3547, 32068, 10297, 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_hir_spanner_full() { let src = r#"fn foo() { `(let mut x: Vec<()> = Vec::new();)` `(x = Vec::new();)` }"#; let expected: &[&[&str]] = &[&["let mut x: Vec<()> = Vec::new();"], &["x = Vec::new();"]]; hir_spanner_harness(src, expected, EnclosingHirSpans::Full) }
rust_cleaned_test_functions.jsonl/10106
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 404, 37382, 1194, 16372, 368, 341, 262, 1077, 2286, 284, 435, 55543, 8822, 15229, 368, 341, 414, 48651, 1149, 5206, 856, 25, 11312, 71698, 284, 11312, 486, 931, 2129, 49237, 414, 48651, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invert() { assert!(Matrix3::<f64>::identity().invert().unwrap().is_identity()); assert_eq!(A.invert(), None); assert_eq!(C.invert().unwrap(), Matrix3::new(0.5f64, -1.0f64, 1.0f64, 0.0f64, 0.5f64, -2.0f64, ...
rust_cleaned_test_functions.jsonl/30157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 1621, 368, 341, 286, 2060, 10297, 6689, 18, 27638, 69, 21, 19, 6831, 16912, 1005, 83729, 1005, 15454, 1005, 285, 46244, 5231, 286, 2060, 10714, 10297, 32, 1858, 1621, 1507, 2240, 626, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_c_str_unchecked() { unsafe { let c_string = "he\x00llo".to_c_str_unchecked(); let buf = c_string.as_ptr(); assert_eq!(*buf.offset(0), 'h' as libc::c_char); assert_eq!(*buf.offset(1), 'e' as libc::c_char); assert_eq!(*buf.offs...
rust_cleaned_test_functions.jsonl/76021
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 666, 2895, 4907, 7549, 368, 341, 286, 19860, 341, 310, 1077, 272, 3904, 284, 330, 383, 3462, 15, 15, 75, 385, 3263, 983, 666, 2895, 4907, 7549, 543, 310, 1077, 6607, 284, 272, 3904, 5357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_comparisons() -> TestResult { let mut p = Polar::new(); p.load_str("lt(x, y) if x < y;")?; qnull(&mut p, "lt(1,1)"); qeval(&mut p, "lt(1,2)"); qnull(&mut p, "lt(2,1)"); qnull(&mut p, "lt(+1,-1)"); qeval(&mut p, "lt(-1,+1)"); qnull(&mut p, "lt(-1,-1)"); q...
rust_cleaned_test_functions.jsonl/97638
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1777 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2965, 1732, 19379, 368, 1464, 3393, 2077, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 1428, 1066, 262, 281, 5104, 2895, 445, 4832, 2075, 11, 379, 8, 421, 856, 366, 379, 26, 899, 37445, 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...
7
#[test] fn test_valid_ascii_escape() { let valid = [r"\'", r#"\""#, r"\\", r"\n", r"\r", r"\t", r"\0", "a", "b"]; for c in &valid { assert_valid_str(c); } }
rust_cleaned_test_functions.jsonl/4163
{ "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, 8337, 50238, 21832, 368, 341, 286, 1077, 2697, 284, 508, 81, 1, 10169, 497, 435, 55543, 57139, 60778, 435, 1, 3422, 497, 435, 11934, 77, 497, 435, 11934, 81, 497, 435, 11934, 83, 497, 435, 119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parse_key() { let expected = Ok(CFormatSpec { mapping_key: Some("amount".to_string()), format_type: CFormatType::Number(CNumberType::Decimal), format_char: 'd', chars_consumed: 10, min_field_width: None, precision: N...
rust_cleaned_test_functions.jsonl/37681
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 492 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 3097, 368, 341, 286, 1077, 3601, 284, 7622, 3025, 4061, 8327, 341, 310, 12731, 3097, 25, 4329, 445, 6045, 3263, 983, 3904, 14702, 310, 3561, 1819, 25, 356, 4061, 929, 486, 2833, 3025, 283...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lde_correctness() { use rand::{XorShiftRng, SeedableRng, Rand}; const LOG_N: usize = 2; const BASE: usize = 1 << LOG_N; const LOG_LDE: usize = 4; const LDE_FACTOR: usize = 1 << LOG_LDE; let rng = &mut XorShiftRng::from_seed([0x3dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]...
rust_cleaned_test_functions.jsonl/22635
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 650 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 450, 31550, 2090, 368, 341, 262, 990, 10382, 22964, 55, 269, 24841, 49, 968, 11, 35822, 480, 49, 968, 11, 23963, 2440, 262, 733, 8081, 1604, 25, 22301, 284, 220, 17, 280, 262, 733, 22194,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bilou_tags_to_slots() { // Given let language = Language::EN; let slot_name = "animal"; let intent_slots_mapping = hashmap!["animal".to_string() => "animal".to_string()]; let tags: Vec<Test> = vec![ Test { text: "".to_string(), ...
rust_cleaned_test_functions.jsonl/55313
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4884 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 321, 283, 16333, 2346, 54161, 368, 341, 286, 442, 16246, 198, 286, 1077, 4128, 284, 11434, 486, 953, 280, 286, 1077, 9446, 1269, 284, 330, 47899, 876, 286, 1077, 7385, 54161, 26930, 284, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_read_calendar() { let iter: GTFSIterator<_, Calendar> = GTFSIterator::from_path("./examples/good_feed/calendar.txt").unwrap(); for result in iter { assert!(result.is_ok(), format!("{}", result.err().unwrap())); } }
rust_cleaned_test_functions.jsonl/7505
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 57665, 368, 341, 262, 1077, 5367, 25, 11911, 8485, 11951, 27, 6878, 16841, 29, 4035, 286, 11911, 8485, 11951, 486, 1499, 2638, 13988, 51668, 4846, 1386, 42390, 76717, 3909, 1827, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
#[test] fn test_write_v0_transaction() { let versioned_tx = new_test_v0_transaction(); let sigverify_status = CliSignatureVerificationStatus::verify_transaction(&versioned_tx); let address_table_entry1 = Pubkey::new_from_array([3u8; 32]); let address_table_entry2 = Pubkey::new_fr...
rust_cleaned_test_functions.jsonl/29897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1827 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 2273, 15, 28884, 368, 341, 286, 1077, 2319, 291, 17805, 284, 501, 4452, 2273, 15, 28884, 543, 286, 1077, 8366, 12446, 4773, 284, 96971, 25088, 62339, 2522, 486, 12446, 28884, 2099, 4366, 291...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_once_non_zero() { let a = OnceNonZeroU32::default(); assert!(a.get().is_none()); a.set(NonZeroU32::new(293).unwrap()).unwrap(); assert_eq!(a.get().unwrap().get(), 293); assert_eq!( a.set(NonZeroU32::new(2334).unwrap()).unwrap_err().get(), ...
rust_cleaned_test_functions.jsonl/49922
{ "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, 7630, 21637, 19359, 368, 341, 286, 1077, 264, 284, 9646, 8121, 17999, 52, 18, 17, 486, 2258, 1428, 286, 2060, 10297, 64, 670, 1005, 285, 31488, 1423, 286, 264, 980, 7, 8121, 17999, 52, 18, 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_tail_progress() -> Result<(), Box<dyn Error>> { ore::test::init_logging(); let config = util::Config::default().workers(2); let (server, mut client_writes) = util::start_server(config)?; let mut client_reads = server.connect()?; client_writes.batch_execute("CREATE TABLE t (...
rust_cleaned_test_functions.jsonl/26332
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 686 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35471, 27200, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 262, 16144, 486, 1944, 486, 2327, 59982, 1428, 262, 1077, 2193, 284, 4094, 486, 2648, 486, 2258, 1005, 54958, 7, 17, 317, 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...
9
#[test] fn test_report_deconstruct() { let packet = Packet::new_unchecked(&REPORT_PACKET_BYTES[..]); assert_eq!(packet.msg_type(), Message::MembershipReportV2); assert_eq!(packet.max_resp_code(), 0); assert_eq!(packet.checksum(), 0x08da); assert_eq!(packet.group_addr(), ...
rust_cleaned_test_functions.jsonl/112385
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14813, 2259, 7596, 368, 341, 286, 1077, 10151, 284, 28889, 486, 931, 4907, 7549, 2099, 78131, 40328, 40705, 95874, 2558, 286, 2060, 10714, 10297, 24829, 15137, 1819, 1507, 4856, 486, 80904, 10361, 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_iter_ref_consistency() { use std::fmt::Debug; fn test<T : Copy + Debug + PartialEq>(x : T) { let v : &[T] = &[x, x, x]; let v_ptrs : [*const T; 3] = match v { [ref v1, ref v2, ref v3] => [v1 as *const _, v2 as *const _, v3 as *const _], _ => unrea...
rust_cleaned_test_functions.jsonl/8463
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 7793, 31971, 47094, 368, 341, 262, 990, 1460, 486, 12501, 486, 7939, 401, 262, 5168, 1273, 3125, 549, 14540, 488, 11091, 488, 55039, 2235, 87, 549, 350, 8, 341, 286, 1077, 348, 549, 44590...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_greatest_real() { let cases = vec![ (vec![None, None], None), (vec![Real::new(1.0).ok(), Real::new(-1.0).ok(), None], None), ( vec![ Real::new(1.0).ok(), Real::new(-1.0).ok(), ...
rust_cleaned_test_functions.jsonl/75989
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 912 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 11175, 15266, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4083, 20703, 4064, 11, 2240, 1125, 2240, 1326, 310, 320, 4083, 20703, 12768, 486, 931, 7, 16, 13, 15, 568, 562, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_points_between() { assert_eq!( points_between(point(1, 1), point(1, 5)), vec![point(1, 2), point(1, 3), point(1, 4)] ); assert_eq!( points_between(point(1, 5), point(1, 1)), vec![point(1, 4), point(1, 3), point(1, 2)] ...
rust_cleaned_test_functions.jsonl/38632
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 673 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12928, 48302, 368, 341, 286, 2060, 10714, 33673, 310, 3501, 48302, 20235, 7, 16, 11, 220, 16, 701, 1459, 7, 16, 11, 220, 20, 6965, 310, 7486, 20703, 2768, 7, 16, 11, 220, 17, 701, 1459, 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_split_mode_valid_cases() { assert_mode_split_into("r", "r", "t"); assert_mode_split_into("rb", "r", "b"); assert_mode_split_into("rt", "r", "t"); assert_mode_split_into("r+t", "r+", "t"); assert_mode_split_into("w+t", "w+", "t"); ...
rust_cleaned_test_functions.jsonl/105631
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 7302, 8337, 41427, 368, 341, 310, 2060, 7302, 17052, 45514, 445, 81, 497, 330, 81, 497, 330, 83, 797, 310, 2060, 7302, 17052, 45514, 445, 10681, 497, 330, 81, 497, 330, 65, 797, 310, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cost_tracker_add_data() { let (mint_keypair, start_hash) = test_setup(); let (_tx, mut tx_cost) = build_simple_transaction(&mint_keypair, &start_hash); tx_cost.account_data_size = 1; let cost = tx_cost.sum(); // build testee to have capacity for one simpl...
rust_cleaned_test_functions.jsonl/23070
{ "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, 15890, 50264, 2891, 1769, 368, 341, 286, 1077, 320, 67791, 3097, 12670, 11, 1191, 8950, 8, 284, 1273, 21363, 543, 286, 1077, 5453, 3998, 11, 5206, 9854, 15890, 8, 284, 1936, 30015, 28884, 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_zero_args_heler() { let mut r = Registry::new(); r.register_helper( "name", Box::new( |_: &Helper, _: &Registry, _: &Context, _: &mut RenderContext, out: &mut dyn Output| -> Result<(), RenderErr...
rust_cleaned_test_functions.jsonl/14272
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 549 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 8384, 1523, 7865, 368, 341, 262, 1077, 5206, 435, 284, 32112, 486, 931, 1428, 262, 435, 9929, 10418, 1006, 286, 330, 606, 756, 286, 8261, 486, 931, 1006, 310, 760, 23211, 609, 5511, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_record_with_data() -> io::Result<()> { let mut writer = Writer::new(vec![]); let data = Data::from(vec![Field::new( data::field::Tag::ReadGroup, data::field::Value::String(String::from("rg0")), )]); let record = Record::builder().se...
rust_cleaned_test_functions.jsonl/72321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 14192, 6615, 1769, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 5206, 6916, 284, 29404, 486, 931, 25592, 0, 1294, 626, 286, 1077, 821, 284, 2885, 486, 1499, 25592, 20703, 1877, 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...
2
#[test] fn test_psd() { assert_eq_ok!( ImageInfo::from_file_path("images/valid/psd/sample.psd"), ImageInfo { format: ImageFormat::PSD, ext: "psd", full_ext: "psd", mimetype: "image/psd", size: ImageSize { width: 123, height: 456 }, ...
rust_cleaned_test_functions.jsonl/65167
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 212 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 13446, 368, 341, 262, 2060, 10714, 19817, 33673, 286, 4654, 1731, 486, 1499, 2458, 2638, 445, 3642, 14, 1891, 14, 1690, 67, 69851, 556, 13446, 4461, 286, 4654, 1731, 341, 310, 3561, 25, 465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rlp_is_int() { for b in 0xb8..0xc0 { let data: Vec<u8> = vec![b]; let rlp = Rlp::new(&data); assert_eq!(rlp.is_int(), false); } }
rust_cleaned_test_functions.jsonl/74212
{ "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, 1710, 13545, 6892, 4042, 368, 341, 2023, 293, 304, 220, 15, 7929, 23, 496, 15, 8148, 15, 341, 197, 10217, 821, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 65, 935, 197, 10217, 435, 13545, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_transform_iv_0() { let cv = INITIALIZATION_VECTOR; let to_test = [0; 8]; assert_eq!(transform(cv, to_test), 0x2C71C76D48A512E5); }
rust_cleaned_test_functions.jsonl/54026
{ "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, 18449, 51411, 62, 15, 368, 341, 286, 1077, 5544, 284, 29964, 32601, 3495, 47993, 280, 286, 1077, 311, 4452, 284, 508, 15, 26, 220, 23, 935, 286, 2060, 10714, 10297, 4701, 38210, 11, 311, 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_parse_double() { assert_eq!(parse_double(&[0, 0, 0, 0, 0, 0, 0, 0][..]), Ok((EMPTY, 0.))); assert_eq!( parse_double(&[64, 69, 53, 194, 143, 92, 40, 246][..]), Ok((EMPTY, 42.42)) ); }
rust_cleaned_test_functions.jsonl/25458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 24598, 368, 341, 286, 2060, 10714, 10297, 6400, 24598, 2099, 58, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 1457, 496, 9719, 7622...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_swap_node() { let mut ll = LinkedList::<u8>::with_capacity(4); let hnd0 = ll.push_tail(0); let hnd1 = ll.push_tail(1); let hnd2 = ll.push_tail(2); let hnd3 = ll.push_tail(3); ll.swap_node(&hnd0, &hnd3); assert_node!(ll, hnd3, FIRST, 3, 4);...
rust_cleaned_test_functions.jsonl/59902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40991, 5084, 368, 341, 286, 1077, 5206, 9323, 284, 22917, 27638, 84, 23, 6831, 4197, 35603, 7, 19, 317, 286, 1077, 305, 303, 15, 284, 9323, 2552, 35471, 7, 15, 317, 286, 1077, 305, 303, 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_wide_div_rem() { for d in 1..=255 { for n1 in (0..=255).step_by(15) { for n0 in (0..=255).step_by(15) { let qr = d.div_rem_from((n1, n0)); let check = check_8((n1, n0), d); assert_eq!(qr, check); ...
rust_cleaned_test_functions.jsonl/67972
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 670 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1670, 577, 16237, 19194, 368, 341, 286, 369, 294, 304, 220, 16, 496, 28, 17, 20, 20, 341, 310, 369, 308, 16, 304, 320, 15, 496, 28, 17, 20, 20, 568, 9520, 3710, 7, 16, 20, 8, 341, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_almost_sort_with_folder() { let tmp = tempdir(); tmp.child("z").create_dir_all().unwrap(); tmp.child("z/a").touch().unwrap(); cmd() .current_dir(tmp.path()) .arg("-a") .arg("--ignore-config") .arg("z") .assert() .stdout(predicate::...
rust_cleaned_test_functions.jsonl/627
{ "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, 94418, 18435, 6615, 15268, 368, 341, 262, 1077, 4174, 284, 2730, 3741, 543, 262, 4174, 17531, 445, 89, 1827, 3182, 4334, 5705, 1005, 15454, 543, 262, 4174, 17531, 445, 89, 14186, 1827, 22020, 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...
1
#[test] fn test_credential_serialize_deserialize() { let handle = credential_create_with_offer("test_credential_serialize_deserialize", ::utils::constants::CREDENTIAL_OFFER_JSON).unwrap(); let credential_string = to_string(handle).unwrap(); release(handle).unwrap(); assert_eq!(re...
rust_cleaned_test_functions.jsonl/82311
{ "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, 666, 30320, 88686, 15768, 9050, 368, 341, 286, 1077, 3705, 284, 40207, 8657, 6615, 67814, 445, 1944, 666, 30320, 88686, 15768, 9050, 497, 3504, 6031, 486, 15763, 486, 34, 81509, 11987, 640, 25356, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_update_connection_state_manual_disconnect() { let target = Target::new(); target.addrs_insert_entry(TargetAddrEntry::new( ("::1".parse().unwrap(), 0).into(), Utc::now(), TargetAddrType::Manual, )); target.set_state(TargetConnect...
rust_cleaned_test_functions.jsonl/115229
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 480 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 15866, 4387, 75428, 67972, 368, 341, 286, 1077, 2169, 284, 13483, 486, 931, 543, 286, 2169, 1364, 5428, 17678, 9078, 80613, 13986, 5874, 486, 931, 1006, 310, 3489, 486, 16, 3263, 6400, 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...
1
#[test] fn test_remove_existing_value_multiline() { insta::assert_snapshot!( "this is the new value", @"this is\ this is the old value\ it really is" ); }
rust_cleaned_test_functions.jsonl/121419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 62630, 3142, 26290, 26560, 368, 341, 262, 1761, 64, 486, 2207, 53265, 33673, 286, 330, 574, 374, 279, 501, 897, 756, 286, 7098, 574, 374, 5661, 286, 419, 374, 279, 2310, 897, 5661, 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
#[test] fn test_vectors_key_sorting() { let rdata = b"\x00\x10\ \x03\x66\x6f\x6f\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x6f\x72\x67\x00\ \x00\x00\ \x00\x04\ \x00\x01\ \x00\x04\ \x00\x01\ \x00\x09\ ...
rust_cleaned_test_functions.jsonl/132759
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1821 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49158, 3097, 18435, 287, 368, 341, 286, 1077, 435, 691, 4035, 310, 293, 11934, 87, 15, 15, 3462, 16, 15, 5661, 1060, 1124, 87, 15, 18, 3462, 21, 21, 3462, 21, 69, 3462, 21, 69, 3462, 15, 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_chown_only_colon() { // test chown : file.txt let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let file1 = "test_chown_file1"; at.touch(file1); // expected: // ownership of 'file.txt' retained let result = scene.ucmd().arg(":").a...
rust_cleaned_test_functions.jsonl/26593
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4138, 779, 18410, 10211, 263, 368, 341, 262, 442, 1273, 521, 779, 549, 1034, 3909, 271, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generate_labels() { let layers = 11; let nodes_2k = 1 << 11; let nodes_4k = 1 << 12; let replica_id = [9u8; 32]; let porep_id = [123; 32]; test_generate_labels_aux( nodes_2k, layers, replica_id, porep...
rust_cleaned_test_functions.jsonl/38370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 631 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 14547, 368, 341, 286, 1077, 13617, 284, 220, 16, 16, 280, 286, 1077, 7798, 62, 17, 74, 284, 220, 16, 1115, 220, 16, 16, 280, 286, 1077, 7798, 62, 19, 74, 284, 220, 16, 1115, 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...
1
#[test] fn test_add_fails_on_nan_ref() { let a = not_nan(std::f32::INFINITY); let b = not_nan(std::f32::NEG_INFINITY); let _c = a + &b; }
rust_cleaned_test_functions.jsonl/80089
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 761, 6209, 4470, 73936, 7793, 368, 341, 262, 1077, 264, 284, 537, 73936, 5194, 486, 69, 18, 17, 486, 687, 55990, 317, 262, 1077, 293, 284, 537, 73936, 5194, 486, 69, 18, 17, 486, 97127, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_min_heap() { let mut heap = MinHeap::new(); heap.add(4); heap.add(2); heap.add(9); heap.add(11); assert_eq!(heap.len(), 4); assert_eq!(heap.next(), Some(2)); assert_eq!(heap.next(), Some(4)); assert_eq!(heap.next(), Some(9))...
rust_cleaned_test_functions.jsonl/17181
{ "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, 7260, 33059, 368, 341, 286, 1077, 5206, 17364, 284, 3386, 27909, 486, 931, 543, 286, 17364, 1364, 7, 19, 317, 286, 17364, 1364, 7, 17, 317, 286, 17364, 1364, 7, 24, 317, 286, 17364, 1364, 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_deconstruct() { let packet = Packet::new_unchecked(&PACKET_BYTES[..]); assert_eq!(packet.src_port(), 48896); assert_eq!(packet.dst_port(), 53); assert_eq!(packet.len(), 12); assert_eq!(packet.checksum(), 0x124d); assert_eq!(packet.payload(), &PAYLO...
rust_cleaned_test_functions.jsonl/36415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 7596, 368, 341, 286, 1077, 10151, 284, 28889, 486, 931, 4907, 7549, 2099, 17279, 1348, 40705, 95874, 2558, 286, 2060, 10714, 10297, 24829, 14681, 8716, 1507, 220, 19, 23, 23, 24, 21, 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_process_cross_program() { #[derive(Debug, Serialize, Deserialize)] enum MockInstruction { NoopSuccess, NoopFail, ModifyOwned, ModifyNotOwned, } fn mock_process_instruction( program_id: &Pubkey, ...
rust_cleaned_test_functions.jsonl/29794
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3371 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 35284, 25096, 368, 341, 286, 11506, 27098, 42618, 11, 39900, 11, 48440, 5563, 286, 7618, 14563, 16664, 341, 310, 2308, 453, 7188, 345, 310, 2308, 453, 19524, 345, 310, 49370, 57641, 345, 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...
8
#[test] fn test_fq_hash() { let h = Blake2b::new(); assert_eq!( Fq::hash(h), Fq::from_str("2969971670216977749765615497980645380676770840200853026844185893034591434908642692717019379762235872058512380843355").unwrap() ); }
rust_cleaned_test_functions.jsonl/2340
{ "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, 761, 80, 8950, 368, 341, 286, 1077, 305, 284, 30894, 17, 65, 486, 931, 1428, 286, 2060, 10714, 33673, 286, 434, 80, 486, 8296, 3203, 1326, 286, 434, 80, 486, 1499, 2895, 445, 17, 24, 21, 24,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_build_bucket_level_upload_policy_with_overwritable() -> Result<(), Box<dyn Error>> { UploadPolicyBuilder::new_policy_for_bucket("test_bucket", &Config::default()) .overwritable() .unwrap_err(); Ok(()) }
rust_cleaned_test_functions.jsonl/2352
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 38749, 8274, 21691, 22773, 6615, 15431, 86, 22533, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 24996, 13825, 3297, 486, 931, 22773, 5478, 38749, 445, 1944, 38749, 497, 609, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_wait_and_dispatch() -> Result<(), failure::Error> { let condvar_result: CondvarResult<(), failure::Error> = Arc::new((Mutex::new(None), Condvar::new())); // run async { let result = condvar_result.clone(); thread::spawn(move || { ...
rust_cleaned_test_functions.jsonl/45327
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 305 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18760, 8378, 42991, 368, 1464, 5714, 68843, 7901, 486, 1454, 29, 341, 286, 1077, 9756, 947, 5287, 25, 44826, 947, 2077, 68843, 7901, 486, 1454, 29, 4035, 310, 19689, 486, 931, 1188, 38099, 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...
4
#[test] fn test_update_guild_sticker() { let route = Route::UpdateGuildSticker { guild_id: GUILD_ID, sticker_id: STICKER_ID, }; assert_eq!( route.to_string(), format!( "guilds/{guild_id}/stickers/{sticker_id}", ...
rust_cleaned_test_functions.jsonl/119936
{ "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, 8882, 1889, 1498, 1261, 5215, 368, 341, 286, 1077, 6021, 284, 9572, 486, 4289, 72574, 623, 5215, 341, 310, 26411, 842, 25, 479, 18023, 3450, 345, 310, 46177, 842, 25, 3928, 10685, 640, 3450, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_destination_minimum_stake_delegation() { let feature_set = FeatureSet::all_enabled(); let minimum_delegation = crate::get_minimum_delegation(&feature_set); let rent = Rent::default(); let rent_exempt_reserve = rent.minimum_balance(StakeState::size_of()); ...
rust_cleaned_test_functions.jsonl/31652
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 56344, 84855, 1261, 726, 2259, 87566, 368, 341, 286, 1077, 4565, 2602, 284, 19998, 1649, 486, 541, 18220, 543, 286, 1077, 8028, 2259, 87566, 284, 17717, 486, 455, 84855, 2259, 87566, 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...
6
#[test] fn test_ssh_config_parser_no_failure() -> Result<(), Box<dyn std::error::Error>> { let ssh_config_str = r#" Host x ff fff zz " fofo bar " Host z z1 v "#; SSHConfigParser::parse(Rule::config, &ssh_config_str)?; Ok(()) }
rust_cleaned_test_functions.jsonl/77558
{ "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, 82805, 5332, 18517, 6536, 43618, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 29230, 5332, 2895, 284, 435, 2, 698, 9296, 856, 198, 262, 25539, 282, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_array_element_two_dimensions() { assert_expression!( "choice$(1, 2)", Expression::func("choice$", vec![1.as_lit_expr(1, 15), 2.as_lit_expr(1, 18)]) ); }
rust_cleaned_test_functions.jsonl/102643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 7894, 23241, 59699, 368, 341, 310, 2060, 28068, 33673, 394, 330, 11746, 8525, 16, 11, 220, 17, 15752, 394, 16378, 486, 2830, 445, 11746, 73315, 7486, 20703, 16, 5357, 98399, 21915, 7, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_handle_possible_reorg_accum_difficulty_is_correct_case_1() { let (result, _blocks) = test_case_handle_possible_reorg(&[ ("A0->GB", 1, 120), // Chain 0 at 2 ("B0->A0", 1, 120), // Chain 0 at 3 ("C0->B0", 1, 120), // Chain 0 at 4 ("A1->C0", 2...
rust_cleaned_test_functions.jsonl/44862
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 920 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 71244, 1288, 1775, 75837, 15850, 25990, 6892, 31550, 19096, 62, 16, 368, 341, 286, 1077, 320, 1382, 11, 716, 21928, 8, 284, 1273, 19096, 10630, 71244, 1288, 1775, 2099, 9640, 310, 3489, 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_serial_bus_read() { let intr_evt = EventFdTrigger::new(EventFd::new(libc::EFD_NONBLOCK).unwrap()); let metrics = Arc::new(SerialDeviceMetrics::default()); let mut serial = SerialDevice { serial: Serial::with_events( intr_evt, ...
rust_cleaned_test_functions.jsonl/118641
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 620 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25602, 25418, 6443, 368, 341, 286, 1077, 10582, 60019, 284, 3665, 74476, 17939, 486, 931, 30469, 74476, 486, 931, 44828, 66, 486, 36, 14596, 22128, 39964, 568, 15454, 5231, 286, 1077, 16734, 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_cutoff_symbol_table_key() { let mut bytecode: Vec<u8> = BIND_HEADER.to_vec(); append_section_header(&mut bytecode, SYMB_MAGIC_NUM, 9); let str_1: [u8; 3] = [0x41, 0x42, 0]; bytecode.extend_from_slice(&[1, 0, 0, 0]); bytecode.extend_from_slice(&str_1); ...
rust_cleaned_test_functions.jsonl/24029
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74382, 21179, 5237, 3097, 368, 341, 286, 1077, 5206, 75129, 25, 11312, 34837, 23, 29, 284, 91370, 20330, 2389, 13251, 543, 286, 8737, 16221, 8757, 2099, 6984, 75129, 11, 16079, 8412, 49194, 9631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generator() { let prime_10001 = Sieve::primes().skip(10_000).next(); assert_eq!(prime_10001, Some(104_743)); }
rust_cleaned_test_functions.jsonl/98615
{ "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, 25813, 368, 341, 262, 1077, 10250, 62, 16, 15, 15, 15, 16, 284, 8495, 586, 486, 649, 1733, 1005, 20599, 7, 16, 15, 62, 15, 15, 15, 568, 3600, 543, 262, 2060, 10714, 10297, 32338, 62, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_render_long_html() { with_globals(|| { assert_eq!( word_cfg("unix").render_long_html(), "This is supported on <strong>Unix</strong> only." ); assert_eq!( name_value_cfg("target_os", "macos").render_long_h...
rust_cleaned_test_functions.jsonl/53559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2044 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22781, 17799, 9564, 368, 341, 286, 448, 58775, 79453, 341, 310, 2060, 10714, 33673, 394, 3409, 18343, 445, 56646, 1827, 7322, 17799, 9564, 3148, 394, 330, 1986, 374, 7248, 389, 366, 4519, 29, 5583...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reindent_multiline_empty_line() { assert_eq!("\ if x { y } else { z }", reindent_multiline(" if x { y } else { z }".into(), false, None)); }
rust_cleaned_test_functions.jsonl/6181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 32840, 26290, 26560, 15124, 6528, 368, 341, 286, 2060, 10714, 0, 4921, 198, 262, 421, 856, 341, 286, 379, 271, 262, 335, 770, 341, 286, 1147, 198, 262, 335, 497, 312, 32840, 26290, 26560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sanitize_with_table_lookup() { assert!(Message { header: MessageHeader { num_required_signatures: 1, ..MessageHeader::default() }, account_keys: vec![Pubkey::new_unique()], address_table_lookups: vec![Message...
rust_cleaned_test_functions.jsonl/94109
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 327 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 58652, 6615, 5237, 27464, 368, 341, 286, 2060, 10297, 2052, 341, 310, 4247, 25, 4856, 4047, 341, 394, 1629, 18743, 11172, 2789, 25, 220, 16, 345, 394, 5241, 2052, 4047, 486, 2258, 741, 310,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_normalize() { let node = div(); node.append_child(&text("test ")); node.append_child(&text("123")); node.normalize(); assert_eq!(node.child_nodes().len(), 1); let child_text = node.first_child().unwrap().text_content().unwrap(); assert_eq!(...
rust_cleaned_test_functions.jsonl/33773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80807, 368, 341, 286, 1077, 2436, 284, 3429, 543, 286, 2436, 2057, 17268, 2099, 1318, 445, 1944, 60240, 286, 2436, 2057, 17268, 2099, 1318, 445, 16, 17, 18, 4010, 286, 2436, 44657, 543, 286, 206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decoder_value_can_not_be_read() { let _m = mock("GET", "/schemas/ids/10?deleted=true") .with_status(200) .with_header("content-type", "application/vnd.schemaregistry.v1+json") .with_body(&get_json_body(json_result_schema(), 10)) .create(); ...
rust_cleaned_test_functions.jsonl/42271
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 314 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49843, 3142, 27421, 7913, 21263, 6443, 368, 341, 286, 1077, 716, 76, 284, 7860, 445, 3806, 497, 3521, 56543, 14, 3365, 14, 16, 15, 30, 26521, 11265, 1138, 310, 659, 4197, 4773, 7, 17, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_and_skip_until() { let mut cfg = DbConfig::default(); cfg.writecf.disable_auto_compactions = true; cfg.writecf.dynamic_level_bytes = false; let dir = tempfile::TempDir::new().unwrap(); let builder = TestEngineBuilder::new().path(dir.path()); ...
rust_cleaned_test_functions.jsonl/101619
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 971 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 8378, 44830, 44352, 368, 341, 286, 1077, 5206, 13286, 284, 11988, 2648, 486, 2258, 543, 286, 13286, 3836, 9792, 42628, 27740, 18177, 4020, 284, 830, 280, 286, 13286, 3836, 9792, 59044, 8274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_then() { let x: Option<isize> = Some(1); assert_eq!(x.and_then(|x| Some(x + 1)), Some(2)); assert_eq!(x.and_then(|_| None::<isize>), None); let x: Option<isize> = None; assert_eq!(x.and_then(|x| Some(x + 1)), None); assert_eq!(x.and_then(|_| None::<isize>), None); }
rust_cleaned_test_functions.jsonl/20235
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 68367, 368, 341, 262, 1077, 856, 25, 6959, 27, 285, 551, 29, 284, 4329, 7, 16, 317, 262, 2060, 10714, 10297, 87, 34724, 68367, 22428, 87, 91, 4329, 2075, 488, 220, 16, 5731, 4329, 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...
1
#[test] fn test_setup_works() { new_test_ext(1).execute_with(|| { assert_eq!(Sudo::key(), 1u64); assert_eq!(Logger::i32_log(), vec![]); assert_eq!(Logger::account_log(), vec![]); }); }
rust_cleaned_test_functions.jsonl/7281
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21363, 11498, 82, 368, 341, 1572, 8638, 4452, 9927, 7, 16, 568, 10257, 6615, 79453, 341, 197, 6948, 10714, 10297, 50, 7680, 486, 792, 1507, 220, 220, 16, 84, 21, 19, 317, 197, 6948, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_iterate_into_string() { let words = vec!["hello", " ", "world"]; let w = vec!["hello", " ", "world"]; let capitalized_words = words .into_iter() .map(|r: &str| capitalize_first(&r)) .collect::<String>(); assert_eq!(capitalized_w...
rust_cleaned_test_functions.jsonl/29106
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 349, 45514, 3904, 368, 341, 286, 1077, 4244, 284, 7486, 0, 1183, 14990, 497, 330, 3670, 330, 14615, 6332, 286, 1077, 289, 284, 7486, 0, 1183, 14990, 497, 330, 3670, 330, 14615, 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_try_from_record_for_contig_with_an_invalid_id() { let record = Record::new( record::Key::Contig, record::Value::Struct(vec![(String::from("ID"), String::from("sq 0"))]), ); assert_eq!(Contig::try_from(record), Err(TryFromRecordError::InvalidId)); ...
rust_cleaned_test_functions.jsonl/81753
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 14192, 5478, 10260, 343, 6615, 12008, 31433, 842, 368, 341, 286, 1077, 3255, 284, 13583, 486, 931, 1006, 310, 3255, 486, 1592, 486, 818, 343, 345, 310, 3255, 486, 1130, 486, 9422, 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