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_simple() { let small_stream: Vec<u8> = "This is a very bad file".as_bytes().to_vec(); let mut cart_stream:Vec<u8> = Vec::new(); let mut final_stream: Vec<u8> = Vec::new(); let opt_header = object! {"testkey": "testvalue"}; let opt_footer = object! {"complete": "yes"}; c...
rust_cleaned_test_functions.jsonl/69924
{ "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, 30015, 368, 341, 262, 1077, 2613, 12673, 25, 11312, 34837, 23, 29, 284, 330, 1986, 374, 264, 1602, 3873, 1034, 3263, 300, 12524, 1005, 983, 13251, 543, 262, 1077, 5206, 7406, 12673, 25, 10050, 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_add_edge_with_weights() { let mut g = MatrixGraph::new(); let a = g.add_node('a'); let b = g.add_node('b'); let c = g.add_node('c'); g.add_edge(a, b, true); g.add_edge(b, c, false); assert_eq!(*g.edge_weight(a, b), true); assert_eq!...
rust_cleaned_test_functions.jsonl/81960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 17932, 6615, 21114, 368, 341, 286, 1077, 5206, 342, 284, 11631, 11212, 486, 931, 543, 286, 1077, 264, 284, 342, 1364, 5084, 492, 64, 1157, 286, 1077, 293, 284, 342, 1364, 5084, 492, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_detect_table() { let mut detect_table = DetectTable::new(Duration::from_secs(10)); // Deadlock: 1 -> 2 -> 1 assert_eq!(detect_table.detect(1, 2, 2), None); assert_eq!(detect_table.detect(2, 1, 1).unwrap(), 2); // Deadlock: 1 -> 2 -> 3 -> 1 assert_...
rust_cleaned_test_functions.jsonl/119720
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1691 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56457, 5237, 368, 341, 286, 1077, 5206, 11140, 5237, 284, 33287, 2556, 486, 931, 64114, 486, 1499, 68718, 7, 16, 15, 3237, 286, 442, 15021, 1023, 25, 220, 16, 1464, 220, 17, 1464, 220, 16, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_try_sign_dyn_keypairs() { let program_id = Pubkey::default(); let keypair = Keypair::new(); let pubkey = keypair.pubkey(); let presigner_keypair = Keypair::new(); let presigner_pubkey = presigner_keypair.pubkey(); let ix = Instruction::new_with_bi...
rust_cleaned_test_functions.jsonl/11244
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 858 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 11172, 69213, 3097, 77256, 368, 341, 286, 1077, 2025, 842, 284, 22611, 792, 486, 2258, 543, 286, 1077, 1376, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 95116, 284, 1376, 12670,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eventmap() { let mut evs = util::hashmap(); evs.insert(Event::Update(0.0), 0); assert_eq!(evs.get(&Event::Update(1.0)).unwrap(), &0); }
rust_cleaned_test_functions.jsonl/102857
{ "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, 6748, 2186, 368, 341, 262, 1077, 5206, 3637, 82, 284, 4094, 486, 8296, 2186, 543, 262, 3637, 82, 7030, 30469, 486, 4289, 7, 15, 13, 15, 701, 220, 15, 317, 262, 2060, 10714, 10297, 5120, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_direction_to_coord3() { let path = Path::parse("nwwswee"); assert_eq!(path.directions, vec![Direction::Northwest, Direction::West, Direction::Southwest, Direction::East, Direction::East]); assert_eq!(path.follow(&Coordinate::start()), Coordinate::new(0, 0, 0)); }
rust_cleaned_test_functions.jsonl/94629
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25438, 2346, 30096, 18, 368, 341, 286, 1077, 1815, 284, 7933, 486, 6400, 445, 77, 1250, 82, 896, 68, 797, 286, 2060, 10714, 10297, 2343, 27621, 82, 11, 7486, 20703, 9268, 486, 25221, 11039, 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_cab_buttons() { let elevator = ELEVATOR.lock().unwrap(); for i in rand::seq::sample_indices( &mut rand::thread_rng(), ElevatorInterface::N_FLOORS as usize, ElevatorInterface::N_FLOORS as usize, ) .into_iter() { ...
rust_cleaned_test_functions.jsonl/42308
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 403 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 370, 41021, 368, 341, 286, 1077, 38636, 284, 468, 85411, 11857, 21003, 1005, 15454, 1428, 286, 369, 600, 304, 10382, 486, 13262, 486, 13611, 18333, 1006, 310, 609, 6984, 10382, 486, 4528, 668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_detach() { let ex = LocalExecutor::default(); ex.run(async { Local::local(async { loop { Local::later().await; } }) .detach(); Timer::new(Duration::from_micros(100)).await; ...
rust_cleaned_test_functions.jsonl/18033
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 93067, 368, 341, 286, 1077, 505, 284, 8774, 25255, 486, 2258, 1428, 286, 505, 7634, 18285, 341, 310, 8774, 486, 2438, 18285, 341, 394, 6337, 341, 503, 8774, 486, 67576, 1005, 11421, 280, 394, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_matrix_transpose() { let matrix: [u8; 9] = [0, 1, 2, 3, 4, 5, 6, 7, 8]; let mut output_matrix: [u8; 9] = [0; 9]; matrix_transpose(&matrix, &mut output_matrix, 3, 3); for y in 0..3 { for x in 0..3 { let first_val = matrix[y * 3 + x]; ...
rust_cleaned_test_functions.jsonl/20802
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10193, 7965, 2900, 368, 341, 286, 1077, 6172, 25, 508, 84, 23, 26, 220, 24, 60, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 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...
3
#[test] fn test_properties() { let method = test_method(); let mut new = method.clone(); // add property let mut properties = Object::new(); properties.insert("key1".to_string(), Value::String("value1".to_string())); *new.properties_mut() = properties; let diff = method.diff(&new)....
rust_cleaned_test_functions.jsonl/124418
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 557 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25158, 368, 341, 262, 1077, 1714, 284, 1273, 9032, 543, 262, 1077, 5206, 501, 284, 1714, 15997, 1428, 262, 442, 912, 3343, 198, 262, 1077, 5206, 5888, 284, 3002, 486, 931, 543, 262, 5888, 7030, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stake_activating_and_deactivating() { let stake = Delegation { stake: 1_000, activation_epoch: 0, // activating at zero deactivation_epoch: 5, ..Delegation::default() }; let increment = (1_000_f64 * stake.warmup_co...
rust_cleaned_test_functions.jsonl/15286
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1904 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 71684, 1095, 8378, 2259, 8859, 1095, 368, 341, 286, 1077, 18279, 284, 1581, 87566, 341, 310, 18279, 25, 220, 16, 62, 15, 15, 15, 345, 310, 15099, 20682, 25, 220, 15, 11, 442, 71092,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_established_bad_ack() { let mut s = socket_established(); // Already acknowledged data. send!(s, TcpRepr { seq_number: REMOTE_SEQ + 1, ack_number: Some(TcpSeqNumber(LOCAL_SEQ.0 - 1)), ..SEND_TEMPL }, Err(Error::Dropped)); ...
rust_cleaned_test_functions.jsonl/1726
{ "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, 18583, 5102, 291, 34199, 48447, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 442, 39512, 25498, 821, 624, 286, 3624, 10297, 82, 11, 64876, 693, 649, 341, 310, 12981, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mode() { let mut rfm = setup_rfm(Vec::new(), vec![0b111_001_11, 0]); rfm.mode(Mode::Sleep).ok().unwrap(); assert_eq!( rfm.spi.rx_buffer[0..=3], [ Registers::OpMode.read(), 0, Registers::OpMode.write(), 0b111_000_11 ...
rust_cleaned_test_functions.jsonl/3688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 360 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7302, 368, 341, 262, 1077, 5206, 435, 21112, 284, 6505, 1710, 21112, 49923, 486, 931, 1507, 7486, 20703, 15, 65, 16, 16, 16, 62, 15, 15, 16, 62, 16, 16, 11, 220, 15, 10149, 262, 435, 21112, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sub_1() { let z1 = c(1f64, 2f64); let z2 = c(3f64, 4f64); assert_eq!(z1 - z2, c(-2.0, -2.0)); }
rust_cleaned_test_functions.jsonl/80102
{ "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, 5228, 62, 16, 368, 341, 262, 1077, 1147, 16, 284, 272, 7, 16, 69, 21, 19, 11, 220, 17, 69, 21, 19, 317, 262, 1077, 1147, 17, 284, 272, 7, 18, 69, 21, 19, 11, 220, 19, 69, 21, 19, 317...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_very_negative_gossipsub_score() { let mut score = Score::default(); score.update_gossipsub_score(GOSSIPSUB_GREYLIST_THRESHOLD, false); assert!(!score.is_good_gossipsub_peer()); assert!(score.score() < 0.0); assert_eq!(score.state(), ScoreState::Healthy); ...
rust_cleaned_test_functions.jsonl/93741
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1204, 53865, 1889, 41473, 1966, 10405, 368, 341, 286, 1077, 5206, 5456, 284, 18115, 486, 2258, 543, 286, 5456, 5317, 1889, 41473, 1966, 10405, 6699, 46, 1220, 25944, 4493, 72739, 56, 22852, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_asm_type_convert() { use std::str::FromStr; let (out, post) = asm_type_convert( &DataType::Native(dtrace_parser::DataType::U8), TokenStream::from_str("foo").unwrap(), ); assert_eq!( out.to_string(), quote! {(*<_ as :...
rust_cleaned_test_functions.jsonl/8792
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 448 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67529, 1819, 34910, 368, 341, 286, 990, 1460, 486, 495, 486, 3830, 2580, 280, 286, 1077, 320, 411, 11, 1736, 8, 284, 32828, 1819, 34910, 1006, 310, 609, 22653, 486, 20800, 1500, 15067, 18517, 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_validate_term_taxonomy() { let input_filter = InputFilterStruct::new(); let insert_pattern_mismatch_msg = |_tt: &TermTaxonomy, ti: &TextInput, key: String, value: &String, hm: &mut ValidationMessageMap| { hm.insert(key, vec![pattern_mismatch_msg(...
rust_cleaned_test_functions.jsonl/62766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 779 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 17464, 75794, 368, 341, 262, 1077, 1946, 8727, 284, 5571, 5632, 9422, 486, 931, 543, 262, 1077, 5656, 21260, 717, 24976, 6483, 4035, 414, 70886, 5566, 25, 609, 17249, 31349, 16974, 345, 981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_gen_lint_group_list() { let lints = vec![ Lint::new("abc", "group1", "\"abc\"", "module_name"), Lint::new("should_assert_eq", "group1", "\"abc\"", "module_name"), Lint::new("internal", "internal_style", "\"abc\"", "module_name"), ]; let...
rust_cleaned_test_functions.jsonl/72171
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 461 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 907, 396, 6288, 2019, 368, 341, 286, 1077, 326, 21042, 284, 7486, 90515, 310, 444, 396, 486, 931, 445, 13683, 497, 330, 4074, 16, 497, 15898, 13683, 55853, 330, 4352, 1269, 4461, 310, 444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_error_provider_error() { assert_eq!( Message::parse(&Bytes::from("4 48 46")), Some(Message::Response(Response { message_id: 48, request_message_id: 46, data: Err(ErrorKind::ProviderError), })) ); }
rust_cleaned_test_functions.jsonl/1087
{ "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, 21039, 4096, 29518, 4096, 368, 341, 262, 2060, 10714, 33673, 286, 4856, 486, 6400, 2099, 7078, 486, 1499, 445, 19, 220, 19, 23, 220, 19, 21, 30154, 286, 4329, 29359, 486, 2582, 47979, 341, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_wallet() { let (mut testkit, api) = create_testkit(); // Create and send a transaction via API let (tx, _) = api.create_wallet(ALICE_NAME); testkit.create_block(); api.assert_tx_status(tx.object_hash(), &json!({ "type": "success" })); // Check that the user indeed...
rust_cleaned_test_functions.jsonl/40475
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 62308, 368, 341, 262, 1077, 320, 6984, 1273, 8226, 11, 6330, 8, 284, 1855, 4452, 8226, 543, 262, 442, 4230, 323, 3624, 264, 7745, 4566, 5333, 198, 262, 1077, 320, 3998, 11, 27439, 284, 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_if_expr() { let prog = r#" let a = 5.0; let b = if a < 5.1 { 100 } else { 10 } b "#; expect_prog(prog, Value::Int(100)); }
rust_cleaned_test_functions.jsonl/77506
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11119, 21915, 368, 341, 262, 1077, 29271, 284, 435, 2, 698, 1149, 264, 284, 220, 20, 13, 15, 280, 1149, 293, 284, 421, 264, 366, 220, 20, 13, 16, 341, 262, 220, 16, 15, 15, 198, 92, 770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_select_query_with_join() { let query = query_builder::select("users") .fields(&["id", "name"]) .filter("name = $1") .alias("posts", "p") .join("posts", "p.user_id", "users.id", query_builder::Join::Left) .build(); assert...
rust_cleaned_test_functions.jsonl/93982
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 206 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 5738, 6615, 31017, 368, 341, 286, 1077, 3239, 284, 3239, 28532, 486, 1742, 445, 4218, 1138, 310, 659, 9007, 2099, 1183, 307, 497, 330, 606, 14108, 310, 659, 5315, 445, 606, 284, 400, 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_raw_foreign_fn() { let interp = Interpreter::new(); interp.scope().add_value_with_name("reflect-args", |name| Value::new_foreign_fn(name, reflect_args)); assert_eq!(eval(&interp, "(reflect-args 1 2 3)").unwrap(), "(1 2 3)"); interp.scope().add_value_with_name("closure-...
rust_cleaned_test_functions.jsonl/112661
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 78983, 15246, 368, 341, 262, 1077, 47271, 284, 82493, 486, 931, 1428, 262, 47271, 48371, 1005, 718, 3142, 6615, 1269, 445, 34913, 12, 2116, 756, 286, 760, 606, 91, 5162, 486, 931, 78983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bit_i() { let mut b: I<4> = ibits(5); b += ibits(2); assert_eq!(b, ibits(7)); assert_eq!(b.extract_underlying(), 7); b /= ibits(4); assert_eq!(b, ibits(1)); assert_eq!(b.extract_underlying(), 1); assert!(b < ibits(2)); asse...
rust_cleaned_test_functions.jsonl/44781
{ "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, 13996, 5318, 368, 341, 286, 1077, 5206, 293, 25, 358, 27, 19, 29, 284, 18668, 1199, 7, 20, 317, 286, 293, 1421, 18668, 1199, 7, 17, 317, 286, 2060, 10714, 10297, 65, 11, 18668, 1199, 7, 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_read_custom_charset_format1() { let n_glyphs = 5; let data_format1 = [1, 0, 1, 3]; let mut ctxt = ReadScope::new(&data_format1).ctxt(); let format1_charset = ctxt.read_dep::<CustomCharset<'_>>(n_glyphs).unwrap(); match format1_charset { CustomC...
rust_cleaned_test_functions.jsonl/85338
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 346 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 15875, 65883, 8955, 16, 368, 341, 286, 1077, 308, 88703, 82, 284, 220, 20, 280, 286, 1077, 821, 8955, 16, 284, 508, 16, 11, 220, 15, 11, 220, 16, 11, 220, 18, 935, 286, 1077, 5206, 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...
2
#[test] fn test_gen_deprecated_fail() { let lints = vec![Lint::new("should_assert_eq2", "group2", "abc", None, "module_name")]; let _deprecated_lints = gen_deprecated(lints.iter()); }
rust_cleaned_test_functions.jsonl/73823
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 2259, 19889, 22121, 368, 341, 286, 1077, 326, 21042, 284, 7486, 20703, 47556, 486, 931, 445, 5445, 16553, 10714, 17, 497, 330, 4074, 17, 497, 330, 13683, 497, 2240, 11, 330, 4352, 1269, 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
#[test] fn test_default_values_with_shorter_lifetime() { let matches = ArgMatches::default(); let mut values = matches.values_of("").unwrap_or_default(); assert_eq!(values.next(), None); }
rust_cleaned_test_functions.jsonl/49536
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 9146, 6615, 16673, 261, 98827, 368, 341, 286, 1077, 9071, 284, 7638, 42470, 486, 2258, 543, 286, 1077, 5206, 2750, 284, 9071, 10656, 3575, 80821, 15454, 8734, 9993, 543, 286, 2060, 10714, 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
#[test] fn test_parse_without_hd() -> Result<(), ParseError> { let header = parse("@SQ\tSN:sq0\tLN:8\n")?; assert!(header.header().is_none()); assert_eq!(header.reference_sequences().len(), 1); Ok(()) }
rust_cleaned_test_functions.jsonl/8724
{ "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, 21039, 39904, 60111, 368, 1464, 5714, 68843, 14775, 1454, 29, 341, 286, 1077, 4247, 284, 4715, 10662, 64308, 4955, 18966, 14495, 80, 15, 4955, 50216, 25, 23, 1699, 899, 37445, 286, 2060, 10297, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_split() { split_assert("[10,7]", "[[5,5],7]"); split_assert("[11,7]", "[[5,6],7]"); }
rust_cleaned_test_functions.jsonl/5774
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 368, 341, 286, 6718, 16553, 10937, 16, 15, 11, 22, 19076, 10545, 58, 20, 11, 20, 1125, 22, 37389, 286, 6718, 16553, 10937, 16, 16, 11, 22, 19076, 10545, 58, 20, 11, 21, 1125, 22, 3738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_help() { let mut cmd = Command::cargo_bin("quench").unwrap(); let assert = cmd.arg("--help").assert().success().stderr(""); let mut mint = Mint::new(GOLDENFILES); let mut file = mint.new_goldenfile("help.txt").unwrap(); file.write_all(&assert.get_output().stdout).unwrap(); }
rust_cleaned_test_functions.jsonl/119060
{ "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, 26926, 368, 341, 262, 1077, 5206, 5439, 284, 7348, 486, 66715, 21816, 445, 446, 19762, 1827, 15454, 543, 262, 1077, 2060, 284, 5439, 21186, 21549, 8653, 1827, 2207, 1005, 5630, 1005, 36422, 56141, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_writer() { let test_bytes: &[Option<Bytes>] = &[ None, None, Some( "TiDB 是PingCAP 公司自主设计、研发的开源分布式关系型数据库," .as_bytes() .to_vec(), ), None, Some( ...
rust_cleaned_test_functions.jsonl/105140
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28908, 368, 341, 286, 1077, 1273, 12524, 25, 44590, 5341, 27, 7078, 53529, 284, 609, 9640, 310, 2240, 345, 310, 2240, 345, 310, 4329, 1006, 394, 330, 45351, 3506, 54851, 69883, 31400, 34369, 105, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_priority_update_request_on_control_stream() { test_wrong_frame_on_control_stream(&[0x80, 0x0f, 0x07, 0x00, 0x01, 0x03]); }
rust_cleaned_test_functions.jsonl/101884
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38161, 8882, 7893, 4470, 13436, 12673, 368, 341, 286, 1273, 75198, 8929, 4470, 13436, 12673, 2099, 58, 15, 87, 23, 15, 11, 220, 15, 87, 15, 69, 11, 220, 15, 87, 15, 22, 11, 220, 15, 87, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_fail_with_arithmetic_error() { let _pool = ConstPool::new(); let text = r" /// status: ARITHMETIC_ERROR script { fun main() { 1 / 0; } } "; let error_string = execute_script( MoveFile::with_content(script_path(), text), vec![], "libra", ...
rust_cleaned_test_functions.jsonl/43940
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22121, 6615, 25842, 25922, 4096, 368, 341, 262, 1077, 716, 10285, 284, 24522, 10551, 486, 931, 1428, 262, 1077, 1467, 284, 435, 698, 2575, 2639, 25, 6261, 4150, 44875, 1317, 5414, 198, 2282, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_master_branch_has_versions() { let hdr: VecxVs<String> = VecxVs::new(); assert_eq!(false, hdr.branch_has_versions(INITIAL_BRANCH_NAME)); }
rust_cleaned_test_functions.jsonl/92136
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24582, 28031, 21778, 65148, 368, 341, 262, 1077, 36615, 25, 11312, 87, 51737, 3464, 29, 284, 11312, 87, 51737, 486, 931, 543, 262, 2060, 10714, 10297, 3849, 11, 36615, 52560, 21778, 65148, 23515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_adjust_thread_pool_size() { let (_tmp, endpoint) = new_endpoint(); endpoint .region_info .set_regions(vec![(b"".to_vec(), b"".to_vec(), 1)]); let mut req = BackupRequest::default(); req.set_start_key(vec![]); req.set_end_key(vec![]...
rust_cleaned_test_functions.jsonl/122859
{ "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, 44153, 10814, 15709, 2368, 368, 341, 286, 1077, 5453, 5173, 11, 14887, 8, 284, 501, 36699, 543, 286, 14887, 198, 310, 659, 3943, 3109, 198, 310, 659, 746, 58035, 25592, 0, 9697, 65, 69355, 983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rem() { let one: ModInt = ModInt::from_value_modulus( BigInt::from(21), BigInt::from(4), ); let four: ModInt = ModInt::from_value_modulus( BigInt::from(4), BigInt::from(4), ); let result = one % four; ...
rust_cleaned_test_functions.jsonl/126152
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19194, 368, 341, 286, 1077, 825, 25, 5650, 1072, 284, 5650, 1072, 486, 1499, 3142, 7480, 19425, 1006, 310, 62608, 486, 1499, 7, 17, 16, 1326, 310, 62608, 486, 1499, 7, 19, 1326, 286, 3475, 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_zeroize_server_registration_finish() -> Result<(), ProtocolError> { let mut client_rng = OsRng; let mut server_rng = OsRng; let server_kp = RistrettoSha5123dhNoSlowHash::generate_random_keypair(&mut server_rng); let client_registration_start_result = ClientRegistration::<...
rust_cleaned_test_functions.jsonl/27846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 560 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19359, 551, 12015, 49101, 42980, 368, 1464, 5714, 68843, 24572, 1454, 29, 341, 262, 1077, 5206, 2943, 66849, 284, 15433, 49, 968, 280, 262, 1077, 5206, 3538, 66849, 284, 15433, 49, 968, 280, 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...
6
#[test] fn test_coset_fft() { type F = GoldilocksField; let k = 8; let n = 1 << k; let poly = PolynomialCoeffs::new(F::rand_vec(n)); let shift = F::rand(); let coset_evals = poly.coset_fft(shift).values; let generator = F::primitive_root_of_unity(k); ...
rust_cleaned_test_functions.jsonl/15039
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61192, 295, 67059, 368, 341, 286, 943, 434, 284, 7421, 321, 25183, 1877, 401, 286, 1077, 595, 284, 220, 23, 280, 286, 1077, 308, 284, 220, 16, 1115, 595, 280, 286, 1077, 9861, 284, 75153, 4680...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_append_lines() { let contents = "a\nb".to_string(); let contents2 = append_lines(contents, vec!["c".to_string()]); assert_eq!(contents2, "a\nb\nc\n"); }
rust_cleaned_test_functions.jsonl/114798
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 18323, 368, 341, 286, 1077, 8794, 284, 330, 64, 1699, 65, 3263, 983, 3904, 543, 286, 1077, 8794, 17, 284, 8737, 18323, 46964, 11, 7486, 0, 1183, 66, 3263, 983, 3904, 57887, 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
#[test] fn test_get_extern_crate_string() { let lib = ExternalLibrary { namespace: "Gdk".to_owned(), crate_name: "gdk".to_owned(), }; assert_eq!( get_extern_crate_string(&lib), "use gdk_sys as gdk;\n".to_owned() ); let lib ...
rust_cleaned_test_functions.jsonl/108562
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 488 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 62, 4301, 666, 7698, 3904, 368, 341, 286, 1077, 3051, 284, 30936, 16915, 341, 310, 4473, 25, 330, 38, 7584, 3263, 983, 51973, 3148, 310, 17717, 1269, 25, 330, 70, 7584, 3263, 983, 51973, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hash_g1_g2() { let mut rng = rand::thread_rng(); let msg: Vec<u8> = rng.sample_iter(&Standard).take(1000).collect(); let msg_end0: Vec<u8> = msg.iter().chain(b"end0").cloned().collect(); let msg_end1: Vec<u8> = msg.iter().chain(b"end1").cloned().collect(); ...
rust_cleaned_test_functions.jsonl/30570
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8950, 1889, 16, 1889, 17, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 1077, 3750, 25, 11312, 34837, 23, 29, 284, 28422, 23882, 11723, 2099, 19781, 568, 22769, 7, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_ok() { assert_eq!(Response { response: &[0, 0, 0, 1, 0] }.parse(), ParsedResponse::Ok); assert_eq!(Response { response: &[0, 0, 0, 2, 0, 1] }.parse(), ParsedResponse::Ok); }
rust_cleaned_test_functions.jsonl/38583
{ "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, 21039, 19817, 368, 341, 286, 2060, 10714, 10297, 2582, 314, 2033, 25, 44590, 15, 11, 220, 15, 11, 220, 15, 11, 220, 16, 11, 220, 15, 60, 16908, 6400, 3148, 4293, 393, 18112, 2582, 486, 11578, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_conf_state_from_region() { let cases = vec![ (vec![1], vec![2], vec![], vec![]), (vec![], vec![], vec![1], vec![2]), (vec![1, 2], vec![], vec![], vec![]), (vec![1, 2], vec![], vec![3], vec![]), (vec![1], vec![2], vec![3, 4], vec...
rust_cleaned_test_functions.jsonl/14627
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 997 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16059, 4387, 5673, 20627, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4083, 20703, 16, 1125, 7486, 20703, 17, 1125, 7486, 0, 12995, 7486, 0, 1294, 1326, 310, 320, 4083, 0, 12995, 7486...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_invalid_profile_file() { let mut profile_path = PathBuf::new(); profile_path.push("./test-data/profiles/invalid.toml"); // run test let result = ProfileFile::from_file(profile_path); // expecting error assert!(result.is_err()); assert!( ...
rust_cleaned_test_functions.jsonl/109305
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 13789, 2458, 368, 341, 286, 1077, 5206, 5526, 2638, 284, 7933, 15064, 486, 931, 543, 286, 5526, 2638, 2552, 13988, 1944, 13945, 23580, 82, 14, 11808, 73494, 75, 3071, 286, 442, 1598, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_algo_without_version_to_url() { let mock_client = mock_client(); let algorithm = mock_client.algo("/anowell/Pinky"); assert_eq!(algorithm.to_url().unwrap().path(), "/v1/algo/anowell/Pinky"); }
rust_cleaned_test_functions.jsonl/690
{ "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, 76993, 39904, 9438, 2346, 2903, 368, 341, 286, 1077, 7860, 8179, 284, 7860, 8179, 543, 286, 1077, 12111, 284, 7860, 8179, 12168, 3346, 4283, 276, 79499, 16341, 38034, 797, 286, 2060, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cancel() { let mut book = Book::new(); let bid_order = Order { time: 0, id: 1, price: 3.14, qty: 100, side: Side::BID, }; let ask_order = Order { time:0, id: 2, price...
rust_cleaned_test_functions.jsonl/120787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 516 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28895, 368, 341, 286, 1077, 5206, 2311, 284, 5893, 486, 931, 1428, 286, 1077, 14103, 7869, 284, 7217, 341, 310, 882, 25, 220, 15, 345, 310, 877, 25, 220, 16, 345, 310, 3349, 25, 220, 18, 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_2_of_3_multisig() { let alice = KeyPair::random(); let bob = KeyPair::random(); let carol = KeyPair::random(); let mut testkit = create_testkit_with_multisig( vec![alice.public_key(), bob.public_key(), carol.public_key()], 2, ); let ms_address = Caller::S...
rust_cleaned_test_functions.jsonl/127005
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 807 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 17, 3575, 62, 18, 26290, 285, 343, 368, 341, 262, 1077, 70433, 284, 5309, 12443, 486, 11463, 543, 262, 1077, 35192, 284, 5309, 12443, 486, 11463, 543, 262, 1077, 1803, 337, 284, 5309, 12443,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_size() { let token_owner_record = TokenOwnerRecord { account_type: GovernanceAccountType::TokenOwnerRecord, realm: Pubkey::new_unique(), governing_token_mint: Pubkey::new_unique(), governing_token_owner: Pubkey::new_unique(), ...
rust_cleaned_test_functions.jsonl/6147
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 2368, 368, 341, 286, 1077, 3950, 29027, 14192, 284, 9660, 13801, 6471, 341, 310, 2692, 1819, 25, 80589, 7365, 929, 486, 3323, 13801, 6471, 345, 310, 21889, 25, 22611, 792, 486, 931, 21218, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_a_parent_of() { assert!(is_a_parent_of("/usr", "/usr/andy")); assert!(is_a_parent_of("/usr", "/usr/andy/i/am/descendant")); assert!(!is_a_parent_of("/usr", "/usr/.")); assert!(!is_a_parent_of("/usr", "/usr/")); assert!(!is_a_parent_of("/usr", "/usr")); ...
rust_cleaned_test_functions.jsonl/32368
{ "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, 6892, 4306, 15960, 3575, 368, 341, 286, 2060, 10297, 285, 4306, 15960, 3575, 4283, 7063, 497, 3521, 7063, 14, 13331, 4010, 286, 2060, 10297, 285, 4306, 15960, 3575, 4283, 7063, 497, 3521, 7063, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_invoke_local_module() { solana_logger::setup(); let code = " modules: module M { public universal_truth(): u64 { return 42; } } script: import Transaction.M; ...
rust_cleaned_test_functions.jsonl/66807
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 713 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79779, 13564, 10750, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 2038, 284, 6228, 310, 13454, 1447, 310, 4688, 386, 341, 394, 584, 20178, 49186, 4555, 575, 21, 19, 341, 503, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_virtio_balloon() { let focal = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string()); let guest = Guest::new(Box::new(focal)); let kernel_path = direct_kernel_boot_path(); let api_socket = temp_api_path(&guest.tmp_dir); //Let's start a 4G guest with ballo...
rust_cleaned_test_functions.jsonl/26167
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1053 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 2106, 815, 56441, 31335, 368, 341, 286, 1077, 41099, 284, 34960, 47583, 2648, 486, 931, 7, 3788, 49533, 19121, 4708, 2389, 3904, 1423, 286, 1077, 8640, 284, 26215, 486, 931, 67758, 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...
2
#[test] fn test_statement_debugging() { let db = checked_memory_handle(); let query = "SELECT 12345"; let stmt = db.prepare(query).unwrap(); assert!(format!("{:?}", stmt).contains(query)); }
rust_cleaned_test_functions.jsonl/25518
{ "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, 37404, 15446, 3173, 368, 341, 286, 1077, 2927, 284, 10067, 19195, 10630, 543, 286, 1077, 3239, 284, 330, 4858, 220, 16, 17, 18, 19, 20, 876, 286, 1077, 20020, 284, 2927, 21934, 10741, 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
#[test] fn test_supplies_buy_oxen_success() { let mut supplies = Supplies::new(); supplies.buy_oxen(200).unwrap(); assert_eq!(500, supplies.money); assert_eq!(200, supplies.oxen); }
rust_cleaned_test_functions.jsonl/28655
{ "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, 23723, 7202, 46348, 62, 5131, 268, 18632, 368, 341, 286, 1077, 5206, 16720, 284, 50252, 486, 931, 543, 286, 16720, 63871, 62, 5131, 268, 7, 17, 15, 15, 568, 15454, 543, 1066, 286, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keypair_from_base64() { // openssl genpkey -algorithm ed25519 -outform DER | openssl base64 let private_key = "MC4CAQAwBQYDK2VwBCIEIFMx+OdFIVsMAXNDuOFtxrl/CiQRIblFjaf4/mQetmrq"; assert!(keypair_from_base64(private_key).is_ok()); }
rust_cleaned_test_functions.jsonl/3954
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 12670, 5673, 7651, 21, 19, 368, 341, 286, 442, 80733, 4081, 79, 792, 481, 19688, 1578, 17, 20, 20, 16, 24, 481, 411, 627, 46777, 760, 80733, 2331, 21, 19, 198, 286, 1077, 869, 3097, 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_poly_measurement() -> Fallible<()> { let op_plain = meas::make_base_laplace::<AllDomain<_>>(0.0)?; let arg = 99.9; let res_plain = op_plain.function.eval(&arg)?; assert_eq!(res_plain, arg); let op_poly = op_plain.into_poly(); let res_poly = op_poly...
rust_cleaned_test_functions.jsonl/28356
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36133, 87342, 368, 1464, 14785, 1238, 71698, 341, 286, 1077, 1179, 41015, 284, 6893, 486, 6927, 7651, 907, 391, 26536, 27638, 2403, 13636, 32399, 25526, 15, 13, 15, 40007, 286, 1077, 1392, 284, 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...
4
#[test] fn test_vec_list_is_empty() { let mut list = VecList::new(); assert!(list.is_empty()); list.push_back(0); assert!(!list.is_empty()); }
rust_cleaned_test_functions.jsonl/11538
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 2019, 6892, 15124, 368, 341, 286, 1077, 5206, 1140, 284, 11312, 852, 486, 931, 543, 286, 2060, 10297, 1607, 2079, 15124, 1423, 286, 1140, 2552, 3895, 7, 15, 317, 286, 2060, 0, 3471, 1607,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_pad_left() { let mut v = vec![5, 6, 7]; pad_left(&mut v, 3); assert_eq!(v, [5, 6, 7]); pad_left(&mut v, 8); assert_eq!(v, [0, 0, 0, 0, 0, 5, 6, 7]); }
rust_cleaned_test_functions.jsonl/88217
{ "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, 30290, 9579, 368, 341, 262, 1077, 5206, 348, 284, 7486, 20703, 20, 11, 220, 21, 11, 220, 22, 935, 262, 11016, 9579, 2099, 6984, 348, 11, 220, 18, 317, 262, 2060, 10714, 10297, 85, 11, 508, 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_log_merge_policy_pair() { let test_input = vec![ create_random_segment_meta(10), create_random_segment_meta(10), create_random_segment_meta(10), ]; let result_list = test_merge_policy().compute_merge_candidates(&test_input); ass...
rust_cleaned_test_functions.jsonl/57295
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 177 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 20888, 22773, 14445, 368, 341, 286, 1077, 1273, 5898, 284, 7486, 90515, 310, 1855, 22644, 28061, 13381, 7, 16, 15, 1326, 310, 1855, 22644, 28061, 13381, 7, 16, 15, 1326, 310, 1855, 22644, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_magnitude() { let lines = [ "[[1,2],[[3,4],5]]", "[[[[0,7],4],[[7,8],[6,0]]],[8,1]]", "[[[[1,1],[2,2]],[3,3]],[4,4]]", "[[[[3,0],[5,3]],[4,4]],[5,5]]", "[[[[5,0],[7,4]],[5,5]],[6,6]]", "[[[[8,7],[7,7]],[[8,6],[7,7]]]...
rust_cleaned_test_functions.jsonl/124062
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 34715, 368, 341, 286, 1077, 5128, 284, 2278, 310, 10545, 58, 16, 11, 17, 14955, 58, 18, 11, 19, 1125, 20, 5053, 756, 310, 10545, 15505, 58, 15, 11, 22, 1125, 19, 14955, 58, 22, 11, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_multiple() { assert_no_change("int i, j, k;"); assert_no_change("int i = 1, j = 2, k = 3;"); assert_no_change("int i = { { 1 }, 2 };"); }
rust_cleaned_test_functions.jsonl/80711
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 368, 341, 286, 2060, 6536, 15947, 445, 396, 600, 11, 502, 11, 595, 34649, 286, 2060, 6536, 15947, 445, 396, 600, 284, 220, 16, 11, 502, 284, 220, 17, 11, 595, 284, 220, 18, 34649, 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
#[test] fn test_load_dtr_decode() -> Result<(), String> { let result = InstructionRegister::decode(LOAD_DTR).expect("failed decode"); match result.target { Target::Dtr => Ok(()), _ => Err("incorrect target".to_string()) }?; match result.action { ...
rust_cleaned_test_functions.jsonl/61608
{ "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, 12411, 814, 376, 15227, 368, 1464, 5714, 68843, 923, 29, 341, 286, 1077, 1102, 284, 29051, 8690, 486, 18196, 7, 12988, 1557, 2378, 568, 17119, 445, 16091, 16895, 797, 286, 2432, 1102, 6539, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_parse_object_identifier() { assert_parses::<ObjectIdentifier<'_>>(&[ ( Ok(ObjectIdentifier::from_string("2.5").unwrap()), b"\x06\x01\x55", ), ( Ok(ObjectIdentifier::from_string("2.5.2").unwrap()), ...
rust_cleaned_test_functions.jsonl/40828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 950 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5314, 33176, 368, 341, 286, 2060, 77113, 288, 27638, 1190, 8714, 18291, 62, 2452, 2099, 9640, 310, 2399, 394, 7622, 12526, 8714, 486, 1499, 3904, 445, 17, 13, 20, 1827, 15454, 14702, 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_multi_module_struct_resolution() { let allocator = Arena::new(); let vm_cache = VMModuleCache::new(&allocator); let code = format!( " modules: module M1 {{ struct X {{}} }} module M2 {{ import 0x{0}.M1; stru...
rust_cleaned_test_functions.jsonl/127133
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 599 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 10750, 15126, 39849, 368, 341, 262, 1077, 43655, 284, 27047, 486, 931, 543, 262, 1077, 10995, 11529, 284, 17792, 3332, 8233, 486, 931, 2099, 57631, 626, 262, 1077, 2038, 284, 3561, 33673, 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_operators() { let mut e1: EnumSet<Foo> = EnumSet::empty(); e1.add(A); e1.add(C); let mut e2: EnumSet<Foo> = EnumSet::empty(); e2.add(B); e2.add(C); let e_union = e1 | e2; let elems = e_union.iter().collect(); assert_eq!(ve...
rust_cleaned_test_functions.jsonl/9061
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 327 }
[ 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, 3194, 543, 286, 384, 16, 1364, 4346, 317, 286, 384, 16, 1364, 3025, 626, 286, 1077, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keys_expired() { let key_store = KeyStore::new(); assert_eq!(None, key_store.last_load_time()); assert_eq!(None, key_store.keys_expired()); let key_store = tokio_test::block_on(KeyStore::new_from(KEY_URL.to_owned())).unwrap(); assert!(key_store.last_loa...
rust_cleaned_test_functions.jsonl/124817
{ "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, 12631, 80221, 368, 341, 286, 1077, 1376, 14809, 284, 5309, 6093, 486, 931, 1428, 286, 2060, 10714, 10297, 4064, 11, 1376, 14809, 9110, 12411, 3009, 1423, 286, 2060, 10714, 10297, 4064, 11, 1376, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keys() { let mut map = VecMap::new(); map.insert(1, 'a'); map.insert(2, 'b'); map.insert(3, 'c'); let keys: Vec<_> = map.keys().collect(); assert_eq!(keys.len(), 3); assert!(keys.contains(&1)); assert!(keys.contains(&2)); as...
rust_cleaned_test_functions.jsonl/53268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12631, 368, 341, 286, 1077, 5206, 2415, 284, 11312, 2227, 486, 931, 543, 286, 2415, 7030, 7, 16, 11, 364, 64, 1157, 286, 2415, 7030, 7, 17, 11, 364, 65, 1157, 286, 2415, 7030, 7, 18, 11, 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_date_serialization() { let date = Date::new( time::Date::from_calendar_date(2020, time::Month::try_from(4).unwrap(), 07).unwrap(), ); let json = json!({ "date test": date }); assert_eq!(json!({"date test":"2020-04-07"}), json); }
rust_cleaned_test_functions.jsonl/102899
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 141 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 25602, 2022, 368, 341, 286, 1077, 2400, 284, 2631, 486, 931, 1006, 310, 882, 486, 1916, 486, 1499, 57665, 4164, 7, 17, 15, 17, 15, 11, 882, 486, 11318, 486, 1539, 5673, 7, 19, 568, 154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zip() { assert_eq!( Point2::new(true, false), Point2::new(-2, 1).zip(Point2::new(-1, -1), |a, b| a < b) ); }
rust_cleaned_test_functions.jsonl/53573
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42131, 368, 341, 310, 2060, 10714, 33673, 394, 5126, 17, 486, 931, 3715, 11, 895, 1326, 394, 5126, 17, 486, 931, 4080, 17, 11, 220, 16, 568, 9964, 32737, 17, 486, 931, 4080, 16, 11, 481, 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
#[test] fn test_2NNN() { // 0x2NNN - Execute subroutine starting at address NNN let opcode = 0x2345; let mut vm = get_vm(); let old_pc_value = vm.program_counter; vm.execute_instruction(decode_opcode(opcode), opcode); assert_eq!(vm.program_counter + 2, 0x0345); // add 2 to jump resul...
rust_cleaned_test_functions.jsonl/242
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 187 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 17, 9745, 45, 368, 341, 262, 442, 220, 15, 87, 17, 9745, 45, 481, 20848, 88334, 5916, 518, 2621, 451, 9745, 271, 262, 1077, 30028, 284, 220, 15, 87, 17, 18, 19, 20, 280, 262, 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_stake_process_instruction_decode_bail() { // gets the first check assert_eq!( super::process_instruction( &Pubkey::default(), &mut [KeyedAccount::new( &Pubkey::default(), false, ...
rust_cleaned_test_functions.jsonl/10051
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3884 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 726, 11305, 54923, 15227, 880, 604, 368, 341, 23459, 286, 442, 5221, 279, 1156, 1779, 198, 286, 2060, 10714, 33673, 310, 2256, 486, 4630, 54923, 1006, 394, 609, 29162, 792, 486, 2258, 3148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_times_matrix_is_identity() { let matrix: Matrix4x4<f64> = Matrix4x4::new( 36.84, 427.468, 882.198, 89.504, 7.042, 61.891, 56.31, 89.0, 72.0, 936.5, 413.80, 50.311, 37.698, 311.8, 60.81, 73.839 ); ...
rust_cleaned_test_functions.jsonl/129102
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 397 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63333, 22353, 10193, 6892, 46244, 368, 341, 286, 1077, 6172, 25, 11631, 19, 87, 19, 63895, 21, 19, 29, 284, 11631, 19, 87, 19, 486, 931, 1006, 310, 220, 18, 21, 13, 23, 19, 11, 256, 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...
1
#[test] fn test_with_no_doc_stage0() { let mut config = configure(&[], &[]); config.stage = 0; config.cmd = Subcommand::Test { paths: vec!["library/std".into()], test_args: vec![], rustc_args: vec![], fail_fast: true, doc_tests:...
rust_cleaned_test_functions.jsonl/103563
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 647 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6615, 6536, 18869, 35238, 15, 368, 341, 286, 1077, 5206, 2193, 284, 14411, 2099, 12995, 609, 56703, 286, 2193, 33745, 284, 220, 15, 280, 286, 2193, 25724, 284, 3719, 5631, 486, 2271, 341, 310, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_text_from() { let text1 = Text::from("hello"); let text2 = Text::from(String::from("hello")); assert_eq!(text1, text2); }
rust_cleaned_test_functions.jsonl/100709
{ "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, 4326, 5673, 368, 341, 286, 1077, 1467, 16, 284, 2918, 486, 1499, 445, 14990, 797, 286, 1077, 1467, 17, 284, 2918, 486, 1499, 2242, 486, 1499, 445, 14990, 14929, 286, 2060, 10714, 10297, 1318, 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
#[test] fn test_trigger_reaction_valid() { let mut system = System { state: vec![2u64, 2u64, 2u64], idx_to_name: vec!["o2".to_string(), "h2".to_string(), "h2o".to_string()], name_to_idx: [ ("o2".to_string(), 0), ("h2".to_string(), 1), ("h2o".to_str...
rust_cleaned_test_functions.jsonl/120464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 698 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32925, 96631, 8337, 368, 341, 262, 1077, 5206, 1849, 284, 739, 341, 286, 1584, 25, 7486, 20703, 17, 84, 21, 19, 11, 220, 17, 84, 21, 19, 11, 220, 17, 84, 21, 19, 1259, 286, 7187, 2346, 126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_compact1() { let cpus = cpu_descriptor_from_socket_size(2, 4); let mut pool = ResourcePool::new(&ResourceDescriptor::new(cpus, Vec::new()), &[]); let rq1 = CpuRequest::ForceCompact(9).into(); assert!(pool.try_allocate_resources(&rq1, None).is_none()); ...
rust_cleaned_test_functions.jsonl/92228
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 346 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 40739, 18177, 531, 16, 368, 341, 286, 1077, 12490, 355, 284, 17319, 33774, 5673, 19555, 2368, 7, 17, 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...
2
#[test] fn test_events() { let mut events = Events::<TestEvent>::default(); let event_0 = TestEvent { i: 0 }; let event_1 = TestEvent { i: 1 }; let event_2 = TestEvent { i: 2 }; // this reader will miss event_0 and event_1 because it wont read them over the course of ...
rust_cleaned_test_functions.jsonl/17871
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19691, 368, 341, 286, 1077, 5206, 4357, 284, 17627, 27638, 2271, 1556, 6831, 2258, 543, 286, 1077, 1538, 62, 15, 284, 3393, 1556, 314, 600, 25, 220, 15, 2605, 286, 1077, 1538, 62, 16, 284, 339...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_int256() { assert_eq!( Int256::from(BIGGEST_INT_AS_UINT.clone().add(Uint256::from(0 as u32))), BIGGEST_INT.clone() ); assert!( BIGGEST_INT.checked_add(&Int256::from(1)).is_none(), "should return None adding 1 to biggest" ...
rust_cleaned_test_functions.jsonl/47760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 591 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 17, 20, 21, 368, 341, 286, 2060, 10714, 33673, 310, 1333, 17, 20, 21, 486, 1499, 5349, 1914, 81757, 9161, 28028, 27241, 15997, 1005, 718, 12317, 396, 17, 20, 21, 486, 1499, 7, 15, 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_duration() { assert_eq!( duration_to_string(Duration::from_secs(12)), "00:12".to_string() ); assert_eq!( duration_to_string(Duration::from_secs(123)), "02:03".to_string() ); assert_eq!( duration_t...
rust_cleaned_test_functions.jsonl/22169
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25454, 368, 341, 286, 2060, 10714, 33673, 310, 8090, 2346, 3904, 64114, 486, 1499, 68718, 7, 16, 17, 6965, 310, 330, 15, 15, 25, 16, 17, 3263, 983, 3904, 741, 286, 1439, 286, 2060, 10714, 3367...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pattern() { { let glider = Field::from_cells("\ .O. ..O OOO"); let scene = Field::from_cells("\ OO..OOO.. O........ OOOOO.... .......OO ..OO..O.. .......O. .....OOO. ......... "); let mut game = Game::new(scene, AutomataRule::cgol()); ...
rust_cleaned_test_functions.jsonl/4304
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 21260, 368, 341, 286, 341, 310, 1077, 2770, 1776, 284, 8601, 486, 1499, 37796, 4921, 198, 8382, 624, 496, 46, 198, 19499, 46, 3071, 310, 1077, 6109, 284, 8601, 486, 1499, 37796, 4921, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enotdir() { let exe = std::env::current_exe().unwrap().into_os_string(); let mut path = exe.clone(); path.push("/."); assert_eq!( realpath(&path, RealpathFlags::empty()) .unwrap_err() .raw_os_error(), Some(libc::ENOTDIR) ); assert_...
rust_cleaned_test_functions.jsonl/130551
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6205, 354, 3741, 368, 341, 262, 1077, 47193, 284, 1460, 486, 3160, 486, 3231, 76074, 1005, 15454, 1005, 18122, 29387, 3904, 543, 262, 1077, 5206, 1815, 284, 47193, 15997, 543, 262, 1815, 2552, 428...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ld16_r_imm() { let mut emu = MockEmulator::new().unwrap(); emu.cpu.pc = 0xC000; emu.wram[0] = 0x01; emu.wram[1] = 0x10; // lsb emu.wram[2] = 0x20; // msb emu.wram[3] = 0x11; emu.wram[4] = 0x30; // lsb emu.wram[5] = 0x40; // msb ...
rust_cleaned_test_functions.jsonl/51429
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 536 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50573, 16, 21, 1710, 71370, 368, 341, 286, 1077, 5206, 976, 84, 284, 14563, 2269, 10511, 486, 931, 1005, 15454, 1428, 286, 976, 84, 42387, 53335, 284, 220, 15, 12125, 15, 15, 15, 280, 286, 976...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_strong_count() { let a = Arc::new(0); assert!(Arc::strong_count(&a) == 1); let w = Arc::downgrade(&a); assert!(Arc::strong_count(&a) == 1); let b = w.upgrade().expect(""); assert!(Arc::strong_count(&b) == 2); assert!(Arc::strong_count(&a) =...
rust_cleaned_test_functions.jsonl/35118
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 272 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2895, 644, 3180, 368, 341, 286, 1077, 264, 284, 19689, 486, 931, 7, 15, 317, 286, 2060, 10297, 36809, 486, 4519, 3180, 2099, 64, 8, 621, 220, 16, 317, 286, 1077, 289, 284, 19689, 486, 2923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serde_style_map_style() { let s1 = StyleMapStyle::Regular; assert_tokens(&s1, &[Token::Str("regular")]); let s2 = StyleMapStyle::Italic; assert_tokens(&s2, &[Token::Str("italic")]); let s3 = StyleMapStyle::Bold; assert_tokens(&s3, &[Token::Str("bol...
rust_cleaned_test_functions.jsonl/126999
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 215 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 450, 15117, 5376, 15117, 368, 341, 286, 1077, 274, 16, 284, 11913, 2227, 2323, 486, 30404, 280, 286, 2060, 28838, 2099, 82, 16, 11, 44590, 3323, 486, 2580, 445, 22308, 899, 2558, 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...
1
#[test] fn test_should_remove_from_mem() { solana_logger::setup(); let bucket = new_for_test::<u64>(); let mut startup = false; let mut current_age = 0; let ref_count = 0; let one_element_slot_list = vec![(0, 0)]; let one_element_slot_list_entry = Arc::new...
rust_cleaned_test_functions.jsonl/4157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1380 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43378, 18193, 5673, 12976, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 15621, 284, 501, 5478, 4452, 27638, 84, 21, 19, 3913, 286, 1077, 5206, 20567, 284, 895, 280, 286, 1077, 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_dispatch_with_decline_marks_addr_allocated() { let decline = new_test_decline(); let mut server = new_test_server(|| 42); let already_used_ip = Ipv4Addr::new(192, 168, 1, 2); server.config.managed_addrs.push(already_used_ip); let client_config = CachedConf...
rust_cleaned_test_functions.jsonl/61740
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 538 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42991, 6615, 35814, 482, 74204, 7387, 82342, 368, 341, 286, 1077, 17704, 284, 501, 4452, 35814, 482, 543, 286, 1077, 5206, 3538, 284, 501, 4452, 12015, 79453, 220, 19, 17, 317, 286, 1077, 2669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_negative() { let n = RpNumber { digits: (-104321).into(), decimal: 2, }; assert_eq!(None, n.to_u64()); assert_eq!(Some(-1043.21), n.to_f64()); assert_eq!(Some(-1043), n.to_i32()); assert_eq!(Some(-1043), n.to_i64()); ...
rust_cleaned_test_functions.jsonl/18462
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53865, 368, 341, 286, 1077, 308, 284, 68108, 2833, 341, 310, 18509, 25, 10293, 16, 15, 19, 18, 17, 16, 568, 18122, 3148, 310, 12122, 25, 220, 17, 345, 286, 3634, 286, 2060, 10714, 10297, 4064,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cuda_resize_op() { let _ctx = initialize_cuda_device().unwrap(); let resize1 = img_op!(CudaResizeOp::new(1024, 768)); let resize2 = img_op!(CudaResizeOp::new(800, 600)); let resize3 = img_op!(CudaResizeOp::new(640, 480)); let img1 = image::open("test_r...
rust_cleaned_test_functions.jsonl/33642
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 567 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62706, 53370, 10287, 368, 341, 286, 1077, 716, 3773, 284, 9468, 62706, 9204, 1005, 15454, 1428, 286, 1077, 20925, 16, 284, 4964, 10287, 10297, 34, 8053, 30561, 7125, 486, 931, 7, 16, 15, 17, 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_get_snapshot_storages_only_older_than_or_equal_to_snapshot_slot() { let db = AccountsDb::new(Vec::new(), &ClusterType::Development); let key = Pubkey::default(); let account = AccountSharedData::new(1, 0, &key); let before_slot = 0; let base_slot = before...
rust_cleaned_test_functions.jsonl/6993
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 363 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 53265, 1261, 269, 1134, 18410, 62, 2018, 51613, 8734, 11478, 2346, 53265, 27563, 368, 341, 286, 1077, 2927, 284, 40655, 7994, 486, 931, 49923, 486, 931, 1507, 609, 28678, 929, 486, 39419, 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_ingest_multiple_file() { let path_dir = tempdir_with_prefix("_test_ingest_multiple_file"); let root_path = path_dir.path(); let db_path = root_path.join("db"); let path_str = db_path.to_str().unwrap(); let cfs = ["default"]; let mut opts = DBOptio...
rust_cleaned_test_functions.jsonl/36972
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1303 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59112, 477, 45233, 2458, 368, 341, 286, 1077, 1815, 4334, 284, 2730, 3741, 6615, 13974, 16975, 1944, 59112, 477, 45233, 2458, 797, 286, 1077, 3704, 2638, 284, 1815, 4334, 3875, 543, 286, 1077, 292...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_roundtrip_urn() { let uuid_orig = new(); let orig_str = uuid_orig.to_urn().to_string(); let uuid_out = Uuid::parse_str(&orig_str).unwrap(); assert_eq!(uuid_orig, uuid_out); }
rust_cleaned_test_functions.jsonl/114743
{ "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, 29896, 32981, 62, 399, 368, 341, 286, 1077, 16040, 35328, 284, 501, 543, 286, 1077, 2713, 2895, 284, 16040, 35328, 2389, 62, 399, 1005, 983, 3904, 543, 286, 1077, 16040, 6068, 284, 547, 2423, 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
#[test] fn test_primitive_array_add_with_nulls() { let a = Int32Array::from(vec![Some(5), None, Some(7), None]); let b = Int32Array::from(vec![None, None, Some(6), Some(7)]); let c = add(&a, &b).unwrap(); assert_eq!(true, c.is_null(0)); assert_eq!(true, c.is_null(1)); ...
rust_cleaned_test_functions.jsonl/17860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 231 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 2891, 6615, 15162, 82, 368, 341, 286, 1077, 264, 284, 1333, 18, 17, 1857, 486, 1499, 25592, 20703, 8373, 7, 20, 701, 2240, 11, 4329, 7, 22, 701, 2240, 2558, 286, 1077, 293, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_file_style_raw_no_decoration() { let config = integration_test_utils::make_config_from_args(&[ "--file-style", "raw", "--file-decoration-style", "omit", ]); let output = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK...
rust_cleaned_test_functions.jsonl/70067
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 476 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 15117, 16067, 6536, 2259, 26452, 368, 341, 286, 1077, 2193, 284, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 9640, 310, 14482, 1192, 11297, 756, 310, 330, 1041, 756, 310, 14482, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_parse_transfer_subcommand() { let test_commands = app("test", "desc", "version"); let default_keypair = Keypair::new(); let default_keypair_file = make_tmp_path("keypair_file"); write_keypair_file(&default_keypair, &default_keypair_file).unwrap(); ...
rust_cleaned_test_functions.jsonl/58800
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2905 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 35403, 5228, 5631, 368, 341, 286, 1077, 1273, 44151, 284, 906, 445, 1944, 497, 330, 8614, 497, 330, 4366, 3071, 286, 1077, 1638, 3097, 12670, 284, 6569, 1082, 1310, 486, 931, 543, 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_follow_stdin() { new_ucmd!() .arg("-f") .pipe_in_fixture(FOOBAR_TXT) .run() .stdout_is_fixture("follow_stdin.expected"); }
rust_cleaned_test_functions.jsonl/31124
{ "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, 43490, 15656, 258, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 69, 1138, 286, 659, 13768, 1243, 74409, 7, 3788, 20608, 934, 84411, 340, 286, 659, 6108, 741, 286, 659, 36358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_int_lit() { let d = Decimal::<4>::from_str("1957945").unwrap(); assert_eq!(d.coeff, 19579450000); }
rust_cleaned_test_functions.jsonl/12015
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 4042, 98399, 368, 341, 286, 1077, 294, 284, 26728, 27638, 19, 6831, 1499, 2895, 445, 16, 24, 20, 22, 24, 19, 20, 1827, 15454, 543, 286, 2060, 10714, 10297, 67, 86462, 11, 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
#[test] fn test_checkpoints() { let network = Network::LocalNet; let (db, blocks, outputs, consensus_manager) = create_new_blockchain(network); let txn = txn_schema!( from: vec![outputs[0][0].clone()], to: vec![MicroTari(5_000), MicroTari(6_000)] ); let (txn, _, _) = spend_u...
rust_cleaned_test_functions.jsonl/5662
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 372 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 7706, 368, 341, 262, 1077, 3922, 284, 8141, 486, 7319, 6954, 280, 262, 1077, 320, 1999, 11, 10010, 11, 16275, 11, 23869, 12144, 8, 284, 1855, 5921, 7113, 8819, 46542, 626, 262, 1077, 49721...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_implies_cfg_test_unless_cfg_test() { let matches = &match getopts(&["--test".to_string(), "--cfg=test".to_string()], &optgroups()) { Ok(m) => m, Err(f) => { panic!("test_switch_implies_cfg_test_unle...
rust_cleaned_test_functions.jsonl/1675
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27652, 21007, 550, 18343, 4452, 4907, 1717, 18343, 4452, 368, 341, 286, 1077, 9071, 4035, 310, 609, 6347, 633, 10518, 2099, 1183, 313, 1944, 3263, 983, 3904, 1507, 14482, 14072, 53538, 3263, 983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_group_members() { let invoice = r#" bindleVersion = "1.0.0" [bindle] name = "aricebo" version = "1.2.3" [[group]] name = "telescopes" [[parcel]] [parcel.label] sha256 = "aaabbbcccdddeeefff" name = "telesco...
rust_cleaned_test_functions.jsonl/71684
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 562 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6288, 30397, 368, 341, 286, 1077, 24615, 284, 435, 2, 698, 286, 10719, 273, 5637, 284, 330, 16, 13, 15, 13, 15, 1837, 286, 508, 7666, 273, 921, 286, 829, 284, 330, 277, 558, 749, 698, 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_bit_trit_bit(){ let bit: f64 = 1.0; let trit = bit::to_trit(bit); let bit_out = trit::to_bit(trit); assert!(bit-bit_out <= MAX_FLOAT_ROUNDING_DEVIATION); }
rust_cleaned_test_functions.jsonl/76582
{ "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, 13996, 3547, 275, 13996, 3032, 286, 1077, 2699, 25, 282, 21, 19, 284, 220, 16, 13, 15, 280, 286, 1077, 489, 275, 284, 2699, 486, 983, 3547, 275, 54672, 317, 286, 1077, 2699, 6068, 284, 489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pubkey_hash() { let (pk, serialized_pk) = gen_private_key_and_its_be_bytes(); let wasm_pubkey_hash = private_key_to_pubkey_hash(&serialized_pk); let models_pubkey_hash = PubKeyHash::from_privkey(&pk).data.to_vec(); assert_eq!(wasm_pubkey_hash, models_pubkey_hash); }
rust_cleaned_test_functions.jsonl/114191
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34014, 792, 8950, 368, 341, 262, 1077, 320, 20819, 11, 32916, 33321, 8, 284, 4081, 26249, 3097, 8378, 62, 1199, 21263, 12524, 1428, 262, 1077, 98263, 34014, 792, 8950, 284, 869, 3097, 2346, 34014,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1