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_protocol_state_chain_last_vrf() { let mut c: ProtocolStateChain = ProtocolStateChain(vec![]); assert_eq!(None, c.last_vrf()); let mut b0: ProtocolState = Default::default(); b0.body.consensus_state.blockchain_length = Length(0); c.push(b0.clone()).unwrap(...
rust_cleaned_test_functions.jsonl/16446
{ "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, 34880, 4387, 30583, 12195, 2273, 8052, 368, 341, 286, 1077, 5206, 272, 25, 24572, 1397, 18837, 284, 24572, 1397, 18837, 25592, 0, 56703, 286, 2060, 10714, 10297, 4064, 11, 272, 9110, 2273, 8052, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_multiple() { let arena = Arena::new(); assert_syntaxes( &parse(&arena, "123 456", &lang()), &[ Syntax::new_atom( &arena, vec![SingleLineSpan { line: 0.into(), ...
rust_cleaned_test_functions.jsonl/52645
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 620 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 45233, 368, 341, 286, 1077, 24902, 284, 27047, 486, 931, 1428, 286, 2060, 78894, 288, 1006, 310, 609, 6400, 2099, 30527, 11, 330, 16, 17, 18, 220, 19, 20, 21, 497, 609, 5205, 14702, 310...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_strongest_bridge() { let components = Component::parse( "0/2 2/2 2/3 3/4 3/5 0/1 10/1 9/10"); assert_eq!(strongest_bridge(components), 31); }
rust_cleaned_test_functions.jsonl/39395
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2895, 644, 477, 54944, 368, 341, 10217, 6813, 284, 5578, 486, 6400, 1006, 1, 15, 14, 17, 198, 17, 14, 17, 198, 17, 14, 18, 198, 18, 14, 19, 198, 18, 14, 20, 198, 15, 14, 16, 198, 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...
1
#[test] fn test_connecting_with_a_non_working_psql_connection_string() { let dm = postgres_url(Some("this_does_not_exist")); with_cli(vec!["cli", "--can_connect_to_database"], |matches| { assert_eq!("P1003", run_sync(&matches, &dm).unwrap_err().error_code().unwrap()); }) ...
rust_cleaned_test_functions.jsonl/6665
{ "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, 15720, 287, 6615, 4306, 21637, 81101, 620, 3544, 15866, 3904, 368, 341, 286, 1077, 28676, 284, 59826, 2903, 65405, 445, 574, 96374, 7913, 35906, 14929, 286, 448, 47147, 25592, 0, 1183, 19521, 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_complex() { assert_eq!( apply( r#" def method(): Boolean // test a += 1 end "# .trim() ), Ok(vec![ Token::Keyword(span(1, 1, "def")), Token::Identifier(span(1, 5, "method")), ...
rust_cleaned_test_functions.jsonl/27577
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 505 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41522, 368, 341, 286, 2060, 10714, 33673, 310, 3796, 1006, 394, 435, 2, 698, 750, 1714, 4555, 6992, 198, 262, 442, 1273, 198, 262, 264, 1421, 220, 16, 198, 408, 198, 1, 4956, 503, 659, 10666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_client_multiple_writes() { solana_logger::setup(); let s = UdpSocket::bind("127.0.0.1:0").unwrap(); let exit = Arc::new(AtomicBool::new(false)); let (sender, receiver) = unbounded(); let keypair = Keypair::new(); let ip = "127.0.0.1".parse().u...
rust_cleaned_test_functions.jsonl/8357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11280, 292, 8179, 45233, 1670, 23262, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 274, 284, 547, 9796, 10286, 486, 7666, 445, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 15, 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...
6
#[test] fn test_persist_context() { block_on(async { let mut storage = MemStorage::new(); let last_update_time = i64_to_time(123456789); let server_dictated_poll_interval = Some(Duration::from_micros(56789)); let context = Context { schedul...
rust_cleaned_test_functions.jsonl/69583
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 446 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 4975, 8467, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 5206, 5819, 284, 13550, 5793, 486, 931, 543, 310, 1077, 1537, 8882, 3009, 284, 600, 21, 19, 2346, 3009, 7, 16, 17, 18, 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_update_static_fields() { let source_root = env::var("MESON_SOURCE_ROOT") .expect("Failed, ENV variable not set!"); let dev_path = Path::new(&source_root).join(DEV_RELATIVE_PATH); let full_path = |path| dev_path.join(path); let config = ParsedConfig {...
rust_cleaned_test_functions.jsonl/23883
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2922 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 25360, 12132, 368, 341, 286, 1077, 2530, 12993, 284, 6105, 486, 947, 445, 87711, 711, 25430, 16197, 1138, 310, 659, 17119, 445, 9408, 11, 32791, 3890, 537, 738, 57073, 286, 1077, 3483, 2638,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_thread_cpu_statistics() { let tn = "testcpu123"; let (tx, rx) = high_cpu_thread(tn.to_owned(), 200); // Wait for thread creation rx.recv().unwrap(); let mut thread_info = ThreadInfoStatistics::new(); let pid = unsafe { libc::getpid() }; ...
rust_cleaned_test_functions.jsonl/74386
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 606 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10814, 21795, 49569, 368, 341, 286, 1077, 43308, 284, 330, 1944, 16475, 16, 17, 18, 3302, 286, 1077, 320, 3998, 11, 19111, 8, 284, 1550, 21795, 10814, 1155, 77, 2389, 51973, 1507, 220, 17, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_next_witness_block() { assert_eq!( WitnessGenerator::<Database>::next_witness_block( BlockNumber(3), BlockNumber(4), &BlockInfo::NotReadyBlock ), BlockNumber(3) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/63062
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 650 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11257, 1670, 8091, 7113, 368, 341, 286, 2060, 10714, 33673, 310, 48899, 12561, 27638, 5988, 6831, 3600, 1670, 8091, 7113, 1006, 394, 8362, 2833, 7, 18, 1326, 394, 8362, 2833, 7, 19, 1326, 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_scalar_repr_sub_noborrow() { let mut rng = XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); let mut t = ScalarRepr::new([ 0x8e62a7e85264e2c3, 0xb23...
rust_cleaned_test_functions.jsonl/56393
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41652, 68535, 5228, 1089, 674, 7768, 368, 341, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968, 486, 1499, 33809, 8956, 310, 220, 15, 87, 20, 24, 11, 220, 15, 87, 21, 17, 11, 220, 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...
4
#[test] fn test_statsd_client_histogram_duration() { let client = StatsdClient::from_sink("prefix", NopMetricSink); let res = client.histogram("key", Duration::from_nanos(210)); assert_eq!("prefix.key:210|h", res.unwrap().as_metric_str()); }
rust_cleaned_test_functions.jsonl/10601
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 68564, 25454, 368, 341, 286, 1077, 2943, 284, 29927, 67, 2959, 486, 1499, 51567, 445, 11849, 497, 451, 453, 54310, 45094, 317, 286, 1077, 592, 284, 2943, 94184, 445, 792, 497, 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_match_name() { let mut rdef = ResourceDef::new("/index.html"); rdef.set_name("index"); let mut rmap = ResourceMap::new(ResourceDef::prefix("")); rmap.add(&mut rdef, None); assert!(rmap.has_resource("/index.html")); let req = TestRequest::default...
rust_cleaned_test_functions.jsonl/39765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 1269, 368, 341, 286, 1077, 5206, 435, 750, 284, 11765, 2620, 486, 931, 4283, 1252, 2564, 797, 286, 435, 750, 980, 1269, 445, 1252, 3071, 286, 1077, 5206, 435, 2186, 284, 11765, 2227, 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_merkle_proof() { clear_mocks(); let address = Address::P2PKH(H160::from_str(&"66c7060feb882664ae62ffad0051fe843e318e85").unwrap()); let transaction = TransactionBuilder::new() .with_version(2) .add_input(TransactionInputBuilder::new()....
rust_cleaned_test_functions.jsonl/90679
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 452 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 16754, 273, 86757, 368, 341, 286, 2797, 717, 25183, 543, 286, 1077, 2621, 4035, 310, 9177, 486, 47, 17, 22242, 39, 10896, 16, 21, 15, 486, 1499, 2895, 2099, 1, 21, 21, 66, 22, 15, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cookie() { let event: LambdaHttpEvent = serde_json::from_str(API_GATEWAY_V2_GET_TWO_COOKIES).unwrap(); assert_eq!( event.cookies(), vec!["cookie1=value1".to_string(), "cookie2=value2".to_string()] ); let event: LambdaHttpEvent = ...
rust_cleaned_test_functions.jsonl/115194
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38663, 368, 341, 286, 1077, 1538, 25, 44521, 2905, 1556, 284, 61570, 9455, 486, 1499, 2895, 48953, 81116, 41803, 2334, 17, 12702, 73892, 19628, 3925, 5369, 568, 15454, 543, 286, 2060, 10714, 33673, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_arg_value() { let args = &["--bar=bar", "--foobar", "123", "--foo"]; assert_eq!(arg_value(&[] as &[&str], "--foobar", |_| true), None); assert_eq!(arg_value(args, "--bar", |_| false), None); assert_eq!(arg_value(args, "--bar", |_| true), Some("bar")); assert_eq!(arg_value(ar...
rust_cleaned_test_functions.jsonl/50216
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6057, 3142, 368, 341, 262, 1077, 2827, 284, 609, 1183, 313, 2257, 28, 2257, 497, 14482, 50267, 497, 330, 16, 17, 18, 497, 14482, 7975, 31797, 262, 2060, 10714, 10297, 858, 3142, 2099, 1294, 438,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deploy_dependencies() { let creation_time = Timestamp::from(100); let ttl = TimeDiff::from(100); let block_time = Timestamp::from(120); let mut rng = TestRng::new(); let (hash1, deploy1) = generate_deploy(&mut rng, creation_time, ttl, vec![]); // ...
rust_cleaned_test_functions.jsonl/93526
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 652 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 91890, 71841, 368, 341, 286, 1077, 9688, 3009, 284, 32758, 486, 1499, 7, 16, 15, 15, 317, 286, 1077, 53932, 284, 4120, 21751, 486, 1499, 7, 16, 15, 15, 317, 286, 1077, 2504, 3009, 284, 32758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_chunks_mut_nth_back() { let v: &mut [i32] = &mut [0, 1, 2, 3, 4, 5]; let mut c = v.chunks_mut(2); assert_eq!(c.nth_back(1).unwrap(), &[2, 3]); assert_eq!(c.next().unwrap(), &[0, 1]); let v1: &mut [i32] = &mut [0, 1, 2, 3, 4]; let mut c1 = v1.chunks_mut(3); assert_eq!...
rust_cleaned_test_functions.jsonl/9627
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 384 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65470, 29523, 78342, 3895, 368, 341, 262, 1077, 348, 25, 609, 6984, 508, 72, 18, 17, 60, 284, 609, 6984, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_backward_compatibility() { fn state_fixture(certification_version: u32) -> ReplicatedState { let mut state = ReplicatedState::new_rooted_at( subnet_test_id(1), SubnetType::Application, "NOT_USED".into(), ); ...
rust_cleaned_test_functions.jsonl/116091
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1927 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70477, 2965, 53053, 368, 341, 286, 5168, 1584, 74409, 87793, 2404, 9438, 25, 575, 18, 17, 8, 1464, 3321, 13724, 1397, 341, 310, 1077, 5206, 1584, 284, 3321, 13724, 1397, 486, 931, 12993, 291, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_truncate_uint() { let tests = vec![ ( 18446744073709551615_u64, u64::max_value() as i64, true, 18446744073709551615_u64, ), ( 18446744073709551615_u64, -2, ...
rust_cleaned_test_functions.jsonl/9506
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 776 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 26900, 15807, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 2399, 394, 220, 16, 23, 19, 19, 21, 22, 19, 19, 15, 22, 18, 22, 15, 24, 20, 20, 16, 21, 16, 20, 7300, 21, 19, 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...
3
#[test] fn test_create_account_with_seed() { let new_owner = Pubkey::new(&[9; 32]); let from = solana_sdk::pubkey::new_rand(); let seed = "shiny pepper"; let to = Pubkey::create_with_seed(&from, seed, &new_owner).unwrap(); let from_account = AccountSharedData::new_ref(10...
rust_cleaned_test_functions.jsonl/73036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 684 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 13500, 6615, 33809, 368, 341, 286, 1077, 501, 29027, 284, 22611, 792, 486, 931, 2099, 58, 24, 26, 220, 18, 17, 2558, 286, 1077, 504, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_infrastructure() { let db = fresh_db(); db.add_data("cpu_load_short,host=server01,region=us-west value=0.64 1434055562000000000") .unwrap(); let response: QueryResponse = db.query(r#"SELECT "value","host" FROM "cpu_load_short" WHERE "region"='us-west'"#) .un...
rust_cleaned_test_functions.jsonl/23798
{ "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, 26051, 10314, 368, 341, 262, 1077, 2927, 284, 7722, 8685, 1428, 262, 2927, 1364, 1769, 445, 16475, 12411, 16673, 11, 3790, 28, 4030, 15, 16, 11, 3943, 28, 355, 37602, 897, 28, 15, 13, 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_find_optimal_sequence() { let p = build_problem(); let s = find_optimal_sequence(&p); assert_eq!(s, vec![3, 0, 2, 1]); }
rust_cleaned_test_functions.jsonl/69078
{ "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, 21814, 15032, 2861, 23735, 368, 341, 310, 1077, 281, 284, 1936, 60139, 543, 310, 1077, 274, 284, 1477, 15032, 2861, 23735, 2099, 79, 317, 310, 2060, 10714, 10297, 82, 11, 7486, 20703, 18, 11, 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
#[test] fn test_client_config_keyshare_mismatch() { let client_config = make_client_config_with_kx_groups(KeyType::RSA, &[&rustls::kx_group::SECP384R1]); let server_config = make_server_config_with_kx_groups(KeyType::RSA, &[&rustls::kx_group::X25519]); let (mut client, mut server) = ...
rust_cleaned_test_functions.jsonl/51932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8179, 5332, 3097, 19368, 717, 24976, 368, 341, 262, 1077, 2943, 5332, 4035, 286, 1281, 8179, 5332, 6615, 4698, 87, 21148, 21358, 929, 486, 73564, 11, 44590, 5, 35788, 4730, 486, 74, 87, 6288, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_fdt_with_devices() { let regions = arch_memory_regions(layout::FDT_MAX_SIZE + 0x1000); let mem = GuestMemoryMmap::new(&regions).expect("Cannot initialize memory"); let dev_info: HashMap<(DeviceType, std::string::String), MMIODeviceInfo> = [ ( ...
rust_cleaned_test_functions.jsonl/90775
{ "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, 8657, 761, 8047, 6615, 41334, 368, 341, 286, 1077, 13604, 284, 5325, 19195, 58035, 19930, 486, 37, 10599, 6806, 4098, 488, 220, 15, 87, 16, 15, 15, 15, 317, 286, 1077, 1833, 284, 26215, 10642, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lapse_rate() { let lyr = make_test_layer(); println!( "{:#?}\n\n -- \n\n Lapse Rate = {:#?} \n\n --", lyr, lyr.lapse_rate().unwrap() ); assert!(lyr .lapse_rate() .unwrap() .approx_eq(CelsiusPK...
rust_cleaned_test_functions.jsonl/60215
{ "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, 907, 7477, 9246, 368, 341, 286, 1077, 85237, 284, 1281, 4452, 12680, 543, 286, 13751, 33673, 310, 13868, 14111, 30, 11035, 77, 1699, 1177, 1124, 77, 1699, 444, 7477, 19775, 284, 314, 14111, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_idx_codec() { let mut col_ids = vec![1, 2, 3, 4]; let mut duration_col = ColumnInfo::default(); duration_col .as_mut_accessor() .set_tp(FieldTypeTp::Duration) .set_decimal(2); let col_types = vec![ FieldTypeTp::Lon...
rust_cleaned_test_functions.jsonl/3832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7258, 51084, 368, 341, 286, 1077, 5206, 1375, 8077, 284, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 4821, 286, 1077, 5206, 8090, 10211, 284, 9332, 1731, 486, 2258, 543, 286, 8090,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ixdyn_wrong_dim() { let mut a = Array::zeros(vec![2, 3, 4]); a[[1, 1, 1]] = 1.; let _ = a[[0, 0]]; }
rust_cleaned_test_functions.jsonl/44830
{ "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, 62686, 43085, 75198, 10791, 368, 341, 1066, 262, 1077, 5206, 264, 284, 2910, 486, 35716, 25592, 20703, 17, 11, 220, 18, 11, 220, 19, 2558, 262, 264, 15505, 16, 11, 220, 16, 11, 220, 16, 5053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_sbi() { let mut state = State8080::empty_state(); state.memory = vec![0xde, 0x01]; state.a = 0x00; state.cc.cy = 0; emulate_8080_op(&mut state); assert_eq!(state.a, 0xff); assert_eq!(state.cc.cy, 1); assert_eq!(state.cc.s, Sign::Ne...
rust_cleaned_test_functions.jsonl/7789
{ "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, 643, 8221, 368, 341, 286, 1077, 5206, 1584, 284, 3234, 23, 15, 23, 15, 486, 3194, 4387, 543, 286, 1584, 36611, 284, 7486, 20703, 15, 56185, 11, 220, 15, 87, 15, 16, 935, 286, 1584, 5849, 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_can_map_hex_string_to_namespace_id() { let unresolved = unresolved_mapping::to_unresolved_mosaic(&NAMESPACE_ID.to_hex()).unwrap(); assert_eq!(unresolved.clone().try_downcast::<NamespaceId>().is_ok(), true); assert_eq!(unresolved.try_downcast::<MosaicId>().is_ok(), false);...
rust_cleaned_test_functions.jsonl/60943
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27421, 5376, 32655, 3904, 2346, 41571, 842, 368, 341, 286, 1077, 80161, 284, 80161, 26930, 486, 983, 4907, 39747, 717, 44783, 2099, 88880, 3450, 2389, 32655, 6011, 15454, 543, 286, 2060, 10714, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_valid_arg_scope() { let valid = r#" let a = |int, int| int * int; "#; assert_eq!( closure_valid_arg_scope(valid), Some((ByteRange::new(BytePos(13), BytePos(23)), "|int, int|")) ); let confusing = r#" match a { EnumA::A => match b { ...
rust_cleaned_test_functions.jsonl/126169
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72823, 8337, 6057, 23199, 368, 341, 262, 1077, 2697, 284, 435, 2, 698, 262, 1077, 264, 284, 760, 396, 11, 526, 91, 526, 353, 526, 280, 57676, 280, 262, 2060, 10714, 33673, 286, 21955, 8337, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_with_size_file_not_found() { new_ucmd!() .args(&["-r", "a", "-s", "+1", "b"]) .fails() .stderr_contains("cannot stat 'a': No such file or directory"); }
rust_cleaned_test_functions.jsonl/77097
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25433, 6615, 2368, 2458, 7913, 21480, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 81, 497, 330, 64, 497, 6523, 82, 497, 6630, 16, 497, 330, 65, 14108, 286, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_indexed_reader_bad_reader() { let bad_reader = ReaderMock { seek_fails: false, read_fails: false, }; let mut reader = IndexedReader::new(bad_reader, FAI_FILE).unwrap(); let mut seq = Vec::new(); reader.fetch("id", 0, 10).unwrap(); ...
rust_cleaned_test_functions.jsonl/62844
{ "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, 3560, 291, 22306, 34199, 22306, 368, 341, 286, 1077, 3873, 22306, 284, 25166, 11571, 341, 310, 5931, 761, 6209, 25, 895, 345, 310, 1349, 761, 6209, 25, 895, 345, 286, 2605, 286, 1077, 5206, 6604...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_no_roots() { let tx1 = build_tx(vec![(&Byte32::zero(), 1)], 3); let tx2 = build_tx(vec![], 4); let tx1_hash = tx1.hash(); let tx2_hash = tx2.hash(); let tx3 = build_tx(vec![(&tx1_hash, 0), (&Byte32::zero(), 2)], 2); let tx4 = build_tx(vec![(&t...
rust_cleaned_test_functions.jsonl/50521
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1022 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 6536, 26608, 2412, 368, 341, 286, 1077, 9854, 16, 284, 1936, 17805, 25592, 20703, 2099, 7153, 18, 17, 486, 14154, 1507, 220, 16, 25035, 220, 18, 317, 286, 1077, 9854, 17, 284, 1936, 17805,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_non_unequal() { let one: ModInt = ModInt::one(); let one2: ModInt = ModInt::one(); assert_eq!(false, one != one2); }
rust_cleaned_test_functions.jsonl/126141
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 62, 2886, 1751, 368, 341, 286, 1077, 825, 25, 5650, 1072, 284, 5650, 1072, 486, 603, 543, 286, 1077, 825, 17, 25, 5650, 1072, 284, 5650, 1072, 486, 603, 1428, 286, 2060, 10714, 10297, 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
#[test] fn test_decode_time() { let buf = [0u8; 8]; let time: Time = Decode::<Postgres>::decode(PgValue::from_bytes(&buf)).unwrap(); assert_eq!(time, time!(0:00)); // half an hour let buf = (1_000_000i64 * 60 * 30).to_be_bytes(); let time: Time = Decode::<Postgres>::decode(PgValue::from...
rust_cleaned_test_functions.jsonl/21435
{ "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, 15227, 3009, 368, 341, 262, 1077, 6607, 284, 508, 15, 84, 23, 26, 220, 23, 935, 262, 1077, 882, 25, 4120, 284, 50194, 27638, 4133, 17818, 6831, 18196, 5304, 70, 1130, 486, 1499, 12524, 2099, 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_format_php_version() { let input = "7.3.8"; assert_eq!(format_php_version(input), Some("v7.3.8".to_string())); }
rust_cleaned_test_functions.jsonl/63060
{ "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, 8955, 78547, 9438, 368, 341, 286, 1077, 1946, 284, 330, 22, 13, 18, 13, 23, 876, 286, 2060, 10714, 10297, 2243, 78547, 9438, 5384, 701, 4329, 445, 85, 22, 13, 18, 13, 23, 3263, 983, 3904, 73...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_touch_cancel_event() { let event: TouchCancel = js!( return new TouchEvent( @{TouchCancel::EVENT_TYPE} ); ).try_into().unwrap(); assert_eq!( event.event_type(), TouchCancel::EVENT_TYPE ); }
rust_cleaned_test_functions.jsonl/86598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60840, 28895, 6748, 368, 341, 286, 1077, 1538, 25, 19338, 9269, 284, 6994, 33673, 310, 470, 501, 19338, 1556, 7, 33267, 11309, 9269, 486, 37349, 4189, 92, 1439, 286, 7457, 1539, 45514, 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
#[test] fn test_tail_shutdown() -> Result<(), Box<dyn Error>> { ore::log::init(); let temp_dir = tempfile::tempdir()?; let (_server, mut client) = util::start_server(util::Config::default())?; // Create a tailing file source that never produces any data. This is the // simplest way to caus...
rust_cleaned_test_functions.jsonl/123705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35471, 54804, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 262, 16144, 486, 839, 486, 2327, 1428, 262, 1077, 2730, 4334, 284, 54819, 486, 3888, 3741, 94136, 262, 1077, 5453, 4030, 11, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_ft_stats_block_stats() -> common_exception::Result<()> { let schema = DataSchemaRefExt::create(vec![DataField::new("a", i32::to_data_type())]); let block = DataBlock::create(schema, vec![Series::from_data(vec![1, 2, 3])]); let r = StatisticsAccumulator::acc_columns(&block)?; asse...
rust_cleaned_test_functions.jsonl/122619
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41572, 15381, 7113, 15381, 368, 1464, 4185, 17499, 486, 2077, 71698, 341, 262, 1077, 10802, 284, 2885, 8632, 3945, 6756, 486, 3182, 25592, 20703, 1043, 1877, 486, 931, 445, 64, 497, 600, 18, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_equal() { let text = r#" a b c "#; let diff = line_diff(text, text); assert_eq!(diff.len(), 0); for item in diff { println!("{}", item); } }
rust_cleaned_test_functions.jsonl/90339
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11478, 368, 341, 286, 1077, 1467, 284, 435, 2, 698, 64, 198, 65, 198, 66, 198, 57676, 401, 286, 1077, 3638, 284, 1555, 15850, 7235, 11, 1467, 317, 286, 2060, 10714, 10297, 13490, 19406, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
#[test] fn test_encode_signatures() { let secp = secp256k1::Secp256k1::new(); static KEY: [u8; 32] = [ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0xBA, 0xAE, 0xDC, 0xE6, 0xAF, 0x48, 0xA0, 0x3B, 0xBF, 0xD2, ...
rust_cleaned_test_functions.jsonl/43962
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1037 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 11172, 2789, 368, 341, 286, 1077, 511, 4672, 284, 511, 4672, 17, 20, 21, 74, 16, 486, 8430, 79, 17, 20, 21, 74, 16, 486, 931, 1428, 286, 1099, 12013, 25, 508, 84, 23, 26, 220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_flatten() { let c1 = Rgi::new(0.2, 0.5, 0.6); assert_eq!(c1.as_slice(), &[0.2, 0.5, 0.6]); assert_relative_eq!(Rgi::from_slice(c1.as_slice()), c1); }
rust_cleaned_test_functions.jsonl/86781
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5081, 14456, 368, 341, 286, 1077, 272, 16, 284, 431, 8212, 486, 931, 7, 15, 13, 17, 11, 220, 15, 13, 20, 11, 220, 15, 13, 21, 317, 286, 2060, 10714, 10297, 66, 16, 5357, 26488, 1507, 44590...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_unrooted_slot_snapshot() { solana_logger::setup(); let unrooted_slot = 9; let unrooted_bank_id = 9; let db = AccountsDb::new(Vec::new(), &ClusterType::Development); let key = solana_sdk::pubkey::new_rand(); let account0 = AccountSharedData::...
rust_cleaned_test_functions.jsonl/1343
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 544 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 4907, 2888, 291, 27563, 53265, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 650, 2888, 291, 27563, 284, 220, 24, 280, 286, 1077, 650, 2888, 291, 35733, 842, 284, 220, 24,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_matches() { let cases = [("1-3 a: abcde", true), ("1-3 b: cdefg", false), ("2-9 c: ccccccccc", true)]; for (line, expected) in &cases { let (constraint, password) = super::parse_line(line); assert_eq!(constraint.matches(password.as_str()), *expected); ...
rust_cleaned_test_functions.jsonl/104930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38344, 368, 341, 286, 1077, 5048, 284, 84019, 16, 12, 18, 264, 25, 39022, 450, 497, 830, 701, 3489, 16, 12, 18, 293, 25, 272, 750, 70, 497, 895, 701, 3489, 17, 12, 24, 272, 25, 272, 55597,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_operator_precedence_parsing() { expect_printed("5 + 5", "5 + 5;\n"); expect_printed("5 + 5 * 5", "5 + 5 * 5;\n"); expect_printed("(5 + 5) * 5", "(5 + 5) * 5;\n"); expect_printed( "3 + 4 * 5 == 3 * (1 + 4) * 5", "3 + 4 * 5 == 3 * (1 + 4) * 5;\n", ); }
rust_cleaned_test_functions.jsonl/93417
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40594, 10442, 1998, 763, 620, 28598, 368, 341, 262, 1720, 10064, 291, 445, 20, 488, 220, 20, 497, 330, 20, 488, 220, 20, 17882, 77, 797, 262, 1720, 10064, 291, 445, 20, 488, 220, 20, 353, 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_command() { assert_eq!(parse_command(br"start;"), Ok((&br""[..], Command::Start))); assert_eq!( parse_command(b"# comment\n"), Ok((&br""[..], Command::Comment)) ); assert_eq!( parse_command(br"commit;"), Ok((&br""[..], Command::Commit(false))) ...
rust_cleaned_test_functions.jsonl/67442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2992 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10811, 368, 341, 262, 2060, 10714, 10297, 6400, 10811, 41237, 1, 2468, 26, 3975, 7622, 42902, 1323, 3014, 95874, 1125, 7348, 486, 3479, 4945, 262, 2060, 10714, 33673, 286, 4715, 10811, 1883, 57676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let sample = vec![ vec![4, 2, 7], vec![7, 5, 9], vec![3, 0, 4], ]; let result = sample.reduce(|a, b| max(a, b)); println!(">> {}", result.unwrap()); }
rust_cleaned_test_functions.jsonl/45333
{ "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, 64596, 368, 341, 286, 1077, 6077, 284, 7486, 90515, 310, 7486, 20703, 19, 11, 220, 17, 11, 220, 22, 1259, 310, 7486, 20703, 22, 11, 220, 20, 11, 220, 24, 1259, 310, 7486, 20703, 18, 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_random_73k_test_count_reads() { new_ucmd!() .args(&[ "bs=1024", "count=32", "if=random-5828891cb1230748e146f34223bbd3b5.test", ]) .succeeds() .stdout_is_fixture_bytes("gnudd-random-first-32k.spec"); }
rust_cleaned_test_functions.jsonl/99871
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 62, 22, 18, 74, 4452, 3180, 66628, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 9640, 310, 330, 1279, 28, 16, 15, 17, 19, 756, 310, 330, 1830, 28, 18, 17, 756, 310...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_field_expr() { check_assist( inline_local_variable, " struct Bar { foo: usize } fn foo() { let bar = Bar { foo: 1 }; let a<|> = bar.foo; let b = a * 10; let c = a as usize; }", " struct Bar { foo: usize } fn foo() { let ba...
rust_cleaned_test_functions.jsonl/60321
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5013, 21915, 368, 341, 286, 1779, 12083, 380, 1006, 310, 7381, 13564, 14635, 345, 310, 6228, 1235, 4716, 341, 262, 15229, 25, 22301, 198, 630, 8822, 15229, 368, 341, 262, 1077, 3619, 284, 4716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_time_add() { fn check(lhs: NaiveTime, rhs: Duration, sum: NaiveTime) { assert_eq!(lhs + rhs, sum); } let hmsm = |h,m,s,mi| NaiveTime::from_hms_milli(h, m, s, mi); check(hmsm(3, 5, 7, 900), Duration::zero(), hmsm(3, 5, 7, 900)); c...
rust_cleaned_test_functions.jsonl/32332
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 393 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 2891, 368, 341, 286, 5168, 1779, 57535, 25, 12812, 533, 1462, 11, 12916, 25, 21045, 11, 2629, 25, 12812, 533, 1462, 8, 341, 310, 2060, 10714, 10297, 31895, 488, 12916, 11, 2629, 317, 3374,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compute_thruster_signal_with_feedback_2() { let prog = vec![ 3, 52, 1001, 52, -5, 52, 3, 53, 1, 52, 56, 54, 1007, 54, 5, 55, 1005, 55, 26, 1001, 54, -5, 54, 1105, 1, 12, 1, 53, 54, 53, 1008, 54, 0, 55, 1001, 55, 1, 55, 2, 53, 55, 53, 4, 53, 1001, 56, -...
rust_cleaned_test_functions.jsonl/66875
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57028, 72071, 4993, 21137, 6615, 58138, 62, 17, 368, 341, 286, 1077, 29271, 284, 7486, 90515, 310, 220, 18, 11, 220, 20, 17, 11, 220, 16, 15, 15, 16, 11, 220, 20, 17, 11, 481, 20, 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_vector_add_mixed_identity() { let generator = ProjectivePoint::generator(); let p0 = generator + ProjectivePoint::identity(); let p1 = generator + AffinePoint::identity(); assert_eq!(p0, p1); }
rust_cleaned_test_functions.jsonl/35508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12247, 2891, 717, 3286, 46244, 368, 341, 286, 1077, 13823, 284, 5787, 533, 2609, 486, 35851, 543, 286, 1077, 281, 15, 284, 13823, 488, 5787, 533, 2609, 486, 16912, 543, 286, 1077, 281, 16, 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
#[test] fn test_shred_reference_tick() { let keypair = Arc::new(Keypair::new()); let slot = 1; let parent_slot = 0; let shredder = Shredder::new(slot, parent_slot, 5, 0).unwrap(); let entries: Vec<_> = (0..5) .map(|_| { let keypair0 = Keypair::...
rust_cleaned_test_functions.jsonl/22331
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 640 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 1151, 25433, 43612, 368, 341, 286, 1077, 1376, 12670, 284, 19689, 486, 931, 7, 6608, 1082, 1310, 486, 931, 1423, 286, 1077, 9446, 284, 220, 16, 280, 286, 1077, 2681, 27563, 284, 220, 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_runnables() { check( r#" //- /lib.rs $0 fn main() {} #[test] fn test_foo() {} #[test] #[ignore] fn test_foo() {} #[bench] fn bench() {} mod not_a_root { fn main() {} } "#, &[&BIN, &TEST, &TEST, &BENCH], expect![[r#" [ ...
rust_cleaned_test_functions.jsonl/2488
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2377 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 77, 4788, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 61463, 608, 2740, 25638, 198, 3, 15, 198, 8822, 1887, 368, 10086, 13353, 1944, 921, 8822, 1273, 761, 2624, 368, 10086, 13353, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nnz_or_zip_iter() { use super::NnzEither::*; let vec1 = test_vec1(); let vec2 = test_vec2(); let mut iter = vec1.iter().nnz_or_zip(vec2.iter()); assert_eq!(iter.next().unwrap(), Both((0, &0., &0.5))); assert_eq!(iter.next().unwrap(), Left((1, &1.))...
rust_cleaned_test_functions.jsonl/3967
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 50824, 8734, 42131, 11723, 368, 341, 286, 990, 2256, 486, 45, 50824, 49244, 56162, 286, 1077, 7486, 16, 284, 1273, 13251, 16, 543, 286, 1077, 7486, 17, 284, 1273, 13251, 17, 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_iter_mut_fused() { let mut list: VecList<i32> = VecList::new(); list.push_back(0); let mut iter = list.iter_mut(); assert_eq!(iter.next(), Some(&mut 0)); assert_eq!(iter.next(), None); assert_eq!(iter.next(), None); assert_eq!(iter.next(), ...
rust_cleaned_test_functions.jsonl/11510
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 29523, 761, 2591, 368, 341, 286, 1077, 5206, 1140, 25, 11312, 852, 21897, 18, 17, 29, 284, 11312, 852, 486, 931, 543, 286, 1140, 2552, 3895, 7, 15, 317, 286, 1077, 5206, 5367, 284, 1140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pool_force_compact3() { let cpus = cpu_descriptor_from_socket_size(3, 4); let mut pool = ResourcePool::new(&ResourceDescriptor::new(cpus, Vec::new()), &[]); let rq1 = CpuRequest::ForceCompact(8).into(); let al1 = pool.try_allocate_resources(&rq1, None).unwrap(); ...
rust_cleaned_test_functions.jsonl/92230
{ "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, 15709, 40739, 18177, 531, 18, 368, 341, 286, 1077, 12490, 355, 284, 17319, 33774, 5673, 19555, 2368, 7, 18, 11, 220, 19, 317, 286, 1077, 5206, 7314, 284, 11765, 10551, 486, 931, 2099, 4783, 1170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_with_ssh_and_port_git_url_parts() { let RemoteParts { domain, repository } = get_remote_parts("ssh://user@host.xz:22/path/to/repo.git/").unwrap(); assert_eq!(domain, "host.xz"); assert_eq!(repository, "path/to/repo"); }
rust_cleaned_test_functions.jsonl/87538
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 82805, 8378, 8716, 68801, 2903, 33217, 368, 341, 286, 1077, 20738, 28921, 314, 7947, 11, 12542, 335, 4035, 310, 633, 36425, 33217, 445, 25537, 1110, 872, 31, 3790, 1993, 89, 25, 17, 17, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialize_int_enum_arg() { let request = TestInterfaceRequest::from_args(10 /* opcode */, vec![Arg::Uint(1)]).unwrap(); assert_match!(request, TestInterfaceRequest::TestIntEnum{arg} => assert_eq!(arg, Enum::Recognized(test_interface::TestEnum::Entry2))); }
rust_cleaned_test_functions.jsonl/55818
{ "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, 15768, 9050, 4042, 31054, 6057, 368, 341, 286, 1077, 1681, 284, 3393, 5051, 1900, 486, 1499, 8384, 7, 16, 15, 1391, 30028, 36572, 7486, 20703, 2735, 486, 21570, 7, 16, 7252, 568, 15454, 543, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_log_state() { let _executor = fuchsia_async::TestExecutor::new(); let inspector = Inspector::new(); let mut i = InspectInfo::new(inspector.root(), "id", "myname"); assert_data_tree!(inspector, root: contains { id: { name:"myname", ...
rust_cleaned_test_functions.jsonl/34903
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 4387, 368, 341, 286, 1077, 716, 80787, 284, 282, 73391, 28346, 486, 2271, 25255, 486, 931, 543, 286, 1077, 44725, 284, 44495, 486, 931, 543, 286, 1077, 5206, 600, 284, 9726, 987, 1731, 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_key_manager_link() { let _guard = LOCK_FOR_GAUGE.lock().unwrap(); let tmp_dir = tempfile::TempDir::new().unwrap(); let file_foo1 = tmp_dir.path().join("foo1"); let _ = File::create(&file_foo1).unwrap(); let foo1_path = file_foo1.as_path().to_str().unwrap()...
rust_cleaned_test_functions.jsonl/22018
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 12144, 7233, 368, 341, 286, 1077, 716, 26098, 284, 49463, 14516, 2646, 32, 47644, 21003, 1005, 15454, 543, 286, 1077, 4174, 4334, 284, 54819, 486, 12151, 6184, 486, 931, 1005, 15454, 543, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_max_width() { let _keyboard = KeyboardBuilder::new() .set_most_left_right_white_keys(0, 127) .unwrap() .set_width(65535 - 127) .unwrap() .build2d(); }
rust_cleaned_test_functions.jsonl/81980
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 7927, 368, 341, 286, 1077, 716, 41713, 284, 25616, 3297, 486, 931, 741, 310, 659, 746, 81416, 9579, 10539, 44431, 12631, 7, 15, 11, 220, 16, 17, 22, 340, 310, 659, 15454, 741, 310, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_3_by_3_eigenvals() { let a = matrix![17f64, 22., 27.; 22., 29., 36.; 27., 36., 45.]; let eigs = a.eigenvalues().unwrap(); let eig_1 = 90.4026; let eig_2 = 0.5973; let eig_3 = 0.0; assert!(eigs.iter...
rust_cleaned_test_functions.jsonl/96794
{ "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, 62, 18, 3710, 62, 18, 2204, 6433, 25596, 368, 341, 286, 1077, 264, 284, 6172, 20703, 16, 22, 69, 21, 19, 11, 220, 17, 17, 2572, 220, 17, 22, 37403, 664, 220, 17, 17, 2572, 220, 17, 24, 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_subsets() { let mut ans = Solution::subsets(vec![1, 2, 3]); let mut want = vec![ vec![3], vec![1], vec![2], vec![1, 2, 3], vec![1, 3], vec![2, 3], vec![1, 2], vec![], ]; ...
rust_cleaned_test_functions.jsonl/119820
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 271 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 4917, 368, 341, 286, 1077, 5206, 8099, 284, 12478, 486, 1966, 4917, 25592, 20703, 16, 11, 220, 17, 11, 220, 18, 2558, 286, 1077, 5206, 1366, 284, 7486, 90515, 310, 7486, 20703, 18, 1259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_u8() { let mut system: System = Default::default(); system.ram[0x0000] = 0x02; system.ram[0x0001] = 0x20; assert_eq!(0x02, system.read_u8(0x0000)); assert_eq!(0x20, system.read_u8(0x0001)); assert_eq!(0x02, system.read_u8(0x0800)); ass...
rust_cleaned_test_functions.jsonl/97085
{ "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, 6443, 7300, 23, 368, 341, 286, 1077, 5206, 1849, 25, 739, 284, 7899, 486, 2258, 543, 286, 1849, 1746, 309, 58, 15, 87, 15, 15, 15, 15, 60, 284, 220, 15, 87, 15, 17, 280, 286, 1849, 1746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cargo() { let mut register = GearRegister::init(); let gear = register.instantiate(register.command.generic_command); assert_eq!( register .evaluate(gear, vec![TypedValue::String(String::from("cargo"))]) .unwrap()[0], ...
rust_cleaned_test_functions.jsonl/98620
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 182 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 12088, 368, 341, 286, 1077, 5206, 4161, 284, 27503, 8690, 486, 2327, 543, 286, 1077, 14448, 284, 4161, 1858, 42251, 68166, 14143, 42267, 10811, 626, 286, 2060, 10714, 33673, 310, 4161, 198, 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_partition_limits_boundary1() { let mut part = Partition::new(100, 1000, 100, true); part.set_next_causetid(2000); }
rust_cleaned_test_functions.jsonl/13980
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43840, 31820, 54004, 16, 368, 341, 286, 1077, 5206, 949, 284, 54626, 486, 931, 7, 16, 15, 15, 11, 220, 16, 15, 15, 15, 11, 220, 16, 15, 15, 11, 830, 317, 286, 949, 980, 11257, 666, 11855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_disjoint_intersects() { let mut e1: EnumSet<Foo> = EnumSet::new(); e1.insert(A); let mut e2: EnumSet<Foo> = EnumSet::new(); e2.insert(B); assert!(e1.is_disjoint(&e2)); }
rust_cleaned_test_functions.jsonl/2753
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9932, 32850, 15318, 54429, 368, 341, 286, 1077, 5206, 384, 16, 25, 14086, 1649, 30499, 2624, 29, 284, 14086, 1649, 486, 931, 543, 286, 384, 16, 7030, 4346, 626, 286, 1077, 5206, 384, 17, 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...
1
#[test] fn test_temporaries() { fn require_send_sync(_: impl Send + Sync) {} require_send_sync(async { // If anyhow hasn't dropped any temporary format_args it creates by the // enclosing future non-Send. future::ready(anyhow!("...")).await; }); fn mes...
rust_cleaned_test_functions.jsonl/74036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11771, 269, 5431, 368, 341, 262, 5168, 1373, 13565, 23008, 73834, 11605, 11000, 488, 28937, 8, 10086, 262, 1373, 13565, 23008, 18285, 341, 286, 442, 1416, 88964, 12492, 944, 12226, 894, 13340, 3561,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_impl_for_enum_complicated_path() { check_assist( add_from_impl_for_enum, "enum A { <|>One(foo::bar::baz::Boo) }", r#"enum A { One(foo::bar::baz::Boo) } <|>impl From<foo::bar::baz::Boo> for A { fn from(v: foo::bar::baz::Boo) -> Self { ...
rust_cleaned_test_functions.jsonl/15724
{ "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, 2891, 5673, 21007, 5478, 31054, 18177, 13724, 2638, 368, 341, 286, 1779, 12083, 380, 1006, 310, 912, 5673, 21007, 5478, 31054, 345, 310, 330, 9018, 362, 314, 82639, 29, 3966, 71880, 486, 2257, 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_lehmer_small() { assert_eq!(lehmer_small(0, 0), Matrix::IDENTITY); assert_eq!( lehmer_small(14535145444257436950, 5818365597666026993), Matrix( 379355176803460069, 947685836737753349, 831195085380860999, ...
rust_cleaned_test_functions.jsonl/13588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11751, 71, 1174, 31966, 368, 341, 286, 2060, 10714, 10297, 73790, 1174, 31966, 7, 15, 11, 220, 15, 701, 11631, 486, 19811, 3333, 317, 286, 2060, 10714, 33673, 310, 512, 71, 1174, 31966, 7, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_str() { let b = Bytes::from_str("0x1213"); assert!(b.is_ok()); let b = b.unwrap(); assert_eq!(b.as_ref(), hex::decode("1213").unwrap()); let b = Bytes::from_str("1213"); assert!(b.is_err()); assert_eq!(b.err().unwrap().0, "Doesn't sta...
rust_cleaned_test_functions.jsonl/80570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 368, 341, 286, 1077, 293, 284, 30024, 486, 1499, 2895, 445, 15, 87, 16, 17, 16, 18, 797, 286, 2060, 10297, 65, 2079, 19817, 1423, 286, 1077, 293, 284, 293, 55395, 543, 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_store_client_type_ok() { let gp_client_type = ClientType::Grandpa; let gp_client_id = ClientId::new(gp_client_type, 0).unwrap(); let mut context: Context<Test> = Context::new(); new_test_ext().execute_with(|| { assert_eq!(context.store_client_type(gp_client_id.clone(), gp_client_type).is...
rust_cleaned_test_functions.jsonl/60056
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 170 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14809, 8179, 1819, 19817, 368, 341, 10217, 28705, 8179, 1819, 284, 8423, 929, 486, 40151, 6595, 280, 10217, 28705, 8179, 842, 284, 8423, 764, 486, 931, 93008, 8179, 1819, 11, 220, 15, 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...
2
#[test] fn test_time_series_updates() { let mut ts = TimeSeries::new(); // add a timer ts.add_timing(&Timing::new("cmd", 1.1, 0.25)); // construct the expected value for comparison let expected = hashmap!{ "cmd".to_string() => hashmap!{ 1 => vec![0.25], }, };...
rust_cleaned_test_functions.jsonl/122142
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 744 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 35015, 57829, 368, 341, 262, 1077, 5206, 10591, 284, 4120, 25544, 486, 931, 1428, 262, 442, 912, 264, 9021, 198, 262, 10591, 1364, 70973, 2099, 62805, 486, 931, 445, 8710, 497, 220, 16, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_old_records_unlimited() { let thread_pool = ThreadPoolBuilder::new().build().unwrap(); let mut rng = thread_rng(); let now = 1_610_034_423_000; let pubkey = Pubkey::new_unique(); let mut crds = Crds::default(); let mut timeouts = HashMap::new(...
rust_cleaned_test_functions.jsonl/17137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 671 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 21108, 31279, 4907, 18235, 368, 341, 286, 1077, 4516, 15709, 284, 72716, 3297, 486, 931, 1005, 5834, 1005, 15454, 543, 286, 1077, 5206, 28422, 284, 4516, 66849, 543, 286, 1077, 1431, 284, 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_that_we_can_insert_and_get_records_with_a_storage_object() { let mut storage = Storage::new(std::env::temp_dir()).expect("Could not open db storage"); clear_db(&mut storage); let person: Person = Faker.fake(); assert_eq!("Person", Person::db_name()); le...
rust_cleaned_test_functions.jsonl/65972
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70197, 45922, 27421, 17678, 8378, 3062, 31279, 6615, 4306, 23310, 5314, 368, 341, 286, 1077, 5206, 5819, 284, 14693, 486, 931, 5194, 486, 3160, 486, 3888, 4334, 6011, 17119, 445, 12895, 537, 1787, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_iter_bounds() { let blockstore_path = get_tmp_ledger_path!(); let blockstore = Blockstore::open(&blockstore_path).unwrap(); blockstore .slot_meta_iterator(5) .unwrap() .for_each(|_| panic!()); drop(blockstore); ...
rust_cleaned_test_functions.jsonl/7608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11723, 36878, 368, 341, 286, 1077, 2504, 4314, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 2099, 4574, 4314, 2638, 568, 15454, 1428, 1789, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_install_backup_short_custom_suffix() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; let file_a = "test_install_backup_custom_suffix_file_a"; let file_b = "test_install_backup_custom_suffix_file_b"; let suffix = "super-suffix-of-the-century"; at...
rust_cleaned_test_functions.jsonl/47046
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 331 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34245, 44710, 16673, 15875, 37151, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 401, 262, 1077, 1034, 4306, 284, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_cie_from_offset() { let filler = [1, 2, 3, 4, 5, 6, 7, 8, 9]; let instrs: Vec<_> = (0..5).map(|_| constants::DW_CFA_nop.0).collect(); let mut cie = CommonInformationEntry { offset: 0, length: 0, format: Format::Dwarf64, ...
rust_cleaned_test_functions.jsonl/9312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 630 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 666, 645, 5673, 6917, 368, 341, 286, 1077, 54710, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 11, 220, 24, 935, 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_write_builder_only_tags() { let query = Timestamp::Hours(11) .into_query("weather".to_string()) .add_tag("season", "summer") .build(); assert!(query.is_err(), "Query missing one or more fields"); }
rust_cleaned_test_functions.jsonl/40007
{ "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, 9165, 28532, 18410, 16333, 368, 341, 286, 1077, 3239, 284, 32758, 486, 23235, 7, 16, 16, 340, 310, 659, 18122, 5738, 445, 15206, 3263, 983, 3904, 2398, 310, 659, 718, 9372, 445, 16798, 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...
1
#[test] fn test_no_header() { test_one("10.0.1.1:1234", "", &[], "10.0.1.1"); test_one("10.0.1.1:1234", "", &["10.0.2.1"], "10.0.1.1"); test_one("10.0.1.1:1234", "", &["10.0.2.1/24"], "10.0.1.1"); test_one("10.0.1.1:1234", "", &["10.0.1.1"], "10.0.1.1"); test_one("10.0.1....
rust_cleaned_test_functions.jsonl/18400
{ "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, 6536, 8757, 368, 341, 286, 1273, 11667, 445, 16, 15, 13, 15, 13, 16, 13, 16, 25, 16, 17, 18, 19, 497, 7342, 609, 12995, 330, 16, 15, 13, 15, 13, 16, 13, 16, 797, 286, 1273, 11667, 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_add_two() { assert_eq!(add_two(0), 2); assert_eq!(add_two(-1), 1); assert_eq!(add_two(1), 3); }
rust_cleaned_test_functions.jsonl/12352
{ "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, 2891, 23241, 368, 341, 286, 2060, 10714, 10297, 718, 23241, 7, 15, 701, 220, 17, 317, 286, 2060, 10714, 10297, 718, 23241, 4080, 16, 701, 220, 16, 317, 286, 2060, 10714, 10297, 718, 23241, 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
#[test] fn test_find_all_refs_enum_var_name() { check( r#" enum Foo { A, B<|>, C, } "#, expect![[r#" B Variant FileId(0) 22..23 22..23 Other "#]], ); }
rust_cleaned_test_functions.jsonl/47774
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 5705, 60638, 31054, 4612, 1269, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 9018, 33428, 341, 262, 362, 345, 262, 425, 27, 91, 12520, 262, 356, 345, 532, 57676, 345, 310, 1720, 0, 1550...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ser_de_empty_serde_strings_no_index() { assert_tokens( &StringsNoIndex::new(), &[Token::Seq { len: Some(0) }, Token::SeqEnd], ); }
rust_cleaned_test_functions.jsonl/126578
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 2259, 15124, 75861, 450, 33500, 6536, 3560, 368, 341, 286, 2060, 28838, 1006, 310, 609, 20859, 2753, 1552, 486, 931, 3148, 310, 44590, 3323, 486, 20183, 314, 2422, 25, 4329, 7, 15, 8, 247...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_basic() { assert_eq!(&**STRING, "hello"); assert_eq!(*NUMBER, 6); assert!(HASHMAP.get(&1).is_some()); assert!(HASHMAP.get(&3).is_none()); assert_eq!(&*ARRAY_BOXES, &[Box::new(1), Box::new(2), Box::new(3)]); assert_eq!(*UNSAFE, std::u32::MAX); }
rust_cleaned_test_functions.jsonl/17556
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 368, 341, 262, 2060, 10714, 0, 2099, 334, 16468, 11, 330, 14990, 797, 262, 2060, 10714, 0, 4071, 51639, 11, 220, 21, 317, 262, 2060, 10297, 70707, 17617, 670, 2099, 16, 568, 285, 61855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simultaneous_close_raced_with_data() { let mut s = socket_established(); s.send_slice(b"abcdef").unwrap(); s.close(); assert_eq!(s.state, State::FinWait1); // Socket receives FIN before it has a chance to send its own data+FIN send!(s, TcpRepr { ...
rust_cleaned_test_functions.jsonl/91879
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 598 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18314, 494, 17666, 12704, 1710, 4435, 6615, 1769, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 274, 5219, 26488, 1883, 1, 41202, 1827, 15454, 543, 286, 274, 4653, 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_inject_input_updates_ime() { async_service_test(|ime_service, _visibility_service| { async move { // expect asking for keyboard to close/open from IME works let (_ime, mut editor_stream) = bind_ime_for_test(&ime_service); // ty...
rust_cleaned_test_functions.jsonl/7401
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 583, 5898, 57829, 62, 545, 368, 341, 286, 3312, 12267, 4452, 22428, 545, 12267, 11, 716, 28176, 12267, 91, 341, 310, 3312, 3271, 341, 394, 442, 1720, 10161, 369, 13625, 311, 3265, 37644, 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_boolean() { let mut reader = Reader::init("true"); assert!(boolean(&mut reader).unwrap()); let mut reader = Reader::init("xxx"); let error = boolean(&mut reader).err().unwrap(); assert_eq!( error.inner, ParseError::Expecting { ...
rust_cleaned_test_functions.jsonl/119576
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 367 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46642, 368, 341, 286, 1077, 5206, 6604, 284, 25166, 486, 2327, 445, 1866, 797, 286, 2060, 10297, 6117, 2099, 6984, 6604, 568, 15454, 5231, 286, 1077, 5206, 6604, 284, 25166, 486, 2327, 445, 24048,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_integer() { expect_mapping!("123" => Token::integer(123), Token::new_line()); expect_mapping!("0982" => Token::integer(982), Token::new_line()); expect_mapping!("333 662" => Token::integer(333), ...
rust_cleaned_test_functions.jsonl/39345
{ "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, 31725, 368, 341, 286, 1720, 26930, 17223, 16, 17, 18, 1, 589, 9660, 486, 11662, 7, 16, 17, 18, 1326, 786, 9660, 486, 931, 6528, 5231, 286, 1720, 26930, 17223, 15, 24, 23, 17, 1, 589, 9660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_send_bad_tx() { let exit = Arc::new(AtomicBool::new(false)); let mut io = MetaIoHandler::default(); let rpc = RpcSolImpl; io.extend_with(rpc.to_delegate()); let meta = Meta { request_processor: { let request_processor = Jso...
rust_cleaned_test_functions.jsonl/20307
{ "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, 60799, 13565, 34199, 17805, 368, 341, 286, 1077, 4869, 284, 19689, 486, 931, 7, 65857, 11233, 486, 931, 3576, 3237, 286, 1077, 5206, 6399, 284, 15819, 42799, 3050, 486, 2258, 543, 286, 1077, 35596...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_forward_reverse() { let vec_forward: Vec<i32> = vec![0, 1, 2, 3, 4]; let vec_reverse: Vec<i32> = vec![4, 3, 2, 1, 0]; let mut list_forward = LinkedList::<i32>::new(); let mut list_reverse = LinkedList::<i32>::new(); for value in vec_forward.iter...
rust_cleaned_test_functions.jsonl/73468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 498 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 32121, 43277, 368, 341, 286, 1077, 7486, 32121, 25, 11312, 21897, 18, 17, 29, 284, 7486, 20703, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 286, 1077, 7486, 43277, 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...
7
#[test] fn test_local_counter() { let counter = Counter::new("counter", "counter helper").unwrap(); let local_counter1 = counter.local(); let local_counter2 = counter.local(); local_counter1.inc(); local_counter2.inc(); assert_eq!(local_counter1.get() as u64, 1);...
rust_cleaned_test_functions.jsonl/46517
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 432 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13564, 15730, 368, 341, 286, 1077, 5546, 284, 19735, 486, 931, 445, 8292, 497, 330, 8292, 13137, 1827, 15454, 543, 286, 1077, 2205, 15730, 16, 284, 5546, 11033, 543, 286, 1077, 2205, 15730, 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_take_panic() { let w = SendWrapper::new(Rc::new(42)); let t = thread::spawn(move || { let _ = w.take(); }); assert!(t.join().is_err()); }
rust_cleaned_test_functions.jsonl/30492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73261, 620, 31270, 368, 341, 197, 10217, 289, 284, 11000, 11542, 486, 931, 2785, 66, 486, 931, 7, 19, 17, 1106, 197, 10217, 259, 284, 4516, 486, 46087, 34081, 1369, 341, 298, 10217, 716, 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 ]
2
#[test] fn test_operators() { let mut e1: EnumSet<Foo> = EnumSet::new(); e1.insert(A); e1.insert(C); let mut e2: EnumSet<Foo> = EnumSet::new(); e2.insert(B); e2.insert(C); let e_union = e1 | e2; let elems: ::vec::Vec<_> = e_union.iter().collect()...
rust_cleaned_test_functions.jsonl/51106
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 733 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25634, 2973, 368, 341, 286, 1077, 5206, 384, 16, 25, 14086, 1649, 30499, 2624, 29, 284, 14086, 1649, 486, 931, 543, 286, 384, 16, 7030, 4346, 317, 286, 384, 16, 7030, 3025, 626, 286, 1077, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_send() { fn is_send<T: Send>(_: &T) {} let c = Crossroads::new(); dbg!(&c); is_send(&c); let ctx = Context::new(Message::new_method_call("a.b", "/", "a.b", "c").unwrap()).unwrap(); dbg!(&ctx); is_send(&ctx); }
rust_cleaned_test_functions.jsonl/117119
{ "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, 13565, 368, 341, 262, 5168, 374, 13565, 3125, 25, 11000, 2235, 23211, 609, 51, 8, 5613, 262, 1077, 272, 284, 11261, 42691, 486, 931, 543, 262, 47904, 0, 2099, 66, 317, 262, 374, 13565, 2099, 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_area() { let b = Box3D::new(point3(-10.0, -10.0, -10.0), point3(10.0, 10.0, 10.0)); assert!(b.xy_area() == 400.0); assert!(b.yz_area() == 400.0); assert!(b.xz_area() == 400.0); }
rust_cleaned_test_functions.jsonl/7478
{ "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, 15030, 368, 341, 286, 1077, 293, 284, 8261, 18, 35, 486, 931, 20235, 18, 4080, 16, 15, 13, 15, 11, 481, 16, 15, 13, 15, 11, 481, 16, 15, 13, 15, 701, 1459, 18, 7, 16, 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_missing_device_name() { let mut bytecode: Vec<u8> = BIND_HEADER.to_vec(); append_section_header(&mut bytecode, SYMB_MAGIC_NUM, 9); let primary_node_name: [u8; 5] = [0x43, 0x4F, 0x4F, 0x54, 0]; // "RAIL" bytecode.extend_from_slice(&[1, 0, 0, 0]); bytecode....
rust_cleaned_test_functions.jsonl/24043
{ "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, 40447, 9204, 1269, 368, 341, 286, 1077, 5206, 75129, 25, 11312, 34837, 23, 29, 284, 91370, 20330, 2389, 13251, 543, 286, 8737, 16221, 8757, 2099, 6984, 75129, 11, 16079, 8412, 49194, 9631, 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_avoids_overflow() { let mut throttler = Throttler::<32>::new( 1, Duration::from_secs(5), Duration::from_secs(100), Duration::from_secs(10), ); let ip = IpAddr::V4(Ipv4Addr::new(192, 168, 50, 1)); assert!(throttler.ch...
rust_cleaned_test_functions.jsonl/78542
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26173, 16960, 79073, 368, 341, 286, 1077, 5206, 79972, 1536, 284, 663, 46689, 1536, 27638, 18, 17, 6831, 931, 1006, 310, 220, 16, 345, 310, 21045, 486, 1499, 68718, 7, 20, 1326, 310, 21045, 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_generate_pattern_iterators() { parse_macro( r#" macro_rules! generate_pattern_iterators { { double ended; with $(#[$common_stability_attribute:meta])*, $forward_iterator:ident, $reverse_iterator:ident, $iterty:ty ...
rust_cleaned_test_functions.jsonl/28764
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 21260, 11723, 2973, 368, 341, 1066, 262, 4715, 58810, 1006, 286, 435, 2, 698, 32606, 21407, 0, 6923, 21260, 11723, 2973, 341, 286, 314, 1990, 9482, 26, 448, 4930, 2, 3442, 5464, 1261, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1