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_only_cached_result_once_per_second() { assert!(only_cached_result_once_per_second("z".to_string(), true).is_err()); let a = only_cached_result_once_per_second("a".to_string(), false).unwrap(); let b = only_cached_result_once_per_second("b".to_string(), false).unwrap(); assert_eq!...
rust_cleaned_test_functions.jsonl/13140
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18410, 64369, 5287, 7630, 5678, 29644, 368, 341, 262, 2060, 10297, 3243, 64369, 5287, 7630, 5678, 29644, 445, 89, 3263, 983, 3904, 1507, 830, 568, 285, 9266, 1423, 262, 1077, 264, 284, 1172, 64369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_line_string() { let mls = MultiLineString::new(vec![ line_string![], line_string![(x: 0., y: 0.), (x: 1., y: 1.)], line_string![(x: 0., y: 0.), (x: 1., y: 1.), (x:2., y: 2.)], ]); let want = vec![ Line::new(coord! { x:...
rust_cleaned_test_functions.jsonl/83535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 6528, 3904, 368, 341, 286, 1077, 296, 4730, 284, 17439, 2460, 703, 486, 931, 25592, 90515, 310, 1555, 3904, 20703, 1259, 310, 1555, 3904, 0, 9697, 87, 25, 220, 15, 2572, 379, 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...
1
#[test] fn test_method_06() { let ast = check_parse("void f() {}"); assert_eq!(ast.get(0),&Node::VoidType); check_name(ast.get(1),"f"); assert_eq!(ast.get(2),&Node::BlockStmt(vec![])); assert_eq!(ast.get(3),&Node::MethodDecl(Name(1),Type(0),vec![],Stmt(2))); }
rust_cleaned_test_functions.jsonl/96555
{ "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, 9032, 62, 15, 21, 368, 341, 262, 1077, 11763, 284, 1779, 21039, 445, 1004, 282, 368, 4687, 797, 262, 2060, 10714, 10297, 559, 670, 7, 15, 701, 5, 1955, 486, 35882, 929, 317, 262, 1779, 1269, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_header_size_with_short_header() { let header = [0x62, 0x6C, 0x6F, 0x62]; let _ = get_header_size(&header); }
rust_cleaned_test_functions.jsonl/108332
{ "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, 3062, 8757, 2368, 6615, 16673, 8757, 368, 341, 286, 1077, 4247, 284, 508, 15, 87, 21, 17, 11, 220, 15, 87, 21, 34, 11, 220, 15, 87, 21, 37, 11, 220, 15, 87, 21, 17, 935, 286, 1077, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_read_standard_string() { let data = b"Ferris"; let offsets = [1, (data.len() + 1) as u8]; let string_index = MaybeOwnedIndex::Borrowed(Index { count: 1, off_size: 1, offset_array: &offsets, data_array: data, }); ...
rust_cleaned_test_functions.jsonl/85351
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 48688, 3904, 368, 341, 286, 1077, 821, 284, 293, 86555, 615, 285, 876, 286, 1077, 35046, 284, 508, 16, 11, 320, 691, 19406, 368, 488, 220, 16, 8, 438, 575, 23, 935, 286, 1077, 914, 356...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pv_subclass_passed_to_fn() { let hdr = indoc! {" #include <cstdint> class Observer { public: Observer() {} virtual uint32_t foo() const = 0; virtual ~Observer() {} }; inline void take_observer(const Observer&) {} "}; run_test_ex( "...
rust_cleaned_test_functions.jsonl/9946
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 590 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 91139, 5228, 1040, 87405, 2346, 15246, 368, 341, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 262, 671, 997, 366, 96975, 1339, 262, 536, 34041, 341, 262, 584, 510, 286, 34041, 368, 5613, 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_replace_region_with_start() { let text = "\nabc\n123\n789\ndef\nghi"; let expected = FileChange { changed: true, new_lines: "\nhello world\ndef\nghi".to_string(), }; let result = replace_region_in_text(text, r#"^\s*abc$"#, r#"^\s*def"#, true, || { vec!["he...
rust_cleaned_test_functions.jsonl/1256
{ "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, 10633, 20627, 6615, 4906, 368, 341, 262, 1077, 1467, 284, 2917, 77, 13683, 1699, 16, 17, 18, 1699, 22, 23, 24, 59, 5037, 1699, 75076, 876, 262, 1077, 3601, 284, 2887, 4072, 341, 286, 5497, 25,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_completion_works_in_consts() { check( r#" struct A { the_field: u32 } const X: u32 = { A { the_field: 92 }.$0 }; "#, expect![[r#" fd the_field u32 "#]], ); }
rust_cleaned_test_functions.jsonl/26257
{ "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, 60164, 11498, 82, 1243, 48530, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 362, 314, 279, 5013, 25, 575, 18, 17, 456, 1024, 1599, 25, 575, 18, 17, 284, 341, 262, 362, 314, 279, 5013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_uri() { let spotify = Spotify::default().access_token("test-access").build(); let track_id1 = "spotify:track:4iV5W9uYEdYUVa79Axb7Rh"; let track_id2 = "1301WleyT98MSxVHPZCA6M"; let uri1 = spotify.get_uri(Type::Track, track_id1); let uri2 = spotify....
rust_cleaned_test_functions.jsonl/38889
{ "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, 3062, 15572, 368, 972, 286, 1077, 87790, 284, 40537, 486, 2258, 1005, 5211, 6458, 445, 1944, 42156, 1827, 5834, 1647, 286, 1077, 3754, 842, 16, 284, 330, 87388, 25, 13131, 25, 19, 72, 53, 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_argmax() { let t = ndarray::arr2(&[[1.0, 2.0, 3.0], [6.0, 5.0, 4.0]]).into_ndarray(); assert_eq!(argmax(&t).into_raw_vec(), [2, 0]); }
rust_cleaned_test_functions.jsonl/114644
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6057, 2810, 368, 341, 262, 1077, 259, 284, 66883, 486, 1118, 17, 2099, 15505, 16, 13, 15, 11, 220, 17, 13, 15, 11, 220, 18, 13, 15, 1125, 508, 21, 13, 15, 11, 220, 20, 13, 15, 11, 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_fuzzing_ok() { let compiled = COMPILED.find("GreeterTest").expect("could not find contract"); let (_, code, _) = compiled.into_parts_or_default(); let mut libs = vec![]; let runner = runner(compiled.abi.as_ref().unwrap(), code, &mut libs); ...
rust_cleaned_test_functions.jsonl/50720
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 8889, 287, 19817, 368, 341, 310, 1077, 19697, 284, 7682, 1893, 13639, 2658, 445, 64747, 1404, 2271, 1827, 17119, 445, 28077, 537, 1477, 5116, 797, 310, 1077, 39464, 2038, 11, 27439, 284, 1969...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_protection_sae() { let dev_info = test_utils::fake_device_info(CLIENT_ADDR); let mut client_config = ClientConfig::from_config(SmeConfig::default(), true); let hasher = WlanHasher::new(DUMMY_HASH_KEY); let credential = fidl_sme::Credential::Password(...
rust_cleaned_test_functions.jsonl/101628
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 984 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 2540, 39141, 643, 5918, 368, 341, 286, 1077, 3483, 3109, 284, 1273, 17309, 486, 30570, 9204, 3109, 52991, 10757, 16058, 317, 286, 1077, 5206, 2943, 5332, 284, 8423, 2648, 486, 1499, 5332, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transaction() { let tx = Transaction::try_from(&include_bytes!("assets/target/transactions/tx_test.mvt")[..]) .unwrap(); assert_eq!(tx.signers_count(), 0); let script = tx.into_script(vec![]).unwrap(); CompiledScript::deserialize(script.code()).unwrap(); assert_...
rust_cleaned_test_functions.jsonl/82088
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 304 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 28884, 368, 341, 262, 1077, 9854, 284, 17869, 486, 1539, 5673, 2099, 997, 12524, 17223, 5160, 88868, 14, 41844, 14, 3998, 4452, 744, 9708, 17135, 496, 2546, 286, 659, 15454, 543, 262, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_sequence() { let entry_head = default_head(); let entry_body = default_body(); let sequence = "[username]abcd<tab>[password]<enter>"; let result = AutoTypeSequenceParser::parse_sequence(sequence, &entry_head, &entry_body) .expect("Parsing defau...
rust_cleaned_test_functions.jsonl/67301
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 23735, 368, 341, 286, 1077, 4343, 13138, 284, 1638, 13138, 543, 286, 1077, 4343, 14114, 284, 1638, 14114, 1428, 286, 1077, 8500, 284, 10545, 5113, 60, 68644, 27, 6192, 30768, 3833, 34139, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_mandala_state() { let _mandala_state_open = MandalaState { color: Color::RED, petal_rotate_transform: Transform::rotate(90), petal_translate_transform: Transform::translate((50.0, 0.0)), petal_scale_transform: Transform::scale((1.0, ...
rust_cleaned_test_functions.jsonl/65699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 717, 437, 6053, 4387, 368, 341, 286, 1077, 716, 1928, 6053, 4387, 11311, 284, 23849, 6053, 1397, 341, 310, 1894, 25, 3478, 486, 6504, 345, 310, 6753, 278, 60834, 18449, 25, 15226, 486, 162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_checkout_discard() { // written. let settings = testutils::user_settings(); let mut test_workspace = testutils::init_workspace(&settings, false); let repo = test_workspace.repo.clone(); let workspace_root = test_workspace.workspace.workspace_root().clone(); let...
rust_cleaned_test_functions.jsonl/132867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 791 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68186, 37745, 567, 368, 341, 9401, 262, 442, 5326, 624, 262, 1077, 5003, 284, 1273, 6031, 486, 872, 10853, 543, 262, 1077, 5206, 1273, 75560, 284, 1273, 6031, 486, 2327, 75560, 2099, 6511, 11, 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_bank_capitalization() { let bank = Arc::new(Bank::new(&GenesisConfig { accounts: (0..42) .map(|_| { ( solana_sdk::pubkey::new_rand(), Account::new(42, 0, &Pubkey::default()), ...
rust_cleaned_test_functions.jsonl/63676
{ "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, 35733, 16388, 2174, 2022, 368, 341, 286, 1077, 6073, 284, 19689, 486, 931, 5349, 1180, 486, 931, 2099, 84652, 2648, 341, 310, 9618, 25, 320, 15, 496, 19, 17, 340, 394, 659, 2186, 22428, 35395, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let h = Header::parse_header(&[b"foo=bar; baz=quux".to_vec()][..]); let c1 = CookiePair::new("foo".to_owned(), "bar".to_owned()); let c2 = CookiePair::new("baz".to_owned(), "quux".to_owned()); assert_eq!(h.ok(), Some(Cookie(vec![c1, c2]))); }
rust_cleaned_test_functions.jsonl/98547
{ "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, 21039, 368, 341, 262, 1077, 305, 284, 12104, 486, 6400, 8757, 2099, 58, 65, 1, 7975, 28, 2257, 26, 50247, 28, 446, 2200, 3263, 983, 13251, 75453, 496, 2558, 262, 1077, 272, 16, 284, 24356, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_return() { let point = FailPoint::new(); point.set_actions("", vec![Action::new(Task::Return(None), 1.0, None)]); let res = point.eval("test_fail_point_return"); assert_eq!(res, Some(None)); let ret = Some("test".to_owned()); point.set_actions("",...
rust_cleaned_test_functions.jsonl/18296
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12511, 368, 341, 286, 1077, 1459, 284, 39645, 2609, 486, 931, 543, 286, 1459, 980, 25368, 19814, 7486, 20703, 2512, 486, 931, 47531, 486, 5598, 26717, 701, 220, 16, 13, 15, 11, 2240, 41958, 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_nested_get_set1() { static KEY: Key<int> = &KeyValueKey; assert_eq!(KEY.replace(Some(4)), None); let _k = KEY.get(); KEY.replace(Some(4)); }
rust_cleaned_test_functions.jsonl/8647
{ "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, 66279, 3062, 2602, 16, 368, 341, 286, 1099, 12013, 25, 5309, 4159, 29, 284, 609, 72082, 1592, 280, 286, 2060, 10714, 10297, 4784, 6980, 65405, 7, 19, 5731, 2240, 626, 286, 1077, 716, 74, 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
#[test] fn test_patchwork() { let mut patchwork = Patchwork::new("one two three".to_string()); patchwork.patch(4..7, "zwei"); patchwork.patch(0..3, "один"); patchwork.patch(8..13, "3"); expect![[r#" Patchwork { text: "один zwei 3", ...
rust_cleaned_test_functions.jsonl/78997
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 535 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39643, 1778, 368, 341, 286, 1077, 5206, 10900, 1778, 284, 30412, 1778, 486, 931, 445, 603, 1378, 2326, 3263, 983, 3904, 1423, 286, 10900, 1778, 26701, 7, 19, 496, 22, 11, 330, 89, 27105, 797, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_chain_id() { let vm_validator = TestValidator::new(); let address = account_config::aptos_root_address(); let transaction = transaction_test_helpers::get_test_txn_with_chain_id( address, 0, /* sequence_number */ &vm_genesis::GENESIS_KEYPAIR.0, ...
rust_cleaned_test_functions.jsonl/35416
{ "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, 42681, 30583, 842, 368, 341, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 1428, 262, 1077, 2621, 284, 2692, 5332, 486, 2689, 436, 12993, 6744, 543, 262, 1077, 7745, 284, 7745, 4452, 54473,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_m128() { #[cfg(target_arch = "x86")] use core::arch::x86::*; #[cfg(target_arch = "x86_64")] use core::arch::x86_64::*; #[repr(C, align(16))] struct F32x4_A16([f32; 4]); let v0 = Vec4::new(1.0, 2.0, 3.0, 4.0); let m0: __m128 = v0.i...
rust_cleaned_test_functions.jsonl/68385
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 571 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 16, 17, 23, 368, 341, 286, 11506, 14072, 8637, 34330, 284, 330, 87, 23, 21, 5422, 286, 990, 6200, 486, 1113, 486, 87, 23, 21, 56162, 286, 11506, 14072, 8637, 34330, 284, 330, 87, 23, 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
#[test] fn test_request_outbound_connection_succeeds() { let (mut exec, mut rfcomm) = setup_rfcomm_manager(); // Start up a session with remote peer. let id = PeerId(1); let (local, mut remote) = Channel::create(); assert!(rfcomm.new_l2cap_connection(id, local).is_ok());...
rust_cleaned_test_functions.jsonl/49428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1074 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 6068, 10891, 15866, 643, 29264, 82, 368, 341, 286, 1077, 320, 6984, 3883, 11, 5206, 36026, 3621, 8, 284, 6505, 65466, 3621, 12144, 1428, 286, 442, 5145, 705, 264, 3797, 448, 8699, 14397, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_utf8() { context!(ctx, dev); execute_str!(ctx, b"*UTF8? 'STRING'" => result, response { assert_eq!(result, Ok(())); assert_eq!(response, b"#16STRING\n"); }); execute_str!(ctx, b"*UTF8? #206STRING" => result, response { assert_eq...
rust_cleaned_test_functions.jsonl/82173
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39453, 23, 368, 341, 286, 2266, 10297, 3773, 11, 3483, 317, 286, 9026, 2895, 10297, 3773, 11, 293, 61593, 8561, 23, 30, 364, 16468, 14913, 589, 1102, 11, 2033, 341, 310, 2060, 10714, 10297, 1382...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_LinearQuadraticRegulator_cost_to_go() { // generate row-major matrices let A = DMatrix::from_row_slice(2, 2, &[0., 1., 0., 0.]); let B = DMatrix::from_row_slice(2, 1, &[0., 1.]); let Q = DMatrix::<f32>::identity(2, 2); let R = DMatrix::from_vec(1, 1, vec...
rust_cleaned_test_functions.jsonl/13047
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 447 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59100, 277, 2183, 88678, 3477, 10511, 15890, 2346, 25515, 368, 341, 286, 442, 6923, 2802, 65581, 35195, 198, 286, 1077, 362, 284, 422, 6689, 486, 1499, 8530, 26488, 7, 17, 11, 220, 17, 11, 44590...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_validate_circuit_too_many_allowed_nodes() { let store = setup_admin_service_store(); let event_store = store.clone_boxed(); let (mesh, cm, pm, peer_connector) = setup_peer_connector(None); let orchestrator = setup_orchestrator(); let signature_verifier =...
rust_cleaned_test_functions.jsonl/47867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 799 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 666, 37268, 2346, 78, 22101, 42155, 14896, 368, 341, 286, 1077, 3553, 284, 6505, 12207, 12267, 14809, 543, 286, 1077, 1538, 14809, 284, 3553, 15997, 10194, 291, 1428, 286, 1077, 320, 23506, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_qdate() { let date = QDate::from_y_m_d(2019, 10, 22); assert_eq!((2019, 10, 22), date.get_y_m_d()); }
rust_cleaned_test_functions.jsonl/45517
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 69 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8976, 1028, 368, 341, 262, 1077, 2400, 284, 1207, 1916, 486, 1499, 4178, 717, 814, 7, 17, 15, 16, 24, 11, 220, 16, 15, 11, 220, 17, 17, 317, 262, 2060, 10714, 0, 1188, 17, 15, 16, 24, 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
#[test] fn test_invalid_option() { // truncate: cli parsing error returns 1 new_ucmd!() .args(&["--this-arg-does-not-exist"]) .fails() .code_is(1); }
rust_cleaned_test_functions.jsonl/77094
{ "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, 31433, 9672, 368, 341, 262, 442, 56772, 25, 21348, 22314, 1465, 4675, 220, 16, 198, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 574, 12, 858, 1737, 7072, 29169, 10187, 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
#[test] fn test_inversion() { assert_eq!(Scalar::zero().invert(), Scalar::zero()); assert_eq!(Scalar::one().invert(), Scalar::one()); assert_eq!((-&Scalar::one()).invert(), -&Scalar::one()); let mut tmp: Scalar = rand_value(); for _ in 0..100 { let mut tmp2 ...
rust_cleaned_test_functions.jsonl/14280
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 4366, 368, 341, 286, 2060, 10714, 10297, 20639, 486, 14154, 1005, 83729, 1507, 35176, 486, 14154, 1423, 286, 2060, 10714, 10297, 20639, 486, 603, 1005, 83729, 1507, 35176, 486, 603, 1423, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_endpoint_api() { let mut testkit = TestKitBuilder::validator() .with_validators(3) .with_service(TimeService::new()) .create(); let mut api = testkit.api(); let validators = testkit.network().validators().to_vec(); let mut current_validators_times: HashMa...
rust_cleaned_test_functions.jsonl/57380
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1570 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36699, 11697, 368, 341, 262, 1077, 5206, 1273, 8226, 284, 3393, 7695, 3297, 486, 16112, 741, 286, 659, 4197, 8337, 2973, 7, 18, 340, 286, 659, 4197, 12267, 36968, 1860, 486, 931, 2398, 286, 659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_hstring() { assert_eq!(hstring("'AB0196'H"), done_result!(vec![10u8, 11, 0, 1, 9, 6])); assert_eq!(hstring("'A B0\u{A0}19'H"), done_result!(vec![10u8, 11, 0, 1, 9])); assert_eq!(hstring("' A\u{A0}\n\tB0196\x0B'H"), done_result!(vec![10u8, 11, 0, 1, 9, 6])); // Mi...
rust_cleaned_test_functions.jsonl/29995
{ "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, 1523, 917, 368, 341, 286, 2060, 10714, 10297, 71, 917, 45456, 1867, 15, 16, 24, 21, 66970, 3975, 2814, 5287, 10297, 4083, 20703, 16, 15, 84, 23, 11, 220, 16, 16, 11, 220, 15, 11, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vcx_create_schema_success() { let _setup = SetupMocks::init(); let (_, schema_name, schema_version, data) = prepare_schema_data(); let handle = vcx_schema_create_c_closure(&schema_name, &schema_version, &data).unwrap(); assert!(handle > 0) }
rust_cleaned_test_functions.jsonl/118199
{ "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, 2273, 25844, 8657, 25371, 18632, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 39464, 10802, 1269, 11, 10802, 9438, 11, 821, 8, 284, 10549, 25371, 1769, 543, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_latest_ip_when_only_one_ip() -> Result<(), UnexpectedOutputError> { let mut results = IpResults::new(Some(false)); results.add_result(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), Utc::now()); match results.get_latest_ip() { Ok(ip) => { assert_...
rust_cleaned_test_functions.jsonl/86296
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 64880, 10385, 47636, 18410, 11667, 10385, 368, 1464, 5714, 68843, 70400, 5097, 1454, 29, 341, 286, 1077, 5206, 3059, 284, 35033, 9801, 486, 931, 65405, 3576, 3237, 286, 3059, 1364, 5287, 8972,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_retrieve_credentials() { init!("ledger"); ::utils::libindy::anoncreds::tests::create_and_store_credential(::utils::constants::DEFAULT_SCHEMA_ATTRS, false); let (_, _, req, _) = ::utils::libindy::anoncreds::tests::create_proof(); let mut proof_req = ProofRequestMe...
rust_cleaned_test_functions.jsonl/106022
{ "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, 1288, 34216, 47396, 368, 341, 286, 2930, 17223, 50704, 797, 286, 3504, 6031, 486, 2740, 48990, 486, 58910, 85734, 486, 23841, 486, 3182, 8378, 14809, 666, 30320, 38732, 6031, 486, 15763, 486, 17285,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rlp_stream_unbounded_list() { let mut stream = RlpStream::new(); stream.begin_unbounded_list(); stream.append(&40u32); stream.append(&41u32); assert!(!stream.is_finished()); stream.finalize_unbounded_list(); assert!(stream.is_finished()); }
rust_cleaned_test_functions.jsonl/74211
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 13545, 12673, 4907, 65686, 2019, 368, 341, 10217, 5206, 4269, 284, 431, 13545, 3027, 486, 931, 543, 44440, 6848, 4907, 65686, 2019, 543, 44440, 2057, 2099, 19, 15, 84, 18, 17, 317, 44440, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_node_bootstrap_with_prepared_data() { // create a node let pd_client = Arc::new(TestPdClient::new(0, false)); let cfg = new_tikv_config(0); let (_, system) = fsm::create_raft_batch_system(&cfg.raft_store); let simulate_trans = SimulateTransport::new(ChannelTransport::new());...
rust_cleaned_test_functions.jsonl/18674
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1379 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 88424, 6615, 10442, 7212, 1769, 368, 341, 262, 442, 1855, 264, 2436, 198, 262, 1077, 7744, 8179, 284, 19689, 486, 931, 31159, 47, 67, 2959, 486, 931, 7, 15, 11, 895, 1106, 262, 1077, 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_renaming_of_store_instruction() { // Given: [x] := x let mut instruction = il::Instruction::store(0, il::expr_scalar("x", 64), il::expr_scalar("x", 64)); let mut versioning = ScalarVersioning::new(); versioning.start_new_scope(); versioning.ne...
rust_cleaned_test_functions.jsonl/60304
{ "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, 1288, 77, 6469, 3575, 14809, 54923, 368, 341, 286, 442, 16246, 25, 508, 87, 60, 1669, 856, 198, 286, 1077, 5206, 7600, 4035, 310, 3815, 486, 16664, 486, 4314, 7, 15, 11, 3815, 486, 9413, 41652...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_contains() { let mut l = LinkedList::new(); l.extend(&[2, 3, 4]); assert!(l.contains(&3)); assert!(!l.contains(&1)); l.clear(); assert!(!l.contains(&3)); }
rust_cleaned_test_functions.jsonl/92218
{ "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, 63598, 368, 341, 262, 1077, 5206, 326, 284, 22917, 486, 931, 543, 262, 326, 15831, 2099, 58, 17, 11, 220, 18, 11, 220, 19, 10149, 262, 2060, 10297, 75, 8786, 2099, 18, 1106, 262, 2060, 0, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_join_lines_diverging_block() { check_join_lines( r" fn foo() { loop { match x { 92 => $0{ continue; } } } } ", r" fn foo() { loop { match x { 92 => $0continue, ...
rust_cleaned_test_functions.jsonl/22494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 241 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 18323, 16237, 95296, 7113, 368, 341, 286, 1779, 31017, 18323, 1006, 310, 435, 698, 8822, 15229, 368, 341, 262, 6337, 341, 286, 2432, 856, 341, 310, 220, 24, 17, 589, 400, 15, 515, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_translate_type() { // Pubkey let pubkey = solana_sdk::pubkey::new_rand(); let addr = &pubkey as *const _ as u64; let config = Config::default(); let memory_mapping = MemoryMapping::new::<UserError>( vec![ MemoryRegion::default()...
rust_cleaned_test_functions.jsonl/73753
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1011 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66381, 1819, 368, 341, 286, 442, 22611, 792, 198, 286, 1077, 95116, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 10789, 284, 609, 9585, 792, 438, 353, 1024, 716, 438,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_in_function_clash_with_shared_dim() { let program = r#" DIM SHARED A AS STRING FUNCTION Test DIM A AS STRING END FUNCTION "#; assert_linter_err!(program, QError::DuplicateDefinition, 4, 17); }
rust_cleaned_test_functions.jsonl/122479
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10791, 1243, 9174, 6794, 988, 6615, 20405, 10791, 368, 341, 286, 1077, 2025, 284, 435, 2, 698, 286, 50859, 6434, 32673, 362, 5752, 35255, 198, 286, 24819, 3393, 198, 310, 50859, 362, 5752, 35255, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_permutation_date_creator() { let top = [2, 0, 1]; let bottom = [1, 2, 0]; let flip_set = [1]; assert_eq!( FlippedPermutation::new(&top, &bottom, &flip_set), Ok(FlippedPermutation { top: vec![2, 0, 1], bottom: vec![1, 2, 0], fli...
rust_cleaned_test_functions.jsonl/23362
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 521 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31961, 22705, 4164, 68532, 368, 341, 262, 1077, 1909, 284, 508, 17, 11, 220, 15, 11, 220, 16, 935, 262, 1077, 5622, 284, 508, 16, 11, 220, 17, 11, 220, 15, 935, 262, 1077, 18287, 2602, 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_cowarc_clone_make_unique() { let mut cow0 = Arc::new(75); let mut cow1 = cow0.clone(); let mut cow2 = cow1.clone(); assert!(75 == *cow0.make_unique()); assert!(75 == *cow1.make_unique()); assert!(75 == *cow2.make_unique()); *cow0.make_uni...
rust_cleaned_test_functions.jsonl/19208
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 363, 8198, 54742, 28230, 21218, 368, 341, 286, 1077, 5206, 19362, 15, 284, 19689, 486, 931, 7, 22, 20, 317, 286, 1077, 5206, 19362, 16, 284, 19362, 15, 15997, 543, 286, 1077, 5206, 19362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enumerated() { assert_parses::<Enumerated>(&[ (Ok(Enumerated::new(12)), b"\x0a\x01\x0c"), ( Err(ParseError::new(ParseErrorKind::InvalidValue)), b"\x0a\x09\xff\xff\xff\xff\xff\xff\xff\xff\xff", ), ]); }
rust_cleaned_test_functions.jsonl/40836
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6205, 3389, 657, 368, 341, 286, 2060, 77113, 288, 27638, 5882, 657, 44784, 9640, 310, 320, 11578, 7, 5882, 657, 486, 931, 7, 16, 17, 5731, 293, 11934, 87, 15, 64, 3462, 15, 16, 3462, 15, 66,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nested_struct_json_arrays() { let c_field = Field::new( "c", DataType::Struct(vec![Field::new("d", DataType::Utf8, true)]), true, ); let a_field = Field::new( "a", DataType::Struct(vec![ Field::ne...
rust_cleaned_test_functions.jsonl/22595
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 930 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 15126, 9455, 68983, 368, 341, 286, 1077, 272, 5013, 284, 8601, 486, 931, 1006, 310, 330, 66, 756, 310, 33172, 486, 9422, 25592, 20703, 1877, 486, 931, 445, 67, 497, 33172, 486, 38980, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_json_infer_schema() { let schema = Schema::new(vec![ Field::new("a", DataType::Int64, true), Field::new( "b", DataType::List(Box::new(Field::new("item", DataType::Float64, true))), true, ), Fi...
rust_cleaned_test_functions.jsonl/22610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 615 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9455, 1243, 802, 25371, 368, 341, 286, 1077, 10802, 284, 12539, 486, 931, 25592, 90515, 310, 8601, 486, 931, 445, 64, 497, 33172, 486, 1072, 21, 19, 11, 830, 1326, 310, 8601, 486, 931, 1006, 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_reserve_space_for_recover() { let tmp_dir = Builder::new() .prefix("test_reserve_space_for_recover") .tempdir() .unwrap(); let data_path = tmp_dir.path(); let file_path = data_path.join(SPACE_PLACEHOLDER_FILE); let file = file_p...
rust_cleaned_test_functions.jsonl/41795
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 334 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89591, 14663, 5478, 1288, 3688, 368, 341, 286, 1077, 4174, 4334, 284, 20626, 486, 931, 741, 310, 659, 11849, 445, 1944, 89591, 14663, 5478, 1288, 3688, 1138, 310, 659, 3888, 3741, 741, 310, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_case_39() { let key = "241fd57f32e09976de4054797b9aee820e0de381d02852ac13f511918267b703"; let nonce = "7330e60ba1c5875a0275f8ccc75cbe98"; let expected_output = "9e724c5b0321e2528278a501108f1ae8a14dffaea9b6b138eacef3bd8d4dda41"; hcha...
rust_cleaned_test_functions.jsonl/44701
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 62, 18, 24, 368, 341, 310, 1077, 1376, 284, 330, 17, 19, 16, 6902, 20, 22, 69, 18, 17, 68, 15, 24, 24, 22, 21, 450, 19, 15, 20, 19, 22, 24, 22, 65, 24, 64, 2127, 23, 17, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_cache_hit() -> Result<()> { let k: Key<Provider> = Key::random()?; let v0 = DBView::load(k.clone(), empty::<ReadResult>())?; let mut writes = vec![]; let id = RecordId::random::<Provider>()?; let mut w = v0.writer(id); writes.push(w.truncate()?); let data = fr...
rust_cleaned_test_functions.jsonl/125340
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 11529, 37697, 368, 1464, 5714, 71698, 341, 262, 1077, 595, 25, 5309, 27, 5179, 29, 284, 5309, 486, 11463, 94136, 262, 1077, 348, 15, 284, 5952, 851, 486, 1078, 5969, 15997, 1507, 4287, 276...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_expect_fromfile() { let ctx = TestContext::new(); let cmx_path = ctx.new_include( "some.cmx", json!({ "include": [ "foo.cmx", "bar.cmx" ], "program": { "binary": "bin/hello_world" } ...
rust_cleaned_test_functions.jsonl/50699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 506 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68918, 5673, 1192, 368, 341, 286, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 286, 1077, 9961, 87, 2638, 284, 5635, 4618, 37878, 1006, 310, 330, 14689, 520, 18085, 756, 310, 2951, 0, 2262, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_stake_delegate_ix() { let stake_pubkey = Pubkey::new_unique(); let authorized_pubkey = Pubkey::new_unique(); let vote_pubkey = Pubkey::new_unique(); let instruction = instruction::delegate_stake(&stake_pubkey, &authorized_pubkey, &vote_pubkey); ...
rust_cleaned_test_functions.jsonl/117967
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 687 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 1261, 726, 55312, 62686, 368, 341, 286, 1077, 18279, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 18630, 34014, 792, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 6910,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_principal_name() { let mut pn = PrincipalName::default(); pn.name_type.inner = 2; pn.name_string.inner.push(GeneralString::from_ascii("foo").unwrap()); assert_eq!(to_der(&pn), [48, 14, 160, 3, 2, 1, 2, 161, 7, 48, 5, 27, 3, 102, 111, 111]); }
rust_cleaned_test_functions.jsonl/84644
{ "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, 82402, 1269, 368, 341, 286, 1077, 5206, 43050, 284, 36309, 675, 486, 2258, 543, 286, 43050, 2644, 1819, 9398, 284, 220, 17, 280, 286, 43050, 2644, 3904, 9398, 2552, 7, 15415, 703, 486, 1499, 502...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_check_address() { let f1 = TempFile::new().unwrap().into_file(); f1.set_len(0x400).unwrap(); let f2 = TempFile::new().unwrap().into_file(); f2.set_len(0x400).unwrap(); let start_addr1 = GuestAddress(0x0); let start_addr2 = GuestAddress(0x800); ...
rust_cleaned_test_functions.jsonl/63918
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 649 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 6744, 368, 341, 286, 1077, 282, 16, 284, 19944, 1703, 486, 931, 1005, 15454, 1005, 18122, 2458, 543, 286, 282, 16, 980, 6043, 7, 15, 87, 19, 15, 15, 568, 15454, 543, 286, 1077, 282, 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...
2
#[test] fn test_circuit_with_combined_lookups() { use crate::pairing::bn256::{Bn256, Fr}; use crate::worker::Worker; let mut assembly = TrivialAssembly::<Bn256, PlonkCsWidth4WithNextStepParams, Width4MainGateWithDNext>::new(); let circuit = TestCircuit4WithLookups::<Bn256> { ...
rust_cleaned_test_functions.jsonl/78084
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 37268, 6615, 89945, 24271, 8602, 368, 341, 286, 990, 17717, 486, 12670, 287, 486, 11081, 17, 20, 21, 22964, 33, 77, 17, 20, 21, 11, 2869, 2440, 286, 990, 17717, 486, 21462, 486, 21936, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_can_call_large_contract() { let mut evm = vm(); let compiled = COMPILED.find("LargeContract").expect("could not find contract"); let from = Address::random(); let (addr, _, _, _) = evm.deploy(from, compiled.bytecode().unwrap().clone(), 0.into()).unwra...
rust_cleaned_test_functions.jsonl/21230
{ "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, 27421, 13429, 45228, 51499, 368, 341, 286, 1077, 5206, 3637, 76, 284, 10995, 543, 286, 1077, 19697, 284, 7682, 1893, 13639, 2658, 445, 34253, 14067, 1827, 17119, 445, 28077, 537, 1477, 5116, 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_rolling_lookback() { // Test month as interval in date range let start = NaiveDate::from_ymd(1970, 1, 16).and_hms(0, 0, 0); let end = NaiveDate::from_ymd(1970, 1, 16).and_hms(4, 0, 0); let dates = date_range_vec( start.timestamp_millis(), end.timestamp_millis(), ...
rust_cleaned_test_functions.jsonl/61974
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 16210, 24271, 1419, 368, 341, 262, 442, 3393, 2254, 438, 9873, 304, 2400, 2088, 198, 262, 1077, 1191, 284, 12812, 533, 1916, 486, 1499, 62, 1600, 67, 7, 16, 24, 22, 15, 11, 220, 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_url_to_filename() { let test_cases = [ ("https://deno.land/x/foo.ts", "https/deno.land/2c0a064891b9e3fbe386f5d4a833bce5076543f5404613656042107213a7bbc8"), ( "https://deno.land:8080/x/foo.ts", "https/deno.land_PORT8080/2c0a064891b9e3fbe386f5d4a833bce5076543f5404613...
rust_cleaned_test_functions.jsonl/132673
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 787 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2903, 2346, 13323, 368, 341, 262, 1077, 1273, 41427, 284, 2278, 414, 3489, 2428, 1110, 5183, 78, 87627, 10776, 60555, 21288, 497, 330, 2428, 3446, 11790, 87627, 14, 17, 66, 15, 64, 15, 21, 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...
2
#[test] fn test_intraday_chart_pass() { let it = crawler::IntradayBuilder::new().read_timeout_sec(3).build(); let chart = fetch_enum!(Response::Chart, it.chart("2884").call().unwrap()); assert_eq!(chart.data.info.symbol_id, "2884"); assert_eq!(chart.data.info.typ, "EQUITY"); let chart = fet...
rust_cleaned_test_functions.jsonl/49438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 47026, 352, 40961, 15464, 368, 341, 262, 1077, 432, 284, 73094, 486, 641, 47026, 352, 3297, 486, 931, 1005, 878, 20537, 17242, 7, 18, 568, 5834, 543, 262, 1077, 9487, 284, 7807, 31054, 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_new_pool_pop_client_and_take_collection() { let uri = Uri::new("mongodb://localhost:27017/").unwrap(); let pool = ClientPool::new(uri.clone(), None); assert_eq!(pool.get_uri(), &uri); // Pop a client and take collection let client = pool.pop(); let collection = client.ta...
rust_cleaned_test_functions.jsonl/22216
{ "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, 5921, 15709, 17061, 8179, 8378, 73261, 25019, 368, 341, 262, 1077, 13071, 284, 17226, 486, 931, 445, 37197, 1110, 8301, 25, 17, 22, 15, 16, 22, 14, 1827, 15454, 543, 262, 1077, 7314, 284, 8423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_platform() { let p = "Tor 0.4.4.4-alpha on a flying bison".parse::<RelayPlatform>(); assert!(p.is_ok()); assert_eq!( p.unwrap(), RelayPlatform::Tor( "0.4.4.4-alpha".parse().unwrap(), "a flying bison".to_string() ...
rust_cleaned_test_functions.jsonl/82081
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 430 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34260, 368, 341, 286, 1077, 281, 284, 330, 32350, 220, 15, 13, 19, 13, 19, 13, 19, 64538, 389, 264, 16307, 293, 3335, 3263, 6400, 27638, 6740, 352, 17296, 3913, 286, 2060, 10297, 79, 2079, 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...
1
#[test] fn test_parse_invalid_id() { let raw = raw_frame_from_parts((12, 0x1, 0, 0), vec![0, 0, 0, 0, 0, 0, 0, 1, 1, 2, 3, 4]); assert!(GoawayFrame::from_raw(&raw).is_none(), "expected invalid id"); }
rust_cleaned_test_functions.jsonl/38126
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 31433, 842, 368, 341, 286, 1077, 7112, 284, 7112, 8929, 5673, 33217, 1188, 16, 17, 11, 220, 15, 87, 16, 11, 220, 15, 11, 220, 15, 701, 7486, 20703, 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_param() { let input = buffer("(param i32 string)"); let output = FunctionType::Input(vec![InterfaceType::I32, InterfaceType::String]); assert_eq!(parser::parse::<FunctionType>(&input).unwrap(), output); }
rust_cleaned_test_functions.jsonl/102969
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4090, 368, 341, 286, 1077, 1946, 284, 4147, 31732, 903, 600, 18, 17, 914, 20996, 286, 1077, 2550, 284, 5712, 929, 486, 2505, 25592, 20703, 5051, 929, 486, 40, 18, 17, 11, 20019, 929, 486, 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
#[test] fn test_convert_errored() -> Result<(), failure::Error> { let data = vec![ Errored { hash: HashType::OperationHash.string_to_bytes("onvN8U6QJ6DGJKVYkHXYRtFm3tgBJScj9P5bbPjSZUuFaGzwFuJ")?, is_endorsement: None, protocol_data_json_wi...
rust_cleaned_test_functions.jsonl/114826
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1776 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 62, 40296, 1151, 368, 1464, 5714, 68843, 7901, 486, 1454, 29, 972, 286, 1077, 821, 284, 7486, 20703, 319, 310, 9740, 47643, 972, 394, 5175, 25, 6531, 929, 486, 8432, 6370, 4804, 2346, 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...
9
#[test] fn test_basic_timer_with_poll_edge_set_timeout_before_register() { let poll = Poll::new().unwrap(); let mut events = Events::with_capacity(1024); let mut timer = Timer::default(); timer.set_timeout(Duration::from_millis(200), "hello"); poll.register(&timer, Token(0), Ready::readable...
rust_cleaned_test_functions.jsonl/95271
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 16255, 6615, 40002, 17932, 2602, 20537, 23708, 14000, 368, 341, 262, 1077, 7085, 284, 24385, 486, 931, 1005, 15454, 543, 262, 1077, 5206, 4357, 284, 17627, 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...
2
#[test] fn test_does_not_confuse_different_duplicates() { let word = "galea"; let inputs = ["eagle"]; let outputs = vec![]; process_anagram_case(word, &inputs, &outputs); }
rust_cleaned_test_functions.jsonl/14775
{ "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, 96374, 7913, 16059, 810, 82741, 75051, 368, 341, 262, 1077, 3409, 284, 330, 70, 1574, 64, 3302, 262, 1077, 11127, 284, 4383, 68, 32674, 31797, 262, 1077, 16275, 284, 7486, 0, 40901, 262, 1882, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ranges_simple() { let ranges = ranges(&["3:8"]); assert_eq!(RangeCheckResult::BeforeOrBetweenRanges, ranges.check(2)); assert_eq!(RangeCheckResult::InRange, ranges.check(5)); assert_eq!(RangeCheckResult::AfterLastRange, ranges.check(9)); }
rust_cleaned_test_functions.jsonl/35930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58748, 30015, 368, 341, 262, 1077, 21283, 284, 21283, 2099, 1183, 18, 25, 23, 55919, 262, 2060, 10714, 10297, 6046, 3973, 2077, 486, 10227, 2195, 25477, 74902, 11, 21283, 9093, 7, 17, 1106, 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_finney() { let s = to_chars("finney"); let cur = &mut 0; expect_next_token(&s, cur, Token::Finney); }
rust_cleaned_test_functions.jsonl/21053
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39737, 3437, 368, 341, 286, 1077, 274, 284, 311, 37418, 445, 5472, 3437, 797, 286, 1077, 2847, 284, 609, 6984, 220, 15, 280, 286, 1720, 11257, 6458, 2099, 82, 11, 2847, 11, 9660, 486, 9134, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_with_labels_mt() { let records = array![ [0., 1.], [1., 2.], [2., 3.], [0., 4.], [1., 5.], [2., 6.], [0., 7.], [1., 8.], [2., 9.], [0., 10.] ]; let targ...
rust_cleaned_test_functions.jsonl/98118
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 905 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 14547, 65944, 368, 341, 286, 1077, 7424, 284, 1334, 90515, 310, 508, 15, 2572, 220, 16, 13, 1259, 310, 508, 16, 2572, 220, 17, 13, 1259, 310, 508, 17, 2572, 220, 18, 13, 1259, 310, 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_node_merge_recover_snapshot() { let mut cluster = new_node_cluster(0, 3); configure_for_merge(&mut cluster); cluster.cfg.raft_store.raft_log_gc_threshold = 12; cluster.cfg.raft_store.raft_log_gc_count_limit = 12; let pd_client = Arc::clone(&cluster.pd_client); pd_client.d...
rust_cleaned_test_functions.jsonl/10780
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 651 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 20888, 1288, 3688, 53265, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 18, 317, 262, 14411, 5478, 20888, 2099, 6984, 10652, 317, 262, 10652, 30481, 13, 2944, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_current_branch_current_head_1_to_100_error() { for i in 1..=10 { for j in 0..=i { test(i, None, Some(j)); } } }
rust_cleaned_test_functions.jsonl/2771
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 11080, 28031, 11080, 13138, 62, 16, 2346, 62, 16, 15, 15, 4096, 368, 341, 262, 369, 600, 304, 220, 16, 496, 28, 16, 15, 341, 286, 369, 502, 304, 220, 15, 496, 28, 72, 341, 310, 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 ]
3
#[test] fn test_open_stream_with_data() { let rt = rt(); rt.block_on(async { let (_frame_sender, frame_receiver) = channel(2); let (unbound_sender, mut unbound_receiver) = unbounded(); let mut stream = StreamHandle::new( 0, unbo...
rust_cleaned_test_functions.jsonl/88133
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 599 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11311, 12673, 6615, 1769, 368, 341, 286, 1077, 16677, 284, 16677, 543, 286, 16677, 15697, 4470, 18285, 341, 310, 1077, 5453, 6763, 54356, 11, 4034, 65691, 8, 284, 5496, 7, 17, 317, 310, 1077, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_interval_array_from_vec() { let arr = IntervalYearMonthArray::from(vec![Some(1), None, Some(-5)]); assert_eq!(3, arr.len()); assert_eq!(0, arr.offset()); assert_eq!(1, arr.null_count()); assert_eq!(1, arr.value(0)); assert_eq!(1, arr.value...
rust_cleaned_test_functions.jsonl/27279
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 441 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20541, 3858, 5673, 13251, 368, 341, 1789, 286, 1077, 2890, 284, 40584, 9490, 11318, 1857, 486, 1499, 25592, 20703, 8373, 7, 16, 701, 2240, 11, 4329, 4080, 20, 41958, 286, 2060, 10714, 10297, 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_set_channels() { let mut c1 = Rgi::new(0.3, 0.2, 0.5); c1.set_red(0.6); assert_relative_eq!(c1.red(), 0.6); assert_relative_eq!(c1.green(), 0.1142857, epsilon = 1e-6); assert_relative_eq!(c1.blue(), 0.2857143, epsilon = 1e-6); assert_relative_eq!(c...
rust_cleaned_test_functions.jsonl/86779
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 795 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 19291, 368, 341, 286, 1077, 5206, 272, 16, 284, 431, 8212, 486, 931, 7, 15, 13, 18, 11, 220, 15, 13, 17, 11, 220, 15, 13, 20, 317, 286, 272, 16, 980, 26058, 7, 15, 13, 21, 317, 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_autoscaler_v1alpha1_cpu() { let autoscaler_alpha1_trait = TraitBinding { name : String::from("auto-scaler"), parameter_values: None, properties: Some(json!({ "cpu": 42, "minimum": 6, "maximum": 7 })) }; let serializ...
rust_cleaned_test_functions.jsonl/50205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 632 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32808, 436, 63084, 2273, 16, 7141, 16, 21795, 368, 341, 262, 1077, 46872, 63084, 26633, 16, 78491, 284, 68301, 15059, 341, 286, 829, 549, 923, 486, 1499, 445, 3902, 61887, 261, 4461, 286, 5733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dynamic_groupby_window() { let start = NaiveDate::from_ymd(2021, 12, 16) .and_hms(0, 0, 0) .timestamp_millis(); let stop = NaiveDate::from_ymd(2021, 12, 16) .and_hms(3, 0, 0) .timestamp_millis(); let range = date_range( ...
rust_cleaned_test_functions.jsonl/69485
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1671 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45992, 6288, 1694, 12571, 368, 341, 286, 1077, 1191, 284, 12812, 533, 1916, 486, 1499, 62, 1600, 67, 7, 17, 15, 17, 16, 11, 220, 16, 17, 11, 220, 16, 21, 340, 310, 659, 437, 1523, 1011, 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_new() { let vanilla_table_create = TableCreateCommand::new("Test".to_string()); let expected = TableCreateCommand { command: TableCreate, name: "Test".to_string(), arguments: HashMap::new(), }; assert_eq!(expected, vanilla_table...
rust_cleaned_test_functions.jsonl/74219
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 368, 341, 286, 1077, 32065, 5237, 8657, 284, 6633, 4021, 4062, 486, 931, 445, 2271, 3263, 983, 3904, 1423, 286, 1077, 3601, 284, 6633, 4021, 4062, 341, 310, 3210, 25, 6633, 4021, 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...
1
#[test] fn test_write_generalizedtime() { assert_writes(&[ ( GeneralizedTime::new(Utc.ymd(1991, 5, 6).and_hms(23, 45, 40)), b"\x18\x0f19910506234540Z", ), ( GeneralizedTime::new(Utc.timestamp(0, 0)), b"\x...
rust_cleaned_test_functions.jsonl/129897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 39177, 1506, 1678, 368, 341, 286, 2060, 1670, 23262, 2099, 9640, 310, 2399, 394, 3251, 1506, 1462, 486, 931, 12317, 10413, 13, 1600, 67, 7, 16, 24, 24, 16, 11, 220, 20, 11, 220, 21, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_calculate_frob_1() { let mut a = Fq2::one(); a.mul_by_nonresidue(); print!("(i + 9) = {}\n", a); }
rust_cleaned_test_functions.jsonl/100944
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24005, 11207, 761, 22740, 62, 16, 368, 341, 262, 1077, 5206, 264, 284, 434, 80, 17, 486, 603, 543, 262, 264, 53141, 3710, 21637, 416, 60607, 1428, 9401, 262, 1173, 17223, 7, 72, 488, 220, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_find_unsorted_subarray() { assert_eq!( Solution::find_unsorted_subarray(vec![2, 6, 4, 8, 10, 9, 15]), 5 ); assert_eq!(Solution::find_unsorted_subarray(vec![1, 2, 3, 4]), 0); assert_eq!(Solution::find_unsorted_subarray(vec![1]), 0); }
rust_cleaned_test_functions.jsonl/94253
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 4907, 28298, 5228, 1653, 368, 341, 286, 2060, 10714, 33673, 310, 12478, 486, 3903, 4907, 28298, 5228, 1653, 25592, 20703, 17, 11, 220, 21, 11, 220, 19, 11, 220, 23, 11, 220, 16, 15, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_schedule_close_before() { let data = generate_data(10); let mut tree = ScheduleTree::new(); let scheduled = tree.schedule_close_before(18, 5, None, &data[0]); assert!(scheduled); assert!(tree.scope == Some(13..18)); assert_matches!( ...
rust_cleaned_test_functions.jsonl/113492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4306 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34530, 12704, 23708, 368, 341, 286, 1077, 821, 284, 6923, 1769, 7, 16, 15, 626, 286, 1077, 5206, 4916, 284, 23512, 6533, 486, 931, 1428, 1789, 286, 1077, 13537, 284, 4916, 39853, 12704, 23708, 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_inconsistent_configuration() { let mut cluster = new_node_cluster(0, 3); configure_for_hibernate(&mut cluster); cluster.run(); cluster.must_transfer_leader(1, new_peer(1, 1)); cluster.must_put(b"k1", b"v1"); must_get_equal(&cluster.get_engine(3), b"k1", b"v1"); // Wa...
rust_cleaned_test_functions.jsonl/50291
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1362 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 78399, 35726, 368, 341, 262, 1077, 5206, 10652, 284, 501, 5084, 28441, 7, 15, 11, 220, 18, 317, 262, 14411, 5478, 1523, 18818, 2099, 6984, 10652, 317, 262, 10652, 7634, 543, 262, 10652, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_except() { let config: TestConfig = toml::from_str(TOML_EXCEPT_FIELD).unwrap(); config.encoding.validate().unwrap(); let mut event = Event::new_empty_log(); { let log = event.as_mut_log(); log.insert("Doop", 1); log.insert("Beep...
rust_cleaned_test_functions.jsonl/30793
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54633, 368, 341, 286, 1077, 2193, 25, 3393, 2648, 284, 311, 1014, 486, 1499, 2895, 4140, 1898, 43, 4966, 21073, 17354, 568, 15454, 543, 286, 2193, 65118, 19520, 1005, 15454, 543, 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...
1
#[test] fn test_localhost() { let name = Name::from_ascii("localhost.").unwrap(); let usage = USAGE.get(&name); assert_eq!(usage.name(), LOCALHOST.name()); let name = Name::from_ascii("this.localhost.").unwrap(); let usage = USAGE.get(&name); assert_eq!(usage.n...
rust_cleaned_test_functions.jsonl/26317
{ "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, 62, 8301, 368, 341, 286, 1077, 829, 284, 3988, 486, 1499, 50238, 445, 8301, 98401, 15454, 1428, 286, 1077, 10431, 284, 89740, 670, 2099, 606, 317, 286, 2060, 10714, 10297, 17698, 2644, 1507, 42501...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_into_alogithm_id() { assert_eq!( Into::<TPM2_ALG_ID>::into(RsaSignatureScheme::RsaPss), TPM2_ALG_RSAPSS ); assert_eq!( Into::<TPM2_ALG_ID>::into(RsaSignatureScheme::RsaSsa), TPM2_ALG_RSASSA ); }
rust_cleaned_test_functions.jsonl/41505
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45514, 8418, 538, 410, 76, 842, 368, 341, 286, 2060, 10714, 33673, 310, 31645, 27638, 4239, 44, 17, 8912, 38, 3450, 6831, 18122, 2785, 9081, 25088, 28906, 486, 49, 9081, 47, 778, 1326, 310, 6364...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keys_and_objects() { let dict = sample_dict("abcd"); let (keys, objs) = dict.keys_and_objects(); assert_eq!(keys.len(), 1); assert_eq!(objs.len(), 1); autoreleasepool(|pool| { assert_eq!(keys[0].as_str(pool), "abcd"); }); asser...
rust_cleaned_test_functions.jsonl/108470
{ "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, 12631, 8378, 24873, 368, 341, 286, 1077, 6451, 284, 6077, 5243, 445, 68644, 797, 286, 1077, 320, 10563, 11, 52937, 8, 284, 6451, 9123, 8378, 24873, 1428, 286, 2060, 10714, 10297, 10563, 19406, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decode_struct() { let s = "{ \"inner\": [ { \"a\": null, \"b\": 2, \"c\": [\"abc\", \"xyz\"] } ] }".to_owned(); let mut decoder = Decoder::new(from_str(s).unwrap()); let v: Outer = Decodable::decode(&mut decoder).unwrap(); ...
rust_cleaned_test_functions.jsonl/111034
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 15126, 368, 341, 286, 1077, 274, 284, 330, 515, 310, 7245, 4382, 11693, 2278, 394, 314, 7245, 64, 11693, 845, 11, 7245, 65, 11693, 220, 17, 11, 7245, 66, 11693, 508, 2105, 13683, 16215, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_verkey_invalid_address_length_long_and_short() { validate_address_invalid_verkey_len(30); validate_address_invalid_verkey_len(40); validate_address_invalid_verkey_len(55); }
rust_cleaned_test_functions.jsonl/72538
{ "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, 26042, 792, 31433, 6744, 5118, 17799, 8378, 16673, 368, 341, 286, 9593, 6744, 31433, 26042, 792, 6043, 7, 18, 15, 317, 286, 9593, 6744, 31433, 26042, 792, 6043, 7, 19, 15, 317, 286, 9593, 6744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_copy_ring() { let mut buf = [0u8; 16]; let r = Ring::new(&mut buf); for i in 0..16 { r.put(i as u8); } for i in 0..16 { assert_eq!(r.get(), Some(i as u8)); } }
rust_cleaned_test_functions.jsonl/114708
{ "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, 16096, 34683, 368, 341, 286, 1077, 5206, 6607, 284, 508, 15, 84, 23, 26, 220, 16, 21, 935, 286, 1077, 435, 284, 21525, 486, 931, 2099, 6984, 6607, 317, 286, 369, 600, 304, 220, 15, 496, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_is_path_ref() { let testcases = [ (r#"/ <reference path="foo" />"#, true), (r#"/ <reference path='foo' />"#, true), (r#"/ <reference path = "foo" />"#, true), (r#"/ <reference ppath = "foo" />"#, false), ]; for (input, expected) in &testcases { assert_e...
rust_cleaned_test_functions.jsonl/52839
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 2638, 7793, 368, 341, 262, 1077, 1273, 23910, 284, 2278, 414, 320, 81, 2, 3115, 366, 16291, 1815, 428, 7975, 1, 6206, 57676, 11, 830, 1326, 414, 320, 81, 2, 3115, 366, 16291, 1815, 1131,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_collect() { let v: Option<Vec<isize>> = (0..0).map(|_| Some(0)).collect(); assert!(v == Some(vec![])); let v: Option<Vec<isize>> = (0..3).map(|x| Some(x)).collect(); assert!(v == Some(vec![0, 1, 2])); let v: Option<Vec<isize>> = (0..3).map(|x| { if x > 1 { None } el...
rust_cleaned_test_functions.jsonl/20246
{ "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, 68140, 368, 341, 262, 1077, 348, 25, 6959, 50439, 27, 285, 551, 2452, 284, 320, 15, 496, 15, 568, 2186, 22428, 35395, 4329, 7, 15, 4579, 17384, 543, 262, 2060, 10297, 85, 621, 4329, 25592, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_simplified_to_traditional() { let simplified = "欧洲"; let traditional = "歐洲"; assert_eq!(traditional, simplified_to_traditional(simplified)); let traditional = "人人生而自由﹐在尊嚴咊權利上一律平等。他們賦有理性咊良心﹐並應㕥兄弟關係的精神互相對待。"; let simplified = "人人生而自由﹐在尊严和权利上一律平等。他们赋有理性和良心﹐并应以兄弟关系的精神互相对待。"; assert_eq!(...
rust_cleaned_test_functions.jsonl/64483
{ "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, 643, 73837, 2346, 3547, 329, 3005, 368, 341, 197, 10217, 43799, 284, 330, 104123, 876, 197, 10217, 8606, 284, 330, 112311, 100075, 876, 197, 6948, 10714, 10297, 86908, 11, 43799, 2346, 3547, 329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_0297_example_3() { let root = tree![1]; let codec = Codec::new(); let data = codec.serialize(root.clone()); let result = codec.deserialize(data); assert_eq!(root, result); }
rust_cleaned_test_functions.jsonl/114940
{ "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, 62, 15, 17, 24, 22, 39304, 62, 18, 368, 341, 286, 1077, 3704, 284, 4916, 20703, 16, 935, 286, 1077, 34647, 284, 67077, 486, 931, 543, 286, 1077, 821, 284, 34647, 33969, 9206, 15997, 1423, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_squared_distance_same() { let a = Yiq { y: 0.5, i: -0.1, q: 0.1, }; let b = Yiq { y: 0.5, i: -0.1, q: 0.1, }; assert_eq!(a.squared_distance(&b), 0.0); }
rust_cleaned_test_functions.jsonl/35804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 209 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54641, 19464, 33574, 368, 341, 286, 1077, 264, 284, 809, 23740, 341, 310, 379, 25, 220, 15, 13, 20, 345, 310, 600, 25, 481, 15, 13, 16, 345, 310, 2804, 25, 220, 15, 13, 16, 345, 286, 2605,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_produce_same_hash() { produces_same_hash(None, 1, b"Tests"); produces_same_hash(None, 32, b"Tests"); produces_same_hash(None, 64, b"Tests"); produces_same_hash(None, 28, b"Tests"); produces_same_hash(None, 1, b""); produces...
rust_cleaned_test_functions.jsonl/56752
{ "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, 2540, 13373, 33574, 8950, 368, 341, 310, 18644, 33574, 8950, 26717, 11, 220, 16, 11, 293, 1, 18200, 797, 310, 18644, 33574, 8950, 26717, 11, 220, 18, 17, 11, 293, 1, 18200, 797, 310, 18644, 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_t16e() { init(); let result = t16e(IMEI.as_bytes()); println!("{}", result.len()); println!("{:?}", result) }
rust_cleaned_test_functions.jsonl/104716
{ "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, 528, 16, 21, 68, 368, 341, 286, 2930, 543, 286, 1077, 1102, 284, 259, 16, 21, 68, 7, 5660, 40, 5357, 12524, 1423, 286, 13751, 79878, 1102, 19406, 1423, 286, 13751, 88928, 25, 52652, 1102, 340,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_delay() { // tokio_timer can only run with tokio executor. let mut core = Core::new().unwrap(); let delay = Delay::new(Instant::now() + Duration::from_millis(100)); assert_elapsed( || { core.run(delay.map(|not_cancelled| assert!(not_can...
rust_cleaned_test_functions.jsonl/32482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 916 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22198, 368, 341, 286, 442, 9628, 815, 16255, 646, 1172, 1598, 448, 9628, 815, 31558, 624, 286, 1077, 5206, 6200, 284, 9518, 486, 931, 1005, 15454, 543, 286, 1077, 7626, 284, 39793, 486, 931, 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...
5
#[test] fn test_remove_dbg_try_expr() { check_assist( remove_dbg, r#"let res = $0dbg!(result?).foo();"#, r#"let res = result?.foo();"#, ); }
rust_cleaned_test_functions.jsonl/13614
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 44124, 53283, 21915, 368, 341, 286, 1779, 12083, 380, 1006, 310, 4057, 44124, 345, 310, 435, 55543, 1149, 592, 284, 400, 15, 54318, 10297, 1382, 47266, 7975, 2129, 57676, 345, 310, 435, 555...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_tree_node_equality() { let mut parser = Parser::new(); parser.set_language(get_language("rust")).unwrap(); let tree = parser.parse("struct A {}", None).unwrap(); let node1 = tree.root_node(); let node2 = tree.root_node(); assert_eq!(node1, node2); assert_eq!(node1.chi...
rust_cleaned_test_functions.jsonl/131721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 170 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11663, 5084, 2204, 10473, 368, 341, 262, 1077, 5206, 6729, 284, 21102, 486, 931, 543, 262, 6729, 980, 29021, 5433, 29021, 445, 35788, 15197, 15454, 543, 262, 1077, 4916, 284, 6729, 4632, 445, 1235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stderr_without_redirect() { let child = Command::new("sh") .arg("-c") .arg(SCRIPT_REDIRECT) .spawn() .unwrap(); let mut reader = BufReader::new(ProcReader::from_stderr(child.id())); thread::sleep(Duration::from_secs(4)); ...
rust_cleaned_test_functions.jsonl/127267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 93033, 39904, 30043, 368, 341, 286, 1077, 1682, 284, 7348, 486, 931, 445, 927, 1138, 310, 659, 858, 13645, 66, 1138, 310, 659, 858, 7, 24787, 90279, 340, 310, 659, 46087, 741, 310, 659, 15454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1