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_extract_dart_pub_version() -> io::Result<()> { let config_name = "pubspec.yaml"; let config_content = " name: starship version: 1.0.0 environment: sdk: '>=2.15.0 <3.0.0' "; let project_dir = create_project_dir()?; fill_config(&project_dir, config_name, Some(con...
rust_cleaned_test_functions.jsonl/100142
{ "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, 39123, 814, 471, 34014, 9438, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 2193, 1269, 284, 330, 9585, 9535, 33406, 876, 286, 1077, 2193, 7495, 284, 6228, 606, 25, 6774, 5270, 198, 4366, 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...
3
#[test] fn test_address_invalid_qualifier() { let address = gen_random_base58_address(); let invalid_address = format!("pat:sov:{}", address); let result = validate_address(&invalid_address); let error = result.unwrap_err(); assert_eq!(ErrorCode::CommonInvalidStructure, e...
rust_cleaned_test_functions.jsonl/72539
{ "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, 6744, 31433, 64391, 3049, 368, 341, 286, 1077, 2621, 284, 4081, 22644, 7651, 20, 23, 6744, 543, 286, 1077, 8318, 6744, 284, 3561, 17223, 4676, 25, 84293, 25, 42351, 2621, 317, 286, 1077, 1102, 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_rev_iter() { let mut m = TreeSet::new(); assert!(m.insert(3i)); assert!(m.insert(0)); assert!(m.insert(4)); assert!(m.insert(2)); assert!(m.insert(1)); let mut n = 4; for x in m.rev_iter() { assert_eq!(*x, n); ...
rust_cleaned_test_functions.jsonl/66378
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38082, 11723, 368, 341, 286, 1077, 5206, 296, 284, 90427, 486, 931, 1428, 286, 2060, 10297, 76, 7030, 7, 18, 72, 1106, 286, 2060, 10297, 76, 7030, 7, 15, 1106, 286, 2060, 10297, 76, 7030, 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...
2
#[test] fn test_external_transaction_signer() { let (_swarm, mut client_proxy) = setup_swarm_and_client_proxy(1, 0); // generate key pair let mut seed: [u8; 32] = [0u8; 32]; seed[..4].copy_from_slice(&[1, 2, 3, 4]); let key_pair = compat::generate_keypair(None); let private_key = key_pa...
rust_cleaned_test_functions.jsonl/32476
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1515 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47432, 28884, 11172, 261, 368, 341, 262, 1077, 5453, 2280, 2178, 11, 5206, 2943, 29712, 8, 284, 6505, 32581, 2178, 8378, 8179, 29712, 7, 16, 11, 220, 15, 626, 262, 442, 6923, 1376, 6716, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_unlink_directory() { let dir = "test_unlink_empty_directory"; mkdir(dir); let result = run(Command::new(PROGNAME).arg(dir)); assert_eq!(result.stderr, "unlink: error: cannot unlink 'test_unlink_empty_directory': Not a regular file or symlink\n"); assert!(!result.suc...
rust_cleaned_test_functions.jsonl/81881
{ "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, 4907, 2080, 14846, 368, 341, 262, 1077, 5419, 284, 330, 1944, 4907, 2080, 15124, 14846, 3302, 262, 30073, 14161, 626, 262, 1077, 1102, 284, 1598, 41422, 486, 931, 55681, 38, 7535, 568, 858, 14161,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_address() { let count = Arc::new(AtomicUsize::new(0)); let count2 = Arc::clone(&count); let sys = System::new(); sys.block_on(async move { let arbiter = Arbiter::new(); let addr = MyActor(count2).start(); let addr2 = addr.clone(); let addr3 = add...
rust_cleaned_test_functions.jsonl/82124
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 372 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6744, 368, 341, 262, 1077, 1760, 284, 19689, 486, 931, 7, 65857, 52, 2141, 486, 931, 7, 15, 1106, 262, 1077, 1760, 17, 284, 19689, 486, 19982, 2099, 1830, 626, 262, 1077, 5708, 284, 739, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_suffixes_exhausted() { new_ucmd!() .args(&["-b", "1", "-a", "1", "asciilowercase.txt"]) .fails() .stderr_only("split: output file suffixes exhausted"); }
rust_cleaned_test_functions.jsonl/25869
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37151, 288, 2702, 15074, 291, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 65, 497, 330, 16, 497, 6523, 64, 497, 330, 16, 497, 330, 5061, 72, 321, 1202, 5638, 390...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_invalid_trailing_octet() { const GOOD_CODE: &'static str = "urs7wdsq9jkyoxu8oxrf16kj7o16qb5"; // final octet was changed to a "9" - which is invalid for 128 bits const BAD_CODE: &'static str = "urs7-wdsq-9jky-oxu8-oxrf-16kj-7912-222"; const VALUE: &'static [u8] = &[ ...
rust_cleaned_test_functions.jsonl/114259
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 3547, 14277, 70135, 295, 368, 341, 262, 733, 21722, 10020, 25, 30136, 1978, 607, 284, 330, 1723, 22, 86, 5356, 80, 24, 73, 7891, 5131, 84, 23, 5131, 8052, 16, 21, 92697, 22, 78, 16, 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_equal_hashes_externs() { // Put some content in the extern rlibs so we can verify that the content hashes are // used in the right order. fn mk_files(tempdir: &Path) -> Result<()> { create_file(tempdir, "a.rlib", |mut f| f.write_all(b"this is a.rlib"))?; ...
rust_cleaned_test_functions.jsonl/8173
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11478, 91616, 62, 4301, 82, 368, 341, 286, 442, 10224, 1045, 2213, 304, 279, 15637, 435, 35719, 773, 582, 646, 10146, 429, 279, 2213, 50257, 525, 198, 286, 442, 1483, 304, 279, 1290, 1973, 624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dir_exists_absolute_fail() { let e = get_current_exe().ok(); e.and_then(|p| { assert_eq!(dir_exists(&p), false); Some(true) }); }
rust_cleaned_test_functions.jsonl/18997
{ "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, 4334, 9766, 50874, 22121, 368, 341, 286, 1077, 384, 284, 633, 11080, 76074, 1005, 562, 543, 286, 384, 34724, 68367, 22428, 79, 91, 341, 310, 2060, 10714, 10297, 3741, 9766, 2099, 79, 701, 895, 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
#[test] fn test_build_upload_policy_with_overwritable() -> Result<(), Box<dyn Error>> { let policy = UploadPolicyBuilder::new_policy_for_object("test_bucket", "test", &Config::default()) .overwritable()? .build(); assert_eq!(policy.is_insert_only(), false); assert...
rust_cleaned_test_functions.jsonl/2351
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 225 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 21691, 22773, 6615, 15431, 86, 22533, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 286, 1077, 4842, 284, 24996, 13825, 3297, 486, 931, 22773, 5478, 5314, 445, 1944, 38749, 497, 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...
3
#[test] fn test_copy_from() { let mut a = [1,2,3,4,5]; let b = [6,7,8]; assert_eq!(a.copy_from(b), 3); assert!(a == [6,7,8,4,5]); let mut c = [7,2,8,1]; let d = [3,1,4,1,5,9]; assert_eq!(c.copy_from(d), 4); assert!(c == [3,1,4,1]); }
rust_cleaned_test_functions.jsonl/75628
{ "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, 16096, 5673, 368, 341, 286, 1077, 5206, 264, 284, 508, 16, 11, 17, 11, 18, 11, 19, 11, 20, 935, 286, 1077, 293, 284, 508, 21, 11, 22, 11, 23, 935, 286, 2060, 10714, 10297, 64, 12232, 5673,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_send_dispatch() { let mut socket = socket(buffer(0), buffer(1)); let checksum = ChecksumCapabilities::default(); assert_eq!( socket.dispatch(&Context::DUMMY, |_| unreachable!()), Err(Error::Exhausted) ); // This buffer is too long...
rust_cleaned_test_functions.jsonl/99229
{ "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, 13565, 42991, 368, 341, 286, 1077, 5206, 7575, 284, 7575, 12584, 7, 15, 701, 4147, 7, 16, 1106, 286, 1077, 32529, 284, 4248, 1242, 55315, 486, 2258, 1428, 286, 2060, 10714, 33673, 310, 7575, 199...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unique_id() { let input = ["foo", "examples", "examples", "method.into_iter","examples", "method.into_iter", "foo", "main", "search", "methods", "examples", "method.into_iter", "assoc_type.Item", "assoc_type.Item"]; let expected = ["foo", "examples", "ex...
rust_cleaned_test_functions.jsonl/45112
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 395 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21218, 842, 368, 341, 262, 1077, 1946, 284, 4383, 7975, 497, 330, 51668, 497, 330, 51668, 497, 330, 4393, 39860, 11723, 2198, 51668, 756, 338, 330, 4393, 39860, 11723, 497, 330, 7975, 497, 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...
2
#[test] fn test_size() { assert_size!(MessageType, 1); assert_size!(Body, 12); assert_size!(Subject, 12); assert_size!(Thread, 12); assert_size!(Message, 144); }
rust_cleaned_test_functions.jsonl/112968
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2368, 368, 341, 286, 2060, 2368, 10297, 82107, 11, 220, 16, 317, 286, 2060, 2368, 10297, 5444, 11, 220, 16, 17, 317, 286, 2060, 2368, 10297, 13019, 11, 220, 16, 17, 317, 286, 2060, 2368, 10297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_is_i64(){ let json_value = from_str("-12").unwrap(); assert!(json_value.is_i64()); let json_value = from_str("12").unwrap(); assert!(!json_value.is_i64()); let json_value = from_str("12.0").unwrap(); assert!(!json_value.is_i64()); }
rust_cleaned_test_functions.jsonl/6572
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 5318, 21, 19, 3032, 286, 1077, 2951, 3142, 284, 504, 2895, 13645, 16, 17, 1827, 15454, 543, 286, 2060, 10297, 2236, 3142, 2079, 5318, 21, 19, 5231, 286, 1077, 2951, 3142, 284, 504, 2895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_doc_comment_vs_tooling_directives() -> Result<()> { let ir = ir_from_cc( r#" // Doc comment for `f1` // NOLINTNEXTLINE(google3-readability-pass-trivial-by-value) void f1(); // Doc comment for `f2` // // NOLINT void f2(); ...
rust_cleaned_test_functions.jsonl/37168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 774 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18869, 17638, 42434, 22785, 287, 32871, 1886, 368, 1464, 5714, 71698, 341, 262, 1077, 6216, 284, 6216, 5673, 28955, 1006, 286, 435, 55543, 442, 21709, 3980, 369, 1565, 69, 16, 3989, 310, 442, 451,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_iter_timestamps() { let mut iter = Timestamp::iter("some <t:123> roles <t:456:t>"); assert_eq!(Timestamp::new(123, None), iter.next().unwrap().0); assert_eq!( Timestamp::new(456, Some(TimestampStyle::ShortTime)), iter.next().unwrap().0 ); ...
rust_cleaned_test_functions.jsonl/99688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 23073, 82, 368, 341, 286, 1077, 5206, 5367, 284, 32758, 486, 2015, 445, 14689, 366, 83, 25, 16, 17, 18, 29, 12783, 366, 83, 25, 19, 20, 21, 60777, 15084, 286, 2060, 10714, 10297, 20812,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_step_ignore_config() { setup_for_test(); // a raft that cannot make progress let mut r = new_test_raft(1, vec![1, 2], 10, 1, new_storage()); r.become_candidate(); r.become_leader(); let mut m = new_message(1, 1, MessageType::MsgPropose, 0); let mut e = Entry::new(); ...
rust_cleaned_test_functions.jsonl/107151
{ "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, 11946, 58493, 5332, 368, 341, 262, 6505, 5478, 4452, 543, 262, 442, 264, 52455, 429, 4157, 1281, 5098, 198, 262, 1077, 5206, 435, 284, 501, 4452, 62, 2944, 7, 16, 11, 7486, 20703, 16, 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_emit_event() { let toml_str = include_str!("./genesis_services.toml"); let genesis: Genesis = toml::from_str(toml_str).unwrap(); let db = Arc::new(MemoryDB::new(false)); let root = ServiceExecutor::create_genesis( genesis.services, Arc::clone(&db), Arc::...
rust_cleaned_test_functions.jsonl/50148
{ "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, 69082, 6748, 368, 341, 262, 1077, 311, 1014, 2895, 284, 2924, 2895, 0, 13988, 77894, 39846, 73494, 75, 797, 262, 1077, 59366, 25, 40788, 284, 311, 1014, 486, 1499, 2895, 1155, 316, 75, 2895, 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_cancel() { let semaphore = Semaphore::new(1); let mut a1 = TestFuture::new(&semaphore, 2); assert!(a1.poll().is_none()); let mut a2 = TestFuture::new(&semaphore, 1); assert!(a2.poll().is_none()); assert_eq!(a1.count(), 0); assert_eq!(a2.count(), 0); mem::drop(a1);...
rust_cleaned_test_functions.jsonl/84377
{ "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, 28895, 368, 341, 262, 1077, 55918, 284, 87920, 486, 931, 7, 16, 317, 262, 1077, 5206, 264, 16, 284, 3393, 24206, 486, 931, 2099, 6998, 25545, 11, 220, 17, 317, 262, 2060, 10297, 64, 16, 41477,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_variables_mutated_in_blocks() { let cfg = { let mut cfg = ControlFlowGraph::new(); let block0 = cfg.new_block(); block0.assign(variable("x"), expr_const(1)).unwrap(); let block1 = cfg.new_block(); block1.load(variable("y"), va...
rust_cleaned_test_functions.jsonl/13491
{ "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, 28182, 29523, 657, 1243, 25201, 368, 341, 286, 1077, 13286, 284, 341, 310, 1077, 5206, 13286, 284, 7779, 18878, 11212, 486, 931, 1428, 310, 1077, 2504, 15, 284, 13286, 4618, 7113, 543, 310, 2504, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_peek_non_space() { let mut t = make_parser(); t.next(); let i = t.next().unwrap(); let typ = i.typ; assert_eq!(typ, ItemType::ItemLeftDelim); assert_eq!( t.peek_non_space_must("").and_then(|n| Ok(&n.typ)), Ok(&ItemType::Item...
rust_cleaned_test_functions.jsonl/8628
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 29107, 21637, 14663, 368, 341, 286, 1077, 5206, 259, 284, 1281, 18517, 543, 286, 259, 4529, 543, 286, 1077, 600, 284, 259, 4529, 1005, 15454, 543, 286, 1077, 3582, 284, 600, 49286, 280, 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_report_attempts_to_succeed() { block_on(async { let config = config_generator(); let mut state_machine = StateMachine::new( StubPolicyEngine, StubHttpRequest, StubInstaller { should_fail: true }, &con...
rust_cleaned_test_functions.jsonl/94239
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14813, 79490, 2346, 643, 29264, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2193, 284, 2193, 25813, 543, 310, 1077, 5206, 1584, 38695, 284, 3234, 21605, 486, 931, 1006, 394, 66611, 13825, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_consensus_inbound_rpc() { let (mut consensus_tx, consensus_rx) = channel::new_test(8); let mut stream = ConsensusNetworkEvents::new(consensus_rx); // build rpc request let req_msg = RequestBlock::new(); let mut req_msg_enum = ConsensusMsg::new(); ...
rust_cleaned_test_functions.jsonl/52117
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 514 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31971, 13626, 1243, 10891, 60799, 368, 341, 286, 1077, 320, 6984, 23869, 17805, 11, 23869, 24330, 8, 284, 5496, 486, 931, 4452, 7, 23, 317, 286, 1077, 5206, 4269, 284, 7292, 13626, 12320, 7900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nonnull_array_with_offset_is_null() { let a = Primitive::from_slice(vec![1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1]) .to(DataType::Int32); let a = a.slice(8, 4); let res = is_null(&a); let expected = BooleanArray::from_slice(vec![false, false, fals...
rust_cleaned_test_functions.jsonl/80390
{ "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, 21637, 2921, 3858, 6615, 6917, 6892, 15162, 368, 341, 286, 1077, 264, 284, 51460, 486, 1499, 26488, 25592, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 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_host_slaac_address_deprecate_while_tentative() { // Invalidate an address right away if we attempt to deprecate a // tentative address. let config = Ipv6::DUMMY_CONFIG; let mut ctx = DummyEventDispatcherBuilder::default().build::<DummyEventDispatcher>(); ...
rust_cleaned_test_functions.jsonl/82832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2573 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12848, 643, 4260, 580, 6744, 2259, 10645, 349, 86069, 528, 306, 1388, 368, 341, 286, 442, 95246, 458, 2621, 1290, 3123, 421, 582, 4774, 311, 409, 10645, 349, 264, 198, 286, 442, 75120, 2621, 382...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_months() { assert_eq!(months("1 year"), Ok(12)); assert_eq!(months("0 months"), Ok(0)); assert_eq!(months("0 month"), Ok(0)); assert_eq!(months("0 mo"), Ok(0)); assert_eq!(months("0months"), Ok(0)); assert_eq!(months("0month"), Ok(0)); asse...
rust_cleaned_test_functions.jsonl/71122
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 396 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88462, 368, 341, 286, 2060, 10714, 10297, 49714, 445, 16, 1042, 3975, 7622, 7, 16, 17, 1106, 286, 2060, 10714, 10297, 49714, 445, 15, 3951, 3975, 7622, 7, 15, 1106, 286, 2060, 10714, 10297, 4971...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sahadeva() { run_test( &TEST_DATA, "harfbuzz/good-sahadeva.hi", "devanagari/sahadeva.ttf", &[JOINER_GLYPH_INDEX], 90, ); }
rust_cleaned_test_functions.jsonl/91144
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 1466, 1021, 6586, 368, 341, 394, 1598, 4452, 1006, 503, 609, 10033, 7896, 345, 503, 330, 12982, 10798, 8889, 4846, 1386, 1331, 1466, 1021, 6586, 860, 72, 756, 503, 330, 3583, 276, 351, 2780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_format_next_arg_invalid() { parse_format_flags_str(&["od", "--format", "-v"]).unwrap_err(); parse_format_flags_str(&["od", "--format"]).unwrap_err(); parse_format_flags_str(&["od", "-t", "-v"]).unwrap_err(); parse_format_flags_str(&["od", "-t"]).unwrap_err(); }
rust_cleaned_test_functions.jsonl/78707
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 11257, 6057, 31433, 368, 341, 262, 4715, 8955, 14130, 2895, 2099, 1183, 347, 497, 14482, 2243, 497, 6523, 85, 45014, 15454, 9266, 543, 262, 4715, 8955, 14130, 2895, 2099, 1183, 347, 497, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_clear() { let mut cache: LruCache<int, int> = LruCache::new(2); cache.put(1, 10); cache.put(2, 20); cache.clear(); assert!(cache.get(&1).is_none()); assert!(cache.get(&2).is_none()); assert_eq!(cache.to_str(), "{}".to_string()); }
rust_cleaned_test_functions.jsonl/30784
{ "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, 21811, 368, 341, 286, 1077, 5206, 6500, 25, 444, 2672, 8233, 4159, 11, 526, 29, 284, 444, 2672, 8233, 486, 931, 7, 17, 317, 286, 6500, 3597, 7, 16, 11, 220, 16, 15, 317, 286, 6500, 3597, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invalid_serde_input() { let data = r#" { "array": [1, "hey"] }"#; let v = serde_json::from_str(data).unwrap(); let dir = TempDir::new("storage_dir").unwrap(); let mut storage = SimplePayloadStorage::open(dir.path()).unwrap(); s...
rust_cleaned_test_functions.jsonl/75895
{ "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, 31433, 75861, 450, 5898, 368, 341, 286, 1077, 821, 284, 435, 2, 698, 286, 341, 310, 330, 1653, 788, 508, 16, 11, 330, 35561, 7026, 286, 335, 57676, 401, 286, 1077, 348, 284, 61570, 9455, 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_vec_list_front() { let mut list = VecList::new(); assert_eq!(list.front(), None); let index_1 = list.push_front(0); assert_eq!(list.front(), Some(&0)); let index_2 = list.push_front(1); assert_eq!(list.front(), Some(&1)); list.remove(ind...
rust_cleaned_test_functions.jsonl/11522
{ "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, 13251, 2019, 22926, 368, 341, 286, 1077, 5206, 1140, 284, 11312, 852, 486, 931, 543, 286, 2060, 10714, 10297, 1607, 23445, 1507, 2240, 626, 286, 1077, 1922, 62, 16, 284, 1140, 2552, 22926, 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_discard() { let db = Connection::open_in_memory().unwrap(); let cache = &db.cache; let sql = "PRAGMA schema_version"; { let mut stmt = db.prepare_cached(sql).unwrap(); assert_eq!(0, cache.len()); assert_eq!(0, stmt.query_row(&[...
rust_cleaned_test_functions.jsonl/54424
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37745, 567, 368, 341, 286, 1077, 2927, 284, 11032, 486, 2508, 1243, 19195, 1005, 15454, 543, 286, 1077, 6500, 284, 609, 1999, 20087, 401, 286, 1077, 5704, 284, 330, 6480, 76168, 10802, 9438, 876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_header_ids() { let vcf = Reader::from_path(&"test/test_string.vcf").expect("Error opening file."); let header = &vcf.header(); use crate::bcf::header::Id; assert_eq!(header.id_to_name(Id(4)), b"GT"); assert_eq!(header.name_to_id(b"GT").unwrap(), Id(4)); ...
rust_cleaned_test_functions.jsonl/8767
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8757, 8077, 368, 341, 286, 1077, 348, 9792, 284, 25166, 486, 1499, 2638, 2099, 1, 1944, 12697, 3904, 3133, 9792, 1827, 17119, 445, 1454, 8568, 1034, 7320, 286, 1077, 4247, 284, 609, 7362, 69, 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_memory_buffer() { let platforms = get_platforms().unwrap(); assert!(0 < platforms.len()); // Get the first platform let platform = &platforms[0]; let devices = platform.get_devices(CL_DEVICE_TYPE_GPU).unwrap(); assert!(0 < devices.len()); ...
rust_cleaned_test_functions.jsonl/13578
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1025 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19195, 7776, 368, 341, 286, 1077, 15409, 284, 633, 34260, 82, 1005, 15454, 543, 286, 2060, 10297, 15, 366, 15409, 19406, 5231, 286, 442, 2126, 279, 1156, 5339, 198, 286, 1077, 5339, 284, 609, 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...
2
#[test] fn test_from() { let fake_rev = Review { recommendationid: 0, author: ReviewAuthor { steamid: 0, num_games_owned: 1337, num_reviews: 5, playtime_forever: Minutes(9001), playtime_last_two_weeks...
rust_cleaned_test_functions.jsonl/70026
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 601 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 368, 341, 286, 1077, 12418, 38082, 284, 10294, 341, 310, 27682, 307, 25, 220, 15, 345, 310, 3150, 25, 10294, 7133, 341, 394, 20312, 307, 25, 220, 15, 345, 394, 1629, 67370, 51973, 25, 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_new_null_value() { let null_value = Value::new_null(); assert_eq!(null_value.body, vec![]); assert_eq!(null_value.value_type, ValueType::Null); }
rust_cleaned_test_functions.jsonl/41643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 15162, 3142, 368, 341, 286, 1077, 845, 3142, 284, 5162, 486, 931, 15162, 543, 286, 2060, 10714, 10297, 2921, 3142, 5079, 11, 7486, 0, 56703, 286, 2060, 10714, 10297, 2921, 3142, 2824, 1819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_get_credential_def() { init!("ledger"); let (_, _, cred_def_id, cred_def_json, _, _) = ::utils::libindy::anoncreds::tests::create_and_store_credential_def(::utils::constants::DEFAULT_SCHEMA_ATTRS, false); let (id, r_cred_def_json) = ::utils::libindy::anoncreds::get_cred_...
rust_cleaned_test_functions.jsonl/64620
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 666, 30320, 7844, 368, 341, 286, 2930, 17223, 50704, 797, 286, 1077, 39464, 8358, 4187, 7844, 842, 11, 4187, 7844, 9455, 11, 8358, 27439, 284, 3504, 6031, 486, 2740, 48990, 486, 58910, 85734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rewrite_expressions_plan() -> Result<()> { use pretty_assertions::assert_eq; let source = Test::create().generate_source_plan_for_test(10000)?; let plan = PlanBuilder::from(&source) .project(&[col("number").alias("x"), col("number").alias("y")])? .filter(col("x").eq(...
rust_cleaned_test_functions.jsonl/36070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74052, 2702, 39873, 26564, 368, 1464, 5714, 71698, 341, 262, 990, 5020, 16553, 908, 486, 2207, 10714, 401, 262, 1077, 2530, 284, 3393, 486, 3182, 1005, 19366, 10347, 26564, 5478, 4452, 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...
7
#[test] fn test_lazy_groupby_filter() -> Result<()> { let df = df! { "a" => ["a", "a", "a", "b", "b", "c"], "b" => [1, 2, 3, 4, 5, 6] }?; // We test if the filters work in the groupby context // and that the aggregations can deal with empty sets let out = df .lazy()...
rust_cleaned_test_functions.jsonl/144
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 778 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 6288, 1694, 8727, 368, 1464, 5714, 71698, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bogus_formatted_check() { match read_single_check("checks/tests/test11.json") { Some(_) => assert!(false), None => assert!(true), } }
rust_cleaned_test_functions.jsonl/80340
{ "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, 880, 538, 355, 86610, 7200, 368, 341, 286, 2432, 1349, 19487, 7200, 445, 49383, 62468, 12697, 16, 16, 4323, 899, 341, 310, 4329, 48139, 589, 2060, 10297, 3849, 1326, 310, 2240, 589, 2060, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
#[test] fn test_parse_float() { let res = "Manila,2001,bar".parse::<Climate>(); assert!(matches!(res, Err(ParseClimateError::ParseFloat(_)))); let err = res.unwrap_err(); if let ParseClimateError::ParseFloat(ref inner) = err { assert_eq!( err.to_string...
rust_cleaned_test_functions.jsonl/10208
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 241 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 17586, 368, 341, 286, 1077, 592, 284, 330, 1658, 10524, 11, 17, 15, 15, 16, 11, 2257, 3263, 6400, 27638, 82046, 3913, 286, 2060, 10297, 19914, 10297, 416, 11, 15495, 71812, 82046, 1454, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parses_array() { parses_to! { parser: AwsGoEventsParser, input: "[]bool", rule: Rule::array, tokens: [ array(0, 6, [ primitive(2, 6, [ boolean(2, 6)...
rust_cleaned_test_functions.jsonl/8180
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 520 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77113, 288, 3858, 368, 341, 310, 70835, 2346, 0, 341, 394, 6729, 25, 40083, 10850, 7900, 6570, 345, 394, 1946, 25, 330, 1294, 2641, 756, 394, 5912, 25, 18100, 486, 1653, 345, 394, 11211, 25, 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_add_stake_ok_no_emission() { new_test_ext().execute_with(|| { let hotkey_account_id = 533453; let coldkey_account_id = 55453; // Subscribe neuron assert_ok!(Subtensor::set_registeration_key(<<Test as Config>::Origin>::root(), 0)); let neuron = register_ok_neuron(0, 0, hotkey_account_...
rust_cleaned_test_functions.jsonl/17150
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 420 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 1261, 726, 19817, 6536, 22504, 7558, 368, 341, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 197, 10217, 4017, 792, 13500, 842, 284, 220, 20, 18, 18, 19, 20, 18, 280, 197, 10217, 9255, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_remove_index_oob2() { let mut a = array![[10], [4], [1]]; a.remove_index(Axis(1), 0); assert_eq!(a.shape(), &[3, 0]); assert_eq!(a, array![[], [], []]); a.remove_index(Axis(0), 1); // ok assert_eq!(a, array![[], ...
rust_cleaned_test_functions.jsonl/92643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 3560, 14179, 674, 17, 368, 341, 262, 1077, 5206, 264, 284, 1334, 0, 15505, 16, 15, 1125, 508, 19, 1125, 508, 16, 13204, 262, 264, 4850, 3560, 4346, 7191, 7, 16, 701, 220, 15, 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_validate_max_gas_price_below_bounds() { let vm_validator = TestValidator::new(); let address = account_config::libra_root_address(); let program = encode_peer_to_peer_with_metadata_script(coin1_tmp_tag(), address, 100, vec![], vec![]); let transaction = transaction_test_...
rust_cleaned_test_functions.jsonl/69503
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 412 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 6345, 82116, 9040, 82750, 36878, 368, 341, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 1428, 262, 1077, 2621, 284, 2692, 5332, 486, 2740, 956, 12993, 6744, 543, 262, 1077, 2025, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_partial_eq_impl() { let path_1 = Path::new("aaaa"); let name_1 = Name::new( &path_1, FileType::File { uid: false, exec: false, }, ); let path_2 = Path::new("aaaa"); let name_2 = Name::new...
rust_cleaned_test_functions.jsonl/967
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 315 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 52068, 10714, 21007, 368, 341, 286, 1077, 1815, 62, 16, 284, 7933, 486, 931, 445, 28458, 797, 286, 1077, 829, 62, 16, 284, 3988, 486, 931, 1006, 310, 609, 2343, 62, 16, 345, 310, 93238, 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_build_messages_dump_db() { let client = RpcClient::new_mock("mock_client".to_string()); let dir = tempdir().unwrap(); let db_file = dir .path() .join("build_messages.db") .to_str() .unwrap() .to_string(); ...
rust_cleaned_test_functions.jsonl/50199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2026 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 23428, 18296, 8685, 368, 341, 286, 1077, 2943, 284, 79961, 2959, 486, 931, 34134, 445, 16712, 8179, 3263, 983, 3904, 1423, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ls_long_formats() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; at.touch(&at.plus_as_string("test-long-formats")); let re_three = Regex::new(r"[xrw-]{9} \d ([-0-9_a-z]+ ){3}0").unwrap(); #[cfg(unix)] let re_three_num = Regex::new(r"[xrw-]...
rust_cleaned_test_functions.jsonl/71200
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53174, 17799, 68351, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 280, 262, 518, 42129, 2099, 266, 60540, 11898, 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...
4
#[test] fn test_violetabft_causet_storage_get_after_lease() { let (cluster, causet_storage, ctx) = new_violetabft_causet_storage(); let key = b"key"; let value = b"value"; assert_eq!( causet_storage .raw_get(ctx.clone(), "".to_string(), key.to_vec()) .unwrap(), ...
rust_cleaned_test_functions.jsonl/55605
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 484 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 30912, 370, 723, 666, 11855, 295, 23310, 3062, 19844, 62, 1623, 368, 341, 262, 1077, 320, 18855, 11, 2162, 18187, 23310, 11, 5635, 8, 284, 501, 2273, 30912, 370, 723, 666, 11855, 295, 2331...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_u64() { let start_addr1 = GuestAddress(0x0); let start_addr2 = GuestAddress(0x1000); let bad_addr = GuestAddress(0x2001); let bad_addr2 = GuestAddress(0x1ffc); let max_addr = GuestAddress(0x2000); let gm = GuestMemoryMmap::new(&[(start_addr1,...
rust_cleaned_test_functions.jsonl/72073
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 668 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 7300, 21, 19, 368, 341, 286, 1077, 1191, 7387, 16, 284, 26215, 4286, 7, 15, 87, 15, 317, 286, 1077, 1191, 7387, 17, 284, 26215, 4286, 7, 15, 87, 16, 15, 15, 15, 317, 286, 1077, 3873,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_finished() { let yes: Vec<BTreeSet<ScienceThing>> = vec![ BTreeSet::new(), [gen("a"), chip("a")].iter().cloned().collect(), ]; let no: Vec<BTreeSet<ScienceThing>> = vec![ [gen("a"), chip("a")].iter().cloned().collect(), BTreeSet::new(), ]; assert_eq!(true, is_finished(&yes)); as...
rust_cleaned_test_functions.jsonl/55910
{ "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, 6892, 56423, 368, 341, 10217, 9834, 25, 11312, 32519, 6533, 1649, 27, 35400, 52940, 2452, 284, 7486, 90515, 197, 12791, 6533, 1649, 486, 931, 3148, 197, 197, 58, 4370, 445, 64, 3975, 16392, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_word_bigram() { use super::tokenizer::Words; let s = "abc, d e."; let mut ngram = s.words().ngram(2); assert_eq!(Some(vec!["abc", "d"]), ngram.next()); assert_eq!(Some(vec!["d", "e"]), ngram.next()); assert_eq!(None, ngram.next()); }
rust_cleaned_test_functions.jsonl/290
{ "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, 13533, 36386, 2396, 368, 341, 262, 990, 2256, 486, 85593, 486, 23489, 280, 262, 1077, 274, 220, 284, 330, 13683, 11, 294, 384, 15297, 262, 1077, 5206, 308, 1520, 284, 274, 55912, 1005, 77, 1520,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bytewise_single_tab_should_not_add_extra_newline() { new_ucmd!() .args(&["-w1", "-b"]) .pipe_in("\t") .succeeds() .stdout_is("\t"); }
rust_cleaned_test_functions.jsonl/23308
{ "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, 3710, 83, 24350, 19487, 17344, 43378, 7913, 2891, 31858, 5921, 1056, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 86, 16, 497, 6523, 65, 14108, 286, 659, 13768, 1243,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_crawler_google() { let parser = Parser::new(); match parser.parse(r#"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"#) { None => { panic!(r#"invalid parse. "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.h...
rust_cleaned_test_functions.jsonl/1473
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 33369, 47155, 368, 341, 286, 1077, 6729, 284, 21102, 486, 931, 1428, 286, 2432, 6729, 4632, 2601, 55543, 40030, 14, 20, 13, 15, 320, 34842, 26, 5085, 6331, 14, 17, 13, 16, 26, 488, 1254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_access_path_protobuf_conversion_error() { let mut proto_ap = crate::proto::access_path::AccessPath::new(); // Not a valid address. proto_ap.set_address(vec![0x12, 0x34]); proto_ap.set_path(b"/foo/bar".to_vec()); assert!(AccessPath::from_proto(proto_ap).is_err()); }
rust_cleaned_test_functions.jsonl/54205
{ "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, 12759, 2638, 22357, 18464, 64132, 4096, 368, 341, 262, 1077, 5206, 18433, 21093, 284, 17717, 486, 15110, 486, 5211, 2638, 486, 6054, 1820, 486, 931, 543, 262, 442, 2806, 264, 2697, 2621, 624, 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_pri_composes() { assert_eq!( compose_pri(SyslogFacility::LOG_LOCAL4, SyslogSeverity::SEV_NOTICE), 165 ); }
rust_cleaned_test_functions.jsonl/26050
{ "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, 85639, 2965, 8285, 368, 341, 262, 2060, 10714, 33673, 286, 30335, 85639, 3759, 1047, 839, 28702, 1403, 486, 7243, 28399, 19, 11, 28909, 839, 65594, 486, 925, 53, 67800, 1326, 286, 220, 16, 21, 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
#[test] fn test_verifies_files_after_keys() { new_ucmd!() .args(&[ "-o", "nonexistent_dir/nonexistent_file", "-k", "0", "nonexistent_dir/input_file", ]) .fails() .status_code(2) .stderr_contains("failed to pa...
rust_cleaned_test_functions.jsonl/20542
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26042, 9606, 10931, 19844, 12631, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 9640, 310, 6523, 78, 756, 310, 330, 6280, 64085, 4334, 91130, 64085, 2458, 756, 310, 6523, 74, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_queue_and_filters() { let specifier = ModuleSpecifier::parse("file:///a/file.ts").unwrap(); let params = lsp_custom::TestRunRequestParams { id: 1, kind: lsp_custom::TestRunKind::Run, include: Some(vec![lsp_custom::TestIdentifier { text_document: lsp::TextDocu...
rust_cleaned_test_functions.jsonl/14485
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 10841, 8378, 22481, 368, 341, 262, 1077, 97616, 284, 13711, 87297, 486, 6400, 445, 1192, 60896, 64, 23903, 21288, 1827, 15454, 543, 262, 1077, 3628, 284, 98679, 15875, 486, 2271, 6727, 1900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extract_session_metrics_aggregate() { let mut metrics = vec![]; let session = SessionAggregates::parse( r#"{ "aggregates": [ { "started": "2020-02-07T14:16:00Z", "exited": 123, ...
rust_cleaned_test_functions.jsonl/63642
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2733 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 12316, 37686, 20587, 14240, 368, 341, 286, 1077, 5206, 16734, 284, 7486, 0, 40901, 286, 1077, 3797, 284, 9164, 9042, 7998, 973, 486, 6400, 1006, 310, 435, 55543, 515, 394, 330, 351, 7998, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_response_copy_to() { let server = server! { request: b"\ GET /1 HTTP/1.1\r\n\ user-agent: $USERAGENT\r\n\ accept: */*\r\n\ accept-encoding: gzip\r\n\ host: $HOST\r\n\ \r\n\ ", response: b"\ ...
rust_cleaned_test_functions.jsonl/26233
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 517 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 16096, 2346, 368, 341, 262, 1077, 3538, 284, 3538, 0, 341, 286, 1681, 25, 293, 83383, 310, 7890, 608, 16, 10130, 14, 16, 13, 16, 12016, 1699, 5661, 310, 1196, 41935, 25, 400, 6448, 90315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_purge_huge() { let blocktree_path = get_tmp_ledger_path!(); let blocktree = Blocktree::open(&blocktree_path).unwrap(); let (shreds, _) = make_many_slot_entries(0, 5000, 10); blocktree.insert_shreds(shreds, None, false).unwrap(); blocktree.purge_slots(0, S...
rust_cleaned_test_functions.jsonl/116898
{ "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, 620, 39823, 1523, 4733, 368, 341, 286, 1077, 2504, 9344, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 1077, 2504, 9344, 284, 8362, 9344, 486, 2508, 2099, 4574, 9344, 2638, 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_load_rect_single_scanline() { const DATA: [u8; 25] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]; ...
rust_cleaned_test_functions.jsonl/92023
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 807 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 16979, 19487, 28857, 1056, 368, 341, 286, 733, 14112, 25, 508, 84, 23, 26, 220, 17, 20, 60, 284, 508, 15, 11, 220, 220, 16, 11, 220, 220, 17, 11, 220, 220, 18, 11, 220, 220, 19, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_green_setter_oob_panic() { let mut c1 = Rgi::new(0.2, 0.3, 0.8); c1.set_green(1.00000000001); }
rust_cleaned_test_functions.jsonl/86785
{ "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, 48254, 2602, 465, 14179, 674, 620, 31270, 368, 341, 286, 1077, 5206, 272, 16, 284, 431, 8212, 486, 931, 7, 15, 13, 17, 11, 220, 15, 13, 18, 11, 220, 15, 13, 23, 317, 286, 272, 16, 980, 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
#[test] fn test_is_valid_quarter() { assert_eq!( FinancialPeriod::Quarter { quarter: 2, year: 1972 } .is_valid(), true ); assert_eq!( FinancialPeriod::Quarter { quarter: 5, ...
rust_cleaned_test_functions.jsonl/21178
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 8337, 11280, 5295, 368, 341, 286, 2060, 10714, 33673, 310, 17503, 23750, 486, 86608, 341, 394, 8338, 25, 220, 17, 345, 394, 1042, 25, 220, 16, 24, 22, 17, 198, 310, 456, 310, 659, 285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ident_conversions() { let msg = foo::bar_baz::FooBarBaz { foo_bar_baz: 42, fuzz_busters: vec![foo::bar_baz::foo_bar_baz::FuzzBuster { t: BTreeMap::<i32, foo::bar_baz::FooBarBaz>::new(), nested_self: None, }], ...
rust_cleaned_test_functions.jsonl/8849
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1421 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38399, 3382, 28290, 368, 341, 286, 1077, 3750, 284, 15229, 486, 2257, 880, 1370, 486, 40923, 3428, 33, 1370, 341, 310, 15229, 14388, 880, 1370, 25, 220, 19, 17, 345, 310, 76142, 880, 14605, 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_iltagcreatorengine_normal() { let mut e: ILTagCreatorEngine = ILTagCreatorEngine::new(false); e.register(16, Box::new(DummyTagCreator::new(16))); e.register(17, Box::new(DummyTagCreator::new(17))); let t = match e.create_tag(16) { Some(v) => v, _ => panic!(), ...
rust_cleaned_test_functions.jsonl/25705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 478 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 2963, 351, 837, 44009, 70891, 13973, 368, 341, 262, 1077, 5206, 384, 25, 11344, 5668, 31865, 4571, 284, 11344, 5668, 31865, 4571, 486, 931, 3576, 626, 262, 384, 9929, 7, 16, 21, 11, 8261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_inline_function_alias1b() { test( "function f(x) {}; f;var y = f; g(); y();y();", "function f(x) {}; f; var y; g(); f();f();", ); }
rust_cleaned_test_functions.jsonl/27696
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41871, 9174, 35947, 16, 65, 368, 341, 262, 1273, 1006, 286, 330, 1688, 282, 2075, 8, 52166, 282, 26, 947, 379, 284, 282, 26, 342, 2129, 379, 2129, 88, 2129, 756, 286, 330, 1688, 282, 2075, 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
#[test] fn test_to_digit() { assert_eq!('0'.to_digit(10), Some(0)); assert_eq!('1'.to_digit(2), Some(1)); assert_eq!('2'.to_digit(3), Some(2)); assert_eq!('9'.to_digit(10), Some(9)); assert_eq!('a'.to_digit(16), Some(10)); assert_eq!('A'.to_digit(16), Some(10)); assert_eq!('b'.to_dig...
rust_cleaned_test_functions.jsonl/109581
{ "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, 2346, 48403, 368, 341, 262, 2060, 10714, 0, 492, 15, 4427, 983, 48403, 7, 16, 15, 701, 4329, 7, 15, 1106, 262, 2060, 10714, 0, 492, 16, 4427, 983, 48403, 7, 17, 701, 4329, 7, 16, 1106, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_i32() { let a = PrimitiveArray::from(vec![15, 14, 13, 12, 11]); assert_eq!(5, a.len()); }
rust_cleaned_test_functions.jsonl/32611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 5318, 18, 17, 368, 341, 286, 1077, 264, 284, 51460, 1857, 486, 1499, 25592, 20703, 16, 20, 11, 220, 16, 19, 11, 220, 16, 18, 11, 220, 16, 17, 11, 220, 16, 16, 2558, 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
#[test] fn test_verify_signed_account_missing_signature() { // Ensure client can't sneak in with an unsigned account. let date_pubkey = Pubkey::new_rand(); let mut account = Account::new(1, 0, &solana_config_program::id()); let mut keyed_account = KeyedAccount::new(&date_pubkey, ...
rust_cleaned_test_functions.jsonl/88796
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 55617, 13500, 40447, 39859, 368, 341, 286, 442, 29279, 2943, 646, 944, 44164, 304, 448, 458, 3774, 2692, 624, 286, 1077, 2400, 34014, 792, 284, 22611, 792, 486, 931, 33864, 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_extract_pkh() { let secp = Secp256k1::new(); let (prvkey_alice, _, _) = setup_keys(ALICE_TPRV_STR, ALICE_BOB_PATH, &secp); let (prvkey_bob, _, _) = setup_keys(BOB_TPRV_STR, ALICE_BOB_PATH, &secp); let (prvkey_carol, _, _) = setup_keys(CAROL_TPRV_STR, ALICE_BOB_PA...
rust_cleaned_test_functions.jsonl/77149
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 453 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 620, 30664, 368, 341, 286, 1077, 511, 4672, 284, 4520, 79, 17, 20, 21, 74, 16, 486, 931, 1428, 286, 1077, 320, 649, 85, 792, 8418, 558, 11, 8358, 27439, 284, 6505, 12631, 46232, 5487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_array_invalid_value_offset_start() { let value_data = ArrayData::builder(DataType::Int32) .len(8) .add_buffer(Buffer::from(&[0, 1, 2, 3, 4, 5, 6, 7].to_byte_slice())) .build(); let value_offsets = Buffer::from(&[2, 2, 5, 7].to_byte_slice(...
rust_cleaned_test_functions.jsonl/11615
{ "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, 2019, 3858, 31433, 3142, 6917, 4906, 368, 341, 286, 1077, 897, 1769, 284, 2910, 1043, 486, 17850, 63941, 486, 1072, 18, 17, 340, 310, 659, 2892, 7, 23, 340, 310, 659, 718, 7776, 55574, 486, 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...
1
#[test] fn test_head() { let ctxt = get_test_vector_only_context(); let mut state = InterpreterState::new(&ctxt); let args = vec![term_ref(array![1.0f32, 2.0f32])]; let head_func = HeadImpl { vector_type : TEST_VECTOR_T, scalar_type : TEST_SCALAR...
rust_cleaned_test_functions.jsonl/49744
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13138, 368, 341, 286, 1077, 59162, 284, 633, 4452, 12247, 18410, 8467, 543, 286, 1077, 5206, 1584, 284, 82493, 1397, 486, 931, 2099, 77492, 626, 286, 1077, 2827, 284, 7486, 20703, 4991, 7793, 6110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hash_consistency() { let transaction = Transaction::new( PrincipalId::new_user_test_id(0).into(), PrincipalId::new_user_test_id(1).into(), Tokens::new(1, 0).unwrap(), DEFAULT_TRANSFER_FEE, Memo(123456), T...
rust_cleaned_test_functions.jsonl/102190
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 8950, 31971, 47094, 368, 341, 286, 1077, 7745, 284, 17869, 486, 931, 1006, 310, 36309, 764, 486, 931, 3317, 4452, 842, 7, 15, 568, 18122, 3148, 310, 36309, 764, 486, 931, 3317, 4452, 842,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_uuid_display() { use super::fmt::Write; let uuid = test_util::new(); let s = uuid.to_string(); let mut buffer = String::new(); assert_eq!(s, uuid.to_hyphenated().to_string()); check!(buffer, "{}", uuid, 36, |c| c.is_lowercase() || c....
rust_cleaned_test_functions.jsonl/17525
{ "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, 25540, 14825, 368, 341, 286, 990, 2256, 486, 12501, 486, 7985, 401, 286, 1077, 16040, 284, 1273, 18974, 486, 931, 543, 286, 1077, 274, 284, 16040, 2389, 3904, 543, 286, 1077, 5206, 4147, 284, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_scale_dimensions() { // no-scale assert_eq!(scale_dimensions(64, 64, 64, 64, true, true), (64, 64)); assert_eq!(scale_dimensions(1, 1, 64, 64, true, true), (1, 1)); assert_eq!(scale_dimensions(64, 1, 64, 64, true, true), (64, 1)); assert_eq!(scale_dimensio...
rust_cleaned_test_functions.jsonl/33241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 727 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16727, 59699, 368, 341, 286, 442, 902, 12934, 198, 286, 2060, 10714, 10297, 12445, 59699, 7, 21, 19, 11, 220, 21, 19, 11, 220, 21, 19, 11, 220, 21, 19, 11, 830, 11, 830, 701, 320, 21, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_corosync_cmapctl_output() -> Result<(), Box<dyn std::error::Error>> { let x = corosync_cmapctl_fixture(); let mut y = corosync_cmapctl_parser(x)?; y.1.sort_unstable(); insta::assert_debug_snapshot!(y); Ok(()) }
rust_cleaned_test_functions.jsonl/23872
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14734, 436, 1721, 666, 2186, 12373, 7645, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 856, 284, 1829, 436, 1721, 666, 2186, 12373, 74409, 1428, 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...
2
#[test] fn test_initialize_no_panic() { let (bank_client, alice_keypair) = create_bank_client(3); let contract_keypair = Keypair::new(); let mut instructions = vest_instruction::create_account( &alice_keypair.pubkey(), &Pubkey::new_rand(), &contract_...
rust_cleaned_test_functions.jsonl/88801
{ "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, 40889, 6536, 620, 31270, 368, 341, 286, 1077, 320, 17033, 8179, 11, 70433, 3097, 12670, 8, 284, 1855, 35733, 8179, 7, 18, 626, 286, 1077, 5116, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 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_limit_0() { let src_exec = MockExecutor::new( vec![FieldTypeTp::LongLong.into()], vec![BatchExecuteResult { physical_columns: QuiesceBatchColumnVec::from(vec![VectorValue::Int( vec![None, Some(50), None].into(), ...
rust_cleaned_test_functions.jsonl/49574
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 398 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14763, 62, 15, 368, 341, 286, 1077, 2286, 18430, 284, 14563, 25255, 486, 931, 1006, 310, 7486, 20703, 63733, 62241, 486, 6583, 6583, 39860, 73845, 310, 7486, 20703, 21074, 17174, 2077, 341, 394, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode() { let instruction = Instruction::Goto(Condition::LessThan(23, 1234), 42); let mut buf: Vec<u8> = vec![]; instruction.encode(&mut buf).unwrap(); assert_eq!(buf[0], 4 | (2 << 4)); assert_eq!(buf[1], 42); assert_eq!(buf[2], 23); asser...
rust_cleaned_test_functions.jsonl/82119
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 368, 341, 286, 1077, 7600, 284, 29051, 486, 38, 2072, 7, 10547, 486, 27451, 26067, 7, 17, 18, 11, 220, 16, 17, 18, 19, 701, 220, 19, 17, 317, 286, 1077, 5206, 6607, 25, 11312, 34837, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_filter_out_proc() { let cfg = Config::default().with_path(PROC); let (found, _) = walk_files(&cfg); assert_eq!(0, found); }
rust_cleaned_test_functions.jsonl/54487
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 6068, 24436, 368, 341, 286, 1077, 13286, 284, 5532, 486, 2258, 1005, 4197, 2638, 55681, 34, 317, 286, 1077, 320, 15105, 11, 27439, 284, 4227, 10931, 2099, 14072, 317, 286, 2060, 10714, 10297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_join_nocopy() { let v: [String; 0] = []; assert_eq!(v.join(","), ""); assert_eq!(["a".to_string(), "ab".into()].join(","), "a,ab"); assert_eq!(["a".to_string(), "ab".into(), "abc".into()].join(","), "a,ab,abc"); assert_eq!(["a".to_string(), "ab".into(), "".into()].join(","), ...
rust_cleaned_test_functions.jsonl/12874
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 1089, 509, 1266, 368, 341, 262, 1077, 348, 25, 508, 703, 26, 220, 15, 60, 284, 5907, 262, 2060, 10714, 10297, 85, 5446, 47503, 701, 14498, 262, 2060, 10714, 10297, 1183, 64, 3263, 983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_assert_file() { let tmpdir = assert_setup!(); let temp_file = tmpdir.mash("foo"); assert_no_file!(&temp_file); assert!(!sys::is_file(&temp_file)); sys::touch(&temp_file).unwrap(); assert_file!(&temp_file); assert!(sys::is_file(&temp_file))...
rust_cleaned_test_functions.jsonl/92822
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16553, 2458, 368, 341, 286, 1077, 4174, 3741, 284, 2060, 21363, 0, 1428, 286, 1077, 2730, 2458, 284, 4174, 3741, 744, 988, 445, 7975, 797, 286, 2060, 6536, 2458, 0, 2099, 3888, 2458, 317, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_node() { setup_for_test(); let mut r = new_test_raft(1, vec![1], 10, 1, new_storage()); r.add_node(2); assert_eq!( r.prs().voter_ids(), &vec![1, 2].into_iter().collect::<HashSet<_>>() ); }
rust_cleaned_test_functions.jsonl/107153
{ "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, 2891, 5084, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 5206, 435, 284, 501, 4452, 62, 2944, 7, 16, 11, 7486, 20703, 16, 1125, 220, 16, 15, 11, 220, 16, 11, 501, 23310, 1423, 262, 435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vhost_user_fs_slave() { let mut fs_slave = VhostUserFSSlaveMsg::default(); assert_eq!(fs_slave.is_valid(), true); fs_slave.fd_offset[0] = 0xffff_ffff_ffff_ffff; fs_slave.len[0] = 0x1; assert_eq!(fs_slave.is_valid(), false); assert_ne!( ...
rust_cleaned_test_functions.jsonl/118676
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 253 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 3790, 3317, 34470, 65320, 368, 341, 286, 1077, 5206, 8619, 65320, 284, 647, 3790, 1474, 37, 1220, 75, 523, 6611, 486, 2258, 1428, 286, 2060, 10714, 10297, 3848, 65320, 2079, 8337, 1507, 830,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dead_fork_blob_deserialize_failure() { let keypair1 = Keypair::new(); let keypair2 = Keypair::new(); // Insert entry that causes blob deserialization failure let res = check_dead_fork(|blockhash, slot| { let entry = entry::next_entry( ...
rust_cleaned_test_functions.jsonl/43055
{ "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, 53427, 761, 669, 45908, 15768, 9050, 43618, 368, 341, 286, 1077, 1376, 12670, 16, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1376, 12670, 17, 284, 6569, 1082, 1310, 486, 931, 543, 286, 442...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eq_size_no_drop() { assert_size_eq!(u32, PanicDrop<u32>); assert_size_eq!(PanicDrop<u32>, u32); assert_size_eq!(PanicDrop<u32>, PanicDrop<u32>); }
rust_cleaned_test_functions.jsonl/43872
{ "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, 10714, 2368, 6536, 29584, 368, 341, 262, 2060, 2368, 10714, 10297, 84, 18, 17, 11, 83740, 19871, 34837, 18, 17, 42013, 262, 2060, 2368, 10714, 10297, 47, 31270, 19871, 34837, 18, 17, 8066, 575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_base64() { let mut rng = SmallRng::seed_from_u64(6249204433781597762); macro_rules! test_decode { ($unencoded_len:expr, $encoded_length:expr, $encoded_length_rup:expr) => {{ let cfgs = [ (base64::STANDARD, Config::B64), (base64:...
rust_cleaned_test_functions.jsonl/98053
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1707 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 7651, 21, 19, 368, 341, 262, 1077, 5206, 28422, 284, 14994, 49, 968, 486, 22602, 5673, 7300, 21, 19, 7, 21, 17, 19, 24, 17, 15, 19, 19, 18, 18, 22, 23, 16, 20, 24, 22, 22, 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...
4
#[test] fn test_supplies_set_premium_food() { let mut supplies = Supplies::new(); supplies.set_premium(0.3); supplies.buy_food(200).unwrap(); assert_eq!(140, supplies.food_left()); assert_eq!(500, supplies.money_left()); }
rust_cleaned_test_functions.jsonl/28671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23723, 7202, 2602, 620, 84032, 58580, 368, 341, 286, 1077, 5206, 16720, 284, 50252, 486, 931, 543, 286, 16720, 980, 620, 84032, 7, 15, 13, 18, 317, 286, 16720, 63871, 58580, 7, 17, 15, 15, 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_bit_fns() { let mut rng = thread_rng(); let mask_length = rng.gen_range(1..20); let bools: Vec<_> = std::iter::from_fn(|| Some(rng.next_u32() & 1 == 0)) .take(mask_length) .collect(); let mut nulls = BooleanBufferBuilder::new(mask_length);...
rust_cleaned_test_functions.jsonl/50833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 603 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 761, 4412, 368, 341, 286, 1077, 5206, 28422, 284, 4516, 66849, 543, 286, 1077, 6911, 5118, 284, 28422, 22822, 9698, 7, 16, 496, 17, 15, 317, 286, 1077, 1807, 82, 25, 11312, 32399, 29, 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...
4
#[test] fn test_monkey1() { assert_decompressed_input_matches_output(include_bytes!("../../testdata/monkey.compressed"), include_bytes!("../../testdata/monkey"), 1, 1); }
rust_cleaned_test_functions.jsonl/26453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20737, 792, 16, 368, 341, 220, 2060, 2259, 45703, 5898, 38344, 7645, 77863, 12524, 17223, 2748, 92425, 14, 96016, 905, 14318, 4461, 14265, 2924, 12524, 17223, 2748, 92425, 14, 96016, 4461, 14265, 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
#[test] fn test_literal_expr() { eval!("null;", Value::null()); eval!("true;", Value::from(true)); eval!("false;", Value::from(false)); eval!("0;", Value::from(0)); eval!("123;", Value::from(123)); eval!("123.456;", Value::from(123.456)); eval!( ...
rust_cleaned_test_functions.jsonl/45671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34100, 21915, 368, 341, 286, 5603, 17223, 2921, 32503, 5162, 486, 2921, 1423, 286, 5603, 17223, 1866, 32503, 5162, 486, 1499, 3715, 1106, 286, 5603, 17223, 3849, 32503, 5162, 486, 1499, 3576, 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, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tuple_out_of_range_positive() { assert_eq!( Color::try_from((256, 1000, 10000)), Err(IntoColorError::IntConversion) ); }
rust_cleaned_test_functions.jsonl/752
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21773, 6068, 3575, 9698, 54160, 368, 341, 286, 2060, 10714, 33673, 310, 3478, 486, 1539, 5673, 1188, 17, 20, 21, 11, 220, 16, 15, 15, 15, 11, 220, 16, 15, 15, 15, 15, 6965, 310, 15495, 24123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_or() { let mut aggr = AggBitOr { c: 0 }; let cfg = EvalConfig::default_for_test(); let mut ctx = EvalContext::new(Arc::new(cfg)); let data = vec![ Datum::U64(1), Datum::Null, Datum::U64(1), Datum::I64(3), ...
rust_cleaned_test_functions.jsonl/34283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 417 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 8734, 368, 341, 286, 1077, 5206, 933, 901, 284, 4598, 70, 8344, 2195, 314, 272, 25, 220, 15, 2605, 286, 1077, 13286, 284, 58239, 2648, 486, 2258, 5478, 4452, 543, 286, 1077, 5206, 5635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pre_lockin_no_chan_closed_update() { // Test that if a peer closes a channel in response to a funding_created message we don't // generate a channel update (as the channel cannot appear on chain without a funding_signed // Doing so would imply a channel monitor update before the initial c...
rust_cleaned_test_functions.jsonl/16958
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 760 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10442, 9818, 258, 6536, 45552, 44697, 8882, 368, 341, 197, 322, 3393, 429, 421, 264, 14397, 33250, 264, 5496, 304, 2033, 311, 264, 10773, 27288, 1943, 582, 1513, 944, 198, 197, 322, 6923, 264, 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_keyword_call() { qparse!("cut(a) if a;", ReservedWord { .. }); qparse!("debug(a) if a;", ReservedWord { .. }); qparse!("foo(debug) if debug = 1;", UnrecognizedToken { .. }); }
rust_cleaned_test_functions.jsonl/68146
{ "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, 45824, 13429, 368, 341, 262, 2804, 6400, 17223, 10242, 2877, 8, 421, 264, 32503, 15163, 10879, 314, 5241, 1625, 262, 2804, 6400, 17223, 8349, 2877, 8, 421, 264, 32503, 15163, 10879, 314, 5241, 162...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_reduce_all2() { use ProofKindShorthands::*; use PropShorthands::*; let mut idgen = IdGen::new(); let id1 = idgen.fresh(); let a = || Atom(id1); let mut pf = Proof { prop: ImplS(a(), a()), kind: AppS( Proof {...
rust_cleaned_test_functions.jsonl/125427
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1017 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64596, 5705, 17, 368, 341, 286, 990, 36991, 10629, 2016, 2364, 2844, 56162, 286, 990, 3911, 2016, 2364, 2844, 79304, 286, 1077, 5206, 877, 4370, 284, 5223, 9967, 486, 931, 543, 286, 1077, 877, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fx07_store_delay() { let mut machine = Machine::new(TestContext::new()); machine.register_set(0xA, 4); machine.test_opcode(0xFA07); assert_eq!(machine.register_get(0xA), 0xFF); // Should increment program counter by two assert_eq!(machine.pc, PC_BEGIN + 2); }
rust_cleaned_test_functions.jsonl/127971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62691, 15, 22, 14809, 22198, 368, 341, 262, 1077, 5206, 5662, 284, 12960, 486, 931, 31159, 1972, 486, 931, 1423, 262, 5662, 9929, 2602, 7, 15, 14673, 11, 220, 19, 317, 262, 5662, 5958, 71319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1