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_serialize_key() { let map_key = Op { action: OpType::Inc(12), obj: ObjectId::Root, key: "somekey".into(), insert: false, pred: Vec::new(), }; let json = serde_json::to_value(map_key).unwrap(); let expecte...
rust_cleaned_test_functions.jsonl/45057
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 509 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 3097, 368, 341, 286, 1077, 2415, 3097, 284, 10672, 341, 310, 1917, 25, 10672, 929, 486, 39245, 7, 16, 17, 1326, 310, 2839, 25, 50090, 486, 8439, 345, 310, 1376, 25, 330, 14689, 792, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_query() { assert_eq!(parse_query_map(""), BTreeMap::default()); assert_eq!(parse_query_map("foo"), BTreeMap::from_iter([("foo", "")])); assert_eq!( parse_query_map("foo=bar"), BTreeMap::from_iter([("foo", "bar")]) ); assert_eq!( parse_query_map("...
rust_cleaned_test_functions.jsonl/64061
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5738, 368, 341, 262, 2060, 10714, 10297, 6400, 5738, 5376, 86076, 425, 6533, 2227, 486, 2258, 1423, 262, 2060, 10714, 10297, 6400, 5738, 5376, 445, 7975, 3975, 425, 6533, 2227, 486, 1499, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_valid_email_returns_false_for_junk_emails() { let exp = compile_expr("valid_email('foo@guerrillamailblock.com')".to_string()).unwrap(); let r = exp.search(json!(null)).unwrap(); assert!(!r.is_truthy()); }
rust_cleaned_test_functions.jsonl/131415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 8337, 9172, 58900, 36015, 5478, 5374, 3122, 77773, 368, 341, 286, 1077, 1343, 284, 19192, 21915, 445, 1891, 9172, 492, 7975, 31, 8717, 615, 483, 309, 604, 4574, 905, 863, 3263, 983, 3904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mods() { let handle: LoggerHandle = Logger::try_with_env_or_str( "info, test_windows_line_ending::mymod1=debug, test_windows_line_ending::mymod2=error", ) .unwrap() .format(detailed_format) .log_to_file(FileSpec::default()) .use_windows_line_ending() .start() ...
rust_cleaned_test_functions.jsonl/3837
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 477 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7480, 82, 368, 341, 262, 1077, 3705, 25, 9514, 6999, 284, 9514, 486, 1539, 6615, 15879, 8734, 2895, 1006, 286, 330, 2733, 11, 1273, 58220, 6528, 62, 2459, 486, 76, 1600, 347, 16, 28, 8349, 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_astar_runtime_optimal() { let mut g = Graph::new(); let a = g.add_node("A"); let b = g.add_node("B"); let c = g.add_node("C"); let d = g.add_node("D"); let e = g.add_node("E"); g.add_edge(a, b, 2); g.add_edge(a, c, 3); g.add_edge(b, d, 3); g.add_edge(c, d,...
rust_cleaned_test_functions.jsonl/46743
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 306 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48019, 277, 33232, 15032, 2861, 368, 341, 262, 1077, 5206, 342, 284, 12165, 486, 931, 543, 262, 1077, 264, 284, 342, 1364, 5084, 445, 32, 797, 262, 1077, 293, 284, 342, 1364, 5084, 445, 33, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_disburse_to_neuron() { let from = *TEST_NEURON_1_OWNER_PRINCIPAL; // Compute the subaccount to which the transfer would have been made let nonce = 1234u64; let block_height = 543212234; let dissolve_delay_seconds = MIN_DISSOLVE_DELAY_FOR_VOTE_ELIGIBILITY_SECONDS; let neu...
rust_cleaned_test_functions.jsonl/1163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1555 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9932, 37982, 2346, 13925, 36090, 368, 341, 262, 1077, 504, 284, 353, 10033, 14039, 1511, 711, 62, 16, 74323, 10571, 38439, 3298, 969, 280, 262, 442, 22603, 279, 1186, 4608, 311, 892, 279, 8317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_all() -> Result<()> { let temp_dir = TempDir::new(&format!( "temp_rand_index_{}", uuid::Uuid::new_v4().to_string() ))?; let (posts, index) = build_random_posts_index(10, temp_dir.path())?; assert_eq!(posts.len(), 10); let q: Bo...
rust_cleaned_test_functions.jsonl/67715
{ "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, 3062, 5705, 368, 1464, 5714, 71698, 341, 286, 1077, 2730, 4334, 284, 19944, 6184, 486, 931, 2099, 2243, 33673, 310, 330, 3888, 33864, 3560, 62, 6257, 756, 310, 16040, 486, 38431, 486, 931, 2273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_start_serialize_struct() { let mut buffer = Vec::new(); { let mut ser = Serializer::new(&mut buffer); let _ = ser.serialize_struct("foo", 0).unwrap(); } let got = String::from_utf8(buffer).unwrap(); assert_eq!(got, "<foo>"); }
rust_cleaned_test_functions.jsonl/107663
{ "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, 4906, 88686, 15126, 368, 341, 286, 1077, 5206, 4147, 284, 11312, 486, 931, 1428, 286, 341, 310, 1077, 5206, 1420, 284, 58822, 486, 931, 2099, 6984, 4147, 317, 310, 1077, 716, 284, 1420, 33969, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encoding_decoding_instructions() { test_encoding_decoding(DecoderInstruction::InsertCountIncrement { increment: 1 }); test_encoding_decoding(DecoderInstruction::InsertCountIncrement { increment: 10_000 }); test_encoding_decoding(DecoderInstruction::HeaderAck { stream_id:...
rust_cleaned_test_functions.jsonl/775
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 13783, 3700, 82427, 368, 341, 286, 1273, 37613, 13783, 3700, 7, 20732, 16664, 486, 13780, 2507, 38311, 314, 16252, 25, 220, 16, 1625, 286, 1273, 37613, 13783, 3700, 7, 20732, 16664, 486, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_log_file_normal() { let tempdir = tempfile::tempdir().unwrap(); let mut log_file = LogFile::new(tempdir.path(), "test_log_file", 2).unwrap(); let info1 = create_file_info(1, EncryptionMethod::Aes256Ctr); let info2 = create_file_info(2, EncryptionMethod::Unknown); ...
rust_cleaned_test_functions.jsonl/35557
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 605 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 2458, 13973, 368, 341, 286, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 286, 1077, 5206, 1487, 2458, 284, 2835, 1703, 486, 931, 9758, 3741, 3875, 1507, 330, 1944, 5224, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prev_index() { let sql = "SELECT version"; let mut tokenizer = Tokenizer::new(sql); let tokens = tokenizer.tokenize().unwrap(); let mut parser = Parser::new(sql.to_string(), tokens); assert_eq!(parser.peek_token(), Some(Token::make_keyword("SELECT"))); ...
rust_cleaned_test_functions.jsonl/17053
{ "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, 25566, 3560, 368, 341, 286, 1077, 5704, 284, 330, 4858, 2319, 876, 286, 1077, 5206, 45958, 284, 9660, 3135, 486, 931, 13148, 317, 286, 1077, 11211, 284, 45958, 96790, 1005, 15454, 543, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_erc20_transfer_from() { // Given token with initial state. let (env, mut token) = setup(); let owner = env.get_account(0); let recipient = env.get_account(1); let spender = env.get_account(2); let amount = U256::one(); let initial_supply = U256::from(INITIAL_SUPPLY); ...
rust_cleaned_test_functions.jsonl/61315
{ "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, 62, 2962, 17, 15, 35403, 5673, 368, 341, 262, 442, 16246, 3950, 448, 2856, 1584, 624, 262, 1077, 320, 3160, 11, 5206, 3950, 8, 284, 6505, 543, 262, 1077, 6372, 284, 6105, 670, 13500, 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_style_from_str_raw_with_box() { let actual_style = Style::from_str("raw", None, Some("box"), true, false); let empty_ansi_term_style = ansi_term::Style::new(); assert_eq!( actual_style, Style { ansi_term_style: empty_ansi_term_style...
rust_cleaned_test_functions.jsonl/129646
{ "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, 15117, 5673, 2895, 16067, 6615, 10194, 368, 341, 286, 1077, 5042, 15117, 284, 11913, 486, 1499, 2895, 445, 1041, 497, 2240, 11, 4329, 445, 2011, 3975, 830, 11, 895, 317, 286, 1077, 4287, 62, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_initialize_ok() { ExtBuilder::default().build().execute_with(|| { assert_ok!(CrowdloanRewards::initialize(Origin::root())); assert_eq!(CrowdloanRewards::total_rewards(), 0); assert_eq!(CrowdloanRewards::claimed_rewards(), 0); }); }
rust_cleaned_test_functions.jsonl/41083
{ "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, 40889, 19817, 368, 341, 76605, 3297, 486, 2258, 1005, 5834, 1005, 10257, 6615, 79453, 341, 197, 6948, 19817, 10297, 93926, 67, 38329, 58465, 2347, 486, 21641, 7, 13298, 486, 2888, 7392, 197, 6948, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_optimistic_prewrite_committed_transaction() { let engine = TestEngineBuilder::new().build().unwrap(); let cm = ConcurrencyManager::new(1.into()); let mut statistics = Statistics::default(); let key = b"k"; must_prewrite_put_async_commit(&engine,...
rust_cleaned_test_functions.jsonl/31430
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1691 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 318, 4532, 620, 52473, 2965, 5483, 28884, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 9961, 284, 1200, 15973, 2043, 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, 1...
3
#[test] fn test_with_docker_compose_yml() -> io::Result<()> { let cfg_dir = tempfile::tempdir()?; let cfg_file = cfg_dir.path().join("config.json"); let pwd = tempfile::tempdir()?; File::create(pwd.path().join("docker-compose.yml"))?.sync_all()?; let config_content = se...
rust_cleaned_test_functions.jsonl/18767
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 436 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 814, 13659, 2965, 2900, 4178, 1014, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 13286, 4334, 284, 54819, 486, 3888, 3741, 94136, 286, 1077, 13286, 2458, 284, 13286, 4334, 3875, 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...
9
#[test] fn test_basic_uint_ops() -> Result<(), Error> { let mut info = Data::new(); info.apply(&create_numeric_property!(parent: ROOT_ID, id: 3, name: "value", value: Number::UintT(42)))?; assert!(info.apply(&add_number!(id: 3, value: Number::UintT(3)...
rust_cleaned_test_functions.jsonl/10354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 675 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 15807, 21959, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 5206, 3546, 284, 2885, 486, 931, 543, 286, 3546, 13045, 2099, 3182, 29418, 16638, 10297, 3765, 25, 35736, 3450, 11, 877, 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...
2
#[test] fn test_issues_217_222() { let hdr = indoc! {" #include <string> #include <cstdint> #include <cstddef> template <typename STRING_TYPE> class BasicStringPiece { public: typedef size_t size_type; typedef typename STRING_TYPE::traits_type traits_type; ...
rust_cleaned_test_functions.jsonl/9869
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 945 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 90232, 62, 17, 16, 22, 62, 17, 17, 17, 368, 341, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 262, 671, 997, 366, 917, 397, 262, 671, 997, 366, 96975, 397, 262, 671, 997, 366, 66, 66397,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_output_selection() { figment::Jail::expect_with(|jail| { jail.create_file( "foundry.toml", r#" [default] extra_output = ["metadata", "ir-optimized"] extra_output_files = ["metadata"] "...
rust_cleaned_test_functions.jsonl/42701
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 378 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7645, 23672, 368, 341, 286, 4144, 478, 486, 41, 604, 486, 17119, 6615, 22428, 73, 604, 91, 341, 310, 17540, 2520, 2458, 1006, 394, 330, 15105, 884, 73494, 75, 756, 394, 435, 2, 698, 394, 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...
2
#[test] fn test_transform() { // Contructors trans_eq!(Transform::new(), Transform { matrix: [1.0, 0.0, 0.0, 1.0, 0.0, 0.0], }); trans_eq!(Transform::new().with_translation(11.1, 22.2), Transform { matrix: [1.0, 0.0, 0.0, 1.0, 11.1, 22.2], }); ...
rust_cleaned_test_functions.jsonl/23342
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 625 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18449, 368, 341, 286, 442, 34241, 667, 1087, 198, 286, 1356, 10714, 10297, 8963, 486, 931, 1507, 15226, 341, 310, 6172, 25, 508, 16, 13, 15, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 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_poisson() { let initial = ndt("2000-01-01 15:15:15"); let mut poisson = PoissonSeries { current: initial, rate: Duration::days(365), }; let mut rng = rand::thread_rng(); let iter1 = poisson.next(&mut rng).into_yielded().unwrap(); ...
rust_cleaned_test_functions.jsonl/33874
{ "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, 620, 29048, 930, 368, 341, 286, 1077, 2856, 284, 15581, 83, 445, 17, 15, 15, 15, 12, 15, 16, 12, 15, 16, 220, 16, 20, 25, 16, 20, 25, 16, 20, 797, 286, 1077, 5206, 3193, 48263, 284, 1380...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pool_ray_usdc() { pool_actions::run_test( "RDM.RAY-USDC-V4", vec![ utils::Swap { protocol: "RDM", from_token: "SOL", to_token: "RAY", amount: 0.10000001, }, utils::Swap { ...
rust_cleaned_test_functions.jsonl/120683
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 72690, 11306, 7628, 368, 341, 262, 7314, 25368, 486, 6108, 4452, 1006, 286, 330, 49, 8395, 2013, 3022, 32340, 5626, 19625, 19, 756, 286, 7486, 90515, 310, 12439, 486, 46179, 341, 394, 11507...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_custom_ignore_files() { let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES); fs::File::create(te.test_root().join("custom.ignore")) .unwrap() .write_all(b"C.Foo2\nthree") .unwrap(); te.assert_output( &["--ignore-file", "custom.ignore", "foo"], ...
rust_cleaned_test_functions.jsonl/10868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15875, 58493, 10931, 368, 341, 262, 1077, 1013, 284, 3393, 14359, 486, 931, 43175, 90560, 11, 11955, 48010, 626, 1066, 262, 8619, 486, 1703, 486, 3182, 71847, 5958, 12993, 1005, 5987, 445, 9163, 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_vectors_xchacha20_poly1305() { test_aead_all::<XChaCha20Poly1305>(&include!("fixtures/xchacha20_poly1305.rs")).unwrap(); }
rust_cleaned_test_functions.jsonl/99031
{ "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, 49158, 3212, 331, 51576, 17, 15, 36133, 16, 18, 15, 20, 368, 341, 286, 1273, 4306, 3149, 5705, 27638, 55, 95971, 95971, 17, 15, 38164, 16, 18, 15, 20, 44784, 997, 17223, 45247, 10776, 331, 515...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_staging_one_file() { let file_path = Path::new("file1.txt"); let (_td, repo) = repo_init().unwrap(); let root = repo.path().parent().unwrap(); let repo_path = root.as_os_str().to_str().unwrap(); File::create(&root.join(file_path)) .unwrap() ...
rust_cleaned_test_functions.jsonl/36665
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 4118, 11667, 2458, 368, 341, 286, 1077, 1034, 2638, 284, 7933, 486, 931, 445, 1192, 16, 3909, 797, 286, 1077, 5453, 1296, 11, 15867, 8, 284, 15867, 6137, 1005, 15454, 543, 286, 1077, 3704,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bit_set_union_with() { //a should grow to include larger elements let mut a = BitSet::new(); a.insert(0); let mut b = BitSet::new(); b.insert(5); let expected = BitSet::from_bit_vec(BitVec::from_bytes(&[0b10000100])); a.union_with(&b); ...
rust_cleaned_test_functions.jsonl/76232
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 2602, 51621, 6615, 368, 341, 286, 442, 64, 1265, 3063, 311, 2924, 8131, 5424, 198, 286, 1077, 5206, 264, 284, 57227, 486, 931, 543, 286, 264, 7030, 7, 15, 317, 286, 1077, 5206, 293, 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_md_request() -> Result<()> { let d1 = b"This is a testing digest. it isn"; let d2 = b"'t actually SHA-256............."; let mut req = MicrodescRequest::default(); req.push(*d1); assert!(!req.partial_docs_ok()); req.push(*d2); assert!(req....
rust_cleaned_test_functions.jsonl/22457
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 502 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32994, 7893, 368, 1464, 5714, 71698, 341, 286, 1077, 294, 16, 284, 293, 21520, 374, 264, 7497, 20882, 13, 432, 4436, 876, 286, 1077, 294, 17, 284, 293, 20584, 83, 3520, 21721, 12, 17, 20, 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...
3
#[test] fn test_sync_dir() { let tmp_dir = TempDir::new().unwrap(); sync_dir(tmp_dir.path()).unwrap(); let non_existent_file = tmp_dir.path().join("non_existent_file"); sync_dir(non_existent_file).unwrap_err(); }
rust_cleaned_test_functions.jsonl/23428
{ "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, 23008, 4334, 368, 341, 286, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 1005, 15454, 543, 286, 12811, 4334, 10368, 4334, 3875, 6011, 15454, 543, 286, 1077, 2477, 2702, 18128, 2458, 284, 4174, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_binaryparser_try_from() { let test_bytes: Vec<u8> = hex::decode(TEST_HEX).expect(""); let string_parser = BinaryParser::try_from(TEST_HEX).unwrap(); assert_eq!(string_parser, test_bytes[..]); }
rust_cleaned_test_functions.jsonl/20410
{ "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, 31761, 9657, 53283, 5673, 368, 341, 286, 1077, 1273, 12524, 25, 11312, 34837, 23, 29, 284, 12371, 486, 18196, 50320, 86502, 568, 17119, 13056, 286, 1077, 914, 18517, 284, 17718, 6570, 486, 1539, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_const() { const R: f64 = 12.3; const I: f64 = -4.5; const C: Complex64 = Complex::new(R, I); assert_eq!(C.re, 12.3); assert_eq!(C.im, -4.5); }
rust_cleaned_test_functions.jsonl/105676
{ "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, 13610, 368, 341, 286, 733, 431, 25, 282, 21, 19, 284, 220, 16, 17, 13, 18, 280, 286, 733, 358, 25, 282, 21, 19, 284, 481, 19, 13, 20, 280, 286, 733, 356, 25, 22096, 21, 19, 284, 22096, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enforce_in_field() { { let mut cs = TestConstraintSystem::<Fr>::new(); let mut bits = vec![]; for (i, b) in BitIterator::new(Fr::characteristic()).skip(1).enumerate() { bits.push(Boolean::from( AllocatedBit::alloc(c...
rust_cleaned_test_functions.jsonl/230
{ "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, 6205, 8833, 1243, 5013, 368, 341, 286, 341, 310, 1077, 5206, 10532, 284, 3393, 17890, 2320, 27638, 22560, 6831, 931, 1428, 310, 1077, 5206, 9472, 284, 7486, 0, 15078, 310, 369, 320, 72, 11, 293,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_named_impl() { let foo = Named::from_tuple((3, 5, "bar".into())); assert_eq!(foo.into_tuple(), (3, 5, "bar".into())); }
rust_cleaned_test_functions.jsonl/121832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71834, 21007, 368, 341, 262, 1077, 15229, 284, 40459, 486, 1499, 21773, 1188, 18, 11, 220, 20, 11, 330, 2257, 3263, 18122, 7392, 262, 2060, 10714, 10297, 7975, 39860, 21773, 1507, 320, 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
#[test] fn test_head_mut() { let mut a = vec![]; assert_eq!(a.head_mut(), None); a = vec![11i]; assert_eq!(*a.head_mut().unwrap(), 11); a = vec![11i, 12]; assert_eq!(*a.head_mut().unwrap(), 11); }
rust_cleaned_test_functions.jsonl/31818
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13138, 29523, 368, 341, 286, 1077, 5206, 264, 284, 7486, 0, 15078, 286, 2060, 10714, 10297, 64, 16042, 29523, 1507, 2240, 317, 286, 264, 284, 7486, 20703, 16, 16, 72, 935, 286, 2060, 10714, 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...
1
#[test] fn test_length() { assert_eq!(length(100), 1); assert_eq!(length(1000), 2); assert_eq!(length(1 << 49), 8); assert_eq!(length((1 << 56) - 1), 8); assert_eq!(length(1 << 56), 9); assert_eq!(length((1 << 63) - 1), 9); assert_eq!(length(1 << 63), 10); }
rust_cleaned_test_functions.jsonl/86795
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5118, 368, 341, 220, 2060, 10714, 10297, 4129, 7, 16, 15, 15, 701, 220, 16, 317, 220, 2060, 10714, 10297, 4129, 7, 16, 15, 15, 15, 701, 220, 17, 626, 220, 2060, 10714, 10297, 4129, 7, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_attribute_sdata() { let mut buf = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; let bytes_written = { let mut writable = &mut buf[..]; leb128::write::signed(&mut writable, -4097).expect("should write ok") }; let unit = test_parse_attribute_unit_d...
rust_cleaned_test_functions.jsonl/102021
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 16791, 643, 691, 368, 341, 286, 1077, 5206, 6607, 284, 508, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 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_cache_control() { let port = start_server(); let client = reqwest::blocking::Client::builder().build().unwrap(); let resp = client .get(&format!("http://127.0.0.1:{}/no/such/resource", port)) .send() .unwrap(); assert_eq!(resp....
rust_cleaned_test_functions.jsonl/126005
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11529, 13436, 368, 341, 286, 1077, 2635, 284, 1191, 12015, 543, 286, 1077, 2943, 284, 4232, 11039, 486, 70356, 486, 2959, 486, 17850, 1005, 5834, 1005, 15454, 1428, 286, 1077, 9039, 284, 2943, 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_urlencoded_error() { let req = TestRequest::with_header( header::CONTENT_TYPE, "application/x-www-form-urlencoded", ) .header(header::CONTENT_LENGTH, "xxxx") .finish(); assert_eq!( req.urlencoded::<Info>().poll().err().u...
rust_cleaned_test_functions.jsonl/7653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 519 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2903, 19329, 4096, 368, 341, 286, 1077, 4232, 284, 3393, 1900, 486, 4197, 8757, 1006, 310, 4247, 486, 67872, 4189, 345, 310, 330, 5132, 10776, 41242, 8460, 44557, 756, 286, 1727, 286, 659, 2708, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_faucet_build_airdrop_transaction() { let to = Pubkey::new_rand(); let blockhash = Hash::default(); let request = FaucetRequest::GetAirdrop { lamports: 2, to, blockhash, }; let mint = Keypair::new(); let mint_pub...
rust_cleaned_test_functions.jsonl/117725
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 644 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 20436, 295, 20801, 50827, 6719, 28884, 368, 341, 286, 1077, 311, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 2504, 8296, 284, 6531, 486, 2258, 543, 286, 1077, 1681, 284, 96362, 295, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tr_from_tpm_public_password_auth() { let nv_index_tpm_handle = NvIndexTpmHandle::new(0x01500022).unwrap(); remove_nv_index_handle_from_tpm(nv_index_tpm_handle, Provision::Owner); let mut context = create_ctx_without_session(); let auth = Auth::try_from(vec![ ...
rust_cleaned_test_functions.jsonl/103649
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1978 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 5673, 528, 5187, 27074, 10122, 14014, 368, 341, 286, 1077, 31440, 3560, 528, 5187, 10630, 284, 451, 85, 1552, 51, 5187, 6999, 486, 931, 7, 15, 87, 15, 16, 20, 15, 15, 15, 17, 17, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rgb_u32() { test_image_sum_u32("gradient-3c-32b.tiff", ColorType::RGB(32), 2030834111716); }
rust_cleaned_test_functions.jsonl/75199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 61 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37407, 7300, 18, 17, 368, 341, 262, 1273, 4954, 10160, 7300, 18, 17, 445, 26394, 12, 18, 66, 12, 18, 17, 65, 734, 3092, 497, 3478, 929, 486, 18184, 7, 18, 17, 701, 220, 17, 15, 18, 15, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_conversion() { let mut rng = test_rng(); let a: EdwardsAffine = rng.gen(); let b: EdwardsAffine = rng.gen(); let a_b = { use ark_ec::group::Group; (a + &b).double().double() }; let a_b2 = (a.into_projective() + &b.into_projective()) .double() ...
rust_cleaned_test_functions.jsonl/10056
{ "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, 64132, 368, 341, 262, 1077, 5206, 28422, 284, 1273, 66849, 543, 262, 1077, 264, 25, 36763, 25841, 482, 284, 28422, 22822, 543, 262, 1077, 293, 25, 36763, 25841, 482, 284, 28422, 22822, 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_hall_down_buttons() { let elevator = ELEVATOR.lock().unwrap(); for i in rand::seq::sample_indices( &mut rand::thread_rng(), ElevatorInterface::N_FLOORS as usize - 1, ElevatorInterface::N_FLOORS as usize - 1, ) .into_iter() ...
rust_cleaned_test_functions.jsonl/42310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 418 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 541, 13998, 41021, 368, 341, 286, 1077, 38636, 284, 468, 85411, 11857, 21003, 1005, 15454, 1428, 286, 369, 600, 304, 10382, 486, 13262, 486, 13611, 18333, 1006, 310, 609, 6984, 10382, 486, 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...
3
#[test] fn test_add_peer_for_success() { let a_0 = agent::ZeroAgent::new("inproc://#1".to_string()); a_0.add_peer("inproc://#1".to_string()); }
rust_cleaned_test_functions.jsonl/104674
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 45159, 5478, 18632, 368, 341, 286, 1077, 264, 62, 15, 284, 8315, 486, 17999, 16810, 486, 931, 445, 258, 15782, 1110, 2, 16, 3263, 983, 3904, 1423, 286, 264, 62, 15, 1364, 45159, 445, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_enum() { #[derive(Serialize, Deserialize, PartialEq, Debug)] enum TestEnum { NoArg, OneArg(usize), Args(usize, usize), AnotherNoArg, StructLike { x: usize, y: f32 }, } the_same(TestEnum::NoArg); the_same(TestEnum::OneArg(4)); t...
rust_cleaned_test_functions.jsonl/6262
{ "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, 31054, 368, 341, 262, 11506, 27098, 3759, 9050, 11, 48440, 11, 55039, 11, 11091, 5563, 262, 7618, 3393, 10766, 341, 286, 2308, 2735, 345, 286, 3776, 2735, 7, 51878, 1326, 286, 17693, 7, 51878, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ir_encode() { let ir = InstructionRegister { target: Target::Cntr, action: Action::Clear, }; assert_eq!(ir.encode(), CLEAR_CNTR); }
rust_cleaned_test_functions.jsonl/61610
{ "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, 51433, 11224, 368, 341, 286, 1077, 6216, 284, 29051, 8690, 341, 310, 2169, 25, 13483, 486, 34, 77, 376, 345, 310, 1917, 25, 5586, 486, 14008, 345, 286, 2605, 286, 2060, 10714, 10297, 404, 17313,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_i64() { test_parse_ok(&[ ("<bla>0</bla>", 0), ("<bla>-2</bla>", -2), ("<bla>-1234</bla>", -1234), ("<bla> -1234 </bla>", -1234), ]); }
rust_cleaned_test_functions.jsonl/54621
{ "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, 21039, 5318, 21, 19, 368, 341, 262, 1273, 21039, 19817, 2099, 9640, 286, 90276, 64726, 29, 15, 522, 64726, 21156, 220, 15, 1326, 286, 90276, 64726, 38643, 17, 522, 64726, 21156, 481, 17, 1326, 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_parsing_order_config() { std::env::set_var("TIME_STYLE", ""); let argv = vec!["lsd"]; let matches = app::build().get_matches_from_safe(argv).unwrap(); let mut config = Config::with_none(); config.date = Some("+%c".into()); assert_eq!( D...
rust_cleaned_test_functions.jsonl/1318
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 28598, 7869, 5332, 368, 341, 286, 1460, 486, 3160, 486, 746, 4612, 445, 18129, 41775, 497, 14498, 286, 1077, 10213, 284, 7486, 0, 1183, 4730, 67, 6332, 286, 1077, 9071, 284, 906, 486, 5834,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_struct_variant() { let bser_v2 = b"\x00\x02\x00\x00\x00\x00\x05+\x00\x00\x00\x01\x03\x01\x02\x03\nTestStruct\ \x01\x03\x02\x02\x03\x03abc\x02\x03\x03foo\x02\x03\x03def\x02\x03\x03bar"; let decoded = from_slice::<BytestringVariant>(bser_v2).unwrap(); assert_eq...
rust_cleaned_test_functions.jsonl/34070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 46112, 368, 341, 1066, 262, 1077, 293, 799, 2273, 17, 284, 293, 11934, 87, 15, 15, 3462, 15, 17, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 20, 41715, 87, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resource_pack_send_system() { let (mut w, mut d) = t::init_world(); let player = t::add_player(&mut w); let event = PlayerJoinEvent { player: player.entity, }; t::trigger_event(&w, event); let url = "https://rust-lang.org/".to_string...
rust_cleaned_test_functions.jsonl/58775
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 423 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17962, 32995, 13565, 17687, 368, 341, 286, 1077, 320, 6984, 289, 11, 5206, 294, 8, 284, 259, 486, 2327, 31792, 1428, 286, 1077, 2781, 284, 259, 486, 718, 15524, 2099, 6984, 289, 626, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_metadata() { let (mock_db, client, _runtime) = create_database_client_and_runtime(); let metadata = client.get_metadata_by_version(1).unwrap().into_inner(); assert_eq!(metadata.version, 1); assert_eq!(metadata.timestamp, mock_db.timestamps[1]); }
rust_cleaned_test_functions.jsonl/102707
{ "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, 3062, 22220, 368, 341, 262, 1077, 320, 16712, 8685, 11, 2943, 11, 716, 22255, 8, 284, 1855, 27341, 8179, 8378, 33232, 1428, 262, 1077, 11160, 284, 2943, 670, 22220, 3710, 9438, 7, 16, 568, 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
#[test] fn test_name() { let name = "test"; let mut pool = Pool::<ThunkWorker<()>>::with_name(name.to_owned(), 2); let (tx, rx) = sync_channel(0); // initial thread should share the name "test" for _ in 0..2 { let tx = tx.clone(); pool.execute(Thu...
rust_cleaned_test_functions.jsonl/22902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 556 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1269, 368, 341, 286, 1077, 829, 284, 330, 1944, 876, 286, 1077, 5206, 7314, 284, 22728, 27638, 38223, 21936, 27, 368, 77595, 4197, 1269, 3153, 2389, 51973, 1507, 220, 17, 317, 286, 1077, 320, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_is_closing_mark() { fn check(s: &str, i: usize, expected: QuotationMarkRole) { let actual = is_closing_mark(s, i); if actual != expected { panic!("i={}, expected={:?}, s={}", i, expected, &s[i..]); } } let s1 = r#"keya="val1" keyb="val 2" keyc="val...
rust_cleaned_test_functions.jsonl/107429
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 728 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 666, 17831, 18924, 368, 341, 262, 5168, 1779, 1141, 25, 609, 495, 11, 600, 25, 22301, 11, 3601, 25, 3406, 11606, 8949, 9030, 8, 341, 286, 1077, 5042, 284, 374, 666, 17831, 18924, 1141, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_matches() { let langid_en: LanguageIdentifier = "en".parse().unwrap(); let langid_en_us: LanguageIdentifier = "en-US".parse().unwrap(); let langid_en_us2: LanguageIdentifier = "en-US".parse().unwrap(); let langid_pl: LanguageIdentifier = "pl".parse().unwrap(); assert_eq!(lang...
rust_cleaned_test_functions.jsonl/10764
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38344, 368, 341, 262, 1077, 8688, 307, 6205, 25, 11434, 8714, 284, 330, 268, 3263, 6400, 1005, 15454, 543, 262, 1077, 8688, 307, 6205, 11306, 25, 11434, 8714, 284, 330, 268, 32340, 3263, 6400, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_float() { #[derive(Deserialize)] struct TestFloat { v: f32, } let regex = r"^(?P<v>[-+]?\d+(\.\d*)?)$"; assert_eq!(123.0, from_str::<TestFloat>("123", regex).unwrap().v); assert_eq!(1.23, from_str::<TestFloat>("1.23", regex).unwrap()....
rust_cleaned_test_functions.jsonl/133425
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17586, 368, 341, 286, 11506, 27098, 7, 64465, 5563, 286, 2036, 3393, 5442, 341, 310, 348, 25, 282, 18, 17, 345, 286, 555, 286, 1077, 20180, 284, 435, 1, 13268, 30, 47, 39297, 29, 7609, 55905, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_abs_nan() { assert!(f64::is_nan(complex::NAN.abs())); let z: Complex = Complex::new(f64::INFINITY, f64::NAN); assert!(f64::is_nan(z.abs())); }
rust_cleaned_test_functions.jsonl/43829
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31170, 73936, 368, 341, 286, 2060, 10297, 69, 21, 19, 486, 285, 73936, 14094, 9111, 486, 45, 1093, 14572, 7392, 286, 1077, 1147, 25, 22096, 284, 22096, 486, 931, 955, 21, 19, 486, 687, 55990, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_connection_update_state_with_message() { init!("true"); let handle = build_test_connection(); assert!(handle > 0); connect(handle, None).unwrap(); let cb = return_types_u32::Return_U32_U32::new().unwrap(); let rc = vcx_connection_update_state_w...
rust_cleaned_test_functions.jsonl/25723
{ "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, 2273, 25844, 15866, 8882, 4387, 6615, 6462, 368, 341, 286, 2930, 17223, 1866, 797, 286, 1077, 3705, 284, 1936, 4452, 15866, 543, 286, 2060, 10297, 8192, 861, 220, 15, 317, 286, 4564, 26405, 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_inverse_transform_point() { let angle = Degrees(72_f64); let cos_neg_angle = (-angle).cos(); let sin_neg_angle = (-angle).sin(); let distance = Vector2::new(-567_f64, 23_f64); let isometry = Isometry2::from_angle_translation(angle, &distance); ...
rust_cleaned_test_functions.jsonl/77218
{ "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, 63333, 18449, 6085, 368, 341, 286, 1077, 9210, 284, 92901, 7, 22, 17, 761, 21, 19, 317, 286, 1077, 7960, 28209, 21727, 284, 10293, 4044, 568, 9407, 543, 286, 1077, 7437, 28209, 21727, 284, 10293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_distribution() { // test u64 let mut dataset = Dataset::from_u64_vec(generate_linear_dataset_u64(12, 3, 5000)); evaluate_sketch(dataset); // test i64 dataset = Dataset::from_i64_vec(generate_linear_dataset_i64(-12, 3, 5000)); evaluate_sketc...
rust_cleaned_test_functions.jsonl/7527
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40674, 41465, 368, 341, 286, 442, 1273, 575, 21, 19, 198, 286, 1077, 5206, 10337, 284, 39183, 486, 1499, 7300, 21, 19, 13251, 3268, 13220, 40674, 18999, 7300, 21, 19, 7, 16, 17, 11, 220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transpile_use_deno() { let source = r#" export default function Index() { const verison = useDeno(() => Deno.version) const V8 = () => { const verison = useDeno(() => Deno.version, true) return <p>v8 v{version.v8}</p> } const TS = () ...
rust_cleaned_test_functions.jsonl/34196
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 444 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 12192, 15951, 814, 11790, 368, 341, 262, 1077, 2530, 284, 435, 2, 698, 414, 7485, 1638, 729, 8008, 368, 341, 286, 733, 2739, 3335, 284, 990, 35, 11790, 5065, 589, 9774, 78, 19484, 340, 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_reference_vector_l3_nonstandard_compl_sideinfo_blocktype() { let test_vector = include_bytes!("../vectors/l3-nonstandard-compl-sideinfo-blocktype.bit"); test_vs_minimp3(test_vector); }
rust_cleaned_test_functions.jsonl/69848
{ "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, 25433, 12247, 907, 18, 21637, 20270, 2965, 500, 30862, 2733, 7113, 1313, 368, 341, 262, 1077, 1273, 12247, 284, 2924, 12524, 17223, 1244, 85, 10605, 13328, 18, 98700, 20270, 11476, 500, 24067, 2733,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_good_tls_values() { // Take the lock so changing the environment doesn't cause races. let _env_lock = ENV_LOCK.lock().unwrap(); env::set_var(CONFIG_ENV, "dev"); assert!(RocketConfig::parse(r#" [staging] tls = { certs = "some/path.pem", key...
rust_cleaned_test_functions.jsonl/35240
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 509 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44781, 71262, 9146, 368, 341, 286, 442, 11778, 279, 5296, 773, 10018, 279, 4573, 3171, 944, 5240, 20588, 624, 286, 1077, 716, 3160, 9818, 284, 32791, 27661, 21003, 1005, 15454, 543, 286, 6105, 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_random_knapsacks() { for size in [4, 5, 6, 7, 8, 16, 32, 64, 128, 256].iter() { let sack = ProblemSubsetSum::random(*size); assert!( sack.is_legal(), "illegal random sack with size {}?!?", *size ); ...
rust_cleaned_test_functions.jsonl/13342
{ "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, 22644, 4698, 77, 2625, 7821, 368, 341, 286, 369, 1379, 304, 508, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 11, 220, 16, 21, 11, 220, 18, 17, 11, 220, 21, 19, 11, 220, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_add_dim_error_dim_already_exists() { const DIM_NAME: &str = "dim_1"; const DIM_SIZE_1: usize = 10; const DIM_SIZE_2: usize = 20; // Test : // 1. add a fixed-size dim // 2. add a fixed-size dim { // create the data set let mut data_set = DataSet::n...
rust_cleaned_test_functions.jsonl/40513
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2779 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 10791, 4096, 10791, 80772, 9766, 368, 341, 262, 733, 50859, 4708, 25, 609, 495, 284, 330, 12927, 62, 16, 876, 262, 733, 50859, 4098, 62, 16, 25, 22301, 284, 220, 16, 15, 280, 262, 733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_precommit() { let propose_hash = hash(&[1, 2, 3]); let block_hash = hash(&[3, 2, 1]); let (public_key, secret_key) = gen_keypair(); let time = Utc::now(); // write let precommit = Precommit::new( VALIDATOR, HEIGHT, ROUND, &propose_hash, ...
rust_cleaned_test_functions.jsonl/118857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 421 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10442, 17413, 368, 341, 262, 1077, 29614, 8950, 284, 5175, 2099, 58, 16, 11, 220, 17, 11, 220, 18, 2558, 262, 1077, 2504, 8950, 284, 5175, 2099, 58, 18, 11, 220, 17, 11, 220, 16, 2558, 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_copy() { assert_eq!( parse_line("copy 5887 x\nlink 1"), Ok(( "link 1", Instruction::Copy(Target::Literal(5887), Target::Register(String::from("x"))) )), ) }
rust_cleaned_test_functions.jsonl/990
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 6528, 445, 8560, 220, 20, 23, 23, 22, 856, 1699, 2080, 220, 16, 4461, 310, 7622, 94702, 394, 330, 2080, 220, 16, 756, 394, 29051, 486, 1210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_1_conf_open() { do_test_1_conf_open(ConnectStyle::BestBlockFirst); do_test_1_conf_open(ConnectStyle::TransactionsFirst); do_test_1_conf_open(ConnectStyle::FullBlockViaListen); }
rust_cleaned_test_functions.jsonl/16862
{ "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, 62, 16, 16059, 11311, 368, 341, 19935, 4452, 62, 16, 16059, 11311, 7, 14611, 2323, 486, 14470, 4713, 5338, 317, 19935, 4452, 62, 16, 16059, 11311, 7, 14611, 2323, 486, 48761, 5338, 317, 19935, 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
#[test] fn test_list_index_in_family_methods() { let dir = TempDir::new(super::gen_tempdir_name().as_str()).unwrap(); let path = dir.path(); let db = create_database(path); let mut fork = db.fork(); let mut list_index = ListIndex::new_in_family(IDX_NAM...
rust_cleaned_test_functions.jsonl/87437
{ "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, 2019, 3560, 1243, 26823, 36084, 368, 341, 310, 1077, 5419, 284, 19944, 6184, 486, 931, 56040, 486, 4370, 11771, 3741, 1269, 1005, 300, 2895, 6011, 15454, 543, 310, 1077, 1815, 284, 5419, 3875, 543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_span_vec_insert_coalescing() { let mut sv = SpanVec::new(); let s_close = Span::new(0, 1).unwrap(); let s_mid = Span::new(1, 2).unwrap(); let s_far = Span::new(3, 4).unwrap(); sv.insert(s_far); assert_eq!(sv.len(), 1); sv.insert(s_mid); assert_eq!(sv.len(), 1); ...
rust_cleaned_test_functions.jsonl/109252
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1400 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37382, 13251, 17678, 11393, 3831, 6125, 368, 341, 262, 1077, 5206, 13559, 284, 11903, 10050, 486, 931, 543, 262, 1077, 274, 12704, 284, 11903, 486, 931, 7, 15, 11, 220, 16, 568, 15454, 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_display() { let l = SourceLocator::temporary().issue(Default::default()); assert_eq!(Sexp::signed(l, 123).to_string(), "123"); assert_eq!(Sexp::signed(l, -456789).to_string(), "-456789"); assert_eq!( Sexp::signed(l, std::i64::MIN).to_string(), std::i64::MIN.to_st...
rust_cleaned_test_functions.jsonl/25850
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2495 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14825, 368, 341, 262, 1077, 326, 284, 8748, 33831, 486, 78090, 1005, 11159, 87874, 486, 2258, 5231, 262, 2060, 10714, 10297, 50, 4580, 486, 2215, 2333, 11, 220, 16, 17, 18, 568, 983, 3904, 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
#[test] fn test_lt_same_num_digits_true() { // Given: let a = Counter::from(vec![9, 0]); let b = Counter::from(vec![0, 1]); // Then: assert!(a < b); }
rust_cleaned_test_functions.jsonl/79518
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39164, 33574, 4273, 41432, 16082, 368, 341, 310, 442, 16246, 510, 310, 1077, 264, 284, 19735, 486, 1499, 25592, 20703, 24, 11, 220, 15, 2558, 310, 1077, 293, 284, 19735, 486, 1499, 25592, 20703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_underflow_flag() { println!("flag before: {:?}", unsafe {underflow_p()}); let smallest_float = f64::from_bits(1); println!("smallest float: {:e}", smallest_float); println!("underflow float: {:e}", smallest_float / 2.); let mut a = Floa...
rust_cleaned_test_functions.jsonl/51822
{ "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, 58228, 4965, 10933, 368, 341, 286, 13751, 17223, 9903, 1573, 25, 981, 71964, 19860, 314, 7995, 4965, 620, 89460, 1789, 286, 1077, 24632, 17586, 284, 282, 21, 19, 486, 1499, 20034, 7, 16, 317, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_get_interfaces() { let mut test_config = create_test_config_no_paths(); test_config.device_config = Some(build_full_config()); match test_config.interfaces() { Some(i) => { assert_eq!(*i, build_full_config().device.interfaces.unwrap()); ...
rust_cleaned_test_functions.jsonl/83808
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 72960, 368, 341, 286, 1077, 5206, 1273, 5332, 284, 1855, 4452, 5332, 6536, 24152, 543, 286, 1273, 5332, 18355, 5332, 284, 4329, 43333, 16372, 5332, 1423, 286, 2432, 1273, 5332, 34459, 368, 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...
2
#[test] fn test_add_assign() { let mut vec_a = Vec2::new(1.0, -4.0); let vec_b = Vec2::new(5.0, -7.0); vec_a += vec_b; assert_approx_eq!(vec_a.x(), 6.0); assert_approx_eq!(vec_a.y(), -11.0); }
rust_cleaned_test_functions.jsonl/77721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 20688, 368, 341, 286, 1077, 5206, 7486, 4306, 284, 11312, 17, 486, 931, 7, 16, 13, 15, 11, 481, 19, 13, 15, 317, 286, 1077, 7486, 880, 284, 11312, 17, 486, 931, 7, 20, 13, 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_process_transactions_returns_unprocessed_txs() { solana_logger::setup(); let GenesisConfigInfo { genesis_config, mint_keypair, .. } = create_slow_genesis_config(10_000); let bank = Arc::new(Bank::new_no_wallclock_throttle(&genes...
rust_cleaned_test_functions.jsonl/2937
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 68182, 58900, 4907, 34022, 17805, 82, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 40788, 2648, 1731, 341, 310, 59366, 5332, 345, 310, 28337, 3097, 12670, 345, 310, 54538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_u128() { test_serde!(U128, u128, 0); test_serde!(U128, u128, 1); test_serde!(U128, u128, 123); test_serde!(U128, u128, 10u128.pow(18)); test_serde!(U128, u128, 2u128.pow(100)); test_serde!(U128, u128, u128::max_value()); assert!(U128::from(...
rust_cleaned_test_functions.jsonl/16265
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7300, 16, 17, 23, 368, 341, 286, 1273, 75861, 450, 10297, 52, 16, 17, 23, 11, 575, 16, 17, 23, 11, 220, 15, 317, 286, 1273, 75861, 450, 10297, 52, 16, 17, 23, 11, 575, 16, 17, 23, 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_controller_is_running() { let mut ctrl0 = Controller::new(); ctrl0.start(); let mut ctrl1 = Controller::new(); ctrl1.stop(); assert_eq!(ctrl0.is_running(), true); assert_eq!(ctrl1.is_running(), false); }
rust_cleaned_test_functions.jsonl/12613
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21600, 6892, 37333, 368, 341, 286, 1077, 5206, 23743, 15, 284, 9771, 486, 931, 543, 286, 23743, 15, 4962, 1428, 286, 1077, 5206, 23743, 16, 284, 9771, 486, 931, 543, 286, 23743, 16, 13227, 1428,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nothing_comparisson_eq() { let engine_state = EngineState::new(); let mut working_set = StateWorkingSet::new(&engine_state); let (block, err) = parse(&mut working_set, None, b"2 == $nothing", true, &[]); assert!(err.is_none()); assert!(block.len() == 1); let expressions...
rust_cleaned_test_functions.jsonl/7102
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 1596, 2965, 1732, 48263, 10714, 368, 341, 262, 1077, 4712, 4387, 284, 8200, 1397, 486, 931, 543, 262, 1077, 5206, 3238, 2602, 284, 3234, 33978, 1649, 486, 931, 2099, 8512, 4387, 317, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rejected_add_keeps_state() { let mut assr = Assembler::new(CONTIG_COUNT*20); for c in 1..=CONTIG_COUNT-1 { assert_eq!(assr.add(c*10, 3), Ok(())); } // Maximum of allowed holes is reached let assr_before = assr.clone(); assert_eq!(assr.add...
rust_cleaned_test_functions.jsonl/52013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 28303, 2891, 45476, 7124, 4387, 368, 341, 286, 1077, 5206, 1071, 81, 284, 1634, 35401, 486, 931, 98747, 1914, 14672, 9, 17, 15, 317, 286, 369, 272, 304, 220, 16, 496, 28, 23312, 1914, 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_gt_negative_and_zero() { assert!(decimal("0.0") > decimal("-0.1")); assert!(decimal("0.0") > decimal("-1.0")); }
rust_cleaned_test_functions.jsonl/58115
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37479, 53865, 8378, 19359, 368, 341, 262, 2060, 10297, 23289, 445, 15, 13, 15, 899, 861, 12122, 13645, 15, 13, 16, 4010, 262, 2060, 10297, 23289, 445, 15, 13, 15, 899, 861, 12122, 13645, 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
#[test] fn test_update_twin_works() { ExternalityBuilder::build().execute_with(|| { create_twin(); let ip = "some_other_ip".as_bytes().to_vec(); assert_ok!(TfgridModule::update_twin(Origin::signed(alice()), ip)); }); }
rust_cleaned_test_functions.jsonl/35363
{ "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, 8882, 528, 7526, 11498, 82, 368, 341, 262, 1374, 4160, 2719, 3297, 486, 5834, 1005, 10257, 6615, 79453, 341, 286, 1855, 528, 7526, 1428, 286, 1077, 5997, 284, 330, 14689, 30456, 10385, 3263, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gen_path_9_6_3_4() { let partition_depth: u32 = 3; let partition_size: u32 = 4; let hash = "606060606467"; let _path = gen_path(hash, partition_size, partition_depth); }
rust_cleaned_test_functions.jsonl/7878
{ "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, 16322, 2638, 62, 24, 62, 21, 62, 18, 62, 19, 368, 341, 286, 1077, 16658, 19061, 25, 575, 18, 17, 284, 220, 18, 280, 286, 1077, 16658, 2368, 25, 575, 18, 17, 284, 220, 19, 280, 286, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval_unary_function_scalar() { #[derive(Debug, Clone, Copy, RpnFunction)] #[rpn_function(args = 1)] struct FnFoo; impl FnFoo { fn call( _ctx: &mut EvalContext, _payload: RpnFnCallPayload<'_>, v: ...
rust_cleaned_test_functions.jsonl/111582
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 574 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 4907, 658, 9174, 41652, 368, 341, 394, 11506, 27098, 42618, 11, 27913, 11, 14540, 11, 431, 19958, 5152, 5563, 286, 11506, 81, 19958, 9174, 7356, 284, 220, 16, 5563, 286, 2036, 50182, 40923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transaction_and_output_list_with_proof() { let transaction = Transaction::BlockMetadata(BlockMetadata::new( HashValue::random(), 0, 0, vec![], AccountAddress::random(), )); let event = create_event(); let transaction_output = Transacti...
rust_cleaned_test_functions.jsonl/33633
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 854 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 8378, 7645, 2019, 6615, 86757, 368, 341, 1066, 262, 1077, 7745, 284, 17869, 486, 4713, 14610, 55243, 14610, 486, 931, 1006, 286, 6531, 1130, 486, 11463, 3148, 286, 220, 15, 345, 286, 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_derived_enum() { // Ensure that rename works. assert_eq!(SomeEnum::name(&()), Some("Some")); // Ensure validity of meta info. let mut registry = juniper::Registry::new(FnvHashMap::default()); let meta = SomeEnum::meta(&(), &mut registry); assert_eq!(meta.name(), Some("S...
rust_cleaned_test_functions.jsonl/65544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 386 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35345, 2221, 31054, 368, 341, 262, 442, 29279, 429, 29074, 4278, 624, 262, 2060, 10714, 10297, 8373, 10766, 486, 606, 2099, 11858, 4329, 445, 8373, 14929, 262, 442, 29279, 31839, 315, 8823, 3546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_do_parse_lat_lon() { let (_, lat_lon) = do_parse_lat_lon(b"4807.038,N,01131.324,E").unwrap(); relative_eq!(lat_lon.0, 48. + 7.038 / 60.); relative_eq!(lat_lon.1, 11. + 31.324 / 60.); }
rust_cleaned_test_functions.jsonl/76512
{ "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, 26309, 21039, 26174, 57688, 368, 341, 286, 1077, 39464, 6844, 57688, 8, 284, 653, 21039, 26174, 57688, 1883, 1, 19, 23, 15, 22, 13, 15, 18, 23, 22037, 11, 15, 16, 16, 18, 16, 13, 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...
1
#[test] fn test_multiwhitespace() { use Token::*; let (tokens, maybe_error) = tokenize_string("add subtract\n# # into # into #\n\n# into\n#into#into\n#\n#\nend"); assert_eq!(tokens, vec![Add, Subtract, End]); assert!(maybe_error.is_none()); }
rust_cleaned_test_functions.jsonl/78238
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 1312, 36074, 368, 341, 286, 990, 9660, 56162, 286, 1077, 320, 30566, 11, 7196, 4096, 8, 4035, 310, 77651, 3904, 445, 718, 32256, 1699, 2, 671, 1119, 671, 1119, 671, 59, 77, 1699, 2, 111...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fmt() { let vals = vec![ (1, 0, ( "1", "1.0", "1.0000")), (1, 1, ( "0.1", "0.1", "0.1000")), (1, 2, ( "0.01", "0.0", "0.0100")), (1, -2, ("100", "100.0", "100.0000")), (-1, 0, ( "-1", "-1.0...
rust_cleaned_test_functions.jsonl/75822
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 479 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38128, 368, 341, 286, 1077, 28356, 284, 7486, 90515, 16159, 310, 320, 16, 11, 220, 15, 11, 220, 320, 220, 330, 16, 497, 257, 330, 16, 13, 15, 497, 262, 330, 16, 13, 15, 15, 15, 15, 30154, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reserve_space_for_recover() { let tmp_dir = Builder::new() .prefix("test_reserve_space_for_recover") .tempdir() .unwrap(); let data_path = tmp_dir.path(); let disk_stats_before = fs2::statvfs(data_path).unwrap(); let cap1 = disk...
rust_cleaned_test_functions.jsonl/82521
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 387 }
[ 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_parse_field_tag() { assert_eq!(parse_field_tag(b"003@").unwrap().1, BString::from("003@")); assert_eq!(parse_field_tag(b"012A").unwrap().1, BString::from("012A")); assert_eq!(parse_field_tag(b"003").is_err(), true); assert_eq!(parse_field_tag(b"03").is_err(), tru...
rust_cleaned_test_functions.jsonl/101494
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5013, 9372, 368, 341, 286, 2060, 10714, 10297, 6400, 5013, 9372, 1883, 1, 15, 15, 18, 31, 1827, 15454, 1005, 16, 11, 425, 703, 486, 1499, 445, 15, 15, 18, 31, 4010, 286, 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_inbound_connection() { let mut transport = InprocTransport::default(); let mut listener = transport .listen("inproc://test_inbound_connection") .expect("Cannot listen for connections"); let mesh = Mesh::new(512, 128); let (conn_tx, conn_r...
rust_cleaned_test_functions.jsonl/86770
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1225 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 10891, 15866, 368, 341, 286, 1077, 5206, 7557, 284, 758, 15782, 27560, 486, 2258, 543, 286, 1077, 5206, 11446, 284, 7557, 198, 310, 659, 36337, 445, 258, 15782, 1110, 1944, 1243, 10891, 1586...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_castle_kingside_white() { let castle_move = Move { kind: MoveKind::CastleKingside, from: Square::E1, to: Square::G1, }; let mut builder = PositionBuilder::new(); builder .side_to_move(Color::White) .place(Square::E1, Piece::King, Color::White) ...
rust_cleaned_test_functions.jsonl/134612
{ "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, 5303, 273, 4698, 819, 577, 44431, 368, 341, 262, 1077, 32584, 17134, 284, 14561, 341, 414, 3093, 25, 14561, 10629, 486, 86603, 42, 819, 577, 345, 414, 504, 25, 15619, 486, 36, 16, 345, 414, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_missing_comma_error() { let tuple_string = r#"( 1 // <-- forgotten comma here 2 )"#; assert_eq!( ron::from_str::<(i32, i32)>(tuple_string).unwrap_err(), SpannedError { code: Error::ExpectedComma, position: Position { line: 3, c...
rust_cleaned_test_functions.jsonl/103475
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 675 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40447, 2965, 1728, 4096, 368, 341, 262, 1077, 14405, 3904, 284, 435, 55543, 1006, 286, 220, 16, 442, 70386, 24547, 31683, 1588, 198, 286, 220, 17, 198, 262, 873, 57676, 401, 262, 2060, 10714, 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_simplity_optimized_plan_support_values() { let expr1 = Expr::BinaryExpr { left: Box::new(lit(1)), op: Operator::Plus, right: Box::new(lit(2)), }; let expr2 = Expr::BinaryExpr { left: Box::new(lit(2)), op: Operato...
rust_cleaned_test_functions.jsonl/19702
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 6383, 487, 15032, 45706, 26564, 25827, 9146, 368, 341, 286, 1077, 15169, 16, 284, 28819, 486, 21338, 16041, 341, 310, 2115, 25, 8261, 486, 931, 2333, 275, 7, 16, 6965, 310, 1179, 25, 28498,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_syscall_sol_panic() { let string = "Gaggablaghblagh!"; let addr = string.as_ptr() as *const _ as u64; let ro_region = MemoryRegion { addr_host: addr, addr_vm: 100, len: string.len() as u64, }; let rw_region = MemoryRegio...
rust_cleaned_test_functions.jsonl/42303
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20344, 6659, 53668, 620, 31270, 368, 341, 286, 1077, 914, 284, 330, 38, 15718, 370, 13363, 71, 2024, 33756, 26782, 286, 1077, 10789, 284, 914, 5357, 4348, 368, 438, 353, 1024, 716, 438, 575, 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_from_string_succeeds() { init!("true"); let handle = create_cred_def_fake(); let credentialdef_data = to_string(handle).unwrap(); assert!(!credentialdef_data.is_empty()); release(handle).unwrap(); let new_handle = from_string(&credentialdef_data).u...
rust_cleaned_test_functions.jsonl/64628
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 321 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 3904, 643, 29264, 82, 368, 341, 286, 2930, 17223, 1866, 797, 286, 1077, 3705, 284, 1855, 73475, 7844, 56881, 543, 286, 1077, 40207, 750, 1769, 284, 311, 3904, 26405, 568, 15454, 543, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bundle_paths() { assert_eq!(sanitize_bundle_path("foo"), "foo"); assert_eq!(sanitize_bundle_path("foo/bar"), "foo/bar"); assert_eq!(sanitize_bundle_path("/foo/bar"), "foo/bar"); assert_eq!(sanitize_bundle_path("C:/foo/bar"), "C/foo/bar"); assert_eq!(saniti...
rust_cleaned_test_functions.jsonl/51756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 221 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60986, 24152, 368, 341, 286, 2060, 10714, 10297, 65704, 60986, 2638, 445, 7975, 3975, 330, 7975, 797, 286, 2060, 10714, 10297, 65704, 60986, 2638, 445, 7975, 49513, 3975, 330, 7975, 49513, 797, 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_read_wrapping_value() { let mut mmapped_buf = MMappedBuf { data: [0; PAGE_SIZE * 2], }; fake_mmap(&mut mmapped_buf); let mut buf = PerfBuffer::open(1, PAGE_SIZE, 1).unwrap(); let sample = PerfSample { s_hdr: Sample { ...
rust_cleaned_test_functions.jsonl/118768
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 600 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 44074, 3629, 3142, 368, 341, 286, 1077, 5206, 9465, 5677, 10363, 284, 21665, 5677, 15064, 341, 310, 821, 25, 508, 15, 26, 25040, 4098, 353, 220, 17, 1259, 286, 2605, 286, 12418, 717, 2186,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transport_worker_data_event() { let (_, stop_rx) = mpsc::channel(); let (_, worker_rx) = mpsc::channel(); let (worker_tx, rx) = mpsc::channel(); let worker = TransportWorker { stop: stop_rx, timeout: Duration::from_micros(0), r...
rust_cleaned_test_functions.jsonl/126108
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 342 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46398, 40385, 1769, 6748, 368, 341, 286, 1077, 39464, 2936, 24330, 8, 284, 296, 81984, 486, 10119, 543, 286, 1077, 39464, 11864, 24330, 8, 284, 296, 81984, 486, 10119, 543, 286, 1077, 320, 21462, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_update_last_wins() { let key = Keypair::new(); let index = AccountsIndex::<bool>::default_for_tests(); let ancestors = vec![(0, 0)].into_iter().collect(); let mut gc = Vec::new(); index.upsert( 0, &key.pubkey(), &Pubkey:...
rust_cleaned_test_functions.jsonl/99732
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 655 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 12195, 1670, 1330, 368, 341, 286, 1077, 1376, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1922, 284, 40655, 1552, 27638, 2641, 6831, 2258, 5478, 32509, 543, 286, 1077, 37518, 284, 7486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_matching_closing_symbol_no_match() { let doc = Document::new(vec![Row::from("fn test( {}")], PathBuf::from("test.txt")); assert_eq!( Navigator::find_matching_closing_symbol( &doc, &Position { x: 7, y: 0, ...
rust_cleaned_test_functions.jsonl/52828
{ "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, 21814, 70763, 666, 17831, 21179, 6536, 10708, 368, 341, 262, 1077, 4629, 284, 11789, 486, 931, 25592, 20703, 3102, 486, 1499, 445, 8822, 1273, 7, 4687, 899, 1125, 7933, 15064, 486, 1499, 445, 1944...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1