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_prod_log() { assert_abs_diff_eq!(0., prod_log(0.)); let e: f64 = std::f64::consts::E; assert_abs_diff_eq!(e, prod_log(e)); }
rust_cleaned_test_functions.jsonl/27814
{ "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, 34984, 5224, 368, 341, 286, 2060, 31170, 15850, 10714, 10297, 15, 2572, 14475, 5224, 7, 15, 13, 1106, 286, 1077, 384, 25, 282, 21, 19, 284, 1460, 486, 69, 21, 19, 486, 95773, 486, 36, 280, 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
#[test] fn test_insert_with_key() { let mut map = SmallIntMap::new(); fn addMoreToCount(_k: uint, v0: uint, v1: uint) -> uint { v0 + v1 } fn addMoreToCount_simple(v0: uint, v1: uint) -> uint { v0 + v1 } // count integer...
rust_cleaned_test_functions.jsonl/7535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 424 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 6615, 3097, 368, 341, 286, 1077, 5206, 2415, 284, 14994, 1072, 2227, 486, 931, 1428, 16885, 286, 5168, 912, 7661, 1249, 2507, 2490, 74, 25, 2622, 11, 348, 15, 25, 2622, 11, 348, 16, 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_fold_logical_op_1() { fold("x = true && x", "x = x"); fold("x = [foo()] && x", "x = (foo(),x)"); fold("x = false && x", "x = false"); fold("x = true || x", "x = true"); fold("x = false || x", "x = x"); fold("x = 0 && x", "x = 0"); fold("x = 3 || x", "x = 3"); fol...
rust_cleaned_test_functions.jsonl/122169
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 399 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61187, 86484, 10287, 62, 16, 368, 341, 262, 11555, 445, 87, 284, 830, 1009, 856, 497, 330, 87, 284, 856, 797, 262, 11555, 445, 87, 284, 508, 7975, 26556, 1009, 856, 497, 330, 87, 284, 320, 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_data_pushing() { type DataType = i32; let mut v: Vec2d<DataType> = Vec2d::new(); let data = [1,2,3,4,5,6,7,8,9,10,11,12]; v.push_row(&data[0..1]); v.push_col(&data[1..2]); v.push_row(&data[2..4]); v.push_row(&data[4..6]); v.push_col...
rust_cleaned_test_functions.jsonl/110933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1769, 14218, 287, 368, 341, 286, 943, 33172, 284, 600, 18, 17, 280, 286, 1077, 5206, 348, 25, 11312, 17, 67, 27, 22653, 29, 284, 11312, 17, 67, 486, 931, 543, 286, 1077, 821, 284, 508, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_max_size_ok() { let manager = NthConnectFailManager { n: Mutex::new(5) }; let pool = Pool::builder().max_size(5).build(manager).unwrap(); let mut conns = vec![]; for _ in 0..5 { conns.push(pool.get().ok().unwrap()); } }
rust_cleaned_test_functions.jsonl/6399
{ "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, 6345, 2368, 19817, 368, 341, 262, 1077, 6645, 284, 451, 339, 14611, 19524, 2043, 314, 308, 25, 66215, 486, 931, 7, 20, 8, 2605, 262, 1077, 7314, 284, 22728, 486, 17850, 1005, 2810, 2368, 7, 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_root_subscription() { let pubsub_addr = SocketAddr::new( IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), rpc_port::DEFAULT_RPC_PUBSUB_PORT, ); let exit = Arc::new(AtomicBool::new(false)); let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(10_000); le...
rust_cleaned_test_functions.jsonl/10200
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 802 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12993, 59838, 368, 341, 262, 1077, 6675, 1966, 7387, 284, 20954, 13986, 486, 931, 1006, 286, 35033, 13986, 486, 53, 19, 8972, 30168, 19, 13986, 486, 931, 7, 15, 11, 220, 15, 11, 220, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_array_width_config_exceeds_max_width() { let toml = r#" max_width = 60 array_width = 80 "#; let config = Config::from_toml(toml, Path::new("")).unwrap(); assert_eq!(config.array_width(), 60); }
rust_cleaned_test_functions.jsonl/130655
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 7927, 5332, 2702, 4635, 82, 6345, 7927, 368, 341, 310, 1077, 311, 1014, 284, 435, 2, 698, 394, 1932, 7927, 284, 220, 21, 15, 198, 394, 1334, 7927, 284, 220, 23, 15, 198, 310, 5869, 280...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dup_htlc_onchain_fails_on_reload() { // having a copy of the relevant fail-/claim-back data and processes the HTLC fail/claim when // the ChannelMonitor tells it to. // and de-duplicates ChannelMonitor events. // This tests that explicit tracking behavior. let chanmon_cfgs...
rust_cleaned_test_functions.jsonl/16895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1901 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51932, 49086, 17257, 4470, 8819, 761, 6209, 4470, 79405, 368, 341, 11120, 197, 322, 3432, 264, 2975, 315, 279, 9760, 3690, 66114, 7859, 15461, 821, 323, 11364, 279, 5260, 8556, 3690, 14, 7859, 979...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_hardware_spec_permission_denied() { let mut context_builder = ContextBuilder::new(); context_builder.log_in(&[]); // Insufficient permissions let runner = QueryRunner::new(context_builder); assert_eq!( runner.query( QUERY, hashmap! { ...
rust_cleaned_test_functions.jsonl/61186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 434 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 1523, 37750, 13594, 37971, 49522, 1122, 368, 341, 262, 1077, 5206, 2266, 28532, 284, 9608, 3297, 486, 931, 543, 262, 2266, 28532, 1665, 1243, 2099, 1294, 1215, 442, 9726, 26683, 8541, 198, 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_tangent_line_at_point() { let quad = BoundedQuadratic::new(0., 1., 1., 0., 0.); let expected_tangent_line = BoundedQuadratic::new_extended(0., 2. * 0.5, 0.25 - 1. * 0.5); assert_eq!(quad.get_tangent_line_at(0.5), expected_tangent_line); }
rust_cleaned_test_functions.jsonl/19859
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 66451, 6528, 3752, 6085, 368, 341, 1789, 286, 1077, 27082, 284, 425, 13082, 2183, 88678, 486, 931, 7, 15, 2572, 220, 16, 2572, 220, 16, 2572, 220, 15, 2572, 220, 15, 58957, 16885, 286, 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_all_parameters() { let mut params = Params::new(); params .hash_length(18) // Make sure a shorter key properly overwrites a longer one. .key(b"not the real key") .key(b"bar") .salt(b"bazbazba") .personal(b"bing bin") .fanout(2) ...
rust_cleaned_test_functions.jsonl/10643
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 428 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 18263, 368, 341, 262, 1077, 5206, 3628, 284, 34352, 486, 931, 543, 262, 3628, 198, 286, 659, 8296, 5118, 7, 16, 23, 340, 286, 442, 7405, 2704, 264, 23327, 1376, 10277, 916, 59079, 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_iterator_peekable_last() { let xs = [0, 1, 2, 3, 4, 5]; let ys = [0]; let mut it = xs.iter().peekable(); assert_eq!(it.peek(), Some(&&0)); assert_eq!(it.last(), Some(&5)); let mut it = ys.iter().peekable(); assert_eq!(it.peek(), Some(&&0)); assert_eq!(it.last(),...
rust_cleaned_test_functions.jsonl/36996
{ "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, 13491, 62, 29107, 480, 12195, 368, 341, 262, 1077, 11943, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 262, 1077, 31810, 284, 508, 15, 4821, 262, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rfc3339() { use super::*; use crate::offset::FixedOffset; use crate::DateTime; let testdates = [ ("2015-01-20T17:35:20-08:00", Ok("2015-01-20T17:35:20-08:00")), // normal case ("1944-06-06T04:04:00Z", Ok("1944-06-06T04:04:00+00:00")), // D-day (...
rust_cleaned_test_functions.jsonl/5318
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1095 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 8316, 18, 18, 18, 24, 368, 341, 262, 990, 2256, 56162, 262, 990, 17717, 486, 3176, 486, 13520, 6446, 280, 262, 990, 17717, 486, 7689, 401, 1066, 262, 1077, 1273, 6394, 284, 2278, 286, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_fuse_commit_version() -> anyhow::Result<()> { let v = &databend_meta::configs::DATABEND_COMMIT_VERSION; assert!(v.len() > 0); Ok(()) }
rust_cleaned_test_functions.jsonl/119222
{ "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, 761, 810, 36346, 9438, 368, 1464, 88964, 486, 2077, 71698, 341, 262, 1077, 348, 284, 609, 67, 2096, 408, 13381, 486, 53978, 486, 35, 19562, 4689, 77364, 10678, 280, 262, 2060, 10297, 85, 19406, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_smoke() { let (_td, repo) = repo_init().unwrap(); let root = repo.path().parent().unwrap(); let repo_path = root.as_os_str().to_str().unwrap(); assert_eq!( get_branches_info(repo_path) .unwrap() .iter() ...
rust_cleaned_test_functions.jsonl/96503
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15874, 4740, 368, 341, 286, 1077, 5453, 1296, 11, 15867, 8, 284, 15867, 6137, 1005, 15454, 543, 286, 1077, 3704, 284, 15867, 3875, 1005, 3765, 1005, 15454, 543, 286, 1077, 15867, 2638, 284, 3704, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_channel_delete_guild() { let cache = InMemoryCache::new(); let (guild_id, channel_id, channel) = test::guild_channel_text(); cache.cache_guild_channel(guild_id, channel.clone()); assert_eq!(1, cache.channels_guild.len()); assert!(cache .guild_...
rust_cleaned_test_functions.jsonl/35013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 317 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14571, 11353, 1889, 1498, 368, 341, 286, 1077, 6500, 284, 758, 10642, 8233, 486, 931, 543, 286, 1077, 320, 57877, 842, 11, 5496, 842, 11, 5496, 8, 284, 1273, 486, 57877, 14571, 4326, 1428, 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_from_type() { assert_eq!(Type::from(parquet::Type::Boolean), Type::Boolean); assert_eq!(Type::from(parquet::Type::Int32), Type::Int32); assert_eq!(Type::from(parquet::Type::Int64), Type::Int64); assert_eq!(Type::from(parquet::Type::Int96), Type::Int96); assert_eq!(Type::from(parquet::T...
rust_cleaned_test_functions.jsonl/126060
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 1819, 368, 341, 197, 6948, 10714, 10297, 929, 486, 1499, 31975, 23300, 486, 929, 486, 6890, 701, 3990, 486, 6890, 317, 197, 6948, 10714, 10297, 929, 486, 1499, 31975, 23300, 486, 929, 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_parse_coordinate_system() { let cs = match parse_coordinate_system(FileSpan::new(Rc::new(String::from("CoordinateSystem \"test\"")), Rc::new(String::from("input")))).unwrap().1 { Transformation::CoordinateSystem(c) => c, _ => panic!() }; assert_eq!(cs.identity.value, ...
rust_cleaned_test_functions.jsonl/68351
{ "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, 21039, 68649, 17687, 368, 341, 262, 1077, 10532, 284, 2432, 4715, 68649, 17687, 19821, 12485, 486, 931, 2785, 66, 486, 931, 2242, 486, 1499, 445, 28589, 2320, 7245, 1944, 2105, 35674, 81463, 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_two_delays() { let pulse = 4usize; let mut model = PulsedModel::default(); let fact_0 = PulsedFact { datum_type: u8::datum_type(), shape: tvec![pulse.to_dim()], axis: 0, dim: stream_dim(), delay: 0, }; ...
rust_cleaned_test_functions.jsonl/65902
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 735 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23241, 18029, 942, 368, 341, 286, 1077, 27235, 284, 220, 19, 51878, 280, 286, 1077, 5206, 1614, 284, 393, 14295, 291, 1712, 486, 2258, 543, 286, 1077, 2097, 62, 15, 284, 393, 14295, 291, 17417, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_against_libsodium() { let mut libsodium_encrypted = vec![0xab; STREAM_LEN]; unsafe { libsodium_ffi::crypto_stream_chacha20_ietf_xor_ic( libsodium_encrypted.as_mut_ptr(), libsodium_encrypted.as_ptr(), libsodium_encrypted....
rust_cleaned_test_functions.jsonl/49285
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62427, 267, 16142, 82, 46776, 368, 341, 286, 1077, 5206, 63974, 46776, 13781, 14026, 284, 7486, 20703, 15, 52616, 26, 69811, 15536, 935, 286, 19860, 341, 310, 63974, 46776, 62, 53799, 486, 35772, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ipv6_fragment_not_multiple_of_offset_unit() { let mut ctx = DummyContext::default(); let fragment_id = 0; assert_eq!(ctx.get_state_mut().cache_size, 0); // Test that fragment bodies must be a multiple of // Process fragment #0 process_ip...
rust_cleaned_test_functions.jsonl/22028
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1521 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49378, 21, 43012, 7913, 45233, 3575, 6917, 14832, 368, 341, 286, 1077, 5206, 5635, 284, 50567, 1972, 486, 2258, 543, 286, 1077, 12289, 842, 284, 220, 15, 401, 286, 2060, 10714, 10297, 3773, 670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_different_sections() { let mut some = document(json!({ "use": [{ "protocol": "foo" }] })); let mut other = document(json!({ "expose": [{ "protocol": "bar", "from": "self" }] })); some.merge_from(&mut other, &Path::new("some/path")).unwrap(); let uses = some....
rust_cleaned_test_functions.jsonl/34911
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 375 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 82741, 59485, 368, 341, 286, 1077, 5206, 1045, 284, 2197, 9304, 0, 2306, 330, 810, 788, 18466, 330, 17014, 788, 330, 7975, 1, 58592, 17830, 286, 1077, 5206, 1008, 284, 2197, 9304, 0, 2306...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_manual_dyn_impl() { struct MyEnum; impl Valuable for MyEnum { fn as_value(&self) -> Value<'_> { Value::Enumerable(self) } fn visit(&self, visitor: &mut dyn Visit) { visitor.visit_unnamed_fields(&[Value::String("hello")]); } } ...
rust_cleaned_test_functions.jsonl/55828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 364 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75428, 69213, 21007, 368, 341, 262, 2036, 3017, 10766, 401, 262, 11605, 4104, 13128, 369, 3017, 10766, 341, 286, 5168, 438, 3142, 2099, 721, 8, 1464, 5162, 18291, 98377, 341, 310, 5162, 486, 9573,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range() { let mut tester: VecDeque<usize> = VecDeque::with_capacity(7); let cap = tester.capacity(); let minlen = if cfg!(miri) { cap - 1 } else { 0 }; // Miri is too slow for len in minlen..=cap { for tail in 0..=cap { for start in 0..=len { ...
rust_cleaned_test_functions.jsonl/80656
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 479 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 368, 341, 262, 1077, 5206, 37111, 25, 11312, 73891, 90244, 29, 284, 11312, 73891, 486, 4197, 35603, 7, 22, 626, 262, 1077, 2062, 284, 37111, 59168, 543, 262, 1077, 1308, 2892, 284, 421, 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...
7
#[test] fn test_round_default() { let result = round(to_value(2.1), HashMap::new()); assert!(result.is_ok()); assert_eq!(result.unwrap(), to_value(2.0)); }
rust_cleaned_test_functions.jsonl/62619
{ "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, 29896, 9993, 368, 341, 286, 1077, 1102, 284, 4778, 12186, 3142, 7, 17, 13, 16, 701, 10528, 486, 931, 1423, 286, 2060, 10297, 1382, 2079, 19817, 1423, 286, 2060, 10714, 10297, 1382, 55395, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_remove_network() { let mut rt = Runtime::new().unwrap(); let mut connector = HostToReplyConnector::default(); connector.m.insert( format!("{}://5f", if cfg!(windows) { "net.pipe" } else { "unix" }), "HTTP/1.1 200 OK\r\nServer: mock1\r\nContent-Typ...
rust_cleaned_test_functions.jsonl/131312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 443 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 20966, 368, 341, 286, 1077, 5206, 16677, 284, 10954, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 26989, 284, 16102, 1249, 20841, 35954, 486, 2258, 1428, 286, 26989, 744, 7030, 1006, 310, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_ntxid() { let tx_bytes = Vec::from_hex("0100000001a15d57094aa7a21a28cb20b59aab8fc7d1149a3bdbcddba9c622e4f5f6a99ece010000006c493046022100f93bb0e7d8db7bd46e40132d1f8242026e045f03a0efe71bbb8e3f475e970d790221009337cd7f1f929f00cc6ff01f03729b069a7c21b59b1736ddfee5db5946c5da8c0121033b9b137ee87d...
rust_cleaned_test_functions.jsonl/330
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 508 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38945, 87, 307, 368, 341, 286, 1077, 9854, 12524, 284, 11312, 486, 1499, 32655, 445, 15, 16, 15, 15, 15, 15, 15, 15, 15, 16, 64, 16, 20, 67, 20, 22, 15, 24, 19, 5305, 22, 64, 17, 16, 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_rpc_get_balance() { let bob_pubkey = Pubkey::new_rand(); let (io, meta, _bank, _blockhash, _alice, _leader_pubkey) = start_rpc_handler_with_tx(&bob_pubkey); let req = format!( r#"{{"jsonrpc":"2.0","id":1,"method":"getBalance","params":["{}"]}}"#, ...
rust_cleaned_test_functions.jsonl/20296
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 3062, 29396, 368, 341, 286, 1077, 35192, 34014, 792, 284, 22611, 792, 486, 931, 33864, 543, 286, 1077, 320, 815, 11, 8823, 11, 716, 17033, 11, 716, 4574, 8296, 11, 716, 63195, 11, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decode_adr() { match decode_16(0xa007) { Instruction::ADR { params, thumb32 } => { assert!(params.r == Reg::R0); assert!(params.imm32 == 7 << 2); assert!(!thumb32); } _ => { assert!(false); } } }
rust_cleaned_test_functions.jsonl/64756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 10027, 81, 368, 341, 1066, 262, 2432, 16895, 62, 16, 21, 7, 15, 9591, 15, 15, 22, 8, 341, 286, 29051, 486, 96473, 314, 3628, 11, 24050, 18, 17, 335, 589, 341, 310, 2060, 10297, 3519, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_prewrite_async_commit() { let engine = TestEngineBuilder::new().build().unwrap(); let cm = concurrency_manager::ConcurrencyManager::new(1.into()); let key = b"k"; let value = b"v"; let mutations = vec![Mutation::make_put(Key::from_raw(key), value.to_vec()...
rust_cleaned_test_functions.jsonl/31425
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 52473, 28346, 36346, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 9961, 284, 78010, 12144, 486, 79611, 2043, 486, 931, 7, 16, 39860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_iterator_clone() { let mut n = DList::new(); n.push_back(2); n.push_back(3); n.push_back(4); let mut it = n.iter(); it.next(); let mut jt = it.clone(); assert_eq!(it.next(), jt.next()); assert_eq!(it.next_back(), jt.next_bac...
rust_cleaned_test_functions.jsonl/56733
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 54742, 368, 341, 286, 1077, 5206, 308, 284, 422, 852, 486, 931, 543, 286, 308, 2552, 3895, 7, 17, 317, 286, 308, 2552, 3895, 7, 18, 317, 286, 308, 2552, 3895, 7, 19, 317, 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_invalid_grow() { let mut v: SmallVec<[u8; 8]> = SmallVec::new(); v.extend(0..8); v.grow(5); }
rust_cleaned_test_functions.jsonl/88152
{ "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, 31433, 1889, 651, 368, 341, 286, 1077, 5206, 348, 25, 14994, 10050, 66746, 84, 23, 26, 220, 23, 25669, 284, 14994, 10050, 486, 931, 543, 286, 348, 15831, 7, 15, 496, 23, 317, 286, 348, 1302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_utf16_space_with_one_bom_byte() { let mut decoder = UTF_16LE.new_decoder(); let mut dst = [0u16; 12]; { let needed = decoder.max_utf16_buffer_length(1).unwrap(); let (result, _, _, _) = decoder.decode_to_utf16(b"\xFF", &mut dst[..needed], false); ...
rust_cleaned_test_functions.jsonl/90268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39453, 16, 21, 14663, 6615, 11667, 880, 316, 19737, 368, 341, 286, 1077, 5206, 24551, 284, 20076, 62, 16, 21, 867, 4618, 49843, 543, 286, 1077, 5206, 10648, 284, 508, 15, 84, 16, 21, 26, 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_ncomponents_err() { let input = Dataset::from(Array::random((4, 4), Uniform::new(0.0, 1.0))); let ica = FastIca::new().ncomponents(100); let ica = ica.fit(&input); assert!(ica.is_err()); }
rust_cleaned_test_functions.jsonl/84828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 5149, 9266, 368, 341, 286, 1077, 1946, 284, 39183, 486, 1499, 38192, 486, 11463, 1188, 19, 11, 220, 19, 701, 47889, 486, 931, 7, 15, 13, 15, 11, 220, 16, 13, 15, 4945, 286, 1077, 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_index_version() { assert_eq!( IndexScanExecutorImpl::get_index_version(&[0x0, 0x7d, 0x1]).unwrap(), 1 ); assert_eq!( IndexScanExecutorImpl::get_index_version(&[0x1, 0x7d, 0x1, 0x31]).unwrap(), 1 ); assert_eq!...
rust_cleaned_test_functions.jsonl/12240
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 576 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 9438, 368, 341, 286, 2060, 10714, 33673, 310, 8008, 26570, 25255, 9673, 486, 455, 3560, 9438, 2099, 58, 15, 87, 15, 11, 220, 15, 87, 22, 67, 11, 220, 15, 87, 16, 10697, 15454, 3148, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simple_operator_in_encrypted_parse() { let name1 = _random_string(10); let value1 = _random_string(10); let json = format!(r#"{{"{}":{{"$in":["{}"]}}}}"#, name1, value1); let query = parse_from_json(&json).unwrap(); let expected = Operator::In( ...
rust_cleaned_test_functions.jsonl/11823
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 40594, 1243, 13781, 14026, 21039, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 626, 286, 1077, 2951, 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_nested() { let json = r#"{ "": {"err": ["a"]}, "foo": { "": {"err": ["b"]}, "bar": { "": {"err": ["c"]} } } }"#; let mut map = MetaMap::new(); map.insert(".".t...
rust_cleaned_test_functions.jsonl/126370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 368, 341, 286, 1077, 2951, 284, 435, 55543, 515, 310, 330, 788, 5212, 615, 788, 4383, 64, 1341, 1583, 310, 330, 7975, 788, 341, 394, 330, 788, 5212, 615, 788, 4383, 65, 1341, 1583, 394,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_leading_whitespace_should_imply_padding() { new_ucmd!() .args(&["--from=auto"]) .pipe_in(" 1K") .run() .stdout_is(" 1000\n"); new_ucmd!() .args(&["--from=auto"]) .pipe_in(" 202Ki") .run() .stdout_is(" 206848\n"); }
rust_cleaned_test_functions.jsonl/46009
{ "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, 11751, 2228, 86175, 43378, 17895, 2541, 40726, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 1499, 28, 3902, 14108, 286, 659, 13768, 1243, 445, 256, 220, 16, 42, 1138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_quic_server_no_params_received() { let mut server_config = make_server_config_with_versions(KeyType::ED25519, &[&rustls::version::TLS13]); server_config.alpn_protocols = vec!["foo".into()]; let server_config = Arc::new(server_config); let mut server =...
rust_cleaned_test_functions.jsonl/51945
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1435 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11280, 292, 12015, 6536, 6745, 40783, 368, 341, 286, 1077, 5206, 3538, 5332, 4035, 310, 1281, 12015, 5332, 6615, 65148, 21358, 929, 486, 1479, 17, 20, 20, 16, 24, 11, 44590, 5, 35788, 4730, 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_make_set() { let test_cases: Vec<(Vec<ScalarValue>, _)> = vec![ ( vec![ Some(0b110).into(), Some(b"DataBase".to_vec()).into(), Some(b"Hello World!".to_vec()).into(), ], ...
rust_cleaned_test_functions.jsonl/19757
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2754 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 2602, 368, 341, 286, 1077, 1273, 41427, 25, 11312, 28706, 10050, 78505, 1130, 8066, 716, 16018, 284, 7486, 90515, 310, 2399, 394, 7486, 90515, 503, 4329, 7, 15, 65, 16, 16, 15, 568, 18122...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_batch_raft_cmd_request_builder() { let mut cfg = Config::default(); cfg.raft_entry_max_size = ReadableSize(1000); let mut builder = BatchRaftCmdRequestBuilder::<KvTestEngine>::new(); let mut q = Request::default(); let mut metric = RaftMetrics::new(true); ...
rust_cleaned_test_functions.jsonl/22865
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14534, 62, 2944, 11684, 7893, 28532, 368, 341, 286, 1077, 5206, 13286, 284, 5532, 486, 2258, 543, 286, 13286, 13, 2944, 9078, 6345, 2368, 284, 4457, 480, 1695, 7, 16, 15, 15, 15, 317, 286, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
#[test] fn test_merge_kind_get_if_mergeable() { let mut transaction_context = TransactionContext::new(Vec::new(), 1); let invoke_context = InvokeContext::new_mock(&mut transaction_context, &[]); let authority_pubkey = Pubkey::new_unique(); let initial_lamports = 4242424242; ...
rust_cleaned_test_functions.jsonl/51813
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 33162, 3062, 11119, 20888, 480, 368, 341, 286, 1077, 5206, 7745, 8467, 284, 17869, 1972, 486, 931, 49923, 486, 931, 1507, 220, 16, 317, 286, 1077, 19873, 8467, 284, 39667, 1972, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_masked_eq_operator() { // check use case for SeccompCmpArgLen::DWORD let rules = vec![allow_syscall_if( libc::SYS_ioctl, vec![SeccompRule::new( vec![Cond::new( 1, SeccompCmpArgLen::DWORD, ...
rust_cleaned_test_functions.jsonl/17473
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9999, 291, 10714, 40594, 368, 341, 286, 442, 1779, 990, 1142, 369, 1345, 638, 14435, 34, 1307, 2735, 11271, 486, 32504, 198, 286, 1077, 5601, 284, 7486, 20703, 7183, 20344, 6659, 11119, 1006, 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...
5
#[test] fn test_get_fields_of() { let base = test_base(); let id = test_id(); let schema = test_schema(); let logger = test_logger(); let fork = SubgraphFork::new(base, id, schema, logger).unwrap(); assert_eq!(fork.get_fields_of("Gravatar").unwrap(), &test_field...
rust_cleaned_test_functions.jsonl/8653
{ "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, 3062, 12132, 3575, 368, 341, 286, 1077, 2331, 284, 1273, 7651, 543, 286, 1077, 877, 284, 1273, 842, 543, 286, 1077, 10802, 284, 1273, 25371, 543, 286, 1077, 5925, 284, 1273, 27413, 1428, 286, 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_set_loot_box_id_with_not_owner() { let mut context = get_context(accounts(0)); testing_env!(context.build()); let mut contract = Contract::new(accounts(0).into(), 10); // caller is not owner testing_env!(context .storage_usage(env::storage_usa...
rust_cleaned_test_functions.jsonl/118756
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 5560, 354, 10194, 842, 6615, 7913, 29027, 368, 341, 286, 1077, 5206, 2266, 284, 633, 8467, 91868, 7, 15, 1106, 286, 7497, 15879, 10297, 2147, 13239, 1423, 286, 1077, 5206, 5116, 284, 19185, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_decoder_response() { fn parse(s: &str) -> ParsedMessage<StatusCode> { parse_with_method(s, Method::GET) } fn parse_ignores(s: &str) { let mut bytes = BytesMut::from(s); assert!(Client::parse( &mut bytes, ...
rust_cleaned_test_functions.jsonl/7666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 5984 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49843, 9655, 368, 341, 286, 5168, 4715, 1141, 25, 609, 495, 8, 1464, 393, 18112, 2052, 27, 15872, 29, 341, 310, 4715, 6615, 9032, 1141, 11, 6730, 486, 3806, 340, 286, 555, 286, 5168, 4715, 62,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval_with_trial() { let mut trial_map = HashMap::new(); trial_map.insert("foo".to_owned(), Metric::Selector(BAR_SELECTOR.clone())); trial_map.insert("foo_plus_one".to_owned(), Metric::Eval("foo+1".to_owned())); trial_map.insert("oops_plus_one".to_owned(),...
rust_cleaned_test_functions.jsonl/126959
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1032 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 6615, 63486, 368, 341, 286, 1077, 5206, 9091, 5376, 284, 10528, 486, 931, 543, 1789, 286, 9091, 5376, 7030, 445, 7975, 3263, 983, 51973, 1507, 52458, 486, 5877, 5349, 934, 72396, 15997, 739...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lhld_high() { let mut state = State8080::empty_state(); state.memory = vec![0; 0x2ff]; state.write_memory(0x00, 0x2a); state.write_memory(0x01, 0xab); state.write_memory(0x02, 0x02); state.write_memory(0x2ab, 0xff); state.write_memory(0x2ac...
rust_cleaned_test_functions.jsonl/7801
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 71, 507, 22680, 368, 341, 286, 1077, 5206, 1584, 284, 3234, 23, 15, 23, 15, 486, 3194, 4387, 543, 286, 1584, 36611, 284, 7486, 20703, 15, 26, 220, 15, 87, 17, 542, 935, 286, 1584, 3836,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_name_eq_is_case_insensitive() { let mime1 = Mime::from_str(r#"text/x-custom; abc=a"#).unwrap(); let mime2 = Mime::from_str(r#"text/x-custom; aBc=a"#).unwrap(); assert_eq!(mime1, mime2); }
rust_cleaned_test_functions.jsonl/99142
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1269, 10714, 6892, 19096, 34386, 18723, 368, 341, 286, 1077, 45270, 16, 284, 82430, 486, 1499, 2895, 2601, 55543, 1318, 10776, 36898, 26, 39022, 24239, 57676, 568, 15454, 543, 286, 1077, 45270, 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_switch_directions() { assert_eq!(should_switch_directions(20, 0), false); assert_eq!(should_switch_directions(20, 1), false); assert_eq!(should_switch_directions(20, 14), false); assert_eq!(should_switch_directions(20, 15), true); assert_eq!(should_switch_...
rust_cleaned_test_functions.jsonl/1525
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27652, 25438, 82, 368, 341, 286, 2060, 10714, 10297, 5445, 27652, 25438, 82, 7, 17, 15, 11, 220, 15, 701, 895, 317, 286, 2060, 10714, 10297, 5445, 27652, 25438, 82, 7, 17, 15, 11, 220, 16, 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_as_str() { assert_eq!(Get.as_ref(), "GET"); assert_eq!(Post.as_ref(), "POST"); assert_eq!(Put.as_ref(), "PUT"); assert_eq!(Extension("MOVE".to_owned()).as_ref(), "MOVE"); }
rust_cleaned_test_functions.jsonl/73813
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 2895, 368, 341, 286, 2060, 10714, 10297, 1949, 5357, 7793, 1507, 330, 3806, 797, 286, 2060, 10714, 10297, 4133, 5357, 7793, 1507, 330, 2946, 797, 286, 2060, 10714, 10297, 19103, 5357, 7793, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ref() { let p: Point3<i32> = Point3::new(1, 2, 3); let p_ref: &[i32; 3] = p.as_ref(); assert_eq!(p_ref, &[1, 2, 3]); }
rust_cleaned_test_functions.jsonl/4560
{ "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, 11898, 7793, 368, 341, 286, 1077, 281, 25, 5126, 18, 21897, 18, 17, 29, 284, 5126, 18, 486, 931, 7, 16, 11, 220, 17, 11, 220, 18, 317, 286, 1077, 281, 7793, 25, 44590, 72, 18, 17, 26, 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_pv_subclass_calls() { let hdr = indoc! {" #include <cstdint> extern \"C\" void mark_c_called() noexcept; extern \"C\" void mark_d_called() noexcept; extern \"C\" void mark_e_called() noexcept; extern \"C\" void mark_f_called() noexcept; extern \"C\" void mark_g_called...
rust_cleaned_test_functions.jsonl/9953
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4037 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 91139, 5228, 1040, 45636, 368, 341, 262, 1077, 36615, 284, 1257, 509, 0, 314, 698, 262, 671, 997, 366, 96975, 397, 262, 15637, 7245, 34, 2105, 737, 1868, 666, 27859, 368, 20583, 280, 262, 15637,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reference_vector_l3_nonstandard_sideinfo_size() { let test_vector = include_bytes!("../vectors/l3-nonstandard-sideinfo-size.bit"); test_vs_minimp3(test_vector); }
rust_cleaned_test_functions.jsonl/69850
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25433, 12247, 907, 18, 21637, 20270, 30862, 2733, 2368, 368, 341, 262, 1077, 1273, 12247, 284, 2924, 12524, 17223, 1244, 85, 10605, 13328, 18, 98700, 20270, 24067, 2733, 7174, 30099, 797, 262, 1273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_name_match_without_filter_expr() -> Result<()> { set_rustflags(); let test_filter = TestFilterBuilder::new( RunIgnored::Default, None, vec!["test_multiply_two", "tests::call_dylib_add_two"], vec![], ); let test_list = FIXTURE_TARGETS.make_test_lis...
rust_cleaned_test_functions.jsonl/118817
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 456 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1269, 10708, 39904, 8727, 21915, 368, 1464, 5714, 71698, 341, 262, 738, 1710, 590, 11161, 1428, 262, 1077, 1273, 8727, 284, 3393, 5632, 3297, 486, 931, 1006, 286, 6452, 43337, 3018, 486, 3675, 345...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_read_write_le_mem() { let uints = [0, 1, 2, 42, 10_123, 100_123_456, ::u64::max_value]; let mut writer = MemWriter::new(); for i in uints.iter() { writer.write_le_u64_(*i); } let mut reader = MemReader::new(writer.inner()); for i in u...
rust_cleaned_test_functions.jsonl/38075
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 9165, 11751, 12976, 368, 341, 286, 1077, 2622, 82, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 19, 17, 11, 220, 16, 15, 62, 16, 17, 18, 11, 220, 16, 15, 15, 62, 16, 17, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_concurrent_requests_2_conns() { let mut options = ResolverOpts::default(); options.num_concurrent_reqs = 2; // we want to make sure that both udp connections are called // this will count down to 0 only if both are called. let on_send = OnSendBarrier::new(2); le...
rust_cleaned_test_functions.jsonl/86472
{ "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, 3382, 3231, 37216, 62, 17, 3382, 4412, 368, 341, 262, 1077, 5206, 2606, 284, 81854, 43451, 486, 2258, 1428, 1066, 262, 2606, 10522, 3382, 3231, 17644, 82, 284, 220, 17, 401, 262, 442, 582, 1366,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse() { let mut buf = &fixed_hdr_to_bytes(new_fixed_hdr())[..]; let packet = buf.parse::<Ipv6Packet<_>>().unwrap(); assert_eq!(packet.ds(), 0); assert_eq!(packet.ecn(), 2); assert_eq!(packet.flowlabel(), 0x77); assert_eq!(packet.hop_limit(), 64);...
rust_cleaned_test_functions.jsonl/85888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 368, 341, 286, 1077, 5206, 6607, 284, 609, 22021, 28238, 2346, 12524, 1755, 37839, 28238, 66600, 496, 935, 286, 1077, 10151, 284, 6607, 4632, 27638, 80656, 21, 16679, 32399, 2452, 1005, 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_pending_transactions_endpoint() -> Result<(), Box<dyn Error>> { // load variables in .env dotenv().ok(); let algod = Algod::new() .bind(env::var("ALGOD_URL")?.as_ref()) .auth(env::var("ALGOD_TOKEN")?.as_ref()) .client_v1()?; println!("{:?}", algod.pendin...
rust_cleaned_test_functions.jsonl/21960
{ "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, 37861, 68182, 36699, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 262, 442, 2795, 7332, 304, 659, 3160, 198, 262, 91286, 1005, 562, 1428, 262, 1077, 17345, 347, 284, 1674, 39711, 486, 931...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_array() { // Create and use a default value. let default = DoubleArrayProperty::default(); default.add(1, 1.0); let default = IntArrayProperty::default(); default.add(1, 1); let default = UintArrayProperty::default(); default.add(1, 1); ...
rust_cleaned_test_functions.jsonl/109243
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 759 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 368, 341, 286, 442, 4230, 323, 990, 264, 1638, 897, 624, 286, 1077, 1638, 284, 7093, 1857, 3052, 486, 2258, 543, 286, 1638, 1364, 7, 16, 11, 220, 16, 13, 15, 317, 286, 1077, 1638, 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...
3
#[test] fn test_filter_incoming_max_subscribed_valid() { let t: Vec<_> = (0..5).map(|i| TopicHash::from_raw(format!("t{}", i))).collect(); let mut filter = MaxCountSubscriptionFilter { filter: WhitelistSubscriptionFilter(t.iter().take(4).cloned().collect()), max_subscrib...
rust_cleaned_test_functions.jsonl/121434
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 680 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 1243, 4959, 6345, 5228, 49785, 8337, 368, 341, 286, 1077, 259, 25, 11312, 32399, 29, 284, 320, 15, 496, 20, 568, 2186, 22428, 72, 91, 32911, 6370, 486, 1499, 16067, 20698, 17223, 83, 42351...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_flags_from_vec_15() { let (flags, subcommand, argv) = flags_from_vec(svec!["deno", "run", "-c", "tsconfig.json", "script.ts"]); assert_eq!( flags, DenoFlags { config_path: Some("tsconfig.json".to_owned()), ..DenoFlags::default() } ); assert...
rust_cleaned_test_functions.jsonl/112844
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14130, 5673, 13251, 62, 16, 20, 368, 341, 262, 1077, 320, 11161, 11, 1186, 5631, 11, 10213, 8, 4035, 414, 8042, 5673, 13251, 1141, 4083, 0, 1183, 5183, 78, 497, 330, 6108, 497, 6523, 66, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_can_remove_balance_from_coldkey_account_err_insufficient_balance() { new_test_ext().execute_with(|| { let coldkey_id = 87987984; let initial_amount = 10000; let remove_amount = 20000; Subtensor::add_balance_to_coldkey_account(&coldkey_id, initial_amount); assert_eq!(Subtensor::can_re...
rust_cleaned_test_functions.jsonl/17176
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27421, 18193, 29396, 5673, 666, 813, 792, 13500, 9266, 34386, 26683, 29396, 368, 341, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 197, 10217, 9255, 792, 842, 284, 220, 23, 22, 24, 23, 22, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_acquire_capability() { let root_id = uuid::Uuid::parse_str("00000000-0000-0000-0000-000000000000"); let root_id = root_id.expect("Couldn't parse uuid."); let unit_json = json!(null); let path = Path { root_id, segments: default() }; let method = "file/receivesTreeUpdates".to...
rust_cleaned_test_functions.jsonl/32829
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 411 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 97523, 89686, 368, 341, 262, 1077, 3704, 842, 284, 16040, 486, 38431, 486, 6400, 2895, 445, 15, 15, 15, 15, 15, 15, 15, 15, 12, 15, 15, 15, 15, 12, 15, 15, 15, 15, 12, 15, 15, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_negative_decimal_value() { use crate::{encode::encode, schema::Name}; use num_bigint::ToBigInt; let inner = Box::new(Schema::Fixed { size: 2, name: Name::new("decimal"), }); let schema = Schema::Decimal { inner, ...
rust_cleaned_test_functions.jsonl/56203
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53865, 74429, 3142, 368, 341, 286, 990, 17717, 22964, 6180, 486, 6180, 11, 10802, 486, 675, 2440, 286, 990, 1629, 36386, 396, 486, 1249, 87474, 280, 286, 1077, 9179, 284, 8261, 486, 931, 3759, 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_palindrome_pairs1() { let words: Vec<String> = vec!["abcd", "dcba", "lls", "s", "sssll"] .into_iter() .map(|s| s.to_string()) .collect(); let mut ans = Solution::palindrome_pairs(words); ans.sort_by(|w1, w2| w1[0].cmp(&w2[0])); let mut...
rust_cleaned_test_functions.jsonl/98992
{ "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, 73310, 36058, 36430, 16, 368, 341, 286, 1077, 4244, 25, 11312, 3464, 29, 284, 7486, 0, 1183, 68644, 497, 330, 7628, 4645, 497, 330, 654, 82, 497, 330, 82, 497, 330, 84160, 654, 7026, 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_version_set_get_range() { let cmp = DefaultCmp; let fs = example_files(); assert_eq!( ("a".as_bytes().to_vec(), "z".as_bytes().to_vec()), get_range(&cmp, fs.iter()) ); }
rust_cleaned_test_functions.jsonl/41931
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9438, 2602, 3062, 9698, 368, 341, 286, 1077, 26089, 284, 7899, 34, 1307, 280, 286, 1077, 8619, 284, 3110, 10931, 543, 286, 2060, 10714, 33673, 310, 3489, 64, 3263, 300, 12524, 1005, 983, 13251, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_books_without_price() -> Result<()> { let sql = SqlBuilder::select_from("books") .field("title") .and_where_is_null("price") .sql()?; assert_eq!(&sql, "SELECT title FROM books WHERE price IS NULL;"); let sql = SqlBuilder::select_from(...
rust_cleaned_test_functions.jsonl/12599
{ "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, 73084, 39904, 9040, 368, 1464, 5714, 71698, 341, 286, 1077, 5704, 284, 7224, 3297, 486, 1742, 5673, 445, 12110, 1138, 310, 659, 2566, 445, 2102, 1138, 310, 659, 437, 36814, 6892, 15162, 445, 6555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_human_getInsurance () { use crate::lib::model::player::Human; let mut h = Human::new(); h.chip = 1; h.bet = 1; h.insurance = true; h.get_2xinsurance(); assert!(h.chip == 2); }
rust_cleaned_test_functions.jsonl/125154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86247, 3062, 78754, 1719, 1476, 286, 990, 17717, 486, 2740, 486, 2528, 486, 3434, 486, 33975, 280, 286, 1077, 5206, 305, 284, 11097, 486, 931, 1428, 286, 305, 5329, 573, 414, 284, 220, 16, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_valid_redshift_revoke_cluster_security_group_ingress() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "redshift-revoke-cluster-security-group-ingress.xml", ); let mock = MockRequestDispatcher::with_...
rust_cleaned_test_functions.jsonl/12126
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 26058, 13418, 1288, 7621, 28441, 48726, 6288, 59112, 673, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 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_vault_command_parser_returns_error_for_no_command_arguments() { let command_name = format!("lookup"); let args = format!(""); let result = VaultCommand::parse(&command_name, &args); assert_eq!(result.is_err(), true); let error = result.unwrap_err(); ...
rust_cleaned_test_functions.jsonl/113264
{ "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, 2273, 945, 10811, 18517, 58900, 4096, 5478, 6536, 10811, 43433, 368, 341, 286, 1077, 3210, 1269, 284, 3561, 17223, 21020, 797, 286, 1077, 2827, 284, 3561, 17223, 3071, 286, 1077, 1102, 284, 41397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_module_with_headers() { let specifier = ModuleSpecifier::parse("https://localhost/file").unwrap(); let mut headers = HashMap::new(); headers.insert( "content-type".to_string(), "application/typescript; charset=utf-8".to_string(), ); let maybe_headers = Some(...
rust_cleaned_test_functions.jsonl/94374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 10750, 6615, 26719, 368, 341, 262, 1077, 97616, 284, 13711, 87297, 486, 6400, 445, 2428, 1110, 8301, 23903, 1827, 15454, 543, 262, 1077, 5206, 7102, 284, 10528, 486, 931, 543, 262, 7102, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_element_attributes_command_encode_all_attributes() { let b = GetElementAttributesCommand::all_attributes(); assert_eq!( b.attributes(), &[ MediaAttributeId::Title, MediaAttributeId::ArtistName, MediaAttri...
rust_cleaned_test_functions.jsonl/93001
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 581 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 7894, 18240, 10811, 11224, 5705, 18240, 368, 341, 286, 1077, 293, 284, 2126, 1691, 10516, 4062, 486, 541, 18240, 543, 286, 2060, 10714, 33673, 310, 293, 26140, 3148, 310, 609, 9640, 394, 781...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_native_equality() { let rng = &mut test_rng(); let cs = ConstraintSystem::<Fr>::new_ref(); let (input, input_var) = generate_input(cs.clone(), rng); println!("number of constraints for input: {}", cs.num_constraints()); let parameters = TestCRH::setup(rn...
rust_cleaned_test_functions.jsonl/8222
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 482 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44494, 2204, 10473, 368, 341, 286, 1077, 28422, 284, 609, 6984, 1273, 66849, 543, 286, 1077, 10532, 284, 44264, 2320, 27638, 22560, 6831, 931, 7793, 1428, 286, 1077, 320, 1355, 11, 1946, 4612, 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_is_compaction_filter_allowed() { let gate = FeatureGate::default(); gate.set_version("4.1.0").unwrap(); let mut cfg_value = GcConfig::default(); assert!(!is_compaction_filter_allowed(&cfg_value, &gate)); cfg_value.enable_compaction_filter = true; ...
rust_cleaned_test_functions.jsonl/101615
{ "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, 6892, 18177, 1311, 8727, 42155, 368, 341, 286, 1077, 18126, 284, 19998, 42318, 486, 2258, 543, 286, 18126, 980, 9438, 445, 19, 13, 16, 13, 15, 1827, 15454, 543, 286, 1077, 5206, 13286, 3142, 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_make_reset_telemetry() { make_reset_telemetry!( /// TestValue1 TestVal1 => 0x30, ); assert_eq!( command(Type::TestVal1), ( Command { cmd: 0x30, data: vec![0x00], ...
rust_cleaned_test_functions.jsonl/63578
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 18983, 528, 18871, 15149, 368, 341, 286, 1281, 18983, 528, 18871, 15149, 33673, 310, 1048, 3393, 1130, 16, 198, 310, 3393, 2208, 16, 589, 220, 15, 87, 18, 15, 345, 286, 3475, 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_skewness() { test_case(0.0, 0.0, |x| x.skewness()); test_case(4.0, 0.0, |x| x.skewness()); test_case(0.3, 0.0, |x| x.skewness()); test_case(f64::INFINITY, 0.0, |x| x.skewness()); }
rust_cleaned_test_functions.jsonl/66860
{ "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, 33811, 365, 2090, 368, 341, 286, 1273, 19096, 7, 15, 13, 15, 11, 220, 15, 13, 15, 11, 760, 87, 91, 856, 39454, 365, 2090, 1423, 286, 1273, 19096, 7, 19, 13, 15, 11, 220, 15, 13, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_stake_transaction_fee_ends_up_in_transaction_fee_pool() { let test_neuron_cold_key = 1; let test_neuron_hot_key = 2; let balances = vec![(test_neuron_cold_key, 1_000_000_000)]; mock::test_ext_with_balances(balances).execute_with(|| { // Register neuron_1 assert_ok!(Subtensor::set...
rust_cleaned_test_functions.jsonl/17149
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 460 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 1261, 726, 28884, 34305, 90729, 8237, 1243, 28884, 34305, 15709, 368, 341, 10217, 1273, 13925, 36090, 666, 813, 3097, 284, 220, 16, 280, 10217, 1273, 13925, 36090, 33433, 3097, 284, 220, 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_updating_in_place() { let mut manager = ConfigManager::default(); assert_eq!(manager.default_buffer_config().items.font_size, 14.); let changes = json!({"font_size": 69, "font_face": "nice"}) .as_object().unwrap().to_owned(); manager.update_user_config...
rust_cleaned_test_functions.jsonl/40019
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8237, 14110, 1243, 34548, 368, 341, 286, 1077, 5206, 6645, 284, 5532, 2043, 486, 2258, 543, 286, 2060, 10714, 10297, 13297, 8764, 7776, 5332, 1005, 3615, 13990, 2368, 11, 220, 16, 19, 58957, 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_poll() { let (r, w) = pipe().unwrap(); let mut fds = [PollFd::new(r, PollFlags::POLLIN)]; // Poll an idle pipe. Should timeout let nfds = loop_while_eintr!(poll(&mut fds, 100)); assert_eq!(nfds, 0); assert!(!fds[0].revents().unwrap().contains(PollFlags::POLLIN)); w...
rust_cleaned_test_functions.jsonl/16104
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40002, 368, 341, 262, 1077, 320, 81, 11, 289, 8, 284, 13647, 1005, 15454, 543, 262, 1077, 5206, 93734, 284, 508, 49207, 74476, 486, 931, 2601, 11, 24385, 9195, 486, 47, 21535, 687, 73663, 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_empty_transaction_status() { let ledger_path = get_tmp_ledger_path_auto_delete!(); let blockstore = Blockstore::open(ledger_path.path()).unwrap(); blockstore.set_roots(std::iter::once(&0)).unwrap(); assert_eq!( blockstore .get_rooted_t...
rust_cleaned_test_functions.jsonl/9566
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 28884, 4773, 368, 341, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 27740, 11353, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 7, 50704, 2638, 3875, 6011, 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_need_gc() { let path = Builder::new() .prefix("test_storage_mvcc_reader") .tempdir() .unwrap(); let path = path.path().to_str().unwrap(); let region = make_region(1, vec![0], vec![10]); test_without_properties(path, &region); ...
rust_cleaned_test_functions.jsonl/3921
{ "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, 71506, 49423, 368, 341, 286, 1077, 1815, 284, 20626, 486, 931, 741, 310, 659, 11849, 445, 1944, 23310, 73187, 638, 22306, 1138, 310, 659, 3888, 3741, 741, 310, 659, 15454, 543, 286, 1077, 1815, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_totp() { let auth = otpauth::TOTP::new("python"); let timestamp1 = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs(); let code = auth.generate(30, timestamp1); let timestamp2 = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_secs(); assert!(auth.verify(...
rust_cleaned_test_functions.jsonl/93462
{ "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, 36138, 79, 368, 341, 262, 1077, 4166, 284, 83431, 3242, 486, 65620, 47, 486, 931, 445, 12669, 797, 262, 1077, 11441, 16, 284, 739, 1462, 486, 3328, 1005, 17021, 56262, 7, 99089, 2089, 69945, 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_annotate() { let input = r##" a = 2 a = a + 4; b = 3 + a; c = 3 + b; "##; let loc = Loc(3, 21); let mut annotated = String::new(); assert!(loc.annotate(&mut annotated, &input).is_ok()); assert_eq!( annotated, r##"2 | a = 2 | ^^^^ 3 | a = a + 4; | ^^^^^^^...
rust_cleaned_test_functions.jsonl/21938
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 91350, 368, 341, 262, 1077, 1946, 284, 435, 565, 698, 64, 284, 220, 17, 198, 64, 284, 264, 488, 220, 19, 280, 65, 284, 220, 18, 488, 264, 280, 66, 284, 220, 18, 488, 293, 280, 1, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pseudo_nth_last_of_type() -> Result { let html = r#" <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>:nth-last-of-type</title> </head> <body> <dl> <dt>dt1</dt> <dd>dd1</dd> <dd>dd2</dd> ...
rust_cleaned_test_functions.jsonl/58030
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 896 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28890, 620, 21952, 78342, 12195, 3575, 1819, 368, 1464, 5714, 341, 10217, 5272, 284, 435, 2, 698, 262, 71341, 50139, 5272, 397, 262, 366, 1551, 8688, 428, 268, 881, 414, 366, 1983, 397, 286, 366...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_single_node_candidate() { let l = default_logger(); let mut tt = Network::new(vec![None], &l); tt.send(vec![new_message(1, 1, MessageType::MsgHup, 0)]); assert_eq!(tt.peers[&1].state, StateRole::Leader); }
rust_cleaned_test_functions.jsonl/19100
{ "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, 19487, 5084, 62360, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 5206, 17853, 284, 8141, 486, 931, 25592, 20703, 4064, 1125, 609, 75, 317, 262, 17853, 5219, 25592, 20703, 931, 6462,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deactivate_device() { let mut d = TestDevices::default(); let core_a = MockDeviceId(1); let a = d.add_active_device(core_a, |id| id + 10).unwrap(); let b = d.add_device(|id| id + 20); assert_eq!(d.deactivate_device(b).unwrap_err(), ToggleError::NoChange); ...
rust_cleaned_test_functions.jsonl/18164
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 16856, 9204, 368, 341, 286, 1077, 5206, 294, 284, 3393, 40835, 486, 2258, 543, 286, 1077, 6200, 4306, 284, 14563, 6985, 764, 7, 16, 317, 286, 1077, 264, 284, 294, 1364, 12930, 9204, 47867,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiple_controllers() { let mut exec = fasync::TestExecutor::new().expect("failed to create an executor"); let test_values = test_setup(); let serve_fut = test_values.ap.serve_provider_requests(test_values.requests); pin_mut!(serve_fut); assert_...
rust_cleaned_test_functions.jsonl/59832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 670 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 10260, 7273, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 797, 286, 1077, 1273, 9146, 284, 1273, 21363, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_timestamp_millisecond() { let expected = vec![ "+-------------------------+", "| f |", "+-------------------------+", "| 1970-01-01 03:05:11.111 |", "| |", "+------...
rust_cleaned_test_functions.jsonl/39715
{ "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, 9165, 23073, 717, 65358, 368, 341, 286, 1077, 3601, 284, 7486, 90515, 310, 6630, 771, 22738, 10, 756, 310, 25203, 282, 5180, 760, 756, 310, 6630, 771, 22738, 10, 756, 310, 25203, 220, 16, 24, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_max_coding_shreds() { let keypair = Arc::new(Keypair::new()); let hash = hash(Hash::default().as_ref()); let version = shred_version::version_from_hash(&hash); assert_ne!(version, 0); let shredder = Shredder::new(0, 0, 1.0, keypair, 0, version)...
rust_cleaned_test_functions.jsonl/28200
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 816 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 666, 3700, 3712, 53369, 368, 341, 286, 1077, 1376, 12670, 284, 19689, 486, 931, 7, 6608, 1082, 1310, 486, 931, 1423, 286, 1077, 5175, 284, 5175, 7, 6370, 486, 2258, 1005, 300, 7793, 1423, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_debug() { let cases = &[ ("hello", "\"hello\""), ("hello \"world\"", "\"hello \\\"world\\\"\""), ("\u{7FFF}hello", "\"\\xe7\\xbf\\xbfhello\""), ]; for &(value, expected) in cases { let val = HeaderValue::from_bytes(value.as_bytes()).unwrap(); ...
rust_cleaned_test_functions.jsonl/102947
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15446, 368, 341, 262, 1077, 5048, 284, 609, 9640, 286, 3489, 14990, 497, 15898, 14990, 2105, 4461, 286, 3489, 14990, 7245, 14615, 55853, 15898, 14990, 24984, 2105, 14615, 3422, 2105, 2105, 4461, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_http_session_serde() { { let json = r#"{"id": "abc"}"#; assert_eq!( serde_json::from_str::<HttpSession>(json).unwrap(), HttpSession::Old { id: "abc".to_string() } ); } { let json = r#"{}"#; a...
rust_cleaned_test_functions.jsonl/42108
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 329 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25888, 12316, 75861, 450, 368, 341, 262, 341, 286, 1077, 2951, 284, 435, 55543, 4913, 307, 788, 330, 13683, 9207, 57676, 280, 286, 2060, 10714, 33673, 310, 61570, 9455, 486, 1499, 2895, 27638, 290...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_inverse_score() { let inverse_score = InverseScore::new(100, 90); let mut score = inverse_score.execute(50); info!("{:?}", score); assert!(score > 90); score = inverse_score.execute(100); info!("{:?}", score); assert_eq!(score, 90); score = inverse_score.execute(2...
rust_cleaned_test_functions.jsonl/100337
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63333, 10405, 368, 341, 262, 1077, 27949, 10405, 284, 758, 4450, 10570, 486, 931, 7, 16, 15, 15, 11, 220, 24, 15, 317, 262, 1077, 5206, 5456, 284, 27949, 10405, 7769, 7, 20, 15, 317, 262, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_xor_data() { let v1: Vec<u8> = vec![1, 0, 0, 1]; let v2: Vec<u8> = vec![1, 1]; let expected: Vec<u8> = vec![0, 1, 1, 0]; assert_eq!(xor_data(v1, v2), expected); }
rust_cleaned_test_functions.jsonl/78893
{ "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, 76462, 1769, 368, 341, 286, 1077, 348, 16, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 16, 11, 220, 15, 11, 220, 15, 11, 220, 16, 935, 286, 1077, 348, 17, 25, 11312, 34837, 23, 29, 284, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_db_and_cf() { let valid_cases = vec![ (DBType::Kv, CF_DEFAULT), (DBType::Kv, CF_WRITE), (DBType::Kv, CF_LOCK), (DBType::Kv, CF_RAFT), (DBType::Raft, CF_DEFAULT), ]; for (db, cf) in valid_cases { ...
rust_cleaned_test_functions.jsonl/33459
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 426 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 8685, 8378, 71143, 368, 341, 286, 1077, 2697, 41427, 284, 7486, 90515, 310, 320, 3506, 929, 486, 42, 85, 11, 20795, 13811, 1326, 310, 320, 3506, 929, 486, 42, 85, 11, 20795, 17475, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_receive_gratuitous_arp_request() { let mut ctx = DummyContext::default(); send_arp_packet( &mut ctx, ArpOp::Request, TEST_REMOTE_IPV4, TEST_REMOTE_IPV4, TEST_REMOTE_MAC, TEST_INVALID_MAC, ...
rust_cleaned_test_functions.jsonl/16988
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38557, 15682, 266, 3083, 782, 62, 7876, 7893, 368, 341, 1789, 23459, 286, 1077, 5206, 5635, 284, 50567, 1972, 486, 2258, 543, 286, 3624, 62, 7876, 21078, 1006, 310, 609, 6984, 5635, 345, 310, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_qtime_is_valid() { let valid_qtime = QTime::from_h_m_s_ms(10, 30, Some(40), Some(300)); assert!(valid_qtime.is_valid()); let invalid_qtime = QTime::from_h_m_s_ms(10, 30, Some(40), Some(9999)); assert!(!invalid_qtime.is_valid()); }
rust_cleaned_test_functions.jsonl/45522
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8976, 1678, 6892, 8337, 368, 341, 262, 1077, 2697, 8976, 1678, 284, 1207, 1462, 486, 1499, 1523, 717, 643, 21416, 7, 16, 15, 11, 220, 18, 15, 11, 4329, 7, 19, 15, 701, 4329, 7, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_closure_while_true() { assert_eq!( eval_ok( "let x = 1. { x = x * 2. x < 10 } whileTrue. x" ) .integer(), 16 ); }
rust_cleaned_test_functions.jsonl/15567
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72823, 86069, 16082, 368, 341, 262, 2060, 10714, 33673, 286, 5603, 19817, 1006, 310, 330, 1149, 856, 284, 220, 16, 624, 1797, 341, 2290, 856, 284, 856, 353, 220, 17, 624, 2290, 856, 366, 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_uncompress_panic() { use std::io::Cursor; let msg: Vec<u8> = vec![12, 42, 84, 104, 105, 115, 32, 105, 115, 32, 116, 101, 115, 116]; let uncomp_msg = String::from_utf8(uncompress(Cursor::new(msg)).unwrap()).unwrap(); assert_eq!(&uncomp_msg[..], "This is test"); }
rust_cleaned_test_functions.jsonl/110025
{ "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, 38360, 620, 31270, 368, 341, 262, 990, 1460, 486, 815, 486, 14543, 280, 262, 1077, 3750, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 16, 17, 11, 220, 19, 17, 11, 220, 23, 19, 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_does_not_confuse_different_duplicates() { let inputs = ["eagle"]; let outputs: Vec<&str> = vec![]; assert_eq!(anagram::anagrams_for("galea", &inputs), outputs); }
rust_cleaned_test_functions.jsonl/65506
{ "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, 96374, 7913, 16059, 810, 82741, 75051, 368, 341, 262, 1077, 11127, 284, 4383, 68, 32674, 6332, 262, 1077, 16275, 25, 11312, 52244, 495, 29, 284, 7486, 0, 15078, 262, 2060, 10714, 10297, 276, 5745,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1