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_two_pairs_second_pair_cascade() { // tie goes to low pair test( &vec!["2S QS 2C QD JH", "JD QH JS 8D QC"], &vec!["JD QH JS 8D QC"], ) }
rust_cleaned_test_functions.jsonl/121266
{ "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, 23241, 36430, 29644, 14445, 666, 19977, 368, 341, 1066, 262, 442, 18131, 5780, 311, 3347, 6716, 198, 262, 1273, 1006, 286, 609, 4083, 0, 1183, 17, 50, 77746, 220, 17, 34, 1207, 35, 619, 39, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_next_with_f64() { let mut stoch = SlowStochastic::new(3, 2).unwrap(); assert_eq!(stoch.nexta(10.0), 50.0); assert_eq!(stoch.nexta(50.0).round(), 83.0); assert_eq!(stoch.nexta(50.0).round(), 94.0); assert_eq!(stoch.nexta(30.0).round(), 31.0); assert...
rust_cleaned_test_functions.jsonl/87184
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11257, 6615, 761, 21, 19, 368, 341, 286, 1077, 5206, 357, 4953, 284, 38147, 623, 65954, 486, 931, 7, 18, 11, 220, 17, 568, 15454, 543, 286, 2060, 10714, 10297, 267, 4953, 4529, 64, 7, 16, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialize_with_enum() { assert_de_tokens( &DeserializeWithEnum::Struct { a: 1, b: 2 }, &[ Token::StructVariant { name: "DeserializeWithEnum", variant: "Struct", len: 2 }, Token::Str("a"), Token::I8(1), Token::Str("b"), ...
rust_cleaned_test_functions.jsonl/58621
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 6615, 31054, 368, 341, 262, 2060, 2259, 28838, 1006, 286, 609, 64465, 2354, 10766, 486, 9422, 314, 264, 25, 220, 16, 11, 293, 25, 220, 17, 1153, 286, 609, 9640, 310, 9660, 486, 94...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_state() { let io = &[ (&b""[..], EMPTY_HASH), (&b"abc"[..], ABC_HASH), (&[0; BLOCKBYTES], ONE_BLOCK_HASH), (&[0; 1000], THOUSAND_HASH), ]; // Test each input all at once. for &(input, output) in io { let hash = blake2s(input); ...
rust_cleaned_test_functions.jsonl/10639
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 562 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 4387, 368, 341, 262, 1077, 6399, 284, 609, 9640, 286, 15899, 65, 3014, 95874, 1125, 41314, 32309, 1326, 286, 15899, 65, 1, 13683, 36864, 496, 1125, 19360, 32309, 1326, 286, 15899, 58, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_generate_typedef_to_ulong() { let hdr = indoc! {" #include <cstdint> typedef uint32_t fish_t; "}; let rs = quote! { let _: ffi::fish_t; }; run_test("", hdr, rs, &[], &["fish_t"]); }
rust_cleaned_test_functions.jsonl/9846
{ "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, 48851, 42111, 4219, 2346, 72288, 368, 341, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 286, 671, 997, 366, 96975, 397, 286, 13501, 2622, 18, 17, 528, 7640, 528, 280, 262, 330, 2440, 262, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vcx_init_called_twice_passes_after_shutdown() { let wallet_name = "test_vcx_init_called_twice_fails"; ::utils::devsetup::tests::setup_ledger_env(wallet_name); wallet::close_wallet().unwrap(); pool::close().unwrap(); let content = format!(r#"{{"wallet_name...
rust_cleaned_test_functions.jsonl/19803
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 815 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 6137, 27859, 54178, 558, 15464, 288, 19844, 54804, 368, 341, 286, 1077, 15085, 1269, 284, 330, 1944, 2273, 25844, 6137, 27859, 54178, 558, 761, 6209, 876, 286, 3504, 6031, 486, 3583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_subdomain_referral() { assert_eq!( parse( r###"# Ads.txt file for example.com: greenadexchange.com, 12345, DIRECT, d75815a79 blueadexchange.com, XF436, DIRECT subdomain=divisionone.example.com"### ) .unwrap(), vec![ Row::Comment("Ads.tx...
rust_cleaned_test_functions.jsonl/111503
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 525 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 12204, 7793, 28178, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 1006, 310, 435, 14374, 57676, 42183, 3909, 1034, 369, 3110, 905, 510, 13250, 329, 39568, 905, 11, 220, 16, 17, 18, 19, 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_selector_range_for_error() { let s = Selector::new() .metric("http_requests_total") .with("handler", "/api/comments") .regex_match("job", ".*server") .no_regex_match("status", "4..") .without("env", "test") .range(""...
rust_cleaned_test_functions.jsonl/80579
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28890, 9698, 5478, 4096, 368, 341, 286, 1077, 274, 284, 49610, 486, 931, 741, 310, 659, 15903, 445, 1254, 37216, 10784, 1138, 310, 659, 4197, 445, 17905, 497, 3521, 2068, 48825, 1138, 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_pass_withdraw_from_pool() { ExtBuilder::build().execute_with(|| { let alice = account_key("Alice"); assert_ok!(CelerPayModule::deposit_pool(Origin::signed(alice), alice, 100)); assert_ok!(CelerPayModule::withdraw_from_pool(Origin::signed(alice), 100...
rust_cleaned_test_functions.jsonl/81773
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15464, 6615, 7633, 5673, 15709, 368, 341, 286, 9447, 3297, 486, 5834, 1005, 10257, 6615, 79453, 314, 5872, 310, 1077, 70433, 284, 2692, 3097, 445, 61686, 797, 310, 2060, 19817, 10297, 34, 7865, 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...
2
#[test] fn test_install_failing_omitting_directory() { let (at, mut ucmd) = at_and_ucmd!(); let file1 = "source_file"; let dir1 = "source_dir"; let dir2 = "target_dir"; at.mkdir(dir1); at.mkdir(dir2); at.touch(file1); ucmd.arg(dir1) .arg(file1) .arg(dir2) ...
rust_cleaned_test_functions.jsonl/47033
{ "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, 34245, 761, 14277, 62, 316, 14810, 14846, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 1034, 16, 284, 330, 2427, 2458, 876, 262, 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_is_empty() { let empty : list::List<int> = List::from_vec([]); let full1 = List::from_vec([1]); let full2 = List::from_vec(['r', 'u']); assert!(empty.is_empty()); assert!(!full1.is_empty()); assert!(!full2.is_empty()); }
rust_cleaned_test_functions.jsonl/130350
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 15124, 368, 341, 286, 1077, 4287, 549, 1140, 486, 852, 4159, 29, 284, 1759, 486, 1499, 13251, 39724, 286, 1077, 2480, 16, 284, 1759, 486, 1499, 13251, 2561, 16, 2558, 286, 1077, 2480, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vote_state_increment_credits() { let mut vote_state = VoteState::default(); let credits = (MAX_EPOCH_CREDITS_HISTORY + 2) as u64; for i in 0..credits { vote_state.increment_credits(i as u64); } assert_eq!(vote_state.credits(), credits); ...
rust_cleaned_test_functions.jsonl/43752
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54360, 4387, 51482, 666, 29502, 368, 341, 286, 1077, 5206, 6910, 4387, 284, 34034, 1397, 486, 2258, 1428, 286, 1077, 20141, 284, 320, 10586, 2089, 69945, 920, 6504, 14474, 63823, 488, 220, 17, 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...
2
#[test] fn test_parse_short_short_uint() { assert_eq!(parse_short_short_uint(&[0][..]), Ok((EMPTY, 0))); assert_eq!(parse_short_short_uint(&[255][..]), Ok((EMPTY, 255))); }
rust_cleaned_test_functions.jsonl/25450
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 16673, 16673, 15807, 368, 341, 286, 2060, 10714, 10297, 6400, 16673, 16673, 15807, 2099, 58, 15, 1457, 496, 9719, 7622, 1188, 32858, 11, 220, 15, 4945, 286, 2060, 10714, 10297, 6400, 16673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_include_multiple_shards() { let ctx = TestContext::new(); let cmx_path = ctx.new_include( "some.cmx", json!({ "include": ["shard1.cmx", "shard2.cmx"], "program": { "binary": "bin/hello_world" ...
rust_cleaned_test_functions.jsonl/50688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 739 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37878, 45233, 3712, 2347, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_proof_create_with_request_success() { let _setup = SetupMocks::init(); let handle = _vcx_disclosed_proof_create_with_request_c_closure(ARIES_PROOF_REQUEST_PRESENTATION).unwrap(); assert!(handle > 0); }
rust_cleaned_test_functions.jsonl/110427
{ "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, 2273, 25844, 86757, 8657, 6615, 7893, 18632, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 3705, 284, 716, 7362, 87, 37745, 9259, 86757, 8657, 6615, 7893, 666, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_xorshift64() { let mut gen = Xorshift64::new(Some(1)); assert_eq!(gen.next_1(), 1082269761); let mean: f64 = gen.uniforms01(TRIALS).iter().sum::<f64>() / (TRIALS as f64); assert!(mean > 0.49 && mean < 0.51); }
rust_cleaned_test_functions.jsonl/20341
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76462, 13418, 21, 19, 368, 341, 262, 1077, 5206, 4081, 284, 1599, 269, 13418, 21, 19, 486, 931, 65405, 7, 16, 1106, 262, 2060, 10714, 10297, 4370, 4529, 62, 16, 1507, 220, 16, 15, 23, 17, 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_move_up_winapi() { move_to(0, 2).unwrap(); move_up(2).unwrap(); assert_eq!(position().unwrap(), (0, 0)); }
rust_cleaned_test_functions.jsonl/15640
{ "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, 17134, 8237, 25672, 2068, 368, 341, 286, 3271, 2346, 7, 15, 11, 220, 17, 568, 15454, 1428, 286, 3271, 8237, 7, 17, 568, 15454, 1428, 286, 2060, 10714, 10297, 3487, 1005, 15454, 1507, 320, 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
#[test] fn test_enable_disable_notification() { let m = &GuestMemoryMmap::<()>::from_ranges(&[(GuestAddress(0), 0x10000)]).unwrap(); let mem = m.memory(); let mut q = QueueStateSync::new(0x100); q.set_desc_table_address(Some(0x1000), None); q.set_avail_ring_address(Some(...
rust_cleaned_test_functions.jsonl/103666
{ "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, 18988, 33842, 34296, 368, 341, 286, 1077, 296, 284, 609, 37804, 10642, 44, 2186, 27638, 368, 6831, 1499, 58748, 2099, 9697, 37804, 4286, 7, 15, 701, 220, 15, 87, 16, 15, 15, 15, 15, 7252, 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_dashmap_secondary_index_same_slot_and_forks() { let (key_start, key_end, account_index) = create_dashmap_secondary_index_state(); let index = AccountsIndex::<bool>::default_for_tests(); for token_id in [inline_spl_token::id(), inline_spl_token_2022::id()] { ru...
rust_cleaned_test_functions.jsonl/71351
{ "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, 84585, 2186, 77759, 3560, 33574, 27563, 8378, 761, 73302, 368, 341, 286, 1077, 320, 792, 4906, 11, 1376, 6213, 11, 2692, 3560, 8, 284, 1855, 84585, 2186, 77759, 3560, 4387, 543, 286, 1077, 1922, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_run_in_zsh() { let command = "echo $ZSH_VERSION"; let output = get_stdout_in_zsh(command); assert_eq!(output, "5.8.1\n"); }
rust_cleaned_test_functions.jsonl/2763
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 93 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 1243, 6415, 927, 368, 341, 286, 1077, 3210, 284, 330, 3047, 400, 57, 8590, 10678, 876, 286, 1077, 2550, 284, 633, 67416, 1243, 6415, 927, 15143, 317, 286, 2060, 10714, 10297, 3006, 11, 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
#[test] fn test_as_mut_getter_names() { #[derive(EnumAsMutGetters, Debug)] enum MyEnum { FooBar(bool), BarBaz(String), } let mut first = MyEnum::FooBar(true); let mut second = MyEnum::BarBaz( "there's nothing that a hundred men or more could ever do".to_string(), ...
rust_cleaned_test_functions.jsonl/7415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 29523, 3062, 465, 9187, 368, 341, 262, 11506, 27098, 62382, 2121, 51440, 1949, 5045, 11, 11091, 5563, 262, 7618, 3017, 10766, 341, 286, 33428, 3428, 9764, 1326, 286, 4716, 33, 1370, 2242, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rpc_validateaddress() { let client = TestClient::default(); client.requests().expect(vec![ request! { method: "validateaddress", params: ["n2cCRtaXxRAbmWYhH9sZUBBwqZc8mMV8tb"], response: { "account": "node_0", "a...
rust_cleaned_test_functions.jsonl/82257
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 634 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 42681, 4995, 368, 341, 262, 1077, 2943, 284, 3393, 2959, 486, 2258, 543, 262, 2943, 67671, 1005, 17119, 25592, 90515, 286, 1681, 0, 341, 310, 1714, 25, 330, 7067, 4995, 756, 310, 3628, 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_parse_main_lang_typemaps() { parse( SourceId::none(), include_str!("../java_jni/jni-include.rs"), 64, FxHashMap::default(), ) .unwrap(); parse( SourceId::none(), include_str!("../cpp/cpp-inclu...
rust_cleaned_test_functions.jsonl/18738
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 11027, 17876, 42111, 336, 2625, 368, 341, 286, 4715, 1006, 310, 8748, 764, 486, 6697, 3148, 310, 2924, 2895, 17223, 1244, 10042, 5374, 7751, 4437, 7751, 12, 997, 25638, 4461, 310, 220, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_handle_possible_reorg_target_difficulty_is_correct_case_2() { // Test a straight chain to get the correct target difficulty. The block times must be reduced so that the // difficulty changes let (result, _blocks) = test_case_handle_possible_reorg(&[ ("A->GB", ...
rust_cleaned_test_functions.jsonl/44861
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 951 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 71244, 1288, 1775, 11123, 15850, 25990, 6892, 31550, 19096, 62, 17, 368, 341, 286, 442, 3393, 264, 7678, 8781, 311, 633, 279, 4396, 2169, 16829, 13, 576, 2504, 3039, 1969, 387, 11046, 773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_statsd_client_queuing_buffered_udp_sink_single_threaded() { let client = new_queuing_buffered_udp_client("cadence"); run_arc_threaded_test(client, 1, 1); }
rust_cleaned_test_functions.jsonl/21893
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 47342, 7471, 7776, 291, 69432, 51567, 19487, 10814, 291, 368, 341, 262, 1077, 2943, 284, 501, 47342, 7471, 7776, 291, 69432, 8179, 445, 34455, 763, 797, 262, 1598, 62914, 10814, 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
#[test] fn test_naive_max_pooling() { use ndarray::prelude::*; let x = backprop( Array::from_shape_vec((1, 3, 4, 4), (0..16 * 3).map(|x| (x % 7) as f32).collect()) .unwrap() .into_ndarray(), ); let y = naive_max_pooling(&x, [2, 2], [2, 2], [0, 0]); dbg!(&*y);...
rust_cleaned_test_functions.jsonl/26794
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58631, 533, 6345, 15709, 287, 368, 341, 262, 990, 66883, 486, 1726, 52538, 56162, 262, 1077, 856, 284, 1182, 2674, 1006, 286, 2910, 486, 1499, 13597, 13251, 1188, 16, 11, 220, 18, 11, 220, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_underscore_in_filter_name() { let assigns = o!({"var": 1000}); assert_template_result!( " 1000$ ", "{{var | money_with_underscore}}", assigns, liquid_money() ); }
rust_cleaned_test_functions.jsonl/85600
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 53933, 1243, 8727, 1269, 368, 341, 262, 1077, 49912, 284, 297, 0, 16864, 947, 788, 220, 16, 15, 15, 15, 4546, 262, 2060, 8693, 5287, 33673, 286, 330, 220, 16, 15, 15, 15, 3, 21796, 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
#[test] fn test_insert() { let mut blockchain = Blockchain::new(); blockchain.set_check_trans(false); let genesis_hash = blockchain.tip(); assert_eq!(&genesis_hash, &H256::from([0u8; 32])); let block = generate_random_block(&genesis_hash); blockchain.insert(&block...
rust_cleaned_test_functions.jsonl/61917
{ "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, 17678, 368, 341, 286, 1077, 5206, 17944, 284, 42885, 486, 931, 543, 286, 17944, 980, 7200, 7965, 3576, 317, 286, 1077, 59366, 8950, 284, 17944, 78044, 543, 286, 2060, 10714, 0, 2099, 77894, 8950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hex() { assert_eq!(decode_hex(""), [].to_vec()); assert_eq!(decode_hex("00"), [0x00u8].to_vec()); assert_eq!(decode_hex("ff"), [0xffu8].to_vec()); assert_eq!(decode_hex("AB"), [0xabu8].to_vec()); assert_eq!(decode_hex("fa 19"), [0xfau8, 0x19].to_vec...
rust_cleaned_test_functions.jsonl/43981
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 32655, 368, 341, 286, 2060, 10714, 10297, 18196, 32655, 86076, 72375, 983, 13251, 1423, 286, 2060, 10714, 10297, 18196, 32655, 445, 15, 15, 3975, 508, 15, 87, 15, 15, 84, 23, 936, 983, 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_text_encoding() { run_in_task(|mut cx| { let mut isolate = setup(); isolate .execute( "text_encoding_test.js", include_str!("text_encoding_test.js"), ) .unwrap(); if let Poll::Ready(Err(_)) = isolate.poll_event_loop(&mut cx) { ...
rust_cleaned_test_functions.jsonl/12655
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4326, 37613, 368, 341, 262, 1598, 1243, 12184, 22428, 6984, 20716, 91, 341, 414, 1077, 5206, 42123, 284, 6505, 543, 414, 42123, 198, 286, 659, 10257, 1006, 688, 330, 1318, 37613, 4452, 2857, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_opt_addresses_no_space() { let addr = br#"((NIL NIL "test" "example@example.com")(NIL NIL "test" "example@example.com"))"#; match super::opt_addresses(addr) { Ok((_, _addresses)) => {} rsp => panic!("unexpected response {:?}", rsp), } ...
rust_cleaned_test_functions.jsonl/8550
{ "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, 15032, 59471, 6536, 14663, 368, 341, 286, 1077, 10789, 4035, 310, 1411, 55543, 1188, 76958, 64147, 330, 1944, 1, 330, 8687, 35487, 905, 34600, 76958, 64147, 330, 1944, 1, 330, 8687, 35487, 905, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_number_type_from() { assert_eq!(NumberType::from("123").unwrap(), NumberType::Bytes(123)); assert_eq!(NumberType::from("l/123").unwrap(), NumberType::Lines(123)); assert_eq!( NumberType::from("l/123/456").unwrap(), NumberType::KthLines(123, 456) ...
rust_cleaned_test_functions.jsonl/16012
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5500, 1819, 5673, 368, 341, 286, 2060, 10714, 10297, 2833, 929, 486, 1499, 445, 16, 17, 18, 1827, 15454, 1507, 5624, 929, 486, 7078, 7, 16, 17, 18, 1106, 286, 2060, 10714, 10297, 2833, 929, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_into_inner_close() { let lock = RwLock::new(()); lock.close(); assert!(lock.is_closed()); let into_inner_result = lock.into_inner(); match into_inner_result { Err(LockClosedError) => (), Ok(_) => panic!("into_inner of closed lock i...
rust_cleaned_test_functions.jsonl/134540
{ "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, 45514, 34345, 12704, 368, 341, 286, 1077, 5296, 284, 55294, 11989, 486, 931, 7, 1423, 286, 5296, 4653, 1428, 286, 2060, 10297, 1023, 2079, 44697, 1423, 286, 1077, 1119, 34345, 5287, 284, 5296, 398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_session_roundtrip() { let json = r#"{ "sid": "8333339f-5675-4f89-a9a0-1c935255ab58", "did": "foobarbaz", "seq": 42, "init": true, "timestamp": "2020-02-07T15:17:00Z", "started": "2020-02-07T14:16:00Z", "duration": 1947.49, "status": "exited", "errors": 0, "attrs": { ...
rust_cleaned_test_functions.jsonl/4849
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 712 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12316, 29896, 32981, 368, 341, 286, 1077, 2951, 284, 435, 55543, 515, 220, 330, 21027, 788, 330, 23, 18, 18, 18, 18, 18, 24, 69, 12, 20, 21, 22, 20, 12, 19, 69, 23, 24, 7409, 24, 64, 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_arc_get_mut() { let mut x = Arc::new(3); *Arc::get_mut(&mut x).unwrap() = 4; assert_eq!(*x, 4); let y = x.clone(); assert!(Arc::get_mut(&mut x).is_none()); drop(y); assert!(Arc::get_mut(&mut x).is_some()); let _w = Arc::downgrade(&x...
rust_cleaned_test_functions.jsonl/35112
{ "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, 62914, 3062, 29523, 368, 341, 286, 1077, 5206, 856, 284, 19689, 486, 931, 7, 18, 317, 286, 353, 36809, 486, 455, 29523, 2099, 6984, 856, 568, 15454, 368, 284, 220, 19, 280, 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_series_set_conversion() { let series_set = SeriesSet { table_name: Arc::from("the_table"), tags: vec![(Arc::from("tag1"), Arc::from("val1"))], field_indexes: FieldIndexes::from_timestamp_and_value_indexes(5, &[0, 1, 2, 3, 4]), start_row: 1,...
rust_cleaned_test_functions.jsonl/98443
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 720 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35015, 2602, 64132, 368, 341, 286, 1077, 4013, 2602, 284, 11131, 1649, 341, 310, 1965, 1269, 25, 19689, 486, 1499, 445, 1782, 5237, 4461, 310, 9492, 25, 7486, 0, 9697, 36809, 486, 1499, 445, 457...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_verkey_with_non_base58() { let verkey = "*kVTa7SCJ5SntpYyX7CSb2pcBhiVGT9kWSagA8a9T69A"; match validate_verkey(&verkey) { Err(x) => assert_eq!(x.kind(), VcxErrorKind::NotBase58), Ok(x) => panic!("Should be invalid verkey"), } }
rust_cleaned_test_functions.jsonl/86091
{ "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, 42681, 26042, 792, 6615, 21637, 7651, 20, 23, 368, 341, 286, 1077, 2739, 792, 284, 15630, 74, 20457, 64, 22, 3540, 41, 20, 50, 89340, 56, 88, 55, 22, 6412, 65, 17, 3992, 33, 6023, 53, 25388,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_plan_build_minimum_workspace() { let planner = BuildPlannerImpl::new(dummy_raze_metadata(), dummy_raze_settings()); let planned_build_res = planner.plan_build(Some(PlatformDetails::new( "some_target_triple".to_owned(), Vec::new(), /* attrs */ ))); assert!(planned_bui...
rust_cleaned_test_functions.jsonl/31787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26564, 20801, 84855, 75560, 368, 341, 262, 1077, 49711, 284, 7854, 2120, 4887, 9673, 486, 931, 83671, 59969, 2986, 22220, 1507, 17292, 59969, 2986, 10853, 1423, 262, 1077, 12909, 20801, 4918, 284, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dict_correct() { let dict = BuiltIn::new(crate::config::Locale::default()); let correction = dict.correct_word(typos::tokens::Word::new_unchecked( "finallizes", typos::tokens::Case::Lower, 0, )); assert_eq!( correcti...
rust_cleaned_test_functions.jsonl/62316
{ "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, 5243, 31550, 368, 341, 286, 1077, 6451, 284, 33054, 641, 486, 931, 54907, 486, 1676, 486, 19231, 486, 2258, 1423, 286, 1077, 26262, 284, 6451, 81497, 13533, 1155, 88, 966, 486, 30566, 486, 10879, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nogood() { use cryptominisat::Lbool; let mut solver = Solver::new(); let (x, y, z) = (solver.new_var(), solver.new_var(), solver.new_var()); add_nogood(&mut solver, &[x, y, z]); // The constraint set is feasible. assert_eq!(solver.solve(), Lbool::True); // Ite...
rust_cleaned_test_functions.jsonl/97528
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 518 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 538, 1386, 368, 341, 262, 990, 14436, 7970, 285, 266, 486, 43, 2641, 401, 262, 1077, 5206, 28961, 284, 68295, 486, 931, 543, 262, 1077, 320, 87, 11, 379, 11, 1147, 8, 284, 320, 75501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bad_record_length() { let mut log = new_record_test(); let payload_size = BLOCK_SIZE - HEADER_SIZE; log.write(big_string("bar", payload_size).as_str()); log.write("foo"); // Least significant size byte is stored in header[4] log.increment_byte(4, 1...
rust_cleaned_test_functions.jsonl/46691
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34199, 14192, 5118, 368, 341, 286, 1077, 5206, 1487, 284, 501, 14192, 4452, 543, 286, 1077, 7729, 2368, 284, 28677, 4098, 481, 39665, 4098, 280, 286, 1487, 3836, 75616, 3904, 445, 2257, 497, 7729,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unstable_from_toml() { let config = Config::from_toml("unstable_features = true", Path::new("")).unwrap(); assert_eq!(config.was_set().unstable_features(), true); assert_eq!(config.unstable_features(), true); }
rust_cleaned_test_functions.jsonl/130640
{ "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, 4907, 27992, 5673, 528, 316, 75, 368, 341, 286, 1077, 2193, 284, 5532, 486, 1499, 528, 316, 75, 445, 359, 27992, 14965, 284, 830, 497, 7933, 486, 931, 445, 15197, 15454, 543, 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_shuffle() { let mut oauth = SpotifyOAuth::default() .scope("user-modify-playback-state") .build(); match get_token(&mut oauth) { Some(token_info) => { let client_credential = SpotifyClientCredentials::default() .token_info(token_info) ...
rust_cleaned_test_functions.jsonl/79280
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73484, 368, 341, 262, 1077, 5206, 46415, 284, 40537, 57850, 486, 2258, 741, 286, 659, 4186, 445, 872, 17078, 1437, 26544, 1419, 20733, 1138, 286, 659, 5834, 543, 262, 2432, 633, 6458, 2099, 6984, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_lazy_groupby_cast() { let df = df! { "a" => ["a", "a", "a", "b", "b", "c"], "b" => [1, 2, 3, 4, 5, 6] } .unwrap(); // test if it runs in groupby context let _out = df .lazy() .groupby([col("a")]) .agg([col("b") .mean() ...
rust_cleaned_test_functions.jsonl/142
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 6288, 1694, 5303, 368, 341, 262, 1077, 6764, 284, 6764, 0, 341, 286, 330, 64, 1, 589, 4383, 64, 497, 330, 64, 497, 330, 64, 497, 330, 65, 497, 330, 65, 497, 330, 66, 8097, 286, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_not_subsequence() { let candidate = "foobaaar"; assert!(is_subsequence(candidate, "foobra", MatchCase::No).is_none()); assert!(is_subsequence(candidate, "frb", MatchCase::No).is_none()); assert!(is_subsequence(candidate, "brf", MatchCase::No).is_none()); ...
rust_cleaned_test_functions.jsonl/88766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 592 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 7913, 5228, 15512, 368, 341, 286, 1077, 9144, 284, 330, 824, 674, 5305, 277, 876, 286, 2060, 10297, 285, 5228, 15512, 72021, 11, 330, 824, 28856, 497, 14152, 4207, 486, 2753, 568, 285, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_eor_reg() { match decode_16(0x4060) { Instruction::EOR_reg { params, thumb32 } => { assert_eq!(params.rd, Reg::R0); assert_eq!(params.rn, Reg::R0); assert_eq!(params.rm, Reg::R4); assert_eq!(params.setflags, SetFlags::NotInI...
rust_cleaned_test_functions.jsonl/64782
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 2204, 269, 4920, 368, 341, 1066, 262, 2432, 16895, 62, 16, 21, 7, 15, 87, 19, 15, 21, 15, 8, 341, 286, 29051, 486, 36, 868, 4920, 314, 3628, 11, 24050, 18, 17, 335, 589, 341, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_is_instance_initialized() { let vmm = create_vmm_object(InstanceState::Uninitialized); assert_eq!(vmm.is_instance_initialized(), false); let vmm = create_vmm_object(InstanceState::Starting); assert_eq!(vmm.is_instance_initialized(), true); let vmm = crea...
rust_cleaned_test_functions.jsonl/28145
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 11904, 62421, 368, 341, 286, 1077, 348, 3821, 284, 1855, 2273, 3821, 5314, 7, 8846, 486, 1806, 36161, 317, 286, 2060, 10714, 10297, 85, 3821, 2079, 11904, 62421, 1507, 895, 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_parse_datetime_range() { let offset = FixedOffset::west(3600); assert_eq!( parse_datetime_range(b"-20200229153420.123456", offset).ok(), Some(DateTimeRange { start: None, end: Some(offset.ymd(2020, 2, 29).and_hms_micro(15, 3...
rust_cleaned_test_functions.jsonl/22052
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3054 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 28943, 9698, 368, 341, 286, 1077, 4347, 284, 20149, 6446, 486, 11039, 7, 18, 21, 15, 15, 317, 286, 2060, 10714, 33673, 310, 4715, 28943, 9698, 1883, 34294, 17, 15, 17, 15, 15, 17, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sub(){ let reference_1 = Package::Sub(SubscribePackage{ is_sub: true, key: "SOME KEY".to_string() }); let reference_2 = Package::Sub(SubscribePackage{ is_sub: false, key: "".to_string() }); let result: Vec<u8...
rust_cleaned_test_functions.jsonl/124205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 432 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 3032, 286, 1077, 5785, 62, 16, 284, 16906, 486, 3136, 7, 28573, 13100, 515, 310, 374, 5228, 25, 830, 345, 310, 1376, 25, 330, 50, 11408, 12013, 3263, 983, 3904, 741, 286, 1625, 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...
3
#[test] fn test_serialize_bestmove() { assert_eq!(UciMessage::best_move(ChessMove::new(Square::A1, Square::A7, None)).serialize().as_str(), "bestmove a1a7"); }
rust_cleaned_test_functions.jsonl/19045
{ "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, 88686, 33101, 3397, 368, 341, 286, 2060, 10714, 10297, 52, 5855, 2052, 486, 15862, 17134, 7, 88242, 9860, 486, 931, 3759, 5151, 486, 32, 16, 11, 15619, 486, 32, 22, 11, 2240, 4579, 24166, 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
#[test] fn test_recursive_load() { let loader = MockLoader::new(); let loads = loader.loads.clone(); let mut runtime = JsRuntime::new(RuntimeOptions { module_loader: Some(loader), ..Default::default() }); let spec = ModuleSpecifier::resolve_url("file:///a.js").unwrap(); let a...
rust_cleaned_test_functions.jsonl/22622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 724 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66242, 12411, 368, 341, 262, 1077, 16047, 284, 14563, 9181, 486, 931, 543, 262, 1077, 20907, 284, 16047, 22961, 15997, 543, 262, 1077, 5206, 15592, 284, 39122, 15123, 486, 931, 52610, 3798, 341, 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_const_in_function_clash_with_shared_dim() { let program = r#" DIM SHARED A AS STRING FUNCTION Test CONST A = "hello" END FUNCTION "#; assert_linter_err!(program, QError::DuplicateDefinition, 4, 19); }
rust_cleaned_test_functions.jsonl/122481
{ "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, 13610, 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, 29602, 362, 284, 330, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_protocol() { let tcp = from_protocol(Some(netconfig::Protocol::Tcp)).unwrap(); assert_eq!(netfilter::SocketProtocol::Tcp, tcp); let udp = from_protocol(Some(netconfig::Protocol::Udp)).unwrap(); assert_eq!(netfilter::SocketProtocol::Udp, udp); let bo...
rust_cleaned_test_functions.jsonl/52757
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 34880, 368, 341, 286, 1077, 28051, 284, 504, 34880, 65405, 30723, 1676, 486, 20689, 486, 77536, 4579, 15454, 543, 286, 2060, 10714, 10297, 4711, 5315, 486, 10286, 20689, 486, 77536, 11, 28051,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_miles_to_light_year() { let res = Mile::new(9.3e7).convert_scalar(&DistanceUnit::LightYear); assert!(res.is_ok()); assert!(is_close(1.5843e-5, res.unwrap())); }
rust_cleaned_test_functions.jsonl/111638
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 3658, 2346, 28663, 14645, 368, 341, 286, 1077, 592, 284, 38597, 486, 931, 7, 24, 13, 18, 68, 22, 568, 14166, 41652, 2099, 14778, 4562, 486, 13911, 9490, 626, 286, 2060, 10297, 416, 2079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_movb_reg_reg() { assert_emit!(0x88, 0xd8; emit_movb_reg_reg(RBX, RAX)); assert_emit!(0x88, 0xd1; emit_movb_reg_reg(RDX, RCX)); assert_emit!(0x45, 0x88, 0xd1; emit_movb_reg_reg(R10, R9)); assert_emit!(0x40, 0x88, 0xfe; emit_movb_reg_reg(RDI, RSI)); assert_e...
rust_cleaned_test_functions.jsonl/85457
{ "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, 55798, 65, 4920, 4920, 368, 341, 286, 2060, 69082, 10297, 15, 87, 23, 23, 11, 220, 15, 9703, 23, 26, 16691, 55798, 65, 4920, 4920, 2785, 53878, 11, 431, 2954, 1106, 286, 2060, 69082, 10297, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_password_with_position() { assert!(validate_password_with_position("1-3 c: cabc")); assert!(!validate_password_with_position("1-3 c: cacc")); assert!(validate_password_with_position("1-3 c: aacc")); }
rust_cleaned_test_functions.jsonl/128312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 10122, 6615, 9661, 368, 341, 286, 2060, 10297, 7067, 10122, 6615, 9661, 445, 16, 12, 18, 272, 25, 272, 13683, 4010, 286, 2060, 0, 3471, 7067, 10122, 6615, 9661, 445, 16, 12, 18, 272, 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_resolve_url_from_location_relative_1() { let url = "http://deno.land/x".parse::<Url>().unwrap(); let new_uri = resolve_url_from_location(&url, "//rust-lang.org/en-US"); assert_eq!(new_uri.host_str().unwrap(), "rust-lang.org"); assert_eq!(new_uri.path(), "/en-US"); }
rust_cleaned_test_functions.jsonl/70600
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77291, 2903, 5673, 13126, 29286, 62, 16, 368, 341, 262, 1077, 2515, 284, 330, 1254, 1110, 5183, 78, 87627, 10776, 3263, 6400, 27638, 2864, 10483, 15454, 543, 262, 1077, 501, 15572, 284, 8830, 2903...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_run_script() { Interpreter::default().enter(|vm| { // test file run let r = run_script( vm, vm.new_scope_with_builtins(), "extra_tests/snippets/dir_main/__main__.py", ); assert!(r.is_ok()); // test module run ...
rust_cleaned_test_functions.jsonl/110756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 14660, 368, 341, 262, 82493, 486, 2258, 1005, 1950, 22428, 7338, 91, 341, 286, 442, 1273, 1034, 1598, 198, 286, 1077, 435, 284, 1598, 14660, 1006, 310, 10995, 345, 310, 10995, 4618, 23199, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_datetime() { let ok_tables = vec![ ( "2012-12-31 11:30:45", UN_SPECIFIED_FSP, "2012-12-31 11:30:45", ), ( "0000-00-00 00:00:00", UN_SPECIFIED_FSP, "00...
rust_cleaned_test_functions.jsonl/58460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1945 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 28943, 368, 341, 286, 1077, 5394, 35632, 284, 7486, 90515, 310, 2399, 394, 330, 17, 15, 16, 17, 12, 16, 17, 12, 18, 16, 220, 16, 16, 25, 18, 15, 25, 19, 20, 756, 394, 6643, 36436, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encode_decode() { let internal_node_key = random_63nibbles_node_key(); let leaf1_keys = gen_leaf_keys(0, internal_node_key.nibble_path(), Nibble::from(1)); let leaf1_node = Node::new_leaf(leaf1_keys.1, AccountStateBlob::from(vec![0x00])); let leaf2_keys = gen_leaf_keys(0, intern...
rust_cleaned_test_functions.jsonl/56485
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 650 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 15227, 368, 341, 262, 1077, 5306, 5084, 3097, 284, 4194, 62, 21, 18, 77, 579, 38763, 5084, 3097, 1428, 262, 1077, 15933, 16, 12631, 284, 4081, 38909, 12631, 7, 15, 11, 5306, 5084, 3097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_roundtrip_nostd() { let msg_orig = MsgType { a: 12345 }; let mut dest = vec![0; 1024]; let encoded = serialize_msg(&msg_orig, &mut dest).unwrap(); let buf = encoded.framed_slice(); let mut decode_buf = [0; 1024]; let msg_actual = deserialize_owned_borrowed(&buf, &mut de...
rust_cleaned_test_functions.jsonl/58584
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 32981, 1089, 535, 67, 368, 341, 262, 1077, 3750, 35328, 284, 24205, 929, 314, 264, 25, 220, 16, 17, 18, 19, 20, 3634, 262, 1077, 5206, 3201, 284, 7486, 20703, 15, 26, 220, 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...
1
#[test] fn test_parse_field_comments() { assert_eq!(parse_field(b":"), Ok(None)); assert_eq!(parse_field(b": hello \0 world"), Ok(None)); assert_eq!(parse_field(b": event: foo"), Ok(None)); }
rust_cleaned_test_functions.jsonl/64500
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5013, 30359, 368, 341, 286, 2060, 10714, 10297, 6400, 5013, 1883, 3252, 701, 7622, 26717, 1106, 286, 2060, 10714, 10297, 6400, 5013, 1883, 788, 23811, 1124, 15, 1879, 3975, 7622, 26717, 1106,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_serde() { let mut set = AHashSet::new(); set.insert("for".to_string()); set.insert("bar".to_string()); let serialization = serde_json::to_string(&set).unwrap(); let deserialization: AHashSet<String> = serde_json::from_str(&serialization).unwrap(); ...
rust_cleaned_test_functions.jsonl/84102
{ "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, 75861, 450, 368, 341, 286, 1077, 5206, 738, 284, 362, 44601, 486, 931, 543, 286, 738, 7030, 445, 1958, 3263, 983, 3904, 1423, 286, 738, 7030, 445, 2257, 3263, 983, 3904, 1423, 286, 1077, 47443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stream_max_stream_data() { let flow_mgr = Rc::new(RefCell::new(FlowMgr::default())); let conn_events = ConnectionEvents::default(); let frame1 = vec![0; RX_STREAM_DATA_WINDOW as usize]; let mut s = RecvStream::new( 67.into(), RX_STREAM_DA...
rust_cleaned_test_functions.jsonl/22971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12673, 6345, 12673, 1769, 368, 341, 286, 1077, 6396, 42438, 284, 81463, 486, 931, 7, 3945, 3599, 486, 931, 7, 18878, 25567, 486, 2258, 7392, 286, 1077, 4534, 19691, 284, 11032, 7900, 486, 2258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_linear_gradient_10() { assert_eq!( parse_style_background_content( "linear-gradient(50deg, rgba(10, 30, 20, 0.93), hsla(40deg, 80%, 30%, 0.1))" ), Ok(StyleBackgroundContent::LinearGradient(LinearGradient { directio...
rust_cleaned_test_functions.jsonl/114012
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 804 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 40674, 49482, 62, 16, 15, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 15117, 24103, 7495, 1006, 394, 330, 22763, 42738, 7, 20, 15, 16508, 11, 23524, 7, 16, 15, 11, 220, 18, 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_node_attributes() { let genesis = Genesis::strict_decode(&GENESIS[..]).unwrap(); let transition = Transition::strict_decode(&TRANSITION[..]).unwrap(); // Typeid/Nodeid test assert_eq!( genesis.node_id().to_hex(), "d2f452d8b3cdca74eb503904a...
rust_cleaned_test_functions.jsonl/18804
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3596 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 18240, 368, 341, 286, 1077, 59366, 284, 40788, 486, 6627, 15227, 2099, 11085, 83366, 95874, 10697, 15454, 543, 286, 1077, 9142, 284, 37721, 486, 6627, 15227, 2099, 43103, 7092, 95874, 10697, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_error_when_singlethread_mode() { // put SQLite into single-threaded mode unsafe { if ffi::sqlite3_config(ffi::SQLITE_CONFIG_SINGLETHREAD) != ffi::SQLITE_OK { return; } if ffi::sqlite3_initialize() != ffi::SQLITE_OK { return; } }...
rust_cleaned_test_functions.jsonl/115815
{ "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, 4096, 47636, 19487, 4528, 7302, 368, 341, 262, 442, 2182, 28334, 1119, 3175, 60804, 291, 3856, 198, 262, 19860, 341, 286, 421, 76956, 486, 37042, 18, 5332, 7, 53799, 486, 6688, 5991, 12568, 39028,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reference_to_diagnostic() { let range = Range { start: Position { line: 1, character: 1, }, end: Position { line: 2, character: 2, }, }; let test_cases = [ ( Reference { category: Category::Lint { ...
rust_cleaned_test_functions.jsonl/3519
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 776 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25433, 2346, 29477, 11953, 368, 341, 262, 1077, 2088, 284, 16437, 341, 414, 1191, 25, 12380, 341, 286, 1555, 25, 220, 16, 345, 286, 3668, 25, 220, 16, 345, 414, 1153, 414, 835, 25, 12380, 341,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_log_normal_distribution() { let dataset = Dataset::from_f64_vec(generate_log_normal_dataset(120.0, 0.5, 100)); evaluate_sketch(dataset); }
rust_cleaned_test_functions.jsonl/7529
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 13973, 41465, 368, 341, 286, 1077, 10337, 284, 39183, 486, 1499, 761, 21, 19, 13251, 3268, 13220, 5224, 13973, 18999, 7, 16, 17, 15, 13, 15, 11, 220, 15, 13, 20, 11, 220, 16, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_issuer_revoke_credential() { init!("ledger"); let rc = libindy_issuer_revoke_credential(get_temp_dir_path(Some(TEST_TAILS_FILE)).to_str().unwrap(), "", ""); assert!(rc.is_err()); let (_, _, cred_def_id, _, _, _, _, cred_id, rev_reg_id, cred_rev_id) = crea...
rust_cleaned_test_functions.jsonl/76651
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 296 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 66817, 1288, 7621, 666, 30320, 368, 341, 286, 2930, 17223, 50704, 797, 286, 1077, 10192, 284, 3051, 48990, 62, 66817, 1288, 7621, 666, 30320, 5433, 11771, 4334, 2638, 65405, 50320, 1139, 60806, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_withdraw_rent_exempt() { let recipient_address = solana_sdk::pubkey::new_rand(); let custodian_address = solana_sdk::pubkey::new_rand(); let stake_address = solana_sdk::pubkey::new_rand(); let rent = Rent::default(); let rent_exempt_reserve = rent.minimum_...
rust_cleaned_test_functions.jsonl/31645
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1814 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 7633, 83127, 95736, 368, 341, 286, 1077, 21713, 6744, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 16564, 63849, 6744, 284, 2048, 3362, 61783, 486, 9585, 792, 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_basic_struct_with_aliases() { let schema = r#" { "type":"record", "name":"TestBasicStructWithAliases", "aliases":["a", "b", "c"], "fields":[ { "name":"a", "type":"int" ...
rust_cleaned_test_functions.jsonl/27827
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 528 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 15126, 6615, 90233, 368, 341, 286, 1077, 10802, 284, 435, 2, 698, 286, 341, 310, 330, 1313, 3252, 8548, 756, 310, 330, 606, 3252, 2271, 15944, 9422, 2354, 95209, 756, 310, 330, 33924, 367...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_current_user_followed_artists() { let mut oauth = SpotifyOAuth::default().scope("user-follow-read").build(); match get_token(&mut oauth) { Some(token_info) => { let client_credential = SpotifyClientCredentials::default() .token_info(token_info) ...
rust_cleaned_test_functions.jsonl/79254
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11080, 3317, 43490, 291, 36932, 1671, 368, 341, 262, 1077, 5206, 46415, 284, 40537, 57850, 486, 2258, 1005, 4186, 445, 872, 92585, 28806, 1827, 5834, 543, 262, 2432, 633, 6458, 2099, 6984, 46415, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_env_var() { const CHARSET: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZ"; const RANDOM_LEN: u8 = 20; let mut rng = rand::thread_rng(); let random_env_var: String = (0..RANDOM_LEN) .map(|_| { let i = rng.gen_range(0, CHARSET.len()); ...
rust_cleaned_test_functions.jsonl/86498
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 15879, 4612, 368, 341, 286, 733, 97701, 25, 44590, 84, 23, 60, 284, 293, 1, 75902, 876, 286, 733, 82711, 15536, 25, 575, 23, 284, 220, 17, 15, 401, 286, 1077, 5206, 28422, 284, 10382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scalar_small() { for i in 0..50 { let gi = Fp::from(i as u32) * g0(); let mut gi_t: CurvePoint = Zero::zero(); for _ in 0..i { gi_t = gi_t + g0(); } assert_eq!(gi, gi_t); } }
rust_cleaned_test_functions.jsonl/98391
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41652, 31966, 368, 341, 286, 369, 600, 304, 220, 15, 496, 20, 15, 341, 310, 1077, 13535, 284, 434, 79, 486, 1499, 1956, 438, 575, 18, 17, 8, 353, 342, 15, 543, 310, 1077, 5206, 13535, 528, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_serialize_trace_type() { let trace_type_str = r#"["trace","vmTrace","stateDiff"]"#; let trace_type = vec![TraceType::Trace, TraceType::VmTrace, TraceType::StateDiff]; let se_trace_str: String = serde_json::to_string(&trace_type).unwrap(); assert_eq!(trace_type_st...
rust_cleaned_test_functions.jsonl/33415
{ "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, 88686, 23575, 1819, 368, 341, 286, 1077, 11655, 1819, 2895, 284, 435, 55543, 1183, 15067, 2198, 7338, 6550, 2198, 2454, 21751, 1341, 57676, 280, 286, 1077, 11655, 1819, 284, 7486, 20703, 6550, 929, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_trailing_plus() { #[rustfmt::skip] let tokens = quote!(impl Trait +); snapshot!(tokens as Type, @r###" Type::ImplTrait { bounds: [ Trait(TraitBound { modifier: None, path: Path { segments: [ ...
rust_cleaned_test_functions.jsonl/45555
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1053 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 14277, 28043, 368, 341, 262, 11506, 35788, 12501, 486, 20599, 921, 262, 1077, 11211, 284, 12641, 10297, 6383, 68301, 488, 317, 262, 16295, 10297, 30566, 438, 3990, 11, 569, 81, 14374, 698, 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_deserialize_too_large_footer() { let mut buf: Vec<u8> = vec![]; let footer_length = super::FOOTER_MAX_LEN + 1; BinarySerializable::serialize(&footer_length, &mut buf).unwrap(); BinarySerializable::serialize(&FOOTER_MAGIC_NUMBER, &mut buf).unwrap(); let o...
rust_cleaned_test_functions.jsonl/12339
{ "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, 15768, 9050, 2346, 78, 45228, 25966, 368, 341, 286, 1077, 5206, 6607, 25, 11312, 34837, 23, 29, 284, 7486, 0, 40901, 286, 1077, 23173, 5118, 284, 2256, 486, 3788, 1793, 640, 6806, 15536, 488, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_grep_W_n_context_header() { // git grep -n -W let fake_parent_grep_command = "/usr/local/bin/git --doesnt-matter grep --nor-this nor_this -- nor_this"; let _args = FakeParentArgs::once(fake_parent_grep_command); assert_eq!( parse_gre...
rust_cleaned_test_functions.jsonl/43047
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 341 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 1889, 9995, 2763, 1089, 8467, 8757, 368, 341, 286, 442, 16345, 20675, 481, 77, 481, 54, 198, 286, 1077, 12418, 15960, 1889, 9995, 10811, 4035, 310, 3521, 7063, 22270, 8749, 60590, 1177, 270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lifetimes_on_iter() { use crate::Change; fn diff_lines<'x, T>(old: &'x T, new: &'x T) -> Vec<Change<'x, T::Output>> where T: DiffableStrRef + ?Sized, { TextDiff::from_lines(old, new).iter_all_changes().collect() } let a = "1\n2\n3\n".to_string(); let...
rust_cleaned_test_functions.jsonl/83756
{ "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, 907, 333, 6889, 4470, 11723, 368, 341, 262, 990, 17717, 486, 4072, 401, 262, 5168, 3638, 18323, 18291, 87, 11, 350, 2235, 813, 25, 30136, 87, 350, 11, 501, 25, 30136, 87, 350, 8, 1464, 11312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_list_ok() { Tester::default().run("LIST").check(); Tester::default() .set_program(None, "one\n\nthree\n") .run("LIST") .expect_prints(["1 | one", "2 | ", "3 | three"]) .expect_program(None as Option<&str>, "one\n\nthree\n") ...
rust_cleaned_test_functions.jsonl/112741
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 439 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 19817, 368, 341, 286, 76816, 486, 2258, 1005, 6108, 445, 22852, 1827, 2028, 1428, 286, 76816, 486, 2258, 741, 310, 659, 746, 25096, 26717, 11, 330, 603, 1699, 1699, 27856, 1699, 1138, 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_resolve_module_4() { let (_temp_dir, deno_dir) = test_setup(); let module_specifier = "./util"; let containing_file_ = deno_dir.deps.join("unpkg.com/liltest@0.0.5/index.ts"); let containing_file = containing_file_.to_str().unwrap(); let expected_module_name = "http://unpkg.com/liltes...
rust_cleaned_test_functions.jsonl/42047
{ "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, 77291, 10750, 62, 19, 368, 341, 220, 1077, 5453, 3888, 4334, 11, 3371, 78, 4334, 8, 284, 1273, 21363, 1428, 220, 1077, 4688, 13594, 3049, 284, 5924, 1314, 876, 220, 1077, 8482, 2458, 62, 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_guild_prune_days() { assert!(!guild_prune_days(0)); assert!(guild_prune_days(1)); assert!(guild_prune_days(30)); assert!(!guild_prune_days(31)); assert!(!guild_prune_days(100)); }
rust_cleaned_test_functions.jsonl/29956
{ "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, 1889, 1498, 5294, 2886, 28353, 368, 341, 286, 2060, 0, 3471, 57877, 5294, 2886, 28353, 7, 15, 1106, 286, 2060, 10297, 57877, 5294, 2886, 28353, 7, 16, 1106, 286, 2060, 10297, 57877, 5294, 2886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_matches_with_trailing_optional_nodes() { allocations::record(|| { let language = get_language("javascript"); let query = Query::new( language, " (class_declaration name: (identifier) @class (class_heri...
rust_cleaned_test_functions.jsonl/25164
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 523 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 38344, 6615, 3547, 14277, 74644, 14896, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 14073, 3071, 286, 1077, 3239, 284, 11361, 486, 931, 1006, 310, 412...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_is_utf8() { // deny overlong encodings assert!(from_utf8(&[0xc0, 0x80]).is_err()); assert!(from_utf8(&[0xc0, 0xae]).is_err()); assert!(from_utf8(&[0xe0, 0x80, 0x80]).is_err()); assert!(from_utf8(&[0xe0, 0x80, 0xaf]).is_err()); assert!(from_utf8(&[0...
rust_cleaned_test_functions.jsonl/2449
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 621 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 39453, 23, 368, 341, 286, 442, 23101, 916, 4825, 3209, 58335, 198, 286, 2060, 10297, 1499, 39453, 23, 2099, 58, 15, 8148, 15, 11, 220, 15, 87, 23, 15, 10697, 285, 9266, 1423, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stdin_counts() { new_ucmd!() .args(&["-c"]).pipe_in_fixture(INPUT) .run().stdout_is_fixture("sorted-counts.expected"); }
rust_cleaned_test_functions.jsonl/23096
{ "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, 15656, 258, 25977, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 66, 45014, 13768, 1243, 74409, 57911, 340, 286, 659, 6108, 1005, 36358, 6892, 74409, 445, 28298, 26580, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_mem_reader() { let mut reader = Cursor::new(vec![0, 1, 2, 3, 4, 5, 6, 7]); let mut buf = []; assert_eq!(reader.read(&mut buf).unwrap(), 0); assert_eq!(reader.position(), 0); let mut buf = [0]; assert_eq!(reader.read(&mut buf).unwrap(), 1); ...
rust_cleaned_test_functions.jsonl/4224
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 408 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 22306, 368, 341, 286, 1077, 5206, 6604, 284, 28067, 486, 931, 25592, 20703, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 2558, 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_write_config() { let mut block = Block::default(); block.realize().unwrap(); let expect_config_space: [u8; 8] = [0x00, 020, 0x00, 0x00, 0x00, 0x00, 0x50, 0x00]; let mut read_config_space = [0u8; 8]; block.write_config(0, &expect_config_space).unwrap(...
rust_cleaned_test_functions.jsonl/102128
{ "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, 6443, 9165, 5332, 368, 341, 286, 1077, 5206, 2504, 284, 8362, 486, 2258, 543, 286, 2504, 29791, 551, 1005, 15454, 1428, 286, 1077, 1720, 5332, 14663, 25, 508, 84, 23, 26, 220, 23, 60, 284, 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_config_bad_toml() { let result: ConductorResult<ConductorConfig> = config_from_toml("this isn't toml"); assert_matches!(result, Err(ConductorError::DeserializationError(_))); }
rust_cleaned_test_functions.jsonl/121439
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 34199, 528, 316, 75, 368, 341, 286, 1077, 1102, 25, 1200, 35769, 2077, 27, 1109, 35769, 2648, 29, 284, 2193, 5673, 528, 316, 75, 445, 574, 4436, 944, 311, 1014, 797, 286, 2060, 38344, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_no_harness() { let p = project() .file( "Cargo.toml", r#" [package] name = "foo" version = "0.0.1" authors = [] [[bin]] name = "foo" test = false [[test]] ...
rust_cleaned_test_functions.jsonl/95364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 459 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 1523, 23518, 368, 341, 262, 1077, 281, 284, 2390, 741, 286, 659, 1192, 1006, 310, 330, 98228, 73494, 75, 756, 310, 435, 2, 698, 310, 508, 1722, 921, 310, 829, 284, 330, 7975, 698, 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_aggregate_commitment_for_vote_account_2() { let ancestors = vec![3, 4, 5, 7, 9, 11]; let mut commitment = HashMap::new(); let lamports = 5; let mut vote_state = VoteState::default(); let root = ancestors[2]; vote_state.root_slot = Some(root); ...
rust_cleaned_test_functions.jsonl/65259
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 533 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20587, 14240, 36346, 478, 5478, 54360, 13500, 62, 17, 368, 341, 286, 1077, 37518, 284, 7486, 20703, 18, 11, 220, 19, 11, 220, 20, 11, 220, 22, 11, 220, 24, 11, 220, 16, 16, 935, 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...
3
#[test] fn test_update_response_cookies() { let mut r = HttpResponse::Ok() .cookie(http::Cookie::new("original", "val100")) .finish(); r.add_cookie(&http::Cookie::new("cookie2", "val200")) .unwrap(); r.add_cookie(&http::Cookie::new("cookie2", "val250"...
rust_cleaned_test_functions.jsonl/80863
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 374 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 9655, 94158, 368, 341, 286, 1077, 5206, 435, 284, 17580, 486, 11578, 741, 310, 659, 16236, 19886, 486, 20616, 486, 931, 445, 9889, 497, 330, 831, 16, 15, 15, 5455, 310, 659, 30150, 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_slice_invert_bounds() { let rebase = Slice::new(vec![2, 3, 4, 5].into(), Bounds::from(vec![0])).unwrap(); assert_eq!(rebase.shape().to_vec(), vec![3, 4, 5]); assert_eq!( rebase.invert_bounds(Bounds::from(vec![ AxisBounds::In(0..3), ...
rust_cleaned_test_functions.jsonl/90311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 777 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26488, 1243, 1621, 36878, 368, 341, 286, 1077, 312, 3152, 284, 56476, 486, 931, 25592, 20703, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 936, 18122, 1507, 69130, 486, 1499, 25592, 20703, 15, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_netif_req() { let path = "/network-interfaces/id_1"; let net_id = String::from("id_1"); let json = "{ \"iface_id\": \"id_1\", \"state\": \"Attached\", \"host_dev_name\": \"foo\", \"guest_mac\": \"12:34:...
rust_cleaned_test_functions.jsonl/14374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 985 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 19722, 333, 17644, 368, 341, 286, 1077, 1815, 284, 3521, 17511, 12, 28965, 38146, 62, 16, 876, 286, 1077, 4179, 842, 284, 923, 486, 1499, 445, 307, 62, 16, 797, 286, 1077, 2951, 284, 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...
3
#[test] fn test_call_for_non_existing_method() { let gil = Python::acquire_gil(); let py = gil.python(); let a = py.eval("42", None, None).unwrap(); a.call_method0("__str__").unwrap(); // ok assert!(a.call_method("nonexistent_method", (1,), None).is_err()); assert...
rust_cleaned_test_functions.jsonl/57475
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13429, 5478, 21637, 62630, 9032, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 543, 286, 1077, 264, 284, 4510, 31710, 445, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cond_or_command_list() { assert_eq!( parse_condition_list(&b";X1,a"[..]), Done(&b""[..], vec!(bytecode!('a' as u8))) ); assert_eq!( parse_condition_list(&b";X2,ab"[..]), Done(&b""[..], vec!(bytecode!('a' as u8, 'b' as u8))) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/40125
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 709 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24433, 8734, 10811, 2019, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 27656, 2019, 2099, 65, 5123, 55, 16, 15012, 36864, 496, 17036, 286, 27357, 2099, 65, 3014, 95874, 1125, 7486, 10297, 3782, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { assert_eq!( "d7eba311421bbc9d3ada44709dd61534".parse(), Ok(Md5Checksum::from([ 0xd7, 0xeb, 0xa3, 0x11, 0x42, 0x1b, 0xbc, 0x9d, 0x3a, 0xda, 0x44, 0x70, 0x9d, 0xd6, 0x15, 0x34, ])) ); assert_eq!(...
rust_cleaned_test_functions.jsonl/95259
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 540 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 368, 341, 286, 2060, 10714, 33673, 310, 330, 67, 22, 70753, 18, 16, 16, 19, 17, 16, 84185, 24, 67, 18, 2584, 19, 19, 22, 15, 24, 631, 21, 16, 20, 18, 19, 3263, 6400, 3148, 310, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_error() { let mut hdr_prefix = new_hdr_prefix(); hdr_prefix.version_ihl = (5 << 4) | 5; assert_eq!( (&hdr_prefix_to_bytes(hdr_prefix)[..]).parse::<Ipv4Packet<_>>().unwrap_err(), ParseError::Format.into() ); ...
rust_cleaned_test_functions.jsonl/31690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 493 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 4096, 368, 341, 1789, 286, 1077, 5206, 36615, 13974, 284, 501, 28238, 13974, 543, 286, 36615, 13974, 19484, 5318, 17958, 284, 320, 20, 1115, 220, 19, 8, 760, 220, 20, 280, 286, 2060, 1071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_play_game() { let mut player1_deck = Deck::from_input("9 2 6 3 1"); let mut player2_deck = Deck::from_input("5 8 4 7 10"); play_game_of_combat(&mut player1_deck, &mut player2_deck); }
rust_cleaned_test_functions.jsonl/25649
{ "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, 22144, 18547, 368, 341, 262, 1077, 5206, 2781, 16, 83860, 284, 28416, 486, 1499, 5898, 445, 24, 220, 17, 220, 21, 220, 18, 220, 16, 797, 262, 1077, 5206, 2781, 17, 83860, 284, 28416, 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
#[test] fn test_str_default() { use std::default::Default; fn t<S: Default + AsRef<str>>() { let s: S = Default::default(); assert_eq!(s.as_ref(), ""); } t::<&str>(); t::<String>(); }
rust_cleaned_test_functions.jsonl/17649
{ "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, 2895, 9993, 368, 341, 262, 990, 1460, 486, 2258, 486, 3675, 401, 262, 5168, 259, 18858, 25, 7899, 488, 1634, 3945, 27, 495, 61586, 341, 286, 1077, 274, 25, 328, 284, 7899, 486, 2258, 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