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_double_macro() { let gil = Python::acquire_gil(); let py = gil.python(); let v = 1.23f64; let obj = v.to_object(py); assert_eq!(v, unsafe { PyFloat_AS_DOUBLE(obj.as_ptr()) }); }
rust_cleaned_test_functions.jsonl/104447
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 24598, 58810, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 543, 286, 1077, 348, 284, 220, 16, 13, 17, 18, 69, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pairs_and_tokens() { compare( r#" grammar; extern { enum Tok { "Hi" => Hi(..), "Ho" => Ho(..) } } X = Y Z; Y: Foo = "Hi"; Z = "Ho"; "#, vec![("X", "(Foo, Tok)"), ("Y", "Foo"), ("Z", "Tok")], ) }
rust_cleaned_test_functions.jsonl/50464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36430, 8378, 28838, 368, 341, 262, 9429, 1006, 286, 435, 2, 698, 41094, 280, 262, 15637, 314, 7618, 21447, 314, 330, 13048, 1, 589, 21018, 56422, 701, 330, 47978, 1, 589, 17275, 56422, 8, 335, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_monotype_record() { let monotype = Parser::new("{ A with B: int }").parse_monotype(); let mut m = BTreeMap::<String, types::Tvar>::new(); let got = convert_monotype(&monotype, &mut m, &mut sub::Substitution::default()).unwrap(); let want = MonoType::from(...
rust_cleaned_test_functions.jsonl/131389
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 20737, 4156, 14192, 368, 341, 286, 1077, 1615, 4156, 284, 21102, 486, 931, 13976, 362, 448, 425, 25, 526, 335, 1827, 6400, 20737, 4156, 1428, 286, 1077, 5206, 296, 284, 425, 6533, 2227, 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_forward_with_gap() { let mut masm = MacroAssembler::new(); let lbl = masm.create_label(); masm.emit_label(lbl); masm.emit_u8(0x11); masm.bind_label(lbl); assert_eq!(vec![1, 0, 0, 0, 0x11], masm.data()); }
rust_cleaned_test_functions.jsonl/17049
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32121, 6615, 51790, 368, 341, 286, 1077, 5206, 9243, 76, 284, 53317, 77858, 486, 931, 543, 286, 1077, 16421, 284, 9243, 76, 2520, 6106, 543, 286, 9243, 76, 16812, 6106, 70491, 317, 286, 9243, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dim_duplicate_definition_different_builtin_type() { let program = r#" DIM A AS STRING DIM A AS INTEGER "#; assert_linter_err!(program, QError::DuplicateDefinition, 3, 17); }
rust_cleaned_test_functions.jsonl/122454
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10791, 70434, 31698, 82741, 73829, 1819, 368, 341, 262, 1077, 2025, 284, 435, 2, 698, 310, 50859, 362, 5752, 35255, 198, 310, 50859, 362, 5752, 30381, 198, 310, 5869, 280, 262, 2060, 907, 2245, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_state_machine_pop() { let (ref mut sm, ref mut _ctx) = create_state_machine_and_context(); assert_eq!(sm.states.len(), 1usize); let r = sm.pop(); assert!(r.is_some()); assert_eq!(sm.states.len(), 0usize); let r = sm.pop(); assert!(r.is_none...
rust_cleaned_test_functions.jsonl/119055
{ "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, 4387, 38695, 17061, 368, 341, 286, 1077, 320, 1097, 5206, 1525, 11, 2053, 5206, 716, 3773, 8, 284, 1855, 4387, 38695, 8378, 8467, 543, 286, 2060, 10714, 10297, 3563, 52147, 19406, 1507, 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_size() { assert_eq!(size_of(&one(b"s").unwrap()), None); assert_eq!(size_of(&one(b"i").unwrap()), Some(4)); assert_eq!(size_of(&one(b"a(uu)").unwrap()), None); assert_eq!(size_of(&one(b"(uu)").unwrap()), Some(8)); assert_eq!(size_of(&one(b"(uy)").unwrap())...
rust_cleaned_test_functions.jsonl/38199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 368, 341, 286, 2060, 10714, 10297, 2141, 3575, 2099, 603, 1883, 40787, 1827, 15454, 11858, 2240, 317, 286, 2060, 10714, 10297, 2141, 3575, 2099, 603, 1883, 1, 72, 1827, 15454, 11858, 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
#[test] fn test_get_restful_parameters() { let mut map = HashMap::new(); map.insert("verify", "pubkey"); map.insert("api_version", "2"); assert_eq!( get_restful_parameters("127.0.0.1:1337/v2/verify/pubkey"), map ); }
rust_cleaned_test_functions.jsonl/10557
{ "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, 3062, 32231, 1262, 18263, 368, 341, 286, 1077, 5206, 2415, 284, 10528, 486, 931, 543, 286, 2415, 7030, 445, 12446, 497, 330, 9585, 792, 797, 286, 2415, 7030, 445, 2068, 9438, 497, 330, 17, 3071,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_address_from_parity_ethkey() { let privkey = Secret::new(String::from( "2569cb99b0936649aba55237c4952fc6f4090e016e8449a1d2f7cde142cfbb00", )); let addr = privkey.address(); assert_eq!( addr, Address::from_str("e78cf81c309f27d5c5...
rust_cleaned_test_functions.jsonl/17034
{ "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, 6744, 5673, 620, 10748, 57757, 792, 368, 341, 286, 1077, 6095, 792, 284, 8599, 486, 931, 2242, 486, 1499, 1006, 310, 330, 17, 20, 21, 24, 7221, 24, 24, 65, 15, 24, 18, 21, 21, 19, 24, 1200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_latin1_characters() { let latin1_string = "Des mot clés À LA CHAÎNE À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï IJ Ð Ñ Ò Ó Ô Õ Ö Ø Œ Þ Ù Ú Û Ü Ý Ÿ à á â ã ä å æ ç è é ê ë ì í î ï ij ð ñ ò ó ô õ ö ø œ ß þ ù ú û ü ý ÿ fi fl"; let mut vec: Vec<&str> = vec!["Des...
rust_cleaned_test_functions.jsonl/75890
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 962 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 14768, 16, 79060, 368, 341, 286, 1077, 62919, 16, 3904, 284, 330, 4896, 3852, 1185, 5397, 64281, 12959, 6826, 32, 71807, 3944, 64281, 42812, 45333, 73780, 48686, 79252, 1683, 228, 63005, 131390...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hop_missing_secret() { let chanmon_cfgs = create_chanmon_cfgs(4); let node_cfgs = create_node_cfgs(4, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(4, &node_cfgs, &[None, None, None, None]); let nodes = create_network(4, &node_cfgs, &node_chanmgrs); let chan_1_id = cr...
rust_cleaned_test_functions.jsonl/94570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 811 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 98193, 40447, 21962, 368, 341, 197, 10217, 26023, 1645, 18343, 82, 284, 1855, 45552, 1645, 18343, 82, 7, 19, 317, 197, 10217, 2436, 18343, 82, 284, 1855, 5084, 18343, 82, 7, 19, 11, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_type_check() { fn assert_type_check(tokens: Vec<Token>, param_types: Vec<ParamType>) { assert!(Token::types_check(&tokens, &param_types)) } fn assert_not_type_check(tokens: Vec<Token>, param_types: Vec<ParamType>) { assert!(!Token::types_check(&tokens, &param_types)) } assert_t...
rust_cleaned_test_functions.jsonl/83338
{ "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, 1819, 7200, 368, 341, 197, 40095, 2060, 1819, 7200, 34052, 25, 11312, 83416, 8066, 1685, 9763, 25, 11312, 27, 2001, 929, 9231, 341, 298, 6948, 10297, 3323, 486, 9242, 7200, 2099, 30566, 11, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_external_transaction_signer() { let (_swarm, mut client_proxy) = setup_swarm_and_client_proxy(1, 0); // generate key pair let private_key = Ed25519PrivateKey::generate_for_testing(); let public_key = private_key.public_key(); // create transfer parameters let sender_aut...
rust_cleaned_test_functions.jsonl/62879
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47432, 28884, 11172, 261, 368, 341, 262, 1077, 5453, 2280, 2178, 11, 5206, 2943, 29712, 8, 284, 6505, 32581, 2178, 8378, 8179, 29712, 7, 16, 11, 220, 15, 626, 262, 442, 6923, 1376, 6716, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_remove_metric_tag_kv() { let mut script = PathBuf::from(env!("CARGO_MANIFEST_DIR")); script.push("resources/tests/scripts"); let script_dir = script.clone(); script.push("remove_keys.lua"); let config = ProgrammableFilterConfig { ...
rust_cleaned_test_functions.jsonl/41367
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 721 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 41294, 9372, 97066, 368, 341, 310, 1077, 5206, 5316, 284, 7933, 15064, 486, 1499, 16978, 17223, 34, 7581, 46, 25143, 91120, 8291, 4010, 310, 5316, 2552, 445, 12745, 62468, 39372, 797, 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_parse_fail() { let range = LineRange::from("40:50:80"); assert!(range.is_err()); let range = LineRange::from("40::80"); assert!(range.is_err()); let range = LineRange::from(":40:"); assert!(range.is_err()); }
rust_cleaned_test_functions.jsonl/35927
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 22121, 368, 341, 262, 1077, 2088, 284, 7083, 6046, 486, 1499, 445, 19, 15, 25, 20, 15, 25, 23, 15, 797, 262, 2060, 10297, 9669, 2079, 9266, 1423, 262, 1077, 2088, 284, 7083, 6046, 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_macro_expand_will_stop_2() { // the release mode. That's why the argument is not an ra_fixture -- // otherwise injection highlighting gets stuck. // We need to find a way to fail this faster. do_resolve( r#" macro_rules! foo { ($(...
rust_cleaned_test_functions.jsonl/7331
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58810, 67875, 1670, 483, 19039, 62, 17, 368, 341, 1789, 286, 442, 279, 4879, 3856, 13, 2938, 594, 3170, 279, 5693, 374, 537, 458, 15122, 74409, 39514, 286, 442, 5937, 25071, 38586, 5221, 15700, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_by_program_slot() { let accounts = Accounts::new(Vec::new()); // Load accounts owned by various programs into AccountsDB let pubkey0 = Pubkey::new_rand(); let account0 = Account::new(1, 0, &Pubkey::new(&[2; 32])); accounts.store_slow(0, &pubkey0, &ac...
rust_cleaned_test_functions.jsonl/50618
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 467 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 3710, 25096, 27563, 368, 341, 286, 1077, 9618, 284, 40655, 486, 931, 49923, 486, 931, 5231, 286, 442, 8893, 9618, 12938, 553, 5257, 7468, 1119, 40655, 3506, 198, 286, 1077, 95116, 15, 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_add() { let h1 = hlist![true, "hi"]; let h2 = hlist![1, 32f32]; let combined = h1 + h2; assert_eq!(combined, hlist![true, "hi", 1, 32f32]) }
rust_cleaned_test_functions.jsonl/24752
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 368, 341, 286, 1077, 305, 16, 284, 305, 1607, 20703, 1866, 11, 330, 6023, 6332, 286, 1077, 305, 17, 284, 305, 1607, 20703, 16, 11, 220, 18, 17, 69, 18, 17, 935, 286, 1077, 10856, 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_fingerprint() { assert_eq!(Fingerprint::of::<usize>(), Fingerprint::of::<usize>()); assert_eq!(Fingerprint::of::<&str>(), Fingerprint::of::<&'static str>()); assert_ne!(Fingerprint::of::<usize>(), Fingerprint::of::<isize>()); assert_ne!(Fingerprint::of::<usize>(), Fingerprint::o...
rust_cleaned_test_functions.jsonl/25000
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 47918, 368, 341, 262, 2060, 10714, 10297, 37, 47918, 486, 1055, 27638, 51878, 39019, 434, 47918, 486, 1055, 27638, 51878, 32872, 262, 2060, 10714, 10297, 37, 47918, 486, 1055, 27638, 5, 495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_history_works() { let expected_bytes = br#"{ "data": { "name": "Platform version map", "type": "version_history", "versions": [ { "api_level": "1", "abi_r...
rust_cleaned_test_functions.jsonl/30909
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 569 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 19802, 11498, 82, 368, 341, 286, 1077, 3601, 12524, 284, 1411, 55543, 515, 310, 330, 691, 788, 341, 394, 330, 606, 788, 330, 17296, 2319, 2415, 756, 394, 330, 1313, 788, 330, 4366, 19802,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_v2_blob_upload_url() { let image = Reference::try_from(HELLO_IMAGE_TAG).expect("failed to parse reference"); let blob_url = Client::default().to_v2_blob_upload_url(&image); assert_eq!( blob_url, "https://webassembly.azurecr.io/v2/hello-wasm/blo...
rust_cleaned_test_functions.jsonl/109370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 2273, 17, 45908, 21691, 2903, 368, 341, 286, 1077, 2168, 284, 17207, 486, 1539, 5673, 7, 50712, 1593, 19121, 16592, 568, 17119, 445, 16091, 311, 4715, 5785, 797, 286, 1077, 23404, 2903, 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_sign_message_foo() { let msg: String = "foo".to_string(); let sig = sign_message(msg, 262373123, 120571543); assert!(sig == 111862601); }
rust_cleaned_test_functions.jsonl/16190
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11172, 6462, 761, 2624, 368, 341, 286, 1077, 3750, 25, 923, 284, 330, 7975, 3263, 983, 3904, 543, 286, 1077, 8366, 284, 1841, 6462, 8119, 11, 220, 17, 21, 17, 18, 22, 18, 16, 17, 18, 11, 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_seckey_to_bytes_from_bytes() { let mut rng = ThreadRng256 {}; for _ in 0..ITERATIONS { let sk = SecKey::gensk(&mut rng); let mut bytes = [0; 32]; sk.to_bytes(&mut bytes); let decoded_sk = SecKey::from_bytes(&bytes); ass...
rust_cleaned_test_functions.jsonl/81719
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3453, 377, 1195, 2346, 12524, 5673, 12524, 368, 341, 286, 1077, 5206, 28422, 284, 8752, 49, 968, 17, 20, 21, 20375, 286, 369, 716, 304, 220, 15, 496, 24733, 21792, 341, 310, 1077, 1901, 284, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_get_library_version() { let ret = ScmpVersion::current().unwrap(); println!( "test_get_library_version: {}.{}.{}", ret.major, ret.minor, ret.micro ); }
rust_cleaned_test_functions.jsonl/66416
{ "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, 3062, 39461, 9438, 368, 341, 286, 1077, 2112, 284, 2463, 1307, 5637, 486, 3231, 1005, 15454, 543, 286, 13751, 33673, 310, 330, 1944, 3062, 39461, 9438, 25, 84412, 46391, 6257, 756, 310, 2112, 7541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_nopanic() { fn inner() -> ProcResult<u8> { let a = vec!["xyz"]; from_iter(a) } assert!(inner().is_err()); }
rust_cleaned_test_functions.jsonl/17551
{ "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, 1089, 453, 31270, 368, 341, 262, 5168, 9179, 368, 1464, 41087, 2077, 34837, 23, 29, 341, 286, 1077, 264, 284, 7486, 0, 1183, 28854, 6332, 286, 504, 11723, 2877, 340, 262, 456, 262, 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
#[test] fn test_vec3mask_bitmask() { assert_eq!(Vec3Mask::new(false, false, false).bitmask(), 0b000); assert_eq!(Vec3Mask::new(true, false, false).bitmask(), 0b001); assert_eq!(Vec3Mask::new(false, true, true).bitmask(), 0b110); assert_eq!(Vec3Mask::new(false, true, false).bitmask(), 0b010); ...
rust_cleaned_test_functions.jsonl/48594
{ "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, 13251, 18, 11258, 13996, 11258, 368, 341, 262, 2060, 10714, 10297, 10050, 18, 12686, 486, 931, 3576, 11, 895, 11, 895, 568, 4489, 11258, 1507, 220, 15, 65, 15, 15, 15, 317, 262, 2060, 10714, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_num_squaring() { let mut cs = TestConstraintSystem::new(); let n = AllocatedNum::alloc(&mut cs, || Ok(Scalar::from(3))).unwrap(); let n2 = n.square(&mut cs).unwrap(); assert!(cs.is_satisfied()); assert!(cs.get("squared num") == Scalar::from(9)); ...
rust_cleaned_test_functions.jsonl/119277
{ "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, 4273, 643, 446, 3249, 368, 341, 286, 1077, 5206, 10532, 284, 3393, 17890, 2320, 486, 931, 1428, 286, 1077, 308, 284, 1674, 39463, 4651, 486, 4742, 2099, 6984, 10532, 11, 1369, 7622, 7, 20639, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_almost_equal() { for &x in &[ 0.0_f32, f32::MIN_POSITIVE, 1e-20, 1e-10, f32::EPSILON, 0.1, 0.99, 1.0, 1.001, 1e10, f32::MAX / 100.0, f32::INFINITY, ] { for &x in &[-x, x] { ...
rust_cleaned_test_functions.jsonl/73494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 531 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 94418, 11478, 368, 341, 262, 369, 609, 87, 304, 609, 9640, 286, 220, 15, 13, 15, 761, 18, 17, 345, 286, 282, 18, 17, 486, 16413, 18313, 44350, 345, 286, 220, 16, 68, 12, 17, 15, 345, 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...
4
#[test] fn test_ping_frame() { let mut buf = BytesMut::new(); Parser::write_message(&mut buf, Vec::from("data"), OpCode::Ping, true, false); let mut v = vec![137u8, 4u8]; v.extend(b"data"); assert_eq!(&buf[..], &v[..]); }
rust_cleaned_test_functions.jsonl/86810
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71661, 8929, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 931, 543, 286, 21102, 486, 4934, 6462, 2099, 6984, 6607, 11, 11312, 486, 1499, 445, 691, 3975, 97779, 486, 69883, 11, 830, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_slots_in_epoch() { let (genesis_config, _) = create_genesis_config(500); let bank = Bank::new(&genesis_config); assert_eq!(bank.get_slots_in_epoch(0), MINIMUM_SLOTS_PER_EPOCH as u64); assert_eq!( bank.get_slots_in_epoch(2), (MINI...
rust_cleaned_test_functions.jsonl/2596
{ "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, 35733, 3062, 54161, 1243, 20682, 368, 341, 286, 1077, 320, 77894, 5332, 11, 27439, 284, 1855, 16322, 13774, 5332, 7, 20, 15, 15, 626, 286, 1077, 6073, 284, 8547, 486, 931, 2099, 77894, 5332, 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
#[test] fn test_change_spend_policy_only_internal() { let change_spend_policy = ChangeSpendPolicy::OnlyChange; let filtered = get_test_utxos() .into_iter() .filter(|u| change_spend_policy.is_satisfied_by(u)) .collect::<Vec<_>>(); assert_eq!(filtered.l...
rust_cleaned_test_functions.jsonl/5560
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15947, 643, 3740, 22773, 18410, 23472, 368, 341, 286, 1077, 2297, 643, 3740, 22773, 284, 10388, 50, 3740, 13825, 486, 7308, 4072, 280, 286, 1077, 18293, 284, 633, 4452, 60363, 87, 436, 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_elem_squared() { test::run( test_file!("bigint_elem_squared_tests.txt"), |section, test_case| { assert_eq!(section, ""); let m = consume_modulus::<M>(test_case, "M"); let expected_result = consume_elem(test_case, "M...
rust_cleaned_test_functions.jsonl/55427
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 389 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28179, 54641, 368, 341, 286, 1273, 486, 6108, 1006, 310, 1273, 2458, 17223, 84674, 28179, 54641, 32509, 3909, 4461, 310, 760, 2809, 11, 1273, 19096, 91, 341, 394, 2060, 10714, 10297, 2809, 11, 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_publish_filtered_dhcp_logs_success() { let dhcp: Dhcp = Dhcp::default(); let kafka: Kafka = Kafka::default(); assert_eq!(publish_dhcp_logs(true, SERVICE_DISCOVERED, dhcp, kafka), STREAM_SUCCESS); }
rust_cleaned_test_functions.jsonl/13565
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58779, 51429, 814, 62169, 42899, 18632, 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, 10714, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_users() { let conn = utils::init_test_connection(); assert!(conn.sign_up("asahi", "asahi_password").is_some()); assert!(conn.sign_up("asahi", "asahi_password").is_none()); assert!(conn.sign_up("Asahi", "asahi_password").is_none()); assert!(conn.sign_up("fuyuko", "fuyuko_passw...
rust_cleaned_test_functions.jsonl/117118
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16348, 368, 341, 262, 1077, 4534, 284, 12439, 486, 2327, 4452, 15866, 543, 262, 2060, 10297, 5148, 15499, 8237, 445, 300, 51106, 497, 330, 300, 51106, 10122, 1827, 285, 61855, 1423, 262, 2060, 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...
1
#[test] fn test_compile_shift_right_hl() { let compiled = bitwise::compile_shift_right("HL".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b11011110); }
rust_cleaned_test_functions.jsonl/100619
{ "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, 74170, 22230, 10539, 1523, 75, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 22230, 10539, 445, 13485, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 220, 16, 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
#[test] fn test_interval_array() { let a = IntervalDayTimeArray::from( vec![Some(0), Some(6), Some(834), None, Some(3), None], ); let b = IntervalDayTimeArray::from( vec![Some(70), Some(6), Some(833), Some(6), Some(3), None], ); let res = eq(&a, &b...
rust_cleaned_test_functions.jsonl/98204
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 962 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20541, 3858, 368, 341, 286, 1077, 264, 284, 40584, 10159, 1462, 1857, 486, 1499, 1006, 310, 7486, 20703, 8373, 7, 15, 701, 4329, 7, 21, 701, 4329, 7, 23, 18, 19, 701, 2240, 11, 4329, 7, 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_item_list_loc() { check_location(r"i$0", ImmediateLocation::ItemList); check_location(r"#[attr] i$0", ImmediateLocation::ItemList); check_location(r"fn f() {} i$0", ImmediateLocation::ItemList); check_location(r"mod foo { f$0 }", ImmediateLocation::ItemList); ...
rust_cleaned_test_functions.jsonl/24643
{ "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, 5634, 2019, 13400, 368, 341, 286, 1779, 13126, 2601, 1, 72, 3, 15, 497, 80310, 4707, 486, 82874, 317, 286, 1779, 13126, 2601, 1, 13353, 2991, 60, 600, 3, 15, 497, 80310, 4707, 486, 82874, 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_find_fork_case1() { let builder = SharedBuilder::default(); let (shared, table) = builder.consensus(Consensus::default()).build().unwrap(); let mut chain_service = ChainService::new(shared.clone(), table); let genesis = shared .store() .get_block_header(&shared.st...
rust_cleaned_test_functions.jsonl/95563
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 899 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 761, 669, 19096, 16, 368, 341, 262, 1077, 7363, 284, 16990, 3297, 486, 2258, 543, 262, 1077, 320, 6100, 11, 1965, 8, 284, 7363, 63201, 13626, 7, 15220, 13626, 486, 2258, 6011, 5834, 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...
5
#[test] fn test_for_each_not_applicable_invalid_cursor_pos() { cov_mark::check!(test_for_each_not_applicable_invalid_cursor_pos); check_assist_not_applicable( convert_iter_for_each_to_for, r#" //- minicore: iterators fn main() { core::iter::repeat(92).for_each(|(x, y)...
rust_cleaned_test_functions.jsonl/101853
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5478, 32046, 7913, 8191, 46114, 31433, 28601, 6479, 368, 341, 286, 21836, 18924, 486, 2028, 10297, 1944, 5478, 32046, 7913, 8191, 46114, 31433, 28601, 6479, 317, 286, 1779, 12083, 380, 7913, 8191, 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_swap_remove_noncopyable() { // Tests that we don't accidentally run destructors twice. let mut v = vec![rt::exclusive::Exclusive::new(()), rt::exclusive::Exclusive::new(()), rt::exclusive::Exclusive::new(())]; let mut _e =...
rust_cleaned_test_functions.jsonl/33137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40991, 18193, 21637, 8560, 480, 368, 341, 286, 442, 20150, 429, 582, 1513, 944, 32384, 1598, 20780, 1087, 10917, 624, 286, 1077, 5206, 348, 284, 7486, 20703, 3342, 486, 89122, 486, 70405, 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_move_left() { let mut test_machine = Machine::new(false); test_machine.index = 2; test_machine.shift(-1); assert_eq!(test_machine.index, 1); }
rust_cleaned_test_functions.jsonl/88372
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17134, 9579, 368, 341, 262, 1077, 5206, 1273, 38695, 284, 12960, 486, 931, 3576, 317, 262, 1273, 38695, 5154, 284, 220, 17, 280, 262, 1273, 38695, 29154, 4080, 16, 317, 262, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_build() -> Result<(), Box<dyn std::error::Error>> { let read_name: ReadName = "r0".parse()?; let reference_sequence_name: ReferenceSequenceName = "sq0".parse()?; let cigar = Cigar::from(vec![cigar::Op::new(cigar::op::Kind::Match, 4)]); let mate_reference_sequence_...
rust_cleaned_test_functions.jsonl/49482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1012 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 1349, 1269, 25, 4457, 675, 284, 330, 81, 15, 3263, 6400, 94136, 286, 1077, 5785, 23735, 1269, 25, 172...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reverse_get_out_of_bound_1() { let engine = TestEngineBuilder::new().build().unwrap(); // Generate N/2 rollback for [b]. for ts in 0..REVERSE_SEEK_BOUND / 2 { must_rollback(&engine, b"b", ts); } // Generate 1 put for [c]. must_prewrit...
rust_cleaned_test_functions.jsonl/36634
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43277, 3062, 6068, 3575, 19447, 62, 16, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 1428, 286, 442, 19813, 451, 14, 17, 60414, 369, 508, 65, 26126, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_iterator() { let data = vec![5, 9, 3]; let iterout = [9, 5, 3]; let heap = BinaryHeap::from(data); let mut i = 0; for el in &heap { assert_eq!(*el, iterout[i]); i += 1; } }
rust_cleaned_test_functions.jsonl/62348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 368, 341, 262, 1077, 821, 284, 7486, 20703, 20, 11, 220, 24, 11, 220, 18, 935, 262, 1077, 5367, 411, 284, 508, 24, 11, 220, 20, 11, 220, 18, 935, 262, 1077, 17364, 284, 17718, 27909, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_txn_store_batch_get_command() { let store = AssertionStorage::default(); // not exist store.get_none(b"a", 10); store.get_none(b"b", 10); // after put store.put_ok(b"a", b"x", 5, 10); store.put_ok(b"b", b"x", 5, 10); store.batch_get_command_ok(&[b"a", b"b", b"c"],...
rust_cleaned_test_functions.jsonl/37866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 92299, 14809, 14534, 3062, 10811, 368, 341, 262, 1077, 3553, 284, 46730, 5793, 486, 2258, 543, 262, 442, 537, 3000, 198, 262, 3553, 670, 31488, 1883, 56693, 497, 220, 16, 15, 317, 262, 3553, 670...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_derivation() { let keypair = derive_from_phrase("unaware face erupt ceiling frost shiver crumble know party before brisk skirt fence boat powder copy plastic until butter fluid property concert say verify").unwrap(); let expected = "o0kpHL39KRq0KX11zZ0/sCwJL66t+gA4vnfuwBjhAWU="; ...
rust_cleaned_test_functions.jsonl/44001
{ "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, 35345, 39127, 368, 341, 286, 1077, 1376, 12670, 284, 42430, 5673, 66696, 445, 359, 19541, 3579, 43679, 22170, 44734, 557, 1524, 1560, 22733, 1414, 4614, 1573, 74391, 37280, 24650, 15328, 16723, 2975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_part_one() { let mut image = Image::from_str(&INPUT).unwrap(); assert_eq!( 20899048083289 as usize, image.get_corners().iter().product(), ); }
rust_cleaned_test_functions.jsonl/82492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 11667, 368, 341, 286, 1077, 5206, 2168, 284, 4654, 486, 1499, 2895, 2099, 29421, 568, 15454, 1428, 286, 2060, 10714, 33673, 310, 220, 17, 15, 23, 24, 24, 15, 19, 23, 15, 23, 18, 17, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_add_fixed_size_dims() { const DIM_NAME_1: &str = "dim_1"; const DIM_SIZE_1: usize = 10; const DIM_NAME_2: &str = "dim_2"; const DIM_SIZE_2: usize = 20; let mut data_set = DataSet::new(); assert_eq!(0, data_set.num_dims()); assert_eq!(false, data_set.has_unli...
rust_cleaned_test_functions.jsonl/40507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 694 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 37839, 2368, 29267, 368, 341, 262, 733, 50859, 4708, 62, 16, 25, 609, 495, 284, 330, 12927, 62, 16, 876, 262, 733, 50859, 4098, 62, 16, 25, 22301, 284, 220, 16, 15, 280, 262, 733, 5085...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_monte_carlo() { let result = compute_pi(100_000); assert!(result > 3.0 && result < 4.0); }
rust_cleaned_test_functions.jsonl/77362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 57 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 52277, 26616, 385, 368, 341, 262, 1077, 1102, 284, 12564, 47771, 7, 16, 15, 15, 62, 15, 15, 15, 317, 262, 2060, 10297, 1382, 861, 220, 18, 13, 15, 1009, 1102, 366, 220, 19, 13, 15, 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 ]
2
#[test] fn test_hover_dyn_return_has_goto_type_action() { check_actions( r#" trait Foo {} struct S; impl Foo for S {} struct B<T>{} fn foo() -> B<dyn Foo> {} fn main() { let s$0t = foo(); } "#, expect![[r#" [ GoToType( ...
rust_cleaned_test_functions.jsonl/66682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53445, 69213, 12511, 21778, 97732, 1819, 7931, 368, 341, 286, 1779, 25368, 1006, 310, 435, 2, 698, 29432, 33428, 5613, 1235, 328, 280, 6383, 33428, 369, 328, 10086, 1235, 425, 3125, 7309, 532, 882...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_append_stream() -> Result<()> { let tmp = TempDir::new("test_append_stream")?; let mut storage = StreamStorage::open(tmp.path(), keypair([0; 32]))?; let data = rand_bytes(1_000_000); let doc = DocId::unique(); let mut stream = storage.append(doc)?; ...
rust_cleaned_test_functions.jsonl/3939
{ "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, 26041, 12673, 368, 1464, 5714, 71698, 341, 286, 1077, 4174, 284, 19944, 6184, 486, 931, 445, 1944, 26041, 12673, 899, 37445, 286, 1077, 5206, 5819, 284, 9203, 5793, 486, 2508, 10368, 3875, 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, 1...
8
#[test] fn test_df_equal() { let a = Series::new("a", [1, 2, 3].as_ref()); let b = Series::new("b", [1, 2, 3].as_ref()); let df1 = DataFrame::new(vec![a, b]).unwrap(); let df2 = df1.clone(); assert!(df1.frame_equal(&df2)) }
rust_cleaned_test_functions.jsonl/22780
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10894, 11478, 368, 341, 286, 1077, 264, 284, 11131, 486, 931, 445, 64, 497, 508, 16, 11, 220, 17, 11, 220, 18, 936, 300, 7793, 1423, 286, 1077, 293, 284, 11131, 486, 931, 445, 65, 497, 508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fill_pdt_from_tokens_panic() { use DateTimeField::*; let test_cases = [ // Mismatched syntax ("1 2", "0 0", Milliseconds, 1), ]; for test in test_cases.iter() { let mut pdt = ParsedDateTime::default(); let mut actual...
rust_cleaned_test_functions.jsonl/103905
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 443 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30728, 620, 8047, 5673, 28838, 620, 31270, 368, 341, 286, 990, 6520, 1877, 56162, 286, 1077, 1273, 41427, 284, 2278, 310, 442, 386, 24976, 291, 19482, 198, 310, 3489, 16, 220, 17, 497, 330, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_param_spec_faulty() { let spec = "output a(p1: Int8): Int8:= 3 output b: Int8 := a(true)"; assert_eq!(1, num_type_errors(spec)); }
rust_cleaned_test_functions.jsonl/110679
{ "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, 4090, 13594, 70097, 88, 368, 341, 286, 1077, 1398, 284, 330, 3006, 264, 1295, 16, 25, 1333, 23, 1648, 1333, 23, 14209, 220, 18, 2550, 293, 25, 1333, 23, 1669, 264, 3715, 24023, 286, 2060, 1071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_variance() { assert_eq!(Arcsine::new_unchecked(0.0, 1.0).variance(), 1.0 / 8.0); assert_eq!(Arcsine::new_unchecked(-1.0, 1.0).variance(), 1.0 / 8.0); assert_eq!(Arcsine::new_unchecked(-1.0, 2.0).variance(), 1.0 / 2.0); }
rust_cleaned_test_functions.jsonl/107412
{ "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, 77450, 368, 341, 286, 2060, 10714, 10297, 36809, 82, 482, 486, 931, 4907, 7549, 7, 15, 13, 15, 11, 220, 16, 13, 15, 568, 947, 5284, 1507, 220, 16, 13, 15, 608, 220, 23, 13, 15, 317, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hmac_sha256_empty() { let mut buf = [0; 96]; buf[..64].copy_from_slice(&[0x5c; 64]); buf[64..].copy_from_slice(&Sha256::hash(&[0x36; 64])); assert_eq!(hmac_256::<Sha256>(&[], &[]), Sha256::hash(&buf)); }
rust_cleaned_test_functions.jsonl/46486
{ "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, 1523, 11948, 48836, 17, 20, 21, 15124, 368, 341, 286, 1077, 5206, 6607, 284, 508, 15, 26, 220, 24, 21, 935, 286, 6607, 95874, 21, 19, 936, 8560, 5673, 26488, 2099, 58, 15, 87, 20, 66, 26, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_remove_entry() { let mut acl = SimpleDacl::new(); // Bad sid assert!(!acl.add_entry(AccessControlEntry { sid: String::from("FAKESID"), mask: GENERIC_READ, entryType: ACCESS_ALLOWED, ...
rust_cleaned_test_functions.jsonl/22679
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1785 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 18193, 9078, 368, 341, 262, 1077, 5206, 57120, 284, 8993, 30416, 564, 486, 931, 1428, 262, 442, 11461, 14084, 198, 262, 2060, 0, 3471, 47736, 1364, 9078, 4346, 1322, 3273, 5874, 341, 7561, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_host_localhost_rename() { let tmpdir: tempfile::TempDir = tempfile::TempDir::new().unwrap(); // Create sample file let src_path: PathBuf = PathBuf::from(format!("{}/foo.txt", tmpdir.path().display()).as_str()); assert!(File::create(src_path.as_path())....
rust_cleaned_test_functions.jsonl/53632
{ "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, 12848, 62, 8301, 79399, 368, 341, 286, 1077, 4174, 3741, 25, 54819, 486, 12151, 6184, 284, 54819, 486, 12151, 6184, 486, 931, 1005, 15454, 543, 286, 442, 4230, 6077, 1034, 198, 286, 1077, 2286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_optimizer() -> Result<(), Box<EvalAltResult>> { let mut engine = Engine::new(); engine.set_optimization_level(OptimizationLevel::Full); #[cfg(not(feature = "no_function"))] assert_eq!( engine.eval::<INT>( " fn foo(x) { print(x); return; } ...
rust_cleaned_test_functions.jsonl/70022
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68168, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 1077, 5206, 4712, 284, 8200, 486, 931, 543, 262, 4712, 980, 15032, 65964, 8274, 19238, 417, 65964, 4449, 486, 9432, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_simplest_struct_actor() { init_test_log(); let system = ActorSystem::create(ActorSystemConfig::default().thread_pool_size(2)); // We declare a basic struct that has a handle method that does basically nothing. // Subsequently we will create that struct as a star...
rust_cleaned_test_functions.jsonl/1273
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 267, 15126, 54818, 368, 341, 286, 2930, 4452, 5224, 1428, 286, 1077, 1849, 284, 24718, 2320, 486, 3182, 7, 18870, 2320, 2648, 486, 2258, 1005, 4528, 15709, 2368, 7, 17, 3237, 286, 442, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_final_error_values() { assert_eq!( format!("{}", ErrorCode::F00_BAD_REQUEST), String::from("F00") ); assert_eq!( format!("{}", ErrorCode::F01_INVALID_PACKET), String::from("F01") ); assert_eq!( fo...
rust_cleaned_test_functions.jsonl/3928
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 832 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20676, 4096, 9146, 368, 341, 286, 2060, 10714, 33673, 310, 3561, 79878, 60084, 486, 37, 15, 15, 30666, 14454, 1326, 310, 923, 486, 1499, 445, 37, 15, 15, 1138, 286, 1439, 286, 2060, 10714, 33673...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bytes() { assert_eq!( Scalar::zero().to_bytes(), [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ); assert_eq!( Scalar::one().to_bytes(),...
rust_cleaned_test_functions.jsonl/14284
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 520 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 12524, 368, 341, 286, 2060, 10714, 33673, 310, 35176, 486, 14154, 1005, 983, 12524, 3148, 310, 2278, 394, 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_extension_to_list_explode() { std::env::set_var("POLARS_ALLOW_EXTENSION", "1"); let foo1 = Foo { a: 1, b: 1, other_heap: "foo".into(), }; let foo2 = Foo { a: 1, b: 1, other_heap: "bar".into(),...
rust_cleaned_test_functions.jsonl/20898
{ "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, 31035, 2346, 2019, 2702, 70744, 368, 341, 286, 1460, 486, 3160, 486, 746, 4612, 445, 49303, 17048, 44324, 37012, 497, 330, 16, 797, 286, 1077, 15229, 16, 284, 33428, 341, 310, 264, 25, 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_bool_set_panic() { let mut bs = BoolSet::<&str>::new_with_default(true); let other = BoolSet::<&str>::new_with_default(false); bs.update(&other); }
rust_cleaned_test_functions.jsonl/48634
{ "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, 22159, 2602, 620, 31270, 368, 341, 286, 1077, 5206, 17065, 284, 12608, 1649, 27638, 5, 495, 6831, 931, 6615, 9993, 3715, 317, 286, 1077, 1008, 284, 12608, 1649, 27638, 5, 495, 6831, 931, 6615, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_rule_order() -> TestResult { let mut p = Polar::new(); p.load_str( r#"a("foo"); a("bar"); a("baz");"#, )?; qvar(&mut p, "a(x)", "x", values!["foo", "bar", "baz"]); Ok(()) }
rust_cleaned_test_functions.jsonl/97634
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21124, 7869, 368, 1464, 3393, 2077, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 281, 5104, 2895, 1006, 286, 435, 55543, 64, 445, 7975, 797, 1843, 264, 445, 2257, 797, 1843, 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...
2
#[test] fn test_external_modules() { let dir_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")) .parent() .unwrap() .join("spirv-blobs"); test_external_dir(dir_path); }
rust_cleaned_test_functions.jsonl/58559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47432, 15848, 368, 341, 262, 1077, 5419, 2638, 284, 7933, 15064, 486, 1499, 16978, 17223, 34, 7581, 46, 25143, 91120, 8291, 5455, 286, 659, 3765, 741, 286, 659, 15454, 741, 286, 659, 5987, 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
#[test] fn test_linear_case() { use crate::lm::test_examples::LinearFullRank; use approx::assert_relative_eq; use nalgebra::{OVector, U5}; let mut x = OVector::<f64, U5>::from_element(1.); x[2] = -10.; let mut problem = LinearFullRank { params: x, m: 6 }; let jac_num = differentiate_...
rust_cleaned_test_functions.jsonl/104112
{ "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, 40674, 19096, 368, 341, 262, 990, 17717, 486, 17771, 486, 1944, 45279, 486, 31898, 9432, 22550, 280, 262, 990, 9848, 486, 2207, 29286, 10714, 280, 262, 990, 84533, 26083, 22964, 46, 3781, 11, 547,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_function_prototype_abi_compatible() { let abi_type = abi::FunctionPrototype { name: std::ptr::null(), signature: abi::FunctionSignature { arg_types: std::ptr::null(), return_type: std::ptr::null(), num_arg_types: 0, }, }; s...
rust_cleaned_test_functions.jsonl/98923
{ "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, 9174, 22357, 4156, 22885, 72, 2965, 37079, 368, 341, 262, 1077, 61050, 1819, 284, 61050, 486, 5152, 32906, 341, 286, 829, 25, 1460, 486, 3505, 486, 2921, 3148, 286, 11957, 25, 61050, 486, 5152, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_incremental_populate() { let gen = |c, r| -> Vec<(RemoteAccountOf<Test>, RewardAmountOf<Test>, VestingPeriodOf<Test>)> { generate_accounts(c) .into_iter() .map(|(_, account)| (account.as_remote_public(), r, DEFAULT_VESTING_PERIOD)) .collect() }; ExtBuilder::default().build().execut...
rust_cleaned_test_functions.jsonl/41080
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 452 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51482, 278, 17061, 6334, 368, 341, 10217, 4081, 284, 760, 66, 11, 435, 91, 1464, 11312, 28706, 24703, 7365, 2124, 71273, 8066, 55800, 10093, 2124, 71273, 8066, 55888, 287, 23750, 2124, 71273, 9231, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_discard_if_first_selected_line_is_not_in_any_hunk() { static FILE_1: &str = r"start end "; static FILE_2: &str = r"start 1 end "; static FILE_3: &str = r"start end "; let (path, repo) = repo_init().unwrap(); let path = path.path().to_str().unwrap(); ...
rust_cleaned_test_functions.jsonl/105100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 546 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37745, 567, 11119, 12978, 23755, 6528, 6892, 7913, 1243, 37248, 1523, 3122, 368, 341, 286, 1099, 11837, 62, 16, 25, 609, 495, 284, 435, 1, 2468, 198, 408, 198, 3302, 286, 1099, 11837, 62, 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_hpke_seal_open() { // Test through ciphersuites. for ciphersuite in Config::supported_ciphersuites() { println!("Test {:?}", ciphersuite.name()); println!("Ciphersuite {:?}", ciphersuite); let plaintext = &[1, 2, 3]; let kp = ciphersuite.derive_hpke_keypai...
rust_cleaned_test_functions.jsonl/34689
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 265 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48478, 440, 3453, 278, 11311, 368, 341, 262, 442, 3393, 1526, 272, 82077, 3083, 288, 624, 262, 369, 272, 82077, 9302, 304, 5532, 486, 18216, 666, 82077, 3083, 288, 368, 341, 286, 13751, 17223, 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_no_mbc() { // Fill cart data with 0 - 255 let mut data: Vec<u8> = Vec::with_capacity(1024 * 32); for i in 0..(1024 * 32) { data.push((i % 256) as u8); } let mut cart = NoMbc::new(data, 8192, false, &None); for i in 0..(1024 * 32) { // Assert that th...
rust_cleaned_test_functions.jsonl/69359
{ "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, 6536, 717, 8904, 368, 341, 262, 442, 21979, 7406, 821, 448, 220, 15, 481, 220, 17, 20, 20, 198, 262, 1077, 5206, 821, 25, 11312, 34837, 23, 29, 284, 11312, 486, 4197, 35603, 7, 16, 15, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_bids_of_type() { let mut g = test_helpers::create_test_bid_phase(); assert_eq!(bids_of_type(&g.auction, Bidder::First, Bid::Suit(Suit::Hearts)), 0); g.auction.first_bids.push(AuctionTurn::suit(Suit::Hearts, BidResponse::Pass)); g.auction.first_bids.push(AuctionTur...
rust_cleaned_test_functions.jsonl/83220
{ "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, 880, 3365, 3575, 1819, 368, 341, 286, 1077, 5206, 342, 284, 1273, 54473, 486, 3182, 4452, 62509, 37593, 543, 286, 2060, 10714, 10297, 65, 3365, 3575, 1819, 2099, 70, 5849, 2654, 11, 40402, 1107, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_managed_addresses_try_from_fidl() -> Result<(), anyhow::Error> { let good_mask = fidl_fuchsia_net_dhcp::AddressPool { network_id: Some(fidl_ip_v4!(192.168.0.0)), broadcast: Some(fidl_ip_v4!(192.168.0.255)), mask: Some(fidl_ip_v4!(255.255.255.0)), ...
rust_cleaned_test_functions.jsonl/83307
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79889, 59471, 53283, 5673, 761, 55464, 368, 1464, 5714, 68843, 88964, 486, 1454, 29, 341, 286, 1077, 1661, 9999, 284, 32104, 75, 761, 73391, 19722, 814, 62169, 486, 4286, 10551, 341, 310, 3922, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_intersect() { let store = gen_store(); let inter = store .sinter(vec!["test".to_string(), "test2".to_string()]) .unwrap(); assert!(inter.contains(&"bob".to_owned().into_bytes())); assert!(inter.contains(&"dave".to_owned().into_bytes())); ...
rust_cleaned_test_functions.jsonl/58221
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72747, 368, 341, 286, 1077, 3553, 284, 4081, 14809, 1428, 286, 1077, 946, 284, 3553, 198, 310, 659, 82, 2245, 25592, 0, 1183, 1944, 3263, 983, 3904, 1507, 330, 1944, 17, 3263, 983, 3904, 56024, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enoent() { assert_eq!( realpath("NOEXIST", RealpathFlags::empty()) .unwrap_err() .raw_os_error(), Some(libc::ENOENT) ); realpath("NOEXIST", RealpathFlags::ALLOW_MISSING).unwrap(); realpath("NOEXIST", RealpathFlags::ALLOW_LAST_MISSING).unwr...
rust_cleaned_test_functions.jsonl/130552
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6205, 78, 306, 368, 341, 262, 2060, 10714, 33673, 286, 91794, 445, 8996, 92827, 497, 8800, 2343, 9195, 486, 3194, 2398, 310, 659, 15454, 9266, 741, 310, 659, 1041, 29387, 4096, 3148, 286, 4329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cons_generic() { let schema = r#" { "type":"record", "name":"ConsListGeneric", "fields":[ { "name":"value", "type":{ "type":"record", "name"...
rust_cleaned_test_functions.jsonl/27821
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31971, 41232, 368, 341, 286, 1077, 10802, 284, 435, 2, 698, 286, 341, 310, 330, 1313, 3252, 8548, 756, 310, 330, 606, 3252, 15220, 852, 19964, 756, 310, 330, 9007, 8899, 198, 394, 341, 503, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_altraw() { test! { #[derive(Debug, Clone)] struct MyCompactRawRange { start: i32, len: i32, step: i32, } impl AltrepImpl for MyCompactRawRange { fn length(&self) -> usize { self.len as usize ...
rust_cleaned_test_functions.jsonl/5816
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 473 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8418, 376, 672, 368, 341, 262, 1273, 0, 341, 286, 11506, 27098, 42618, 11, 27913, 5563, 286, 2036, 3017, 98335, 20015, 6046, 341, 310, 1191, 25, 600, 18, 17, 345, 310, 2422, 25, 600, 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_powi() { let nan: f64 = NAN; let inf: f64 = INFINITY; let neg_inf: f64 = NEG_INFINITY; assert_eq!(1.0f64.powi(1), 1.0); assert_approx_eq!((-3.1f64).powi(2), 9.61); assert_approx_eq!(5.9f64.powi(-2), 0.028727); assert_eq!(8.3f64.powi(0), 1.0...
rust_cleaned_test_functions.jsonl/7836
{ "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, 56183, 72, 368, 341, 286, 1077, 20021, 25, 282, 21, 19, 284, 92129, 280, 286, 1077, 4132, 25, 282, 21, 19, 284, 1964, 55990, 280, 286, 1077, 4184, 26051, 25, 282, 21, 19, 284, 84065, 91110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_enum_is_variant_names() { check_assist( generate_enum_is_method, r#" enum GeneratorState { Yielded, Complete$0, Major, }"#, r#"enum GeneratorState { Yielded, Complete, Major, } impl GeneratorState { /// Returns `tr...
rust_cleaned_test_functions.jsonl/117719
{ "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, 48851, 31054, 6892, 46112, 9187, 368, 341, 286, 1779, 12083, 380, 1006, 310, 6923, 31054, 6892, 9032, 345, 310, 435, 2, 698, 9018, 28358, 1397, 341, 262, 77378, 291, 345, 262, 18608, 3, 15, 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_query_all() { let dir = Path::new("/tmp/rill-rs.query_all.test/"); let mut db_path= PathBuf::new(); db_path.push(dir); db_path.push("the-db.rill"); let _ = std::fs::remove_dir_all(dir); std::fs::create_dir(dir).unwrap(); { let...
rust_cleaned_test_functions.jsonl/60108
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 909 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 5705, 368, 341, 286, 1077, 5419, 284, 7933, 486, 931, 4283, 5173, 7382, 483, 3795, 82, 4786, 5705, 5958, 49897, 286, 1077, 5206, 2927, 2638, 28, 7933, 15064, 486, 931, 543, 286, 2927, 2638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ftyp() { let src_box = FtypBox { major_brand: FourCC { value: String::from("isom"), }, minor_version: 0, compatible_brands: vec![ FourCC { value: String::from("isom"), }, ...
rust_cleaned_test_functions.jsonl/34178
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 627 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41572, 1082, 368, 341, 286, 1077, 2286, 10194, 284, 434, 3653, 1611, 341, 310, 3598, 54858, 25, 13322, 3706, 341, 394, 897, 25, 923, 486, 1499, 445, 285, 316, 4461, 310, 1153, 310, 8922, 9438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_part1() { let (boards, draw) = read_input_from_file("example1.txt").expect("failed to read input"); assert_eq!(part1(&boards, &draw), 4512); }
rust_cleaned_test_functions.jsonl/17062
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 16, 368, 341, 286, 1077, 320, 19270, 11, 4038, 8, 284, 1349, 5898, 5673, 2458, 445, 8687, 16, 3909, 1827, 17119, 445, 16091, 311, 1349, 1946, 3071, 286, 2060, 10714, 10297, 4480, 16, 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
#[test] fn test_set_Status() { let mut r = Register::new(); r.set_Status(0xFF); assert_eq!(r.get_status_negative(),true); assert_eq!(r.get_status_overflow(),true); assert_eq!(r.get_status_reserved(),true); assert_eq!(r.get_status_break_mode(), true); assert_eq!(r.get_status_decimal_mode(), true); ...
rust_cleaned_test_functions.jsonl/110894
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 36449, 368, 341, 220, 1077, 5206, 435, 284, 8451, 486, 931, 543, 220, 435, 980, 36449, 7, 15, 9264, 317, 220, 2060, 10714, 10297, 81, 670, 4773, 53865, 1507, 1866, 317, 220, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_auth_ops() { let f = Firebase::authed("https://db.fe/", "key").ok().expect("url err").at("lol").ok().unwrap(); let req = f.order_by("pts").limit_to_last(5).start_at(8); let correct = Url::parse("https://db.fe/lol.json?auth=key&orderBy=pts&limitToLast=5&startAt=8").ok().unwrap(); ...
rust_cleaned_test_functions.jsonl/37423
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14014, 21959, 368, 341, 262, 1077, 282, 284, 19683, 486, 3242, 291, 445, 2428, 1110, 1999, 61619, 28105, 330, 792, 1827, 562, 1005, 17119, 445, 1085, 1848, 1827, 266, 445, 59319, 1827, 562, 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_simple() { // bool test_serde(false, &[FALSE]); test_serde(true, &[TRUE]); // int test_serde(0i64, &[INTZERO]); test_serde(1i64, &[0x15, 1]); test_serde(-1i64, &[0x13, 254]); test_serde(100i64, &[21, 100]); test_serde(1000...
rust_cleaned_test_functions.jsonl/33091
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 368, 341, 286, 442, 1807, 198, 286, 1273, 75861, 450, 3576, 11, 44590, 30351, 2558, 286, 1273, 75861, 450, 3715, 11, 44590, 20611, 10149, 286, 442, 526, 198, 286, 1273, 75861, 450, 7, 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_fixed_width_number_display_numeric_hexadecimal() { fn num(n: usize) -> Result<Number, Overflow> { let mut number = Number::FixedWidth(FixedWidthNumber::new(16, 2)); for _ in 0..n { number.increment()?; } Ok(number) }...
rust_cleaned_test_functions.jsonl/51168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 385 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37839, 7927, 5500, 14825, 29418, 32655, 49326, 368, 341, 286, 5168, 1629, 1445, 25, 22301, 8, 1464, 5714, 27, 2833, 11, 70447, 29, 341, 310, 1077, 5206, 1372, 284, 5624, 486, 13520, 3327, 7832, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parse_client_first_missing_fields() { assert_eq!( parse_client_first("n,,n=user").unwrap_err(), Error::Protocol(Kind::ExpectedField(Field::Nonce)) ); assert_eq!( parse_client_first("n,,r=user").unwrap_err(), Error::Protocol(...
rust_cleaned_test_functions.jsonl/10292
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 510 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8179, 12978, 40447, 12132, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 8179, 12978, 445, 77, 10631, 77, 30164, 1827, 15454, 9266, 3148, 310, 4600, 486, 20689, 7, 10629, 486, 18896, 1877, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_contains_succeeding() { let mut output = String::new(); let method = StringMethod { method: "contains", variable: "$FOO", pattern: "\"OBA\"", selection: Select::All, }; method.handle(&mut output, &VariableExpan...
rust_cleaned_test_functions.jsonl/85269
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63598, 643, 29264, 287, 368, 341, 286, 1077, 5206, 2550, 284, 923, 486, 931, 543, 286, 1077, 1714, 284, 923, 3523, 341, 310, 1714, 25, 262, 330, 13372, 756, 310, 3890, 25, 220, 5201, 3788, 46,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_section() { let mut p = Parser::default(); p.parse("------ EVENT LOG (logcat -d -b all) ------"); let r = p.parse("07-01 14:13:14.446000000,Sensor:batt_therm:29000 mC,Info,ThermalEngine,225,295,07-01 14:13:14.446 225 295 I ThermalEngine: Sensor:batt_therm:29000 mC"); as...
rust_cleaned_test_functions.jsonl/53441
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 16221, 368, 341, 262, 1077, 5206, 281, 284, 21102, 486, 2258, 543, 262, 281, 4632, 445, 16565, 12742, 8081, 320, 839, 4616, 481, 67, 481, 65, 678, 8, 55460, 797, 262, 1077, 435, 284, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_source_code_1() { let http_server_guard = crate::test_util::http_server(); let (temp_dir, fetcher) = test_setup(); let fetcher_1 = fetcher.clone(); let fetcher_2 = fetcher.clone(); let module_url = Url::parse("http://localhost:4545/tests/subdir/mod2.ts").unwrap(); ...
rust_cleaned_test_functions.jsonl/39327
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1629 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 10347, 4136, 62, 16, 368, 341, 262, 1077, 1758, 12015, 36796, 284, 17717, 486, 1944, 18974, 486, 1254, 12015, 543, 262, 1077, 320, 3888, 4334, 11, 7807, 261, 8, 284, 1273, 21363, 543, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_basic() { let mut list = List::new(); assert!(list.is_empty()); list.push_front(1); assert!(!list.is_empty()); unsafe { assert_eq!((*list.first()).value, 1); } list.push_back(2); unsafe { assert_eq!((*list.last()).value, 2); assert_eq!(li...
rust_cleaned_test_functions.jsonl/122671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 946 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 368, 341, 262, 1077, 5206, 1140, 284, 1759, 486, 931, 543, 262, 2060, 10297, 1607, 2079, 15124, 5231, 262, 1140, 2552, 22926, 7, 16, 317, 262, 2060, 0, 3471, 1607, 2079, 15124, 1423, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ser_de_empty_interner() { let interner = IntegerInterner::new(); assert_tokens( &OrderedIntegerInterner(interner), &[Token::Seq { len: Some(0) }, Token::SeqEnd], ); }
rust_cleaned_test_functions.jsonl/14787
{ "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, 75861, 2259, 15124, 4042, 41372, 368, 341, 286, 1077, 946, 1194, 284, 4440, 1072, 41372, 486, 931, 1428, 286, 2060, 28838, 1006, 310, 609, 54384, 3486, 1072, 41372, 1548, 41372, 1326, 310, 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
#[test] fn test_parse_constraint_one_ident() { let mut p = Parser::new(r#"A : date"#); let parsed = p.parse_constraints(); let loc = Locator::new(&p.source[..]); assert_eq!( parsed, vec![TypeConstraint { base: BaseNode { location: loc.get(1, 1, 1, 9), ...
rust_cleaned_test_functions.jsonl/67827
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 525 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 46973, 11667, 38399, 368, 341, 262, 1077, 5206, 281, 284, 21102, 486, 931, 2601, 55543, 32, 549, 2400, 57676, 317, 262, 1077, 15676, 284, 281, 4632, 60267, 543, 262, 1077, 1329, 284, 98653,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_incremental_scanner_with_hint_min_ts() { let engine = TestEngineBuilder::new().build_without_cache().unwrap(); let v_suffix = |suffix: usize| -> Vec<u8> { let suffix = suffix.to_string().into_bytes(); let mut v = Vec::with_capacity(1000 + suffix.len()); ...
rust_cleaned_test_functions.jsonl/29092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1454 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51482, 278, 13171, 4887, 6615, 45825, 7260, 25023, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 39904, 11529, 1005, 15454, 1428, 286, 1077, 348, 37151, 284, 760, 26786, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_column_names_from_insert_into_query() { let q = r" INSERT INTO public.customers (customer_id, company_name, contact_name, contact_title) VALUES (1, 'Alfreds Futterkiste', 'Maria Anders', NULL); "; let mut tokenizer = Tokenizer::new(q); let tokens_result = tokenizer.t...
rust_cleaned_test_functions.jsonl/55336
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 371 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 8744, 9187, 5673, 17678, 45514, 5738, 368, 341, 286, 1077, 2804, 284, 435, 698, 12698, 12496, 584, 24268, 388, 320, 11049, 842, 11, 2813, 1269, 11, 3645, 1269, 11, 3645, 6112, 340, 46089, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rewind() { // Set up tree with a root and additional node let mut tree = Tree::new(); let root_node = Node::new("root", "The root node."); let current_node = Node::new("current", "A node."); tree.nodes.insert("root".to_owned(), root_node); tree.nodes.insert("current".to_o...
rust_cleaned_test_functions.jsonl/110238
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 19154, 368, 341, 262, 442, 2573, 705, 4916, 448, 264, 3704, 323, 5107, 2436, 198, 262, 1077, 5206, 4916, 284, 8942, 486, 931, 543, 262, 1077, 3704, 5084, 284, 6018, 486, 931, 445, 2888, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_str_prefixed_chunks_by_bytes() { let (at, mut ucmd) = testing(UTIL_NAME); let name = "split_str_prefixed_chunks_by_bytes"; let glob = Glob::new(&at, ".", r"b[:alpha:][:alpha:]$"); RandomFile::new(&at, name).add_bytes(10000); assert!(ucmd.args(&["-b", "1000", name, "b"])...
rust_cleaned_test_functions.jsonl/25136
{ "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, 17052, 2895, 43331, 3286, 65470, 3710, 12524, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 7497, 7, 36969, 4708, 317, 262, 1077, 829, 284, 330, 6960, 2895, 43331, 3286, 65470, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_version_from_hash() { let hash = [ 0xa5u8, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, 0xa5, 0xa5, 0x5a, 0x5a, ]; let ...
rust_cleaned_test_functions.jsonl/28198
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 614 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9438, 5673, 8950, 368, 341, 286, 1077, 5175, 284, 2278, 310, 220, 15, 9591, 20, 84, 23, 11, 220, 15, 9591, 20, 11, 220, 15, 87, 20, 64, 11, 220, 15, 87, 20, 64, 11, 220, 15, 9591, 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_wasm_memory_delta() { let exec_finished_sync = Arc::new(SyncCell::<protocol::ctlsvc::ExecFinishedRequest>::new()); let srv = SandboxServer::new(SandboxManager::new(setup_mock_controller( exec_finished_sync.clone(), ))); let wasm_id = WasmId::new(); ...
rust_cleaned_test_functions.jsonl/26835
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3025 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1670, 10530, 19195, 26710, 368, 341, 286, 1077, 3883, 56423, 23008, 284, 19689, 486, 931, 3759, 1721, 3599, 27638, 17014, 486, 12373, 58094, 486, 10216, 24890, 1900, 6831, 931, 5231, 286, 1077, 4357...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1