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_math_function() -> Result<()> { let exp_f64 = "2.718281828459045"; let exp_f32 = "2.7182817459106445"; generic_test_math(ScalarValue::from(1i32), exp_f64)?; generic_test_math(ScalarValue::from(1u32), exp_f64)?; generic_test_math(ScalarValue::from(...
rust_cleaned_test_functions.jsonl/21905
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65561, 9174, 368, 1464, 5714, 71698, 341, 1789, 286, 1077, 1343, 761, 21, 19, 284, 330, 17, 13, 22, 16, 23, 17, 23, 16, 23, 17, 23, 19, 20, 24, 15, 19, 20, 876, 286, 1077, 1343, 761, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_unbounded() { let c = vec![1.0, 3.0, -1.0]; let b = vec![10.0, 10.0, 10.0]; let a = vec![ vec![2.0, 2.0, -1.0], vec![3.0, -2.0, 1.0], vec![1.0, -3.0, 1.0], ]; let standard = StandardForm::new(c, a, b); match sim...
rust_cleaned_test_functions.jsonl/83171
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 65686, 368, 341, 286, 1077, 272, 284, 7486, 20703, 16, 13, 15, 11, 220, 18, 13, 15, 11, 481, 16, 13, 15, 935, 286, 1077, 293, 284, 7486, 20703, 16, 15, 13, 15, 11, 220, 16, 15, 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...
2
#[test] fn test_decode_invalid_buf() { let empty_buf = []; assert_matches!( NonSupportedCommandParams::decode(&empty_buf[..]), Err(FrameParseError::InvalidBufferLength(NON_SUPPORTED_COMMAND_RESPONSE_LENGTH, 0)) ); }
rust_cleaned_test_functions.jsonl/67131
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 31433, 10363, 368, 341, 286, 1077, 4287, 10363, 284, 5907, 286, 2060, 38344, 33673, 310, 11581, 34636, 4062, 4870, 486, 18196, 2099, 3194, 10363, 95874, 17036, 310, 15495, 91008, 14463, 1454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_selector_pseudo_header() -> Result { let html = r#"<h1></h1><div></div>"#; let root = Vis::load(html)?; let hgroups = root.find(":header"); assert_eq!(hgroups.length(), 1); let not_hgroups = root.find(":not(:header)"); assert_eq!(not_hgroups.length(), 1); Ok(()) }
rust_cleaned_test_functions.jsonl/58017
{ "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, 28890, 620, 21952, 8757, 368, 1464, 5714, 341, 10217, 5272, 284, 435, 2, 22476, 71, 16, 1472, 71, 16, 1784, 611, 1472, 611, 9877, 2, 280, 10217, 3704, 284, 7656, 486, 1078, 22895, 40007, 10217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_der_utf8string() { let empty = &b""[..]; let bytes = [ 0x0c, 0x0a, 0x53, 0x6f, 0x6d, 0x65, 0x2d, 0x53, 0x74, 0x61, 0x74, 0x65, ]; let expected = DerObject::from_obj(BerObjectContent::UTF8String("Some-State")); assert_eq!(parse_der_utf8string(&bytes), Ok((empty, expect...
rust_cleaned_test_functions.jsonl/45868
{ "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, 35345, 39453, 23, 917, 368, 341, 262, 1077, 4287, 284, 609, 65, 3014, 95874, 935, 262, 1077, 5820, 284, 2278, 286, 220, 15, 87, 15, 66, 11, 220, 15, 87, 15, 64, 11, 220, 15, 87, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_trim_right_chars() { let v: &[char] = &[]; assert_eq!(" *** foo *** ".trim_right_chars(v), " *** foo *** "); assert_eq!(" *** foo *** ".trim_right_chars(&['*', ' ']), " *** foo"); assert_eq!(" *** *** ".trim_right_chars(&['*', ' ']), ""); assert_eq!(" ***...
rust_cleaned_test_functions.jsonl/56815
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70025, 10539, 37418, 368, 341, 286, 1077, 348, 25, 44590, 1762, 60, 284, 609, 15078, 286, 2060, 10714, 17223, 17160, 15229, 17160, 5933, 10666, 10539, 37418, 3747, 701, 330, 17160, 15229, 17160, 731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unsafe_transmute_on_in_array___between_refs___returns_expected_result() { #[derive(Arraygen)] #[gen_array(fn number_refs: &i32)] struct Sut<'a> { #[in_array(number_refs { unsafe_transmute })] pub a: &'a f32, } let foo = -1.23456789...
rust_cleaned_test_functions.jsonl/76355
{ "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, 4907, 18675, 7965, 52214, 4470, 1243, 3858, 5973, 41867, 60638, 5973, 4216, 32190, 5287, 368, 341, 286, 11506, 27098, 38192, 4370, 5563, 286, 11506, 4370, 3858, 24008, 1372, 60638, 25, 609, 72, 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_merge_paths() { let mut builder = Path::builder(); builder.move_to(point(0.0, 0.0)); builder.line_to(point(5.0, 0.0)); builder.line_to(point(5.0, 5.0)); builder.close(); let path1 = builder.build(); let mut builder = Path::builder(); builder.move_to(point(1.0, 1...
rust_cleaned_test_functions.jsonl/19897
{ "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, 20888, 24152, 368, 341, 262, 1077, 5206, 7363, 284, 7933, 486, 17850, 543, 262, 7363, 13635, 2346, 20235, 7, 15, 13, 15, 11, 220, 15, 13, 15, 1106, 262, 7363, 10932, 2346, 20235, 7, 20, 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_parse_plain_text_method_forbidden_domain() { let mut codec = build_codec(); let mut buffer = BytesMut::new(); buffer.put_slice(b"GET https://foo.bar.com:443/get HTTP/1.1\r\n"); buffer.put_slice(b"connection: keep-alive\r\n"); buffer.put_slice(b"Host: \tsom...
rust_cleaned_test_functions.jsonl/8074
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 41015, 4326, 9032, 5478, 22108, 20111, 368, 341, 286, 1077, 5206, 34647, 284, 1936, 51084, 543, 286, 1077, 5206, 4147, 284, 30024, 51440, 486, 931, 543, 286, 4147, 3597, 26488, 1883, 1, 380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ctx_alias_regex_replace() -> io::Result<()> { base_test_ctx_alias( "gke_infra-cluster-28cccff6_europe-west4_cluster-1", toml::toml! { [kubernetes] disabled = false [kubernetes.context_aliases] "gke_.*...
rust_cleaned_test_functions.jsonl/41175
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15147, 35947, 41832, 10633, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 2331, 4452, 15147, 35947, 1006, 310, 330, 70, 440, 26051, 956, 93208, 12, 17, 23, 37054, 542, 21, 2204, 4084, 37602, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_leader_sync_follower_log() { setup_for_test(); let ents = vec![ empty_entry(0, 0), empty_entry(1, 1), empty_entry(1, 2), empty_entry(1, 3), empty_entry(4, 4), empty_entry(4, 5), empty_entry(5, 6), empty_entry(5, 7), ...
rust_cleaned_test_functions.jsonl/54480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79991, 23008, 761, 29034, 5224, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 36852, 284, 7486, 90515, 286, 4287, 9078, 7, 15, 11, 220, 15, 1326, 286, 4287, 9078, 7, 16, 11, 220, 16, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_tax() { let mut r = Register::new(); r.set_A(0xFF); tax(&mut r); assert_eq!(r.get_X(),0xFF) }
rust_cleaned_test_functions.jsonl/14188
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24579, 368, 341, 262, 1077, 5206, 435, 284, 8451, 486, 931, 543, 262, 435, 980, 1566, 7, 15, 9264, 317, 262, 3742, 2099, 6984, 435, 317, 262, 2060, 10714, 10297, 81, 670, 6859, 1507, 15, 9264,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_file() { let c = make(); let s: Settings = c.try_into().unwrap(); assert_eq!( s, Settings { debug: 1.0, place: Place { name: String::from("Torre di Pisa"), longitude: 43.7224985, latitude: 10.3970...
rust_cleaned_test_functions.jsonl/28014
{ "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, 2458, 368, 341, 262, 1077, 272, 284, 1281, 543, 262, 1077, 274, 25, 11296, 284, 272, 48779, 45514, 1005, 15454, 543, 262, 2060, 10714, 33673, 286, 274, 345, 286, 11296, 341, 310, 7390, 25, 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_status_service_fail_endpoints_should_give_404_when_failpoints_are_disable() { let _guard = fail::FailScenario::setup(); let config = TiKvConfig::default(); let mut status_server = StatusServer::new(1, config); let _ = status_server.start("127.0.0.1:0".to_string())...
rust_cleaned_test_functions.jsonl/47234
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 695 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4773, 12267, 22121, 6213, 7706, 43378, 1889, 533, 62, 19, 15, 19, 47636, 22121, 7706, 56855, 33842, 368, 341, 286, 1077, 716, 26098, 284, 3690, 486, 19524, 54031, 486, 15188, 543, 286, 1077, 2193,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_weekday() -> Result<()> { let cases = vec![ ("2019-10-12", "Sat"), ("2019-04-31", "Wed"), ("0000-01-01", "Sat"), ("0000-01-00", "Fri"), ]; let mut ctx = EvalContext::from(TimeEnv { allow_invalid_date: true, ...
rust_cleaned_test_functions.jsonl/40470
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31277, 1292, 368, 1464, 5714, 71698, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 3489, 17, 15, 16, 24, 12, 16, 15, 12, 16, 17, 497, 330, 34882, 4461, 310, 3489, 17, 15, 16, 24, 12, 15, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_pubsub_new() { let pubsub_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0); let exit = Arc::new(AtomicBool::new(false)); let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(10_000); let bank = Bank::new(&genesis_config); le...
rust_cleaned_test_functions.jsonl/5181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34014, 1966, 5921, 368, 341, 286, 1077, 6675, 1966, 7387, 284, 20954, 13986, 486, 931, 8972, 79, 13986, 486, 53, 19, 8972, 30168, 19, 13986, 486, 931, 7, 15, 11, 220, 15, 11, 220, 15, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_store_account_stress() { let fork_id = 42; let num_threads = 2; let min_file_bytes = std::mem::size_of::<StorageMeta>() + std::mem::size_of::<crate::append_vec::AccountBalance>(); let db = Arc::new(AccountsDB::new_sized(None, min_file_bytes as u64));...
rust_cleaned_test_functions.jsonl/58303
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 985 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14809, 13500, 1261, 673, 368, 341, 286, 1077, 22435, 842, 284, 220, 19, 17, 280, 286, 1077, 1629, 29725, 284, 220, 17, 401, 286, 1077, 1308, 2458, 12524, 284, 1460, 486, 10536, 486, 2141, 3575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_contract_tx_miscellaneous() { let contract_script = Script::from(Vec::from_hex( "827ca91414cdf8fe0b7b2db2bd976f27fb6f3cd5f9228633876321038cc778b555c3fe2b01d1b550a07\ d26e38c026c4c4e1dee2a41f0431283230ee0012051672102b6b9ab72d42fb625a24598a792fa5346aa\ 6...
rust_cleaned_test_functions.jsonl/112481
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2050 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51499, 17805, 69350, 40142, 368, 341, 286, 1077, 5116, 14660, 284, 13710, 486, 1499, 49923, 486, 1499, 32655, 1006, 310, 330, 23, 17, 22, 924, 24, 16, 19, 16, 19, 58348, 23, 1859, 15, 65, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_get_host_id() { let mut rng1 = ChaCha20Rng::from_seed([13; 32]); // test seed value. let mut x_bytes = [0; 48]; rng1.fill_bytes(&mut x_bytes); let mut rng2 = ChaCha20Rng::from_seed([14; 32]); // test seed value. let mut y_bytes = [0; 48]; ...
rust_cleaned_test_functions.jsonl/69373
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 693 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 12848, 842, 368, 341, 286, 1077, 5206, 28422, 16, 284, 27721, 95971, 17, 15, 49, 968, 486, 1499, 33809, 2561, 16, 18, 26, 220, 18, 17, 14979, 442, 1273, 10320, 897, 624, 286, 1077, 5206,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_vec_list_insert_after() { let mut list = VecList::new(); let index_1 = list.push_front(0); let index_2 = list.insert_after(index_1, 1); assert_eq!(list.back(), Some(&1)); assert_eq!(list.get_previous_index(index_2), Some(index_1)); assert_eq!(list...
rust_cleaned_test_functions.jsonl/11531
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 2019, 17678, 19844, 368, 341, 286, 1077, 5206, 1140, 284, 11312, 852, 486, 931, 543, 286, 1077, 1922, 62, 16, 284, 1140, 2552, 22926, 7, 15, 317, 286, 1077, 1922, 62, 17, 284, 1140, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_cohort_name_length() { assert!(!Cohort::validate_name("")); let too_long_name = "a".repeat(1025); assert!(!Cohort::validate_name(&too_long_name)); }
rust_cleaned_test_functions.jsonl/23773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 666, 2267, 371, 1269, 5118, 368, 341, 286, 2060, 0, 3471, 34, 2267, 371, 486, 7067, 1269, 445, 14929, 286, 1077, 2238, 17799, 1269, 284, 330, 64, 3263, 30624, 7, 16, 15, 17, 20, 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
#[test] fn test_tonos_key_derivation() { let client = TestClient::new(); let phrase = "smart payment illness art loud virus orbit suspect enjoy hotel people about"; // Default TONOS Key Derivation let keys = client.request_map( "crypto.mnemonic.derive.sign.keys", json!({ ...
rust_cleaned_test_functions.jsonl/69932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 784 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 263, 436, 3097, 35345, 39127, 368, 341, 262, 1077, 2943, 284, 3393, 2959, 486, 931, 543, 262, 1077, 17133, 284, 330, 39803, 8160, 17125, 1947, 17361, 16770, 26507, 15207, 4669, 9500, 1251, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_vector_2() { encode(&[0xff, 0x0f, 0xff, 0xff], "ff0fffff"); decode(&[0xff, 0x0f, 0xff, 0xff], "ff0fffff"); }
rust_cleaned_test_functions.jsonl/86353
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12247, 62, 17, 368, 341, 286, 16164, 2099, 58, 15, 9020, 11, 220, 15, 87, 15, 69, 11, 220, 15, 9020, 11, 220, 15, 9020, 1125, 330, 542, 15, 7238, 69, 797, 286, 16895, 2099, 58, 15, 9020, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_exp_bad_context() { let s = Secp256k1::with_caps(ContextFlag::Full); let (sk, mut pk) = s.generate_keypair(&mut thread_rng()).unwrap(); assert!(pk.add_exp_assign(&s, &sk).is_ok()); let s = Secp256k1::with_caps(ContextFlag::VerifyOnly); assert!(pk.add...
rust_cleaned_test_functions.jsonl/41395
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 14214, 34199, 8467, 368, 341, 286, 1077, 274, 284, 4520, 79, 17, 20, 21, 74, 16, 486, 4197, 52955, 14001, 12135, 486, 9432, 317, 286, 1077, 320, 4886, 11, 5206, 22458, 8, 284, 274, 22019...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multi_point() { let mut expected_coords = vec![]; let (point, mut coords) = create_point(); expected_coords.append(&mut coords.clone()); expected_coords.append(&mut coords); let actual_coords = MultiPoint::new(vec![point, point]) .coords_iter(...
rust_cleaned_test_functions.jsonl/21574
{ "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, 25133, 6085, 368, 341, 286, 1077, 5206, 3601, 32576, 284, 7486, 0, 15078, 286, 1077, 320, 2768, 11, 5206, 23897, 8, 284, 1855, 6085, 543, 286, 3601, 32576, 2057, 2099, 6984, 23897, 15997, 1423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_recv_notif() { // we should not reply to a well formed notification let mut handler = EchoHandler; let (tx, mut rx) = test_channel(); let mut rpc_looper = RpcLoop::new(tx); let r = make_reader(r#"{"method": "hullo", "params": {"words": "plz"}}"#); assert!(rpc_looper.mainl...
rust_cleaned_test_functions.jsonl/130779
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36118, 7913, 333, 368, 341, 262, 442, 582, 1265, 537, 9851, 311, 264, 1632, 14122, 11540, 198, 262, 1077, 5206, 7013, 284, 37806, 3050, 280, 262, 1077, 320, 3998, 11, 5206, 19111, 8, 284, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_read_tap_fail_event_handler() { let mut event_manager = EventManager::new().unwrap(); let test_mutators = TestMutators { tap_read_fail: true, }; let mut net = Net::default_net(test_mutators); let mem_clone = net.mem.clone(); let (rxq, ...
rust_cleaned_test_functions.jsonl/63428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 464 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 528, 391, 22121, 6748, 10183, 368, 341, 286, 1077, 5206, 1538, 12144, 284, 3665, 2043, 486, 931, 1005, 15454, 543, 286, 1077, 1273, 29523, 2973, 284, 3393, 51440, 2973, 341, 310, 15239, 6443...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_next_leader_slot_next_epoch() { let GenesisConfigInfo { mut genesis_config, mint_keypair, .. } = create_genesis_config(10_000 * bootstrap_validator_stake_lamports()); genesis_config.epoch_schedule.warmup = false; let bank = Ban...
rust_cleaned_test_functions.jsonl/26072
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1241 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11257, 79991, 27563, 11257, 20682, 368, 341, 286, 1077, 40788, 2648, 1731, 341, 310, 5206, 59366, 5332, 345, 310, 28337, 3097, 12670, 345, 310, 54538, 286, 335, 284, 1855, 16322, 13774, 5332, 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...
4
#[test] fn test_home_generate_address_file() { let dir = tempdir().unwrap(); fs::create_dir_all(dir.path().join(".shuffle/accounts/latest")).unwrap(); let home = Home::new(dir.path()).unwrap(); let public_key = home.generate_key_file().unwrap().public_key(); home.generat...
rust_cleaned_test_functions.jsonl/123538
{ "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, 21653, 48851, 6744, 2458, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 8619, 486, 3182, 4334, 5705, 14161, 3875, 1005, 5987, 5680, 65355, 83743, 33149, 15197, 15454, 1428, 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_parse_arguments_simple() { let args = ovec!["-c", "foo.c", "-Fofoo.obj"]; let ParsedArguments { input, language, depfile: _, outputs, preprocessor_args, msvc_show_includes, common_args, ...
rust_cleaned_test_functions.jsonl/14156
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 477 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 43433, 30015, 368, 341, 286, 1077, 2827, 284, 297, 4083, 0, 1183, 12, 66, 497, 330, 7975, 520, 497, 6523, 91879, 7975, 21232, 6332, 286, 1077, 393, 18112, 19139, 341, 310, 1946, 345, 310,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_multiple_expression() { // Project // LogicalGet let expr = SExpr::create_unary( From::from(PatternPlan { plan_type: PlanType::Project, }), SExpr::create_leaf(From::from(PatternPlan { plan_type: PlanType::LogicalGet, })), ...
rust_cleaned_test_functions.jsonl/77612
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 939 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 28068, 368, 341, 262, 442, 5787, 7213, 262, 442, 220, 62069, 1949, 198, 262, 1077, 15169, 284, 328, 16041, 486, 3182, 4907, 658, 1006, 286, 5542, 486, 1499, 5304, 3227, 20485, 341, 310, 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_call() { assert_eq!( "sin()".parse::<Call>().unwrap(), Call { function: "sin".to_owned(), args: vec![], named_args: vec![], } ); assert_eq!( "log(2,32.4)".parse::<Call>().unwra...
rust_cleaned_test_functions.jsonl/130541
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 368, 341, 286, 2060, 10714, 33673, 310, 330, 15940, 368, 3263, 6400, 27638, 7220, 10483, 15454, 3148, 310, 7143, 341, 394, 729, 25, 330, 15940, 3263, 983, 51973, 3148, 394, 2827, 25, 7486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bank_hash_internal_state_squash() { let collector_id = Pubkey::default(); let bank0 = Arc::new(Bank::new(&GenesisBlock::new(10).0)); let bank1 = Bank::new_from_parent(&bank0, &collector_id, 1); assert_eq!(bank0.hash_internal_state(), bank1.hash_internal_...
rust_cleaned_test_functions.jsonl/41902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35733, 8950, 23472, 4387, 643, 446, 988, 368, 341, 286, 1077, 31953, 842, 284, 22611, 792, 486, 2258, 543, 286, 1077, 6073, 15, 284, 19689, 486, 931, 5349, 1180, 486, 931, 2099, 84652, 4713, 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_fifo_symlink() { use std::fs::OpenOptions; use std::io::Write; use std::thread; let s = TestScenario::new(util_name!()); s.fixtures.mkdir("dir"); s.fixtures.mkfifo("dir/pipe"); assert!(s.fixtures.is_fifo("dir/pipe")); // Make cat read the pipe through a symlink ...
rust_cleaned_test_functions.jsonl/90926
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 412 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56590, 58530, 44243, 368, 341, 262, 990, 1460, 486, 3848, 486, 5002, 3798, 280, 262, 990, 1460, 486, 815, 486, 7985, 280, 262, 990, 1460, 486, 4528, 401, 262, 1077, 274, 284, 3393, 54031, 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_is_collection_empty() { let text = " {% if array == empty %} true {% else %} false {% endif %} "; assert_template_result!(" true ", text, v!({"array": []})); }
rust_cleaned_test_functions.jsonl/28135
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 25019, 15124, 368, 341, 262, 1077, 1467, 284, 330, 52261, 421, 1334, 621, 4287, 1018, 92, 830, 52261, 770, 1018, 92, 895, 52261, 12330, 1018, 92, 7620, 262, 2060, 8693, 5287, 17223, 220, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_total_len_underflow() { let mut bytes = vec![0; 24]; bytes.copy_from_slice(&REPR_PACKET_BYTES[..]); let mut packet = Packet::new(&mut bytes); packet.set_total_len(10); packet.fill_checksum(); let packet = Packet::new(&*packet.into_inner()); ...
rust_cleaned_test_functions.jsonl/82363
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 10784, 6043, 58228, 4965, 368, 341, 286, 1077, 5206, 5820, 284, 7486, 20703, 15, 26, 220, 17, 19, 935, 286, 5820, 12232, 5673, 26488, 2099, 787, 6480, 40328, 40705, 95874, 2558, 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_full_exit_initialted_from_wrong_account_owner() { // Input data. let accounts = vec![WitnessTestAccount::new(AccountId(1), 10)]; let invalid_account = WitnessTestAccount::new(AccountId(2), 10); let account = &accounts[0]; let invalid_account_eth_address = invalid_account.acco...
rust_cleaned_test_functions.jsonl/45536
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 488 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16372, 16880, 15809, 6565, 5673, 75198, 13500, 29027, 368, 341, 262, 442, 5571, 821, 624, 262, 1077, 9618, 284, 7486, 20703, 98413, 2271, 7365, 486, 931, 65360, 764, 7, 16, 701, 220, 16, 15, 125...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_top_banned_ips() { // Given let ip1 = LocatedBannedIp { ip: "115.238.245.4".to_string(), numberofbans: 8, country_name: "Germany".to_string(), }; let ip2 = LocatedBannedIp { ip: "223.111.139.244".to_string(), ...
rust_cleaned_test_functions.jsonl/65264
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 536 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 10426, 880, 7295, 71074, 368, 341, 286, 442, 16246, 198, 286, 1077, 5997, 16, 284, 41767, 33, 7295, 23378, 341, 310, 5997, 25, 330, 16, 16, 20, 13, 17, 18, 23, 13, 17, 19, 20, 13, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bus_type_is_compatible_with_set() { use std::collections::HashSet; let mut set: HashSet<BusType> = HashSet::new(); set.insert(BusType::Starter); set.insert(BusType::Starter); assert_eq!(set.len(), 1); assert!(!set.contains(&BusType::Session)); assert!(!set.contains(...
rust_cleaned_test_functions.jsonl/70376
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25418, 1819, 6892, 2965, 37079, 6615, 2602, 368, 341, 262, 990, 1460, 486, 51137, 486, 44601, 401, 262, 1077, 5206, 738, 25, 18931, 27, 15073, 929, 29, 284, 18931, 486, 931, 543, 262, 738, 7030,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hints_in_const_contexts() { use core::intrinsics::{likely, unlikely}; const { assert!(true == likely(true)); assert!(false == likely(false)); assert!(true == unlikely(true)); assert!(false == unlikely(false)); assert!(42u32 == core::intrinsic...
rust_cleaned_test_functions.jsonl/132747
{ "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, 1523, 21042, 1243, 13610, 8467, 82, 368, 341, 262, 990, 6200, 486, 58788, 67102, 22964, 14282, 11, 17367, 2315, 1066, 262, 733, 341, 286, 2060, 10297, 1866, 621, 4363, 3715, 1106, 286, 2060, 10297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_highlighting_injected_html_in_javascript() { let source = vec!["const s = html `<div>${a < b}</div>`;"].join("\n"); assert_eq!( &to_token_vector(&source, get_language("javascript"), &JS_SHEET).unwrap(), &[vec![ ("const", vec![Highlight::Keyword]), ...
rust_cleaned_test_functions.jsonl/12255
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1091 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74546, 287, 1243, 28303, 9564, 1243, 5374, 6173, 368, 341, 262, 1077, 2530, 284, 7486, 0, 1183, 1024, 274, 284, 5272, 30586, 611, 37680, 64, 366, 293, 5361, 611, 43626, 26, 5521, 5987, 4921, 77,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_split_additional_suffix() { let (at, mut ucmd) = at_and_ucmd!(); let name = "split_additional_suffix"; RandomFile::new(&at, name).add_lines(2000); ucmd.args(&["--additional-suffix", ".txt", name]).succeeds(); let glob = Glob::new(&at, ".", r"x[[:alpha:]][[:alpha:]].txt$"); ...
rust_cleaned_test_functions.jsonl/25857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 81742, 37151, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 829, 284, 330, 6960, 81742, 37151, 876, 262, 10612, 1703, 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_rotate_line() { let line0 = Line::from([(0., 0.), (0., 2.)]); let line1 = Line::from([(1., 1.), (-1., 1.)]); assert_relative_eq!(line0.rotate_around_centroid(90.0), line1); assert_relative_eq!(line0.rotate_around_center(90.0), line1); }
rust_cleaned_test_functions.jsonl/80257
{ "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, 60834, 6528, 368, 341, 286, 1077, 1555, 15, 284, 7083, 486, 1499, 58590, 15, 2572, 220, 15, 24389, 320, 15, 2572, 220, 17, 6138, 2558, 286, 1077, 1555, 16, 284, 7083, 486, 1499, 58590, 16, 257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_o_next_iterator() { let mut dcel = DCEL::new(); let mut vs = Vec::new(); for _ in 0..5 { vs.push(dcel.insert_vertex(())); } let mut last_edge = dcel.connect_two_isolated_vertices(vs[0], vs[1], 0); let mut edges = vec![last_edge]; ...
rust_cleaned_test_functions.jsonl/7380
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 536 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14179, 11257, 13491, 368, 341, 286, 1077, 5206, 294, 3672, 284, 422, 41664, 486, 931, 543, 286, 1077, 5206, 6165, 284, 11312, 486, 931, 543, 286, 369, 716, 304, 220, 15, 496, 20, 341, 310, 616...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_request_with_default_apns_collapse_id() { let builder = PlainNotificationBuilder::new("test"); let payload = builder.build("a_test_id", Default::default()); let client = Client::new(AlpnConnector::new(), None, Endpoint::Production); let request = client.build_re...
rust_cleaned_test_functions.jsonl/109656
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 6615, 9993, 21093, 4412, 666, 10786, 842, 368, 341, 286, 1077, 7363, 284, 43199, 11196, 3297, 486, 931, 445, 1944, 3071, 286, 1077, 7729, 284, 7363, 13239, 445, 64, 4452, 842, 497, 7899, 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_blob_url_display_redacted() { let url_no_query = "https://myaccount.blob.core.windows.net/mycontainer/myblob"; let url_sas_query = "https://myaccount.blob.core.windows.net/mycontainer/myblob?x=public1&sig=secret&y=public2"; assert_eq!( url_no_query, ...
rust_cleaned_test_functions.jsonl/81901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 320 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45908, 2903, 14825, 26058, 22167, 368, 341, 286, 1077, 2515, 6536, 5738, 284, 330, 2428, 1110, 2408, 4608, 96281, 4871, 68113, 5071, 34198, 3586, 34198, 35112, 876, 286, 1077, 2515, 643, 300, 5738, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_convert() { let m = Measure::from_str("1 tbsp"); let tbsp_dollars = (Measure::from_str("2 tbsp"), Measure::from_str("4 dollars")); assert_eq!( Measure::from_str("2 dollars"), convert(m.clone(), MeasureKind::Money, vec![tbsp_dollars.clone()]).unwrap...
rust_cleaned_test_functions.jsonl/38586
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 368, 341, 286, 1077, 296, 284, 34104, 486, 1499, 2895, 445, 16, 63875, 797, 286, 1077, 63875, 814, 965, 1561, 284, 320, 32236, 486, 1499, 2895, 445, 17, 63875, 3975, 34104, 486, 1499, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_x86_64() { test::<crate::x86::reg::X86_64CoreRegs, crate::x86::reg::id::X86_64CoreRegId>() }
rust_cleaned_test_functions.jsonl/17881
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 23, 21, 62, 21, 19, 368, 341, 286, 1273, 27638, 61711, 486, 87, 23, 21, 486, 1580, 486, 55, 23, 21, 62, 21, 19, 5386, 84470, 11, 17717, 486, 87, 23, 21, 486, 1580, 486, 307, 486, 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
#[test] fn test_reverse_part() { let mut values = [1, 2, 3, 4, 5]; values[1..4].reverse(); assert!(values == [1, 4, 3, 2, 5]); }
rust_cleaned_test_functions.jsonl/12909
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43277, 10495, 368, 341, 262, 1077, 5206, 2750, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 2750, 58, 16, 496, 19, 936, 25903, 543, 262, 2060, 10297, 3661, 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
#[test] fn test_add_carry_assign_binary() { let mut d = BinaryDigit(0u8); let overflow = d.add_carry_assign(BinaryDigit(47), false); assert!(!overflow); assert_eq!(d, BinaryDigit(47)); let mut d = BinaryDigit(0x80u8); let overflow = d.add_carry_assign(BinaryD...
rust_cleaned_test_functions.jsonl/26389
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 848 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 666, 11433, 20688, 31761, 741, 262, 341, 286, 1077, 5206, 294, 284, 17718, 36420, 7, 15, 84, 23, 317, 286, 1077, 16484, 284, 294, 1364, 666, 11433, 20688, 77833, 36420, 7, 19, 22, 701, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fq_repr_div2() { let mut a = FqRepr([ 0x8b0ad39f8dd7482a, 0x147221c9a7178b69, 0x54764cb08d8a6aa0, 0x8519d708e1d83041, 0x41f82777bd13fdb, 0xf43944578f9b771b, ]); a.div2(); assert_eq!( ...
rust_cleaned_test_functions.jsonl/2317
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1030 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 68535, 16237, 17, 368, 341, 286, 1077, 5206, 264, 284, 434, 80, 693, 649, 8956, 310, 220, 15, 87, 23, 65, 15, 329, 18, 24, 69, 23, 631, 22, 19, 23, 17, 64, 345, 310, 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...
5
#[test] fn test_builder() { fn assert_valid((open, high, low, close, volume): (f32, f32, f32, f32, f32)) { let result = DataItem::builder() .open(open) .high(high) .low(low) .close(close) .volume(volume) ...
rust_cleaned_test_functions.jsonl/99257
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1059 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28532, 368, 341, 286, 5168, 2060, 8337, 1188, 2508, 11, 1550, 11, 3347, 11, 3265, 11, 8123, 1648, 320, 69, 18, 17, 11, 282, 18, 17, 11, 282, 18, 17, 11, 282, 18, 17, 11, 282, 18, 17, 593...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_str_ipv6() { assert_eq!(Ok(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 0)), "0:0:0:0:0:0:0:0".parse()); assert_eq!(Ok(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), "0:0:0:0:0:0:0:1".parse()); assert_eq!(Ok(Ipv6Addr::new(0, 0, 0, 0, 0, 0, 0, 1)), "::1".parse()); assert_eq!(Ok(Ipv6Addr::new...
rust_cleaned_test_functions.jsonl/8032
{ "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, 5673, 2895, 49378, 21, 368, 341, 262, 2060, 10714, 10297, 11578, 8972, 30168, 21, 13986, 486, 931, 7, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unicode_truncation() { #[rustfmt::skip] let pairs = [ // Empty string should not error or mutate. ( "", "" ), // Unicode < 32 should not be corrupted. ( "🔥", ...
rust_cleaned_test_functions.jsonl/100965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 563 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54662, 3547, 1347, 367, 368, 341, 286, 11506, 35788, 12501, 486, 20599, 921, 286, 1077, 13530, 284, 2278, 310, 442, 22228, 914, 1265, 537, 1465, 476, 67182, 624, 310, 2399, 394, 8324, 394, 8389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unary_not_float() { assert_has_variable!(interpret("X = NOT 3.14"), "X!", -4.0_f32); assert_has_variable!(interpret("X = NOT 3.5#"), "X!", -5.0_f32); assert_has_variable!(interpret("X = NOT -1.1"), "X!", 0.0_f32); assert_has_variable!(interpret("X ...
rust_cleaned_test_functions.jsonl/22659
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 658, 7913, 17586, 368, 341, 310, 2060, 21778, 14635, 10297, 16897, 445, 55, 284, 4183, 220, 18, 13, 16, 19, 3975, 330, 55, 18789, 481, 19, 13, 15, 761, 18, 17, 317, 310, 2060, 21778, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_filter_manager_has() { let id_id = 1; let age_id = 2; let mut has_compare = message::LogicalCompare::new(); has_compare.set_prop_id(age_id); has_compare.set_compare(message::CompareType::EXIST); let compare_list = vec![has_compare]; let f...
rust_cleaned_test_functions.jsonl/43854
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 646 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 12144, 21778, 368, 341, 286, 1077, 877, 842, 284, 220, 16, 280, 286, 1077, 4231, 842, 284, 220, 17, 401, 286, 1077, 5206, 702, 32235, 284, 1943, 486, 64312, 27374, 486, 931, 543, 286, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_timestamp_arithmetic() { let time0 = Timestamp::none(); let time1 = Timestamp::from_nanoseconds(100).unwrap(); let time2 = Timestamp::from_nanoseconds(150).unwrap(); let time3 = Timestamp::from_nanoseconds(50).unwrap(); let duration = Duration::from_nanos(...
rust_cleaned_test_functions.jsonl/86044
{ "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, 23073, 25842, 25922, 368, 341, 286, 1077, 882, 15, 284, 32758, 486, 6697, 543, 286, 1077, 882, 16, 284, 32758, 486, 1499, 73936, 75889, 7, 16, 15, 15, 568, 15454, 543, 286, 1077, 882, 17, 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_foreground_reverse() { let mut style = Style::new(COLORS); style.reverse = true; assert_eq!( style.foreground(&DEFAULT_COLORS), COLORS.background.unwrap() ); style.colors.background = None; assert_eq!( style.for...
rust_cleaned_test_functions.jsonl/128015
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35563, 1951, 43277, 368, 341, 286, 1077, 5206, 1707, 284, 11913, 486, 931, 87411, 50, 317, 286, 1707, 32081, 284, 830, 401, 286, 2060, 10714, 33673, 310, 1707, 54569, 1951, 2099, 17285, 85436, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_force_write_unlock() { let m = RwLock::new(()); ::std::mem::forget(m.write()); assert!(m.try_read().is_none()); unsafe { m.force_write_unlock(); } assert!(m.try_read().is_some()); }
rust_cleaned_test_functions.jsonl/125136
{ "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, 40739, 9165, 19465, 368, 341, 286, 1077, 296, 284, 55294, 11989, 486, 931, 7, 1423, 286, 3504, 1834, 486, 10536, 486, 40019, 1255, 3836, 1423, 286, 2060, 10297, 76, 48779, 6443, 1005, 285, 31488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stream_take_while() { System::new().block_on(async { let addr = MyStreamActor2 { counter: 0 }.start(); addr.send(TakeWhileMsg(5)).await.unwrap(); }) }
rust_cleaned_test_functions.jsonl/82647
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12673, 73261, 86069, 368, 341, 262, 739, 486, 931, 1005, 4574, 4470, 18285, 341, 286, 1077, 10789, 284, 3017, 3027, 18870, 17, 314, 5546, 25, 220, 15, 16908, 2468, 543, 286, 10789, 5219, 4140, 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
#[test] fn test_wrong_args_exit_code() { new_ucmd!() .arg("--misspelled") .fails() .status_code(2) .stderr_contains("--misspelled"); }
rust_cleaned_test_functions.jsonl/20549
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75198, 8384, 16880, 4136, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 21549, 1831, 79, 15201, 1138, 286, 659, 59631, 741, 286, 659, 2829, 4136, 7, 17, 340, 286, 659, 36422, 63598, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_tunnel() { let addr = mock_tunnel!(); let mut core = Core::new().unwrap(); let work = TcpStream::connect(&addr, &core.handle()); let host = addr.ip().to_string(); let port = addr.port(); let work = work.and_then(|tcp| tunnel(tcp, host, port)); ...
rust_cleaned_test_functions.jsonl/124010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 95692, 368, 341, 286, 1077, 10789, 284, 7860, 95692, 0, 1428, 286, 1077, 5206, 6200, 284, 9518, 486, 931, 1005, 15454, 543, 286, 1077, 975, 284, 64876, 3027, 486, 6459, 2099, 6214, 11, 609, 2153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verify_bank_hash_no_account() { solana_logger::setup(); let db = AccountsDB::new(Vec::new()); let some_slot: Slot = 0; let ancestors = vec![(some_slot, 0)].into_iter().collect(); db.bank_hashes .write() .unwrap() .inse...
rust_cleaned_test_functions.jsonl/33692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 261 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 35733, 8950, 6536, 13500, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 2927, 284, 40655, 3506, 486, 931, 49923, 486, 931, 5231, 286, 1077, 1045, 27563, 25, 31316, 284, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty() { let schema = Schema::builder().build(); let index = Index::create_in_ram(schema); let searcher = index.searcher().unwrap(); let searcher_space_usage = searcher.space_usage().unwrap(); assert_eq!(0, searcher_space_usage.total()); }
rust_cleaned_test_functions.jsonl/62187
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 368, 341, 286, 1077, 10802, 284, 12539, 486, 17850, 1005, 5834, 543, 286, 1077, 1922, 284, 8008, 486, 3182, 1243, 62124, 42735, 317, 286, 1077, 94674, 284, 1922, 9288, 261, 1005, 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_primitive_array_invalid_buffer_len() { let buffer = Buffer::from_slice_ref(&[0i32, 1, 2, 3, 4]); let data = unsafe { ArrayData::builder(DataType::Int32) .add_buffer(buffer.clone()) .add_buffer(buffer) .len(5) ...
rust_cleaned_test_functions.jsonl/95557
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 31433, 7776, 6043, 368, 341, 286, 1077, 4147, 284, 10312, 486, 1499, 26488, 7793, 2099, 58, 15, 72, 18, 17, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 2558, 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_ranking() { let root = static_root(); for rank in -128..128 { let a = StaticFiles::new(&root, Options::None).rank(rank); let b = StaticFiles::from(&root).rank(rank); for handler in vec![a, b] { let routes: Vec<Route> = handler....
rust_cleaned_test_functions.jsonl/18552
{ "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, 20417, 287, 368, 341, 286, 1077, 3704, 284, 1099, 12993, 543, 286, 369, 7077, 304, 481, 16, 17, 23, 496, 16, 17, 23, 341, 310, 1077, 264, 284, 23105, 10809, 486, 931, 2099, 2888, 11, 14566, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_round() { let mut x = -2.0; let mut y = -2.0; let mut w = -2.0; let mut h = -2.0; while x < 2.0 { while y < 2.0 { while w < 2.0 { while h < 2.0 { let rect = Rect::new(Point2D::new(x, y...
rust_cleaned_test_functions.jsonl/24163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 667 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 368, 341, 286, 1077, 5206, 856, 284, 481, 17, 13, 15, 280, 286, 1077, 5206, 379, 284, 481, 17, 13, 15, 280, 286, 1077, 5206, 289, 284, 481, 17, 13, 15, 280, 286, 1077, 5206, 305, 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...
5
#[test] fn test_apply_content_style_to_text() { let content_style = ContentStyle::new() .foreground(Color::Blue) .background(Color::Red) .attribute(Attribute::Reset); let styled_content = content_style.apply("test"); assert_eq!(styled_content.style()...
rust_cleaned_test_functions.jsonl/80206
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36551, 7495, 15117, 2346, 4326, 368, 341, 286, 1077, 2213, 15117, 284, 8883, 2323, 486, 931, 741, 310, 659, 34919, 15028, 486, 10331, 340, 310, 659, 6742, 15028, 486, 6033, 340, 310, 659, 9116, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_batch_values_only() { test_read_batch_int32(16, &mut [0; 10], None, None); // < batch_size test_read_batch_int32(16, &mut [0; 16], None, None); // == batch_size test_read_batch_int32(16, &mut [0; 51], None, None); // > batch_size }
rust_cleaned_test_functions.jsonl/55252
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 14534, 9146, 18410, 368, 341, 286, 1273, 6443, 14534, 4042, 18, 17, 7, 16, 21, 11, 609, 6984, 508, 15, 26, 220, 16, 15, 1125, 2240, 11, 2240, 1215, 442, 366, 7162, 2368, 198, 286, 1273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_line_height() { assert_lex( "h2 { line-height: 3cm }", &[ (Token::Ident, "h2", 0..2), (Token::CurlyBracketOpen, "{", 3..4), (Token::Ident, "line-height", 5..16), (Token::Colon, ":", 16..17), ...
rust_cleaned_test_functions.jsonl/89923
{ "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, 6528, 9561, 368, 341, 286, 2060, 74547, 1006, 310, 330, 71, 17, 314, 1555, 17068, 25, 220, 18, 6226, 335, 756, 310, 609, 9640, 394, 320, 3323, 486, 28301, 11, 330, 71, 17, 497, 220, 15, 496,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_whitelist() { ExtBuilder::default().build().execute_with(|| { assert_eq!(None, NftmartConfig::account_whitelist(ALICE)); assert_eq!(None, NftmartConfig::account_whitelist(BOB)); assert_ok!(NftmartConfig::add_whitelist(Origin::root(), ALICE)); assert_eq!(last_event(), Event::nftmart_conf...
rust_cleaned_test_functions.jsonl/100162
{ "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, 36225, 57645, 368, 341, 76605, 3297, 486, 2258, 1005, 5834, 1005, 10257, 6615, 79453, 341, 197, 6948, 10714, 10297, 4064, 11, 451, 723, 33472, 2648, 486, 4608, 36225, 57645, 46232, 5487, 1106, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_on_same_store() { let cases = vec![ (vec![2, 3, 4], vec![], vec![1, 2, 3], vec![], false), (vec![2, 3, 1], vec![], vec![1, 2, 3], vec![], true), (vec![2, 3, 4], vec![], vec![1, 2], vec![], false), (vec![1, 2, 3], vec![], vec![1, 2, 3], vec!...
rust_cleaned_test_functions.jsonl/6855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 885 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4470, 33574, 14809, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4083, 20703, 17, 11, 220, 18, 11, 220, 19, 1125, 7486, 0, 12995, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 1125, 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...
6
#[test] fn test_memory_limited_buffer() { let builder = MemoryLimitedBufferBuilder::new(76); let mut buffer = builder.build(); let item1 = MyType { number: 0, // 8 bytes string: "hello!".into(), // 8 + 8 + 8 + 6 = 30 bytes ...
rust_cleaned_test_functions.jsonl/61426
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 498 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19195, 907, 31511, 7776, 368, 341, 310, 1077, 7363, 284, 13850, 74477, 4095, 3297, 486, 931, 7, 22, 21, 317, 310, 1077, 5206, 4147, 284, 7363, 13239, 1428, 310, 1077, 1509, 16, 284, 3017, 929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_readable_size() { let s = ReadableSize::kb(2); assert_eq!(s.0, 2048); assert_eq!(s.as_mb(), 0); let s = ReadableSize::mb(2); assert_eq!(s.0, 2 * 1024 * 1024); assert_eq!(s.as_mb(), 2); let s = ReadableSize::gb(2); assert_eq!(s.0, 2 ...
rust_cleaned_test_functions.jsonl/4777
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 91232, 2368, 368, 341, 286, 1077, 274, 284, 4457, 480, 1695, 486, 21310, 7, 17, 317, 286, 2060, 10714, 10297, 82, 13, 15, 11, 220, 17, 15, 19, 23, 317, 286, 2060, 10714, 10297, 82, 5357, 538...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_event_too_large() { let mut qb = QueuedBatches::default(); // Create a message that is at the limit let max_message_size = MAX_BATCH_SIZE - EVENT_OVERHEAD; let mut message = String::with_capacity(max_message_size + 1); for _ in 0..message.capacity() - 1 {...
rust_cleaned_test_functions.jsonl/96494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 412 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6748, 2346, 78, 45228, 368, 341, 286, 1077, 5206, 75807, 284, 9418, 3260, 33, 9118, 486, 2258, 1428, 286, 442, 4230, 264, 1943, 429, 374, 518, 279, 3930, 198, 286, 1077, 1932, 6462, 2368, 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...
3
#[test] fn test_is_equal_node() { let node1 = div(); let node2 = div(); assert!(node1.is_equal_node(&node2)); let child1 = div(); node1.append_child(&child1); assert!(!node1.is_equal_node(&node2)); let child2 = div(); node2.append_child(&child2);...
rust_cleaned_test_functions.jsonl/33769
{ "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, 6892, 11478, 5084, 368, 341, 286, 1077, 2436, 16, 284, 3429, 543, 286, 1077, 2436, 17, 284, 3429, 543, 286, 2060, 10297, 3509, 16, 2079, 11478, 5084, 2099, 3509, 17, 3237, 286, 1077, 1682, 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_len_add() { let input = vec![ vec!["(a".to_string()], vec!["(bc".to_string()], vec!["(def".to_string()], vec!["(ghij".to_string()], ]; let result = vec![ Some("(a)".to_string()), Some("(bc)".to_string()), None, None, ]; let result = run(input, result);...
rust_cleaned_test_functions.jsonl/92577
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6043, 2891, 368, 341, 220, 1077, 1946, 284, 7486, 90515, 262, 7486, 0, 1183, 7, 64, 3263, 983, 3904, 73845, 262, 7486, 0, 1183, 7, 8904, 3263, 983, 3904, 73845, 262, 7486, 0, 1183, 7, 750, 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_update_config() { let pd_client = Arc::new(MockPdClient::new()); let id = "localhost:1080"; // register config let mut cfg_handler = pd_client.clone().register(id, TiKvConfig::default(), false); let mut cfg = cfg_handler.get_config().clone(); // refresh local config ...
rust_cleaned_test_functions.jsonl/103833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 329 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 5332, 368, 341, 262, 1077, 7744, 8179, 284, 19689, 486, 931, 66436, 47, 67, 2959, 486, 931, 1423, 262, 1077, 877, 284, 330, 8301, 25, 16, 15, 23, 15, 3302, 262, 442, 4161, 2193, 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...
1
#[test] fn test_mut_iter() { let mut a: RgbImage = ImageBuffer::new(10, 10); { let val = a.pixels_mut().next().unwrap(); *val = color::Rgb([42, 0, 0]); } assert_eq!(a.data[0], 42) }
rust_cleaned_test_functions.jsonl/93552
{ "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, 29523, 11723, 368, 341, 286, 1077, 5206, 264, 25, 431, 9511, 1906, 284, 4654, 4095, 486, 931, 7, 16, 15, 11, 220, 16, 15, 317, 286, 341, 310, 1077, 1044, 284, 264, 556, 10274, 29523, 1005, 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_pass_initiate() { ExtBuilder::build().execute_with(|| { let alice_pair = account_pair("Alice"); let bob_pair = account_pair("Bob"); let (players, _) = get_sorted_peer(alice_pair.clone(), bob_pair.clone()); let initiate_request = SessionInitiateRequest { ...
rust_cleaned_test_functions.jsonl/30734
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15464, 6137, 6493, 368, 341, 262, 9447, 3297, 486, 5834, 1005, 10257, 6615, 79453, 341, 286, 1077, 70433, 14445, 284, 2692, 14445, 445, 61686, 797, 286, 1077, 35192, 14445, 284, 2692, 14445, 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...
2
#[test] fn test_node_create_peer_from_pre_vote() { let mut cluster = new_node_cluster(0, 2); cluster.cfg.raft_store.prevote = true; test_create_peer_from_pre_vote(&mut cluster); }
rust_cleaned_test_functions.jsonl/86920
{ "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, 5084, 8657, 45159, 5673, 10442, 54360, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 17, 317, 262, 10652, 30481, 13, 2944, 14809, 28991, 1272, 284, 830, 280, 262, 1273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parse_csi_special_key_code_multiple_values_not_supported() { assert_eq!( parse_csi_special_key_code(b"\x1B[3;2~").unwrap(), Some(InternalEvent::Event(Event::Key(KeyEvent::new( KeyCode::Delete, KeyModifiers::SHIFT )))), ...
rust_cleaned_test_functions.jsonl/21329
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 666, 6321, 41629, 3097, 4136, 45233, 9146, 7913, 57885, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 666, 6321, 41629, 3097, 4136, 1883, 11934, 87, 16, 33, 58, 18, 26, 17, 93, 1827, 1545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_avg_return_data_type() -> Result<()> { let data_type = DataType::Decimal(10, 5); let result_type = avg_return_type(&data_type)?; assert_eq!(DataType::Decimal(14, 9), result_type); let data_type = DataType::Decimal(36, 10); let result_type = avg_return_typ...
rust_cleaned_test_functions.jsonl/99106
{ "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, 26631, 12511, 1769, 1819, 368, 1464, 5714, 71698, 341, 286, 1077, 821, 1819, 284, 33172, 486, 11269, 7, 16, 15, 11, 220, 20, 317, 286, 1077, 1102, 1819, 284, 19712, 12511, 1819, 2099, 691, 1819,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_find_column_number() { assert_eq!(find_column_number("RLR"), 5); assert_eq!(find_column_number("RRR"), 7); assert_eq!(find_column_number("RLL"), 4); }
rust_cleaned_test_functions.jsonl/33846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 8744, 5500, 368, 341, 286, 2060, 10714, 10297, 3903, 8744, 5500, 445, 4728, 49, 3975, 220, 20, 317, 286, 2060, 10714, 10297, 3903, 8744, 5500, 445, 8106, 49, 3975, 220, 22, 317, 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
#[test] fn test_multi_arg_method_ordering() -> TestResult { let p = polar(); p.load_str( r#"bar(2, 1); bar(1, 1); bar(1, 2); bar(2, 2);"#, )?; qvars( &p, "bar(a, b)", &["a", "b"], values![[2, 1], [1, 1], [1, 2], [2, 2]], ...
rust_cleaned_test_functions.jsonl/68097
{ "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, 25133, 6057, 9032, 7869, 287, 368, 1464, 3393, 2077, 341, 262, 1077, 281, 284, 24660, 543, 262, 281, 5104, 2895, 1006, 286, 435, 55543, 2257, 7, 17, 11, 220, 16, 317, 1843, 3619, 7, 16, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_raw_box_hold_copy_str() { static mut TEST_AREA: [u8; 4096] = [0; 4096]; let pack = Pack::new(unsafe { Block::from_slice(&mut TEST_AREA) }); assert_eq!(pack.live(), 0); assert_eq!(pack.used(), 0); assert_eq!(pack.free(), 4064); { let xs = RawBox::hold_copy(pack, "...
rust_cleaned_test_functions.jsonl/34827
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 10194, 65824, 16096, 2895, 368, 341, 262, 1099, 5206, 13602, 50992, 25, 508, 84, 23, 26, 220, 19, 15, 24, 21, 60, 284, 508, 15, 26, 220, 19, 15, 24, 21, 935, 262, 1077, 3769, 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...
1
#[test] fn test_reconstruct_traditional_chinese() { let stop_words = Set::default(); let analyzer = Analyzer::new(AnalyzerConfig::default_with_stopwords(&stop_words)); let traditional = "人人生而自由﹐在尊嚴和權利上一律平等。他們賦有理性和良心﹐並應以兄弟關係的精神互相對待。"; let tokens = analyzer.analyze(traditional); ...
rust_cleaned_test_functions.jsonl/98419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 7596, 3547, 329, 3005, 4138, 7346, 368, 341, 286, 1077, 2936, 18981, 284, 2573, 486, 2258, 543, 286, 1077, 54660, 284, 78705, 486, 931, 7, 54911, 2648, 486, 2258, 6615, 19039, 5761, 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_generate_local_query_config() -> Result<()> { let mut conf = Config { group: "foo".to_string(), databend_dir: "/tmp/.databend".to_string(), mirror: GithubMirror {}.to_mirror(), clap: RefCell::new(Default::default()), }; let t = tempdir()?; conf.dat...
rust_cleaned_test_functions.jsonl/57761
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 13564, 5738, 5332, 368, 1464, 5714, 71698, 341, 262, 1077, 5206, 2335, 284, 5532, 341, 286, 1874, 25, 330, 7975, 3263, 983, 3904, 3148, 286, 71240, 408, 4334, 25, 3521, 5173, 11930, 67, 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_strv() { let v = vec!["123", "456"].to_value(); assert_eq!( v.get::<Vec<GString>>(), Ok(vec![GString::from("123"), GString::from("456")]) ); let v = vec![String::from("123"), String::from("456")].to_value(); assert_eq!( ...
rust_cleaned_test_functions.jsonl/66600
{ "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, 2895, 85, 368, 341, 286, 1077, 348, 284, 7486, 0, 1183, 16, 17, 18, 497, 330, 19, 20, 21, 5521, 983, 3142, 543, 286, 2060, 10714, 33673, 310, 348, 670, 27638, 10050, 59727, 703, 2452, 3148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_struct_child_array_lengths() { StructArray::from(vec![ ( Field::new("b", DataType::Float32, false), Arc::new(Float32Array::from(vec![1.1])) as Arc<Array>, ), ( Field::new("c", DataType::Float64, f...
rust_cleaned_test_functions.jsonl/689
{ "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, 31433, 15126, 17268, 3858, 54416, 368, 341, 286, 16139, 1857, 486, 1499, 25592, 90515, 310, 2399, 394, 8601, 486, 931, 445, 65, 497, 33172, 486, 5442, 18, 17, 11, 895, 1326, 394, 19689, 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_buffer() { let reader = bam::IndexedReader::from_path(&"test/test.bam").unwrap(); let mut buffer = RecordBuffer::new(reader, false); buffer.fetch(b"CHROMOSOME_I", 1, 5).unwrap(); { let records: Vec<_> = buffer.iter().collect(); assert_eq!...
rust_cleaned_test_functions.jsonl/123074
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 328 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 368, 341, 286, 1077, 6604, 284, 41304, 486, 1552, 17120, 486, 1499, 2638, 2099, 1, 1944, 12697, 71804, 1827, 15454, 1428, 286, 1077, 5206, 4147, 284, 13583, 4095, 486, 931, 21987, 11, 895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_balance_of() { let (_master_account, contract) = init(); let acc_id = AccountId::try_from(CONTRACT_ACC).unwrap(); let balance = view!(contract.ft_balance_of(acc_id)).unwrap_json::<u128>(); assert_eq!(balance, 0); }
rust_cleaned_test_functions.jsonl/52144
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29396, 3575, 368, 341, 262, 1077, 5453, 13629, 13500, 11, 5116, 8, 284, 2930, 543, 262, 1077, 1029, 842, 284, 8615, 764, 486, 1539, 5673, 27631, 41105, 25666, 568, 15454, 543, 262, 1077, 8172, 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_bpav_wdtr_dter_lfo() { let mut moons = vec![]; moons.push(Body::new(-1, 0, 2)); moons.push(Body::new(2, -10, -7)); moons.push(Body::new(4, -8, 8)); moons.push(Body::new(3, 5, -1)); assert_eq!(2772, bpav_wdtr_dter_lfo(&mut moons).unwrap()); }
rust_cleaned_test_functions.jsonl/667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57106, 402, 1670, 67, 376, 814, 465, 907, 824, 368, 341, 286, 1077, 5206, 80160, 284, 7486, 0, 15078, 286, 80160, 2552, 5349, 1076, 486, 931, 4080, 16, 11, 220, 15, 11, 220, 17, 1106, 286, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compile_and_f() { let compiled = bitwise::compile_and("F".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b10111000); }
rust_cleaned_test_functions.jsonl/100583
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 8378, 761, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 8378, 445, 37, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 220, 16, 317, 262, 2060, 10714, 10297, 5084...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_invalid_variance() { // Only one row let a: Matrix<f32> = matrix![1.0, 2.0]; let a_row = a.variance(Axes::Row); assert!(a_row.is_err()); let a_col = a.variance(Axes::Col).unwrap(); assert_eq!(*a_col.data(), vec![0.5]); // Only one column...
rust_cleaned_test_functions.jsonl/55925
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 410 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 77450, 368, 341, 286, 442, 8278, 825, 2802, 198, 286, 1077, 264, 25, 11631, 63895, 18, 17, 29, 284, 6172, 20703, 16, 13, 15, 11, 220, 17, 13, 15, 4821, 286, 1077, 264, 8530, 284, 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, 1, 1, 1, 1...
1
#[test] fn test_bingo() { let mut bingo_boards: Vec<Board<5, 5>> = Vec::new(); let mut file = File::open(DAY_THREE_INPUT.to_string()).unwrap(); let mut contents = String::new(); file.read_to_string(&mut contents).unwrap(); let mut board = [[0; 5]; 5]; let mut fi...
rust_cleaned_test_functions.jsonl/130766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 655 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 27908, 368, 341, 286, 1077, 5206, 77024, 62, 19270, 25, 11312, 27, 11932, 27, 20, 11, 220, 20, 2452, 284, 11312, 486, 931, 543, 286, 1077, 5206, 1034, 284, 2887, 486, 2508, 5432, 3022, 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...
5
#[test] fn test_vec_list_insert_before_panic_index_invalidated() { let mut list = VecList::new(); let index = list.push_front(0); list.remove(index); list.insert_before(index, 1); }
rust_cleaned_test_functions.jsonl/11535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 2019, 17678, 23708, 620, 31270, 3560, 31433, 657, 368, 341, 286, 1077, 5206, 1140, 284, 11312, 852, 486, 931, 543, 286, 1077, 1922, 284, 1140, 2552, 22926, 7, 15, 317, 286, 1140, 4850, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_load_end_event() { let event: LoadEndEvent = js!( return new ProgressEvent( @{LoadEndEvent::EVENT_TYPE} ); ).try_into().unwrap(); assert_eq!( event.event_type(), LoadEndEvent::EVENT_TYPE ); }
rust_cleaned_test_functions.jsonl/998
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 6213, 6748, 368, 341, 286, 1077, 1538, 25, 8893, 3727, 1556, 284, 6994, 33673, 310, 470, 501, 16033, 1556, 7, 33267, 5879, 3727, 1556, 486, 37349, 4189, 92, 1439, 286, 7457, 1539, 45514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_file_offset() { new_ucmd!() .arg("-c") .arg("--") .arg("-f") .arg("10") .succeeds() .no_stderr() .stdout_is(unindent( r" 0000010 w e r c a s e f \n 0000022 ", ...
rust_cleaned_test_functions.jsonl/48827
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 6917, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 66, 1138, 286, 659, 858, 21549, 1138, 286, 659, 858, 13645, 69, 1138, 286, 659, 858, 445, 16, 15, 1138, 286, 659, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_max_gas_units_below_min() { let (config, key) = config_builder::test_config(); let vm_validator = TestValidator::new(&config); let address = account_config::association_address(); let transaction = transaction_test_helpers::get_test_signed_transaction( address, ...
rust_cleaned_test_functions.jsonl/19608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 350 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 6345, 82116, 28345, 82750, 7260, 368, 341, 262, 1077, 320, 1676, 11, 1376, 8, 284, 2193, 28532, 486, 1944, 5332, 543, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 2099, 1676, 626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1