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_parse_csi_modifier_key_code() { assert_eq!( parse_csi_modifier_key_code(b"\x1B[2D").unwrap(), Some(InternalEvent::Event(Event::Key(KeyEvent::new( KeyCode::Left, KeyModifiers::SHIFT )))), ); }
rust_cleaned_test_functions.jsonl/21327
{ "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, 21039, 666, 6321, 61773, 3097, 4136, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 666, 6321, 61773, 3097, 4136, 1883, 11934, 87, 16, 33, 58, 17, 35, 1827, 15454, 3148, 310, 4329, 7, 11569, 1556...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unexpected_zip() { global::set_local_chain_type(global::ChainTypes::AutomatedTesting); let db_root = format!(".grin_txhashset_zip"); clean_output_dir(&db_root); { let chain_store = ChainStore::new(&db_root).unwrap(); let store = Arc::new(chain_store); txhashset::TxHashSet::open(db_root...
rust_cleaned_test_functions.jsonl/126260
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1511 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 7325, 42131, 368, 341, 18842, 486, 746, 13564, 30583, 1819, 31951, 486, 18837, 4173, 486, 41072, 657, 16451, 317, 10217, 2927, 12993, 284, 3561, 0, 5680, 901, 258, 17805, 8296, 746, 42131, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_wrong_type_error() { let vector_size = 400; let mut appender = VectorU32Appender::try_new(1024).unwrap(); for i in 0..vector_size { appender.append((i % 4) + 1).unwrap(); } let finished_vec = appender.finish(vector_size as usize).unwrap();...
rust_cleaned_test_functions.jsonl/25241
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 75198, 1819, 4096, 368, 341, 286, 1077, 4621, 2368, 284, 220, 19, 15, 15, 280, 286, 1077, 5206, 906, 1659, 284, 4196, 52, 18, 17, 2164, 1659, 486, 1539, 5921, 7, 16, 15, 17, 19, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_convert_group_type() { assert_eq!(convert_group_type(0).unwrap(), RPCGroup::None); assert_eq!(convert_group_type(2).unwrap(), RPCGroup::By); assert_eq!( convert_group_type(1).unwrap_err().to_string(), "Error creating aggregate: Unknown group type: ...
rust_cleaned_test_functions.jsonl/79166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 6288, 1819, 368, 341, 286, 2060, 10714, 10297, 14166, 6288, 1819, 7, 15, 568, 15454, 1507, 34008, 2808, 486, 4064, 317, 286, 2060, 10714, 10297, 14166, 6288, 1819, 7, 17, 568, 15454, 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, 1, 1, 1, 1...
1
#[test] fn test_uint_value() { test_ok_types( move |b| b.become_uint_value(1, 1, 2), &BTreeSet::from_iter(vec![BlockType::Reserved]), ); let container = [0u8; constants::MIN_ORDER_SIZE]; let block = get_reserved(&container); assert!(block.become_ui...
rust_cleaned_test_functions.jsonl/100157
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 656 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15807, 3142, 368, 341, 286, 1273, 19817, 9763, 1006, 310, 3271, 760, 65, 91, 293, 948, 51421, 15807, 3142, 7, 16, 11, 220, 16, 11, 220, 17, 1326, 310, 609, 33, 6533, 1649, 486, 1499, 11723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_convert_predicate_measurement() { // _measurement = "foo" let field_ref = RPCNode { node_type: RPCNodeType::TagRef as i32, children: vec![], value: Some(RPCValue::TagRefValue(TAG_KEY_MEASUREMENT.to_vec())), }; let iconst = RPCNo...
rust_cleaned_test_functions.jsonl/79154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 622 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 97474, 87342, 368, 341, 286, 442, 716, 81425, 284, 330, 7975, 698, 286, 1077, 2070, 7793, 284, 34008, 1955, 341, 310, 2436, 1819, 25, 34008, 66137, 486, 5668, 3945, 438, 600, 18, 17, 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...
1
#[test] fn test_atan_2_args() { let test_cases = vec![ ( Some(Real::from(0.0_f64)), Some(Real::from(0.0_f64)), Some(Real::from(0.0_f64)), ), ( Some(Real::from(0.0_f64)), Some(Real::from(-1...
rust_cleaned_test_functions.jsonl/37505
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 862 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3752, 276, 62, 17, 8384, 368, 341, 286, 1077, 1273, 41427, 284, 7486, 90515, 310, 2399, 394, 4329, 7, 12768, 486, 1499, 7, 15, 13, 15, 761, 21, 19, 6965, 394, 4329, 7, 12768, 486, 1499, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_return() { let f = || { fail_point!("return", |s: Option<String>| s .map_or(2, |s| s.parse().unwrap())); 0 }; assert_eq!(f(), 0); fail::cfg("return", "return(1000)").unwrap(); assert_eq!(f(), 1000); fail::cfg("return", "return").unwrap(); ...
rust_cleaned_test_functions.jsonl/102079
{ "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, 12511, 368, 341, 262, 1077, 282, 284, 1369, 341, 286, 3690, 6085, 17223, 689, 497, 760, 82, 25, 6959, 3464, 69844, 274, 198, 310, 659, 2186, 8734, 7, 17, 11, 760, 82, 91, 274, 4632, 1005, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_topyobject_roundtrip() { Python::with_gil(|py| { fn test_roundtrip<T: ToPyObject + AsRef<OsStr> + Debug>(py: Python, obj: T) { let pyobject = obj.to_object(py); let pystring: &PyString = pyobject.extract(py).unwrap(); assert_eq!...
rust_cleaned_test_functions.jsonl/21881
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 466 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 1266, 1700, 29896, 32981, 368, 341, 286, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 310, 5168, 1273, 29896, 32981, 3125, 25, 2014, 53376, 488, 1634, 3945, 27, 28867, 2580, 29, 488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_display_local_timestamp_error_incorrect_format() { let timest = "009:009:009"; assert_eq!(convert_to_local_timestamp(&timest, false).is_err(), true); }
rust_cleaned_test_functions.jsonl/10676
{ "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, 14825, 13564, 23073, 4096, 1243, 19928, 8955, 368, 341, 286, 1077, 259, 4255, 284, 330, 15, 15, 24, 25, 15, 15, 24, 25, 15, 15, 24, 876, 286, 2060, 10714, 10297, 14166, 2346, 13564, 23073, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_enrich_valid_tensor() { let v = EventValue::Summary(SummaryValue(Box::new(Value::Tensor(pb::TensorProto { dtype: pb::DataType::DtString.into(), tensor_shape: Some(tensor_shape(&[2])), string_val: vec![Bytes::from_static(b"abc"), Bytes::...
rust_cleaned_test_functions.jsonl/6218
{ "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, 6205, 13851, 8337, 23188, 368, 341, 310, 1077, 348, 284, 3665, 1130, 486, 19237, 3759, 372, 1534, 1130, 67758, 486, 931, 25346, 486, 25336, 76878, 486, 25336, 31549, 341, 394, 13231, 25, 17310, 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_var_decl() { let stmt = var_decl("x", literal(1f64)); let mut symbol_table = SymbolTable::new(); context(&mut symbol_table, "rad") .interpret(vec![stmt]) .unwrap(); assert!(symbol_table.contains_var("x")); }
rust_cleaned_test_functions.jsonl/103401
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4612, 35814, 368, 341, 286, 1077, 20020, 284, 762, 35814, 445, 87, 497, 23141, 7, 16, 69, 21, 19, 1106, 286, 1077, 5206, 7735, 5237, 284, 19612, 2556, 486, 931, 543, 286, 2266, 2099, 6984, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_allocate() { let mut eallocator = EarlyAllocator::new(0x0000, 0x1000); let mut capacity = eallocator.capacity(); let _ = eallocator.allocate::<Object>(10); capacity -= mem::size_of::<Object>() * 10; assert_eq!(eallocator.capacity(), capacity); le...
rust_cleaned_test_functions.jsonl/91469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77078, 368, 341, 286, 1077, 5206, 384, 57631, 284, 22752, 42730, 486, 931, 7, 15, 87, 15, 15, 15, 15, 11, 220, 15, 87, 16, 15, 15, 15, 317, 286, 1077, 5206, 8654, 284, 384, 57631, 59168, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_headers() { let owned = OwnedHeaders::new() .add("key1", "value1") .add("key2", "value2"); assert_eq!( owned.get(0), Some(("key1", &[118, 97, 108, 117, 101, 49][..])) ); assert_eq!(owned.get_as::<str>(1), Some(("key2...
rust_cleaned_test_functions.jsonl/61480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26719, 368, 341, 286, 1077, 12938, 284, 85093, 10574, 486, 931, 741, 310, 659, 718, 445, 792, 16, 497, 330, 957, 16, 1138, 310, 659, 718, 445, 792, 17, 497, 330, 957, 17, 797, 286, 2060, 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_dynamic_supply_demand() { let mut arq = DynamicArq::<SupplyDemand>::new(false); let view = arq.build_from_identity(10); arq.modify(view, 1, 1, &(25, 100)); arq.modify(view, 3, 3, &(100, 30)); arq.modify(view, 9, 9, &(0, 20)); assert_eq!(arq.query...
rust_cleaned_test_functions.jsonl/99610
{ "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, 45992, 65630, 91295, 368, 341, 286, 1077, 5206, 796, 80, 284, 21886, 6953, 80, 27638, 51296, 81027, 6831, 931, 3576, 317, 286, 1077, 1651, 284, 796, 80, 13239, 5673, 46244, 7, 16, 15, 626, 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_unsigned() { let mut sum: PrefixSum<u32> = PrefixSum::new(5); assert_eq!(sum.len(), 5); sum[1..5] += 10; assert_eq!(vec![0, 10, 10, 10, 10], sum.clone().build()); sum[1..4] += (-3i32) as u32; assert_eq!(vec![0, 7, 7, 7, 10], sum.clone().build());...
rust_cleaned_test_functions.jsonl/63850
{ "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, 67830, 368, 341, 286, 1077, 5206, 2629, 25, 56483, 9190, 34837, 18, 17, 29, 284, 56483, 9190, 486, 931, 7, 20, 317, 286, 2060, 10714, 10297, 1242, 19406, 1507, 220, 20, 626, 286, 2629, 58, 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_green_hex() { let rgb = RGB::from_hex("#00FF00").expect("Invalid hex string"); assert!(rgb.r < std::f32::EPSILON); assert!(f32::abs(rgb.g - 1.0) < std::f32::EPSILON); assert!(rgb.b < std::f32::EPSILON); }
rust_cleaned_test_functions.jsonl/46379
{ "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, 48254, 32655, 368, 341, 286, 1077, 17993, 284, 20978, 486, 1499, 32655, 3584, 15, 15, 1748, 15, 15, 1827, 17119, 445, 7928, 12371, 914, 797, 286, 2060, 10297, 16509, 1746, 366, 1460, 486, 69, 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_puzzle_with_six_letters() { assert_alphametic_solution_eq( "NO + NO + TOO == LATE", &[('N', 7), ('O', 4), ('T', 9), ('L', 1), ('A', 0), ('E', 2)], ); }
rust_cleaned_test_functions.jsonl/60613
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 14945, 6615, 643, 941, 67330, 368, 341, 262, 2060, 8418, 759, 309, 5298, 50274, 10714, 1006, 286, 330, 8996, 488, 5664, 488, 92576, 621, 444, 2336, 756, 286, 44590, 492, 45, 516, 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...
1
#[test] fn test_divide_nan_inf() { let z: Complex = ONE_INF.divide(&complex::ONE); assert!(f64::is_nan(z.get_real())); assert_that(f64::INFINITY,is(close_to( z.get_imaginary(), 0.0))); let z = NEG_INF_NEG_INF.divide(&ONE_NAN); assert!(f64::is_nan(z.get_real())); assert...
rust_cleaned_test_functions.jsonl/43846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 265 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16237, 577, 73936, 26051, 368, 341, 981, 1077, 1147, 25, 22096, 284, 24038, 65487, 83155, 2099, 23247, 486, 5225, 317, 981, 2060, 10297, 69, 21, 19, 486, 285, 73936, 13174, 670, 15266, 7392, 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...
1
#[test] fn test_storage_append() { setup_for_test(); let ents = vec![new_entry(3, 3), new_entry(4, 4), new_entry(5, 5)]; let mut tests = vec![ ( vec![new_entry(3, 3), new_entry(4, 4), new_entry(5, 5)], Ok(()), vec![new_entry(3, ...
rust_cleaned_test_functions.jsonl/50263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1492 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23310, 26041, 368, 341, 286, 6505, 5478, 4452, 543, 286, 1077, 36852, 284, 7486, 20703, 931, 9078, 7, 18, 11, 220, 18, 701, 501, 9078, 7, 19, 11, 220, 19, 701, 501, 9078, 7, 20, 11, 220, 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_user_pb_from_to() -> anyhow::Result<()> { let test_user_info = test_user_info(); let test_user_info_pb = test_user_info.to_pb()?; let got = mt::UserInfo::from_pb(test_user_info_pb)?; assert_eq!(got, test_user_info); Ok(()) }
rust_cleaned_test_functions.jsonl/111888
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3317, 31409, 5673, 2346, 368, 1464, 88964, 486, 2077, 71698, 341, 262, 1077, 1273, 3317, 3109, 284, 1273, 3317, 3109, 543, 262, 1077, 1273, 3317, 3109, 31409, 284, 1273, 3317, 3109, 2389, 31409, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_generate_proof() { let setup = SetupLibraryWalletPoolZeroFees::init(); libindy::utils::anoncreds::tests::create_and_store_credential(utils::constants::DEFAULT_SCHEMA_ATTRS, true); let to = time::get_time().sec; let indy_proof_req = json!({ "nonce": "1...
rust_cleaned_test_functions.jsonl/29154
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 86757, 368, 341, 286, 1077, 6505, 284, 18626, 16915, 38259, 10551, 17999, 37, 5516, 486, 2327, 1428, 286, 3051, 48990, 486, 6031, 486, 58910, 85734, 486, 23841, 486, 3182, 8378, 14809, 666, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_java_version_eclipse_openj9() { let java_8 = "Eclipse OpenJ9 OpenJDK 64-bit Server VM (1.8.0_222-b10) from linux-amd64 JRE with Extensions for OpenJDK for Eclipse OpenJ9 8.0.222.0, built on Jul 17 2019 21:29:18 by jenkins with g++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)"; l...
rust_cleaned_test_functions.jsonl/113480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 392 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 77323, 9438, 2204, 9473, 11311, 73, 24, 368, 341, 286, 1077, 1642, 62, 23, 284, 330, 36, 9473, 5264, 41, 24, 5264, 41, 18301, 220, 21, 19, 15257, 8422, 17792, 320, 16, 13, 23, 13, 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_cast_range_uint_max() { assert_eq!(usize::MAX.to_int(), None); assert_eq!(usize::MAX.to_i8(), None); assert_eq!(usize::MAX.to_i16(), None); assert_eq!(usize::MAX.to_i32(), None); assert_eq!(usize::MAX.to_u8(), None); assert_eq!(usiz...
rust_cleaned_test_functions.jsonl/25366
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 477 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 9698, 15807, 6345, 368, 341, 286, 2060, 10714, 10297, 51878, 486, 10586, 2389, 4042, 1507, 220, 2240, 317, 286, 2060, 10714, 10297, 51878, 486, 10586, 2389, 5318, 23, 1507, 256, 2240, 317, 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_clean() { File::create(&temp_file()).unwrap(); let exercise = Exercise { name: String::from("example"), path: PathBuf::from("tests/fixture/state/pending_exercise.rs"), mode: Mode::Compile, hint: String::from(""), }; ...
rust_cleaned_test_functions.jsonl/75649
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 213 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19573, 368, 341, 286, 2887, 486, 3182, 2099, 3888, 2458, 6011, 15454, 543, 286, 1077, 10158, 284, 32818, 341, 310, 829, 25, 923, 486, 1499, 445, 8687, 4461, 310, 1815, 25, 7933, 15064, 486, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_truncate_single_sentence() { // Given let test_token_ids: Vec<i64> = (0..15).collect(); let test_tuples: [( (usize, &TruncationStrategy, usize), Result< ( TokenIdsWithOffsets, Option<To...
rust_cleaned_test_functions.jsonl/13635
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4736 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 26900, 19487, 48332, 368, 341, 286, 442, 286, 16246, 198, 286, 1077, 1273, 6458, 8077, 25, 11312, 21897, 21, 19, 29, 284, 320, 15, 496, 16, 20, 568, 17384, 543, 286, 1077, 1273, 89269, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_subtree_diff() { let mut heaviest_subtree_fork_choice = setup_forks(); assert!(heaviest_subtree_fork_choice .subtree_diff((0, Hash::default()), (0, Hash::default())) .is_empty()); assert!(heaviest_subtree_fork_choice .subtree_...
rust_cleaned_test_functions.jsonl/70825
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 953 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 9344, 15850, 368, 341, 286, 1077, 5206, 566, 98362, 5228, 9344, 761, 669, 31936, 284, 6505, 761, 73302, 1428, 1789, 286, 2060, 10297, 383, 98362, 5228, 9344, 761, 669, 31936, 198, 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_min_max() -> Result<()> { let observed = return_type(&AggregateFunction::Min, &[DataType::Utf8])?; assert_eq!(DataType::Utf8, observed); let observed = return_type(&AggregateFunction::Max, &[DataType::Int32])?; assert_eq!(DataType::Int32, observed); Ok(()...
rust_cleaned_test_functions.jsonl/56700
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7260, 6345, 368, 1464, 5714, 71698, 341, 286, 1077, 13166, 284, 470, 1819, 2099, 64580, 5152, 486, 6217, 11, 44590, 22653, 486, 38980, 23, 2467, 37445, 286, 2060, 10714, 10297, 22653, 486, 38980, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_add_peers() { if unsafe { libc::getuid() } != 0 { return; } let keypairs: Vec<_> = (0..10).map(|_| KeyPair::generate()).collect(); let mut builder = DeviceUpdate::new(); for keypair in &keypairs { builder = builder.add_peer(PeerCon...
rust_cleaned_test_functions.jsonl/98611
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 381 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 36367, 388, 368, 341, 286, 421, 19860, 314, 42142, 486, 455, 2423, 368, 335, 961, 220, 15, 341, 310, 470, 280, 286, 555, 286, 1077, 1376, 77256, 25, 11312, 32399, 29, 284, 320, 15, 496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_borrow() { let s: &str = from_str("\"borrowed\"").unwrap(); assert_eq!("borrowed", s); let s: &str = from_slice(b"\"borrowed\"").unwrap(); assert_eq!("borrowed", s); }
rust_cleaned_test_functions.jsonl/29869
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 7768, 368, 341, 262, 1077, 274, 25, 609, 495, 284, 504, 2895, 38915, 71141, 291, 2105, 1827, 15454, 543, 262, 2060, 10714, 17223, 71141, 291, 497, 274, 626, 262, 1077, 274, 25, 609, 495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_image_from_multipart_field() { let http_rq = mock::multipart_formdata_request(); let mut multipart_items = get_multipart_input(&http_rq).unwrap(); let mut item = multipart_items.next().unwrap(); let (filename, content_type, data) = super::image_from_multipart_fie...
rust_cleaned_test_functions.jsonl/132610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 532 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4954, 5673, 717, 18204, 5013, 368, 341, 286, 1077, 1758, 79638, 284, 7860, 486, 29542, 7915, 691, 7893, 543, 286, 1077, 5206, 68058, 12134, 284, 633, 717, 18204, 5898, 2099, 1254, 79638, 568, 1545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_field_type_from_u8() { for ft in field_types() { assert_eq!(FieldTypeTp::from_u8(ft as i32 as u8), Some(ft)); } for fail_case in 17u8..=0xf4u8 { assert_eq!(FieldTypeTp::from_u8(fail_case), None); } }
rust_cleaned_test_functions.jsonl/119553
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5013, 1819, 5673, 7300, 23, 368, 341, 286, 369, 10482, 304, 2070, 9763, 368, 341, 310, 2060, 10714, 10297, 63733, 62241, 486, 1499, 7300, 23, 63106, 438, 600, 18, 17, 438, 575, 23, 701, 4329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_build_parameter_list_commands() { let matches = get_arg_matches(vec![ "hyperfine", "echo {foo}", "--parameter-list", "foo", "1,2", "--command-name", "name-{foo}", ]); let commands = build_commands(&matches); assert_eq!(comma...
rust_cleaned_test_functions.jsonl/101033
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 24899, 2019, 44151, 368, 341, 262, 1077, 9071, 284, 633, 6057, 38344, 25592, 90515, 286, 330, 8503, 59545, 482, 756, 286, 330, 3047, 314, 7975, 24375, 286, 14482, 16181, 9029, 756, 286, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ortho() { let q: Quaternion<f32> = Quaternion::from_arc(Vector3::unit_x(), Vector3::unit_y(), None); let q2 = Quaternion::from_axis_angle(Vector3::unit_z(), Rad::turn_div_4()); assert_ulps_eq!(q, q2); }
rust_cleaned_test_functions.jsonl/38258
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 90824, 368, 341, 286, 1077, 2804, 25, 24801, 63895, 18, 17, 29, 284, 24801, 486, 1499, 62914, 20258, 18, 486, 3843, 3212, 1507, 4196, 18, 486, 3843, 4178, 1507, 2240, 317, 286, 1077, 2804, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bit_string() { assert_parses::<BitString<'_>>(&[ (Ok(BitString::new(b"", 0).unwrap()), b"\x03\x01\x00"), (Ok(BitString::new(b"\x00", 7).unwrap()), b"\x03\x02\x07\x00"), (Ok(BitString::new(b"\x80", 7).unwrap()), b"\x03\x02\x07\x80"), (...
rust_cleaned_test_functions.jsonl/40829
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 642 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 13996, 3904, 368, 341, 286, 2060, 77113, 288, 27638, 8344, 703, 18291, 62, 2452, 2099, 9640, 310, 320, 11578, 68653, 703, 486, 931, 1883, 56323, 220, 15, 568, 15454, 11858, 293, 11934, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rename_struct() { assert_tokens( &RenameStruct { a1: 1, a2: 2 }, &[ Token::Struct { name: "Superhero", len: 2, }, Token::Str("a1"), Token::I32(1), Token::Str("a3"), Token::...
rust_cleaned_test_functions.jsonl/59137
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1321 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79399, 15126, 368, 341, 262, 2060, 28838, 1006, 286, 609, 88757, 9422, 314, 264, 16, 25, 220, 16, 11, 264, 17, 25, 220, 17, 1153, 286, 609, 9640, 310, 9660, 486, 9422, 341, 394, 829, 25, 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_log_merge_policy_within_levels() { // multiple levels all get merged correctly let test_input = vec![ create_random_segment_meta(10), create_random_segment_meta(11), create_random_segment_meta(12), create_random_segment_met...
rust_cleaned_test_functions.jsonl/57297
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 20888, 22773, 72385, 37819, 368, 341, 286, 442, 5248, 5866, 678, 633, 26001, 12440, 198, 286, 1077, 1273, 5898, 284, 7486, 90515, 310, 1855, 22644, 28061, 13381, 7, 16, 15, 701, 5872, 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_run_func() { let map = HashMap::new(); let mut func = HashMap::<String, Box<EvalFunc>>::new(); func.insert("hi".to_owned(), Box::new(|_| { Ok(QueryReturn { text: "hi!".to_owned(), ...
rust_cleaned_test_functions.jsonl/19217
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 357 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 9596, 368, 1476, 286, 1077, 2415, 284, 10528, 486, 931, 1428, 286, 1077, 5206, 2915, 284, 10528, 27638, 703, 11, 8261, 23835, 831, 9626, 77595, 931, 543, 286, 2915, 7030, 445, 6023, 3263, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cow_str() { use std::borrow::Cow; let s = "str"; let cow: Cow<str> = Cow::Borrowed(s); let r = cow.to_sql(); assert!(r.is_ok()); let cow: Cow<str> = Cow::Owned::<str>(String::from(s)); let r = cow.to_sql(); assert!(r.is_ok()); ...
rust_cleaned_test_functions.jsonl/124014
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 219 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 363, 2895, 368, 341, 286, 990, 1460, 486, 71141, 486, 89915, 280, 286, 1077, 274, 284, 330, 495, 876, 286, 1077, 19362, 25, 21851, 27, 495, 29, 284, 21851, 486, 33, 7768, 291, 1141, 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_define_recv_packets() { let src_code = quote! { enum PacketRef { _ = UnknownPacketRef, Pack1, Pack2 } }; let src_code = src_code.to_string(); let tokens: TokenStream = syn::parse_str(&src_code) .unwrap_or_else(|err| pani...
rust_cleaned_test_functions.jsonl/16496
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51049, 36118, 63569, 368, 341, 262, 1077, 2286, 4136, 284, 12641, 0, 341, 286, 7618, 28889, 3945, 341, 310, 716, 284, 21693, 16679, 3945, 345, 310, 13795, 16, 345, 310, 13795, 17, 198, 286, 456,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_conv() { assert_eq!( parse_general("Append(Offset(input, -1), input, Offset(input, 1))").unwrap().1, Append(vec!( Offset(name("input").into(), -1), name("input"), Offset(name("input").into(), 1) )) ...
rust_cleaned_test_functions.jsonl/77336
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 191 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22716, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 39177, 445, 23877, 7, 6446, 5384, 11, 481, 16, 701, 1946, 11, 16861, 5384, 11, 220, 16, 593, 1827, 15454, 1005, 16, 345, 310, 29807, 25592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_token_value() { let data = [0xe1, 0x00, 0x01, 0x00, 0xbe, 0x28]; assert_eq!( parse(&data[..]).unwrap().token_tape, vec![BinaryToken::Token(0x00e1), BinaryToken::Token(0x28be),] ); }
rust_cleaned_test_functions.jsonl/109415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6458, 3142, 368, 341, 286, 1077, 821, 284, 508, 15, 8371, 16, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 15, 11, 220, 15, 42459, 11, 220, 15, 87, 17, 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...
1
#[test] fn test_with_embedded_nul_byte() { let values = vec!["hell\0x00o"]; let _c_array = CStringVec::new(&values).expect_err("should fail"); }
rust_cleaned_test_functions.jsonl/61939
{ "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, 6615, 24007, 9789, 1089, 360, 19737, 368, 341, 286, 1077, 2750, 284, 7486, 0, 1183, 56095, 59, 15, 87, 15, 15, 78, 6332, 286, 1077, 716, 66, 3858, 284, 56956, 10050, 486, 931, 2099, 3661, 568,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_intervals_around_maximum(state: &mut State) { const MAX_RELOAD: u32 = 0x0FFF; const MAX_PRESCALER: u32 = 256; const LSI: Kilohertz = Kilohertz(40); let max_period = Milliseconds(MAX_PRESCALER * MAX_RELOAD / LSI.integer()); let mut expected_interval = Milli...
rust_cleaned_test_functions.jsonl/69692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 530 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 90807, 62, 19454, 93581, 8390, 25, 609, 6984, 3234, 8, 341, 286, 733, 8334, 2192, 12988, 25, 575, 18, 17, 284, 220, 15, 87, 15, 31203, 280, 286, 733, 8334, 17427, 3540, 88378, 25, 575, 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...
3
#[test] fn test_matches_as_range() { let langid: LanguageIdentifier = "en-US".parse().unwrap(); let langid2: LanguageIdentifier = "en-US-windows".parse().unwrap(); assert_eq!(langid.matches(&langid2, false, false), false); assert_eq!(langid.matches(&langid2, true, false), true); assert_eq!(l...
rust_cleaned_test_functions.jsonl/10766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38344, 11898, 9698, 368, 341, 262, 1077, 8688, 307, 25, 11434, 8714, 284, 330, 268, 32340, 3263, 6400, 1005, 15454, 543, 262, 1077, 8688, 307, 17, 25, 11434, 8714, 284, 330, 268, 32340, 97194, 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_calculate_lamports_per_byte_year() { let rent = Rent::default(); let data_len = 200u64; let rent_exempt_reserve = rent.minimum_balance(data_len as usize); assert_eq!( calculate_split_rent_exempt_reserve(rent_exempt_reserve, data_len, data_len), ...
rust_cleaned_test_functions.jsonl/65837
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 691 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24005, 11207, 907, 309, 3394, 5678, 19737, 14645, 368, 341, 286, 1077, 8016, 284, 29737, 486, 2258, 543, 286, 1077, 821, 6043, 284, 220, 17, 15, 15, 84, 21, 19, 280, 286, 1077, 8016, 95736, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dns_header() { let test = vec![0xc9, 0xba, 0x01, 0x20, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x07, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x03, 0x63, 0x6f, 0x6d, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x29, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]; l...
rust_cleaned_test_functions.jsonl/83416
{ "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, 21039, 71125, 8757, 368, 341, 262, 1077, 1273, 284, 7486, 20703, 15, 8148, 24, 11, 220, 15, 55368, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 17, 15, 11, 220, 15, 87, 15, 15, 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...
1
#[test] fn test_preadv2_safe() { use std::io::{Seek, Write}; use std::mem::MaybeUninit; use tempfile::tempdir; let tmp = tempdir().unwrap(); let filename = tmp.path().join("file"); const MESSAGE: &[u8] = b"Hello this is a test"; ...
rust_cleaned_test_functions.jsonl/111692
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1470 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 878, 85, 17, 34067, 368, 341, 310, 990, 1460, 486, 815, 22964, 39350, 11, 9645, 2440, 310, 990, 1460, 486, 10536, 486, 21390, 1806, 2327, 280, 310, 990, 54819, 486, 3888, 3741, 401, 310, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_create_show_table_patient() { let patient = Patient { id: "foo".to_string(), is_stable: true, last_update: NaiveDate::from_ymd(2020, 1, 1).and_hms(15, 46, 17), main_dicom_tags: hashmap! { "PatientID".to_string() => "foo_id"....
rust_cleaned_test_functions.jsonl/76486
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 395 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 15267, 5237, 70310, 368, 341, 286, 1077, 8720, 284, 28924, 341, 310, 877, 25, 330, 7975, 3263, 983, 3904, 3148, 310, 374, 1261, 480, 25, 830, 345, 310, 1537, 8882, 25, 12812, 533, 1916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_dns_name_unit() { let input = b"\xf2\x35"; let output = msg::parse_dns_name_unit(&input[..]).unwrap().1; assert_eq!(output, msg::NameUnit::Pointer(0x3235)); let input = b"\x08abcde123"; let output = msg::parse_dns_name_unit(&input[..]).unwrap().1; assert_eq!(output,...
rust_cleaned_test_functions.jsonl/83419
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 71125, 1269, 14832, 368, 341, 262, 1077, 1946, 284, 293, 11934, 5848, 17, 3462, 18, 20, 876, 262, 1077, 2550, 284, 3750, 486, 6400, 71125, 1269, 14832, 2099, 1355, 95874, 10697, 15454, 1005...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_in_memory_pessimistic_locks() { let txn_ext = Arc::new(TxnExt::default()); let storage = TestStorageBuilder::new(DummyLockManager {}, ApiVersion::V1) .pipelined_pessimistic_lock(true) .in_memory_pessimistic_lock(true) .build_for_txn(txn_e...
rust_cleaned_test_functions.jsonl/133300
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1768 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 1243, 19195, 620, 66733, 4532, 9818, 82, 368, 341, 286, 1077, 49721, 9927, 284, 19689, 486, 931, 4140, 42967, 6756, 486, 2258, 1423, 286, 1077, 5819, 284, 3393, 5793, 3297, 486, 931, 5432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rng_32_rand_seeded() { let s = task_rng().gen_vec::<u32>(256); let mut ra: IsaacRng = SeedableRng::from_seed(s.as_slice()); let mut rb: IsaacRng = SeedableRng::from_seed(s.as_slice()); assert_eq!(ra.gen_ascii_str(100u), rb.gen_ascii_str(100u)); }
rust_cleaned_test_functions.jsonl/85136
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 159 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66849, 62, 18, 17, 33864, 3453, 29935, 368, 341, 286, 1077, 274, 284, 3383, 66849, 1005, 4370, 13251, 27638, 84, 18, 17, 2235, 17, 20, 21, 317, 286, 1077, 5206, 15122, 25, 41508, 49, 968, 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_inspect_throttle_history_length() { // Create a InspectThrottleHistory with capacity for only one throttling entry let mut throttle_history = InspectThrottleHistory::new( inspect::Inspector::new().root().create_child("test_node"), 1, ); //...
rust_cleaned_test_functions.jsonl/14646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 467 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34386, 987, 5854, 27535, 19802, 5118, 368, 341, 286, 442, 4230, 264, 9726, 987, 1001, 27535, 13424, 448, 8654, 369, 1172, 825, 79972, 2718, 4343, 198, 286, 1077, 5206, 42166, 19802, 284, 9726, 987...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_from_record_for_reference_sequence_with_missing_length( ) -> Result<(), record::value::TryFromIteratorError> { let record = Record::new( record::Kind::ReferenceSequence, record::Value::try_from_iter(vec![ ("SN", "sq0"), ("M5...
rust_cleaned_test_functions.jsonl/23398
{ "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, 53283, 5673, 14192, 5478, 25433, 23735, 6615, 40447, 5118, 1006, 262, 873, 1464, 5714, 68843, 3255, 486, 957, 486, 21453, 3830, 11951, 1454, 29, 341, 286, 1077, 3255, 284, 13583, 486, 931, 1006, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_delay_default() { std::env::remove_var(ENV_INTERVAL); let t = TimerProvider::new(); assert_eq!(t.get_delay_ms(), 1000); }
rust_cleaned_test_functions.jsonl/103568
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 86 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22198, 9993, 368, 341, 286, 1460, 486, 3160, 486, 5399, 4612, 7, 30360, 37353, 317, 286, 1077, 259, 284, 17759, 5179, 486, 931, 543, 286, 2060, 10714, 10297, 83, 670, 22198, 21416, 1507, 220, 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_floats() { let ff32 = 12323.34434123; let ff64 = 56565.434123123; let mut b = buffer::Buffer::new(); b.write_f32(ff32); b.write_f64(ff64); assert_eq!(b.read_f32(), ff32); assert_eq!(b.read_f64(), ff64); }
rust_cleaned_test_functions.jsonl/121867
{ "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, 17586, 82, 368, 341, 262, 1077, 25539, 18, 17, 284, 220, 16, 17, 18, 17, 18, 13, 18, 19, 19, 18, 19, 16, 17, 18, 280, 262, 1077, 25539, 21, 19, 284, 220, 20, 21, 20, 21, 20, 13, 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_member() { let route = Route::GetMember { guild_id: GUILD_ID, user_id: USER_ID, }; assert_eq!( route.to_string(), format!( "guilds/{guild_id}/members/{user_id}", guild_id = GUILD_ID, ...
rust_cleaned_test_functions.jsonl/119834
{ "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, 3062, 19388, 368, 341, 286, 1077, 6021, 284, 9572, 486, 1949, 9366, 341, 310, 26411, 842, 25, 479, 18023, 3450, 345, 310, 1196, 842, 25, 13872, 3450, 345, 286, 2605, 286, 2060, 10714, 33673, 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_u64() { let test = assert_de_tokens_error::<u64>; // from signed test( &[Token::I8(-1)], "invalid value: integer `-1`, expected u64", ); test( &[Token::I16(-1)], "invalid value: integer `-1`, expected u64", ); test( &[Token::I3...
rust_cleaned_test_functions.jsonl/129500
{ "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, 7300, 21, 19, 368, 341, 262, 1077, 1273, 284, 2060, 2259, 28838, 4096, 27638, 84, 21, 19, 19421, 262, 442, 504, 8499, 198, 262, 1273, 1006, 286, 44590, 3323, 486, 40, 23, 4080, 16, 30749, 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_numbers_1() { let s = to_chars("0 0.1"); let cur = &mut 0; expect_next_token(&s, cur, to_decimal_number("0")); expect_next_token(&s, cur, to_decimal_number("0.1")); }
rust_cleaned_test_functions.jsonl/21023
{ "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, 32964, 62, 16, 368, 341, 286, 1077, 274, 284, 311, 37418, 445, 15, 220, 15, 13, 16, 797, 286, 1077, 2847, 284, 609, 6984, 220, 15, 280, 286, 1720, 11257, 6458, 2099, 82, 11, 2847, 11, 311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ranking() { assert_ranked_routes!(&["/hello", "/<name>"], "/hello", "/hello"); assert_ranked_routes!(&["/<name>", "/hello"], "/hello", "/hello"); assert_ranked_routes!(&["/<a>", "/hi", "/<b>"], "/hi", "/hi"); assert_ranked_routes!(&["/<a>/b", "/hi/c"], "/h...
rust_cleaned_test_functions.jsonl/26092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 801 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 20417, 287, 368, 341, 286, 2060, 20417, 291, 64314, 0, 2099, 1183, 14, 14990, 497, 3521, 27, 606, 29, 7914, 3521, 14990, 497, 3521, 14990, 797, 286, 2060, 20417, 291, 64314, 0, 2099, 1183,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extent_cluster_header_serialize() { let mut buffer = Cursor::new(Vec::new()); let len = ExtentClusterHeader::serialize_to(50, 100, &mut buffer).unwrap(); buffer.set_position(0); assert_eq!(buffer.get_ref().len() as u64, len); let cluster = ExtentClusterHea...
rust_cleaned_test_functions.jsonl/51129
{ "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, 70102, 28441, 8757, 88686, 368, 341, 286, 1077, 5206, 4147, 284, 28067, 486, 931, 49923, 486, 931, 1423, 286, 1077, 2422, 284, 9447, 306, 28678, 4047, 486, 24166, 2346, 7, 20, 15, 11, 220, 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_endpoint_overrides_wrong_url() { let options = hashmap! { "baremetal_endpoint_override".into() => "http://127.0.0.1/baremetal".into(), "baremetal_introspection_endpoint_override".into() => "?! banana".into(), }; let cfg = CloudConfig { ...
rust_cleaned_test_functions.jsonl/99075
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 213 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36699, 15431, 18245, 75198, 2903, 368, 341, 286, 1077, 2606, 284, 92148, 0, 341, 310, 330, 54102, 54008, 36699, 48576, 3263, 18122, 368, 589, 330, 1254, 1110, 16, 17, 22, 13, 15, 13, 15, 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...
1
#[test] fn test_remove_child() { let parent = div(); let child1 = div(); let child2 = div(); parent.append_child(&child1); parent.append_child(&child2); let removed = parent.remove_child(&child1).unwrap(); assert_eq!(parent.first_child().unwrap().as_ref()...
rust_cleaned_test_functions.jsonl/33749
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 17268, 368, 341, 286, 1077, 2681, 284, 3429, 543, 286, 1077, 1682, 16, 284, 3429, 543, 286, 1077, 1682, 17, 284, 3429, 543, 286, 2681, 2057, 17268, 2099, 3048, 16, 317, 286, 2681, 2057, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_continue_statement() { expect_printed("continue;", "continue;\n"); expect_printed("continue label1;", "continue label1;\n"); expect_printed("continue", "continue;\n") }
rust_cleaned_test_functions.jsonl/93430
{ "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, 75297, 37404, 368, 341, 262, 1720, 10064, 291, 445, 9534, 32503, 330, 9534, 17882, 77, 797, 262, 1720, 10064, 291, 445, 9534, 2383, 16, 32503, 330, 9534, 2383, 16, 17882, 77, 797, 262, 1720, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_broadcast_2() { let a = Matrix::new( [ -0.699, -1.031, 1.235, 0.328, 0.026, 0.046, 1.501, 0.438, 1.304, 0.728, 1., -0.417, -0.265, 0.091, 0.422, 0.602, ], 4, 4, ); let b = Matrix::new([0.896, ...
rust_cleaned_test_functions.jsonl/55657
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2041 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74923, 62, 17, 368, 341, 286, 1077, 264, 284, 11631, 486, 931, 1006, 310, 2278, 394, 481, 15, 13, 21, 24, 24, 11, 481, 16, 13, 15, 18, 16, 11, 220, 16, 13, 17, 18, 20, 11, 220, 15, 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_simple_monitor_permanent_update_fail() { do_test_simple_monitor_permanent_update_fail(false); // Test behavior when the persister returns a PermanentFailure. do_test_simple_monitor_permanent_update_fail(true); }
rust_cleaned_test_functions.jsonl/120451
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 40112, 620, 4753, 306, 8882, 22121, 368, 341, 19935, 4452, 30015, 40112, 620, 4753, 306, 8882, 22121, 3576, 626, 197, 322, 3393, 7709, 979, 279, 7413, 1571, 4675, 264, 56216, 17507, 624, 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
#[test] fn test_pool() { let items10: Vec<usize> = iter::repeat(10).take(10).collect(); let pool = Pool::new(); pool.publish_new_generation(items10); for _ in 0..20 { assert_eq!(*pool.acquire(), 10); } let items11: Vec<usize> = iter::repeat(11).take(10...
rust_cleaned_test_functions.jsonl/92005
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15709, 368, 341, 286, 1077, 3589, 16, 15, 25, 11312, 90244, 29, 284, 5367, 486, 30624, 7, 16, 15, 568, 22769, 7, 16, 15, 568, 17384, 543, 286, 1077, 7314, 284, 22728, 486, 931, 543, 286, 731...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_type() { assert_eq!( crate::rsass( "@use \'sass:color\';\ \na {b: color.hwb(0, \"foo\", 40%, 0.5)}\ \n" ) .unwrap_err(), "Error: $whiteness: \"foo\" is not a number.\ \n ,\ \n2 | ...
rust_cleaned_test_functions.jsonl/33221
{ "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, 1819, 368, 341, 286, 2060, 10714, 33673, 310, 17717, 486, 5428, 395, 1006, 394, 8428, 810, 27152, 60326, 25, 3423, 59, 6967, 5661, 1797, 1124, 3376, 314, 65, 25, 1894, 860, 20211, 7, 15, 11, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add() { assert_eq!( Vec3::new(1.0, 0.0, -1.0) + Vec3::new(2.0, 4.0, 6.0), Vec3::new(3.0, 4.0, 5.0) ) }
rust_cleaned_test_functions.jsonl/35216
{ "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, 2891, 368, 341, 286, 2060, 10714, 33673, 310, 11312, 18, 486, 931, 7, 16, 13, 15, 11, 220, 15, 13, 15, 11, 481, 16, 13, 15, 8, 488, 11312, 18, 486, 931, 7, 17, 13, 15, 11, 220, 19, 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_scalar_inverse() { assert_eq!(Scalar::zero().invert().is_none().unwrap_u8(), 1); let mut rng = XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); let one = Scalar::...
rust_cleaned_test_functions.jsonl/54672
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41652, 63333, 368, 341, 286, 2060, 10714, 10297, 20639, 486, 14154, 1005, 83729, 1005, 285, 31488, 1005, 15454, 7300, 23, 1507, 220, 16, 626, 286, 1077, 5206, 28422, 284, 1599, 269, 24841, 49, 968...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_date_string_pretty() { println!("test_date_string_pretty -> {}", date_string_pretty(get_today_string())); // `cargo test -- --nocapture` to display }
rust_cleaned_test_functions.jsonl/32015
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 3904, 620, 21322, 368, 341, 286, 13751, 17223, 1944, 4164, 3904, 620, 21322, 1464, 24689, 2400, 3904, 620, 21322, 5433, 68717, 3904, 76122, 442, 1565, 66715, 1273, 1177, 1177, 47991, 11850, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_least_common_mult_chunk_len() { // Given let lsh_attn_chunk_length = Some(48); let local_attn_chunk_length = Some(32); // When let attention_types = [ vec![ AttentionType::lsh, AttentionType::local, ...
rust_cleaned_test_functions.jsonl/16292
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 660 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 88716, 21107, 26290, 30539, 6043, 368, 341, 286, 442, 16246, 198, 286, 1077, 326, 927, 3752, 1517, 30539, 5118, 284, 4329, 7, 19, 23, 317, 286, 1077, 2205, 3752, 1517, 30539, 5118, 284, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_got_http_request_full() { let mut codec = build_codec(); let mut buffer = BytesMut::new(); buffer.put_slice(b"CONNECT foo.bar.com:443 HTTP/1.1"); buffer.put_slice(REQUEST_END_MARKER); let result = codec.decode(&mut buffer); assert_eq!( ...
rust_cleaned_test_functions.jsonl/8064
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 354, 25888, 7893, 16372, 368, 341, 286, 1077, 5206, 34647, 284, 1936, 51084, 543, 286, 1077, 5206, 4147, 284, 30024, 51440, 486, 931, 543, 286, 4147, 3597, 26488, 1883, 1, 39521, 15229, 2200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_handshake() { fn equal_packet_keys(x: &quic::PacketKey, y: &quic::PacketKey) -> bool { // Check that these two sets of keys are equal. let mut buf = vec![0; 32]; let (header, payload_tag) = buf.split_at_mut(8); let (payload, tag_buf) =...
rust_cleaned_test_functions.jsonl/51941
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3981 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11280, 292, 23194, 29661, 368, 341, 286, 5168, 6144, 21078, 12631, 2075, 25, 609, 446, 292, 486, 16679, 1592, 11, 379, 25, 609, 446, 292, 486, 16679, 1592, 8, 1464, 1807, 341, 310, 442, 4248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_versions_from_uint() { assert_eq!(Version::Unknown, 0.into()); assert_eq!(Version::Latest, 1.into()); assert_eq!(Version::Snapshot0, 2.into()); assert_eq!(Version::Snapshot1, 3.into()); }
rust_cleaned_test_functions.jsonl/86668
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 65148, 5673, 15807, 368, 341, 286, 2060, 10714, 10297, 5637, 486, 13790, 11, 220, 15, 39860, 1423, 286, 2060, 10714, 10297, 5637, 486, 31992, 11, 220, 16, 39860, 1423, 286, 2060, 10714, 10297, 563...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_storage_withdraw() { let (mut context, mut contract) = setup_contract(); register_farmer(&mut context, &mut contract, accounts(0)); storage_withdraw(&mut context, &mut contract, accounts(0)); }
rust_cleaned_test_functions.jsonl/105373
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23310, 6615, 7633, 368, 341, 286, 1077, 320, 6984, 2266, 11, 5206, 5116, 8, 284, 6505, 51499, 543, 1789, 286, 4161, 67513, 1174, 2099, 6984, 2266, 11, 609, 6984, 5116, 11, 9618, 7, 15, 1106, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_head_patterns() -> TestResult { let p = polar(); p.load_str("f(x: Integer, _: Dictionary{x:x});")?; let results = query_results!(p.new_query("f(x, {x:9})", false)?); assert_eq!(results[0].0[&sym!("x")], value!(9)); Ok(()) }
rust_cleaned_test_functions.jsonl/68144
{ "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, 13138, 64923, 368, 1464, 3393, 2077, 341, 262, 1077, 281, 284, 24660, 543, 262, 281, 5104, 2895, 445, 69, 2075, 25, 4440, 11, 58536, 10466, 45340, 35254, 14088, 899, 37445, 262, 1077, 3059, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_emulated_subsystem_success() -> Result<()> { // arrange let tmp = create_temp_dir("test_emulated_subsystem")?; let host_cgroup_mount = tmp.join("host_cgroup"); let host_cgroup = host_cgroup_mount.join("cpu/container1"); fs::create_dir_all(&host_cgroup)?; ...
rust_cleaned_test_functions.jsonl/2897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 980 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22504, 7757, 5228, 8948, 18632, 368, 1464, 5714, 71698, 341, 286, 442, 30893, 198, 286, 1077, 4174, 284, 1855, 11771, 4334, 445, 1944, 22504, 7757, 5228, 8948, 899, 37445, 286, 1077, 3468, 666, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_snapshot_list() { let mut l = SnapshotList::new(); { assert!(l.empty()); let a = l.new_snapshot(1); { let b = l.new_snapshot(2); { let c = l.new_snapshot(3); assert!(!l...
rust_cleaned_test_functions.jsonl/132509
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 416 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53265, 2019, 368, 341, 286, 1077, 5206, 326, 284, 68697, 852, 486, 931, 1428, 286, 341, 310, 2060, 10297, 75, 9178, 1423, 310, 1077, 264, 284, 326, 4618, 53265, 7, 16, 626, 310, 341, 394, 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_check_program_subscribe() { let (genesis_block, mint_keypair) = GenesisBlock::new(100); let bank = Bank::new(&genesis_block); let alice = Keypair::new(); let blockhash = bank.last_blockhash(); let tx = system_transaction::create_account( &mint_...
rust_cleaned_test_functions.jsonl/76142
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 948 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 25096, 88935, 368, 341, 286, 1077, 320, 77894, 7113, 11, 28337, 3097, 12670, 8, 284, 40788, 4713, 486, 931, 7, 16, 15, 15, 317, 286, 1077, 6073, 284, 8547, 486, 931, 2099, 77894, 7113, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_get_resource_title() { let app = App::default(); assert_eq!( get_resource_title(&app, "Title", "-> hello", 5), "Title (ns: all) [5] -> hello" ); }
rust_cleaned_test_functions.jsonl/66713
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 17962, 6112, 368, 341, 262, 1077, 906, 284, 1845, 486, 2258, 543, 262, 2060, 10714, 33673, 414, 633, 17962, 6112, 2099, 676, 11, 330, 3851, 497, 88720, 23811, 497, 220, 20, 1326, 414, 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
#[test] fn test_handles_whitelisting() { let patterns = vec!["target", "!target/foo.txt"]; let file = IgnoreFile::from_strings(&patterns, &base_dir()).expect("test ignore file invalid"); assert!(!file.is_excluded(&base_dir().join("target").join("foo.txt"))); assert!(...
rust_cleaned_test_functions.jsonl/9293
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68017, 36225, 56643, 11083, 368, 341, 286, 1077, 12624, 284, 7486, 0, 1183, 5657, 497, 53074, 5657, 60555, 3909, 6332, 286, 1077, 1034, 4035, 310, 38971, 1703, 486, 1499, 33500, 2099, 25971, 11, 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_eth_recipient_data() { let eth_recipient_data = ETHRecipientDataView { eth_recipient_address: ETHAddress::try_from(vec![0; 20]).unwrap(), eth_token_address: ETHAddress::try_from(vec![0; 20]).unwrap(), token_amount: 100, fee: 100, };...
rust_cleaned_test_functions.jsonl/48488
{ "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, 57757, 7080, 14117, 1769, 368, 341, 286, 1077, 8372, 7080, 14117, 1769, 284, 37742, 74432, 1043, 851, 341, 310, 8372, 7080, 14117, 6744, 25, 37742, 4286, 486, 1539, 5673, 25592, 20703, 15, 26, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_input_handler_left_event() { let mut app = App::new(); app.input = str_to_vec_char("My text"); let input_len = app.input.len().try_into().unwrap(); app.input_idx = app.input.len(); app.input_cursor_position = input_len; handler(Key::Left, &mut ap...
rust_cleaned_test_functions.jsonl/9022
{ "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, 5898, 10183, 9579, 6748, 368, 341, 286, 1077, 5206, 906, 284, 1845, 486, 931, 1428, 286, 906, 10046, 284, 607, 2346, 13251, 9232, 445, 5050, 1467, 797, 286, 1077, 1946, 6043, 284, 906, 10046, 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...
2
#[test] fn test_fchown() { // Testing for anything other than our own UID/GID is hard. let uid = Some(getuid()); let gid = Some(getgid()); let path = tempfile().unwrap(); let fd = path.as_raw_fd(); fchown(fd, uid, gid).unwrap(); fchown(fd, uid, None).unwrap(); fchown(fd, None, ...
rust_cleaned_test_functions.jsonl/104810
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 331, 779, 368, 341, 262, 442, 26768, 369, 4113, 1008, 1091, 1039, 1828, 37428, 15792, 915, 374, 2588, 624, 262, 1077, 14617, 284, 4329, 5433, 2423, 1423, 262, 1077, 45863, 284, 4329, 5433, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encoding_decoding_instructions_slow_reader() { test_encoding_decoding_slow_reader(DecoderInstruction::InsertCountIncrement { increment: 10_000, }); test_encoding_decoding_slow_reader(DecoderInstruction::HeaderAck { stream_id: 10_000 }); test_encoding_d...
rust_cleaned_test_functions.jsonl/776
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 188 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 13783, 3700, 82427, 82447, 22306, 368, 341, 286, 1273, 37613, 13783, 3700, 82447, 22306, 7, 20732, 16664, 486, 13780, 2507, 38311, 341, 310, 16252, 25, 220, 16, 15, 62, 15, 15, 15, 345, 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_argsort_multiple() -> Result<()> { let df = df![ "int" => [1, 2, 3, 1, 2], "flt" => [3.0, 2.0, 1.0, 2.0, 1.0], "str" => ["a", "a", "a", "b", "b"] ]?; let out = df .clone() .lazy() .select([argsort_by([col("int"), col("flt")], &[true, f...
rust_cleaned_test_functions.jsonl/148
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8384, 371, 45233, 368, 1464, 5714, 71698, 341, 262, 1077, 6764, 284, 6764, 90515, 286, 330, 396, 1, 589, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 16, 11, 220, 17, 1259, 286, 330, 79209, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_handle_get() { let _ = fs::remove_file("test_get.kv"); let log_file = fs::File::create("test_get.kv").unwrap(); let storage_engine = Arc::new(RwLock::new(KVStorage::new(log_file))); let key = gen_key(); let value = gen_value(); storage_engine.write...
rust_cleaned_test_functions.jsonl/26665
{ "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, 10630, 3062, 368, 341, 286, 1077, 716, 284, 8619, 486, 5399, 2458, 445, 1944, 3062, 5202, 85, 797, 286, 1077, 1487, 2458, 284, 8619, 486, 1703, 486, 3182, 445, 1944, 3062, 5202, 85, 1827, 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...
3
#[test] fn test_set_scheme_to_file_with_host() { let mut url: Url = "http://localhost:6767/foo/bar".parse().unwrap(); let result = url.set_scheme("file"); assert_eq!(url.to_string(), "http://localhost:6767/foo/bar"); assert_eq!(result, Err(())); }
rust_cleaned_test_functions.jsonl/79056
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 53293, 2346, 2458, 6615, 12848, 368, 341, 262, 1077, 5206, 2515, 25, 22840, 284, 330, 1254, 1110, 8301, 25, 21, 22, 21, 22, 60555, 49513, 3263, 6400, 1005, 15454, 543, 262, 1077, 1102, 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_event_serialisation() { #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] enum Event { SomeEvent, SomeOtherEvent, } let reply = event_reply(Some(&(Event::SomeOtherEvent, 9, 0)), |_| 10); let mut buf = [0; 32]; let...
rust_cleaned_test_functions.jsonl/65559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6748, 25602, 7923, 368, 341, 286, 11506, 27098, 65297, 11, 11091, 11, 48440, 11, 55039, 11, 39900, 5563, 286, 7618, 3665, 341, 310, 4329, 1556, 345, 310, 4329, 11409, 1556, 345, 286, 555, 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...
1
#[test] fn test_convert_chanwidth_to_cbw() { assert_eq!( fidl_common::Cbw::Cbw20, convert_chanwidth_to_cbw(fidl_mlme::ChanWidthSet::TwentyOnly as u8) ); assert_eq!( fidl_common::Cbw::Cbw40Below, convert_chanwidth_to_cbw(fidl_mlme::ChanWidth...
rust_cleaned_test_functions.jsonl/17780
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 45552, 3098, 2346, 16450, 86, 368, 341, 286, 2060, 10714, 33673, 310, 32104, 75, 21107, 486, 34, 39824, 486, 34, 39824, 17, 15, 345, 310, 5508, 45552, 3098, 2346, 16450, 86, 40556, 75, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_region_heartbeat_term() { let mut cluster = new_server_cluster(0, 3); cluster.run(); cluster.must_transfer_leader(1, new_peer(2, 2)); let reported_term = cluster.pd_client.get_region_last_report_term(1).unwrap(); assert_ne!(reported_term, 0); // transfer leader to ...
rust_cleaned_test_functions.jsonl/50374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20627, 62, 72471, 17464, 368, 341, 262, 1077, 5206, 10652, 284, 501, 12015, 28441, 7, 15, 11, 220, 18, 317, 262, 10652, 7634, 1428, 1066, 262, 10652, 69419, 35403, 79991, 7, 16, 11, 501, 45159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_position_root_with_rtl_should_position_withoutdirection() { let mut config = Config::new(); let mut root = Node::new_with_config(&mut config); root.set_position(Edge::Left, StyleUnit::Point((72 as f32).into())); root.set_width(StyleUnit::Point((52 as f32).into())); root.set_height(StyleUni...
rust_cleaned_test_functions.jsonl/101515
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 329 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9661, 12993, 6615, 1710, 11544, 43378, 9661, 39904, 19071, 368, 341, 10217, 5206, 2193, 284, 5532, 486, 931, 1428, 10217, 5206, 3704, 284, 6018, 486, 931, 6615, 5332, 2099, 6984, 2193, 317, 33698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_bool() { let a = PrimitiveArray::from(vec![false, false, true, false]); assert_eq!(4, a.len()); assert_eq!(0, a.null_count()); }
rust_cleaned_test_functions.jsonl/32609
{ "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, 5673, 22159, 368, 341, 286, 1077, 264, 284, 51460, 1857, 486, 1499, 25592, 20703, 3849, 11, 895, 11, 830, 11, 895, 2558, 286, 2060, 10714, 10297, 19, 11, 264, 19406, 1423, 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
#[test] fn test_zigzag_encode() { let zigzag = VarintEncoding::zigzag_encode; assert_eq!(zigzag(0), 0); for x in 1..512 { assert_eq!(zigzag(x), (x as u64) * 2); assert_eq!(zigzag(-x), (x as u64) * 2 - 1); } }
rust_cleaned_test_functions.jsonl/517
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 167 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6415, 343, 92674, 11224, 368, 972, 286, 1077, 85812, 92674, 284, 8735, 396, 14690, 486, 35363, 92674, 11224, 1926, 286, 2060, 10714, 10297, 35363, 92674, 7, 15, 701, 220, 15, 736, 286, 369, 856, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gpu_stats() { let harness = TestHarness::new(); let allocator = harness.create_allocator(); let allocation_info = vk_mem::AllocationCreateInfo { usage: vk_mem::MemoryUsage::GpuOnly, ..Default::default() }; let stats_1 = allocator.calculate_stats().unw...
rust_cleaned_test_functions.jsonl/51070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 666 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35628, 15381, 368, 972, 262, 1077, 32408, 284, 3393, 74248, 486, 931, 1647, 262, 1077, 43655, 284, 32408, 2520, 56910, 1647, 262, 1077, 23757, 3109, 284, 34283, 12976, 486, 78316, 61101, 972, 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_span_vec_insert_disjoint() { let mut sv = SpanVec::new(); let s_far = Span::new(1000, 1100).unwrap(); let s_close = Span::new(0, 1).unwrap(); sv.insert(s_far); sv.insert(s_close); assert_eq!(sv[0], s_close); assert_eq!(sv[1], s_far); let mut sv = SpanVec::new();...
rust_cleaned_test_functions.jsonl/109251
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 412 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37382, 13251, 17678, 9932, 32850, 368, 341, 262, 1077, 5206, 13559, 284, 11903, 10050, 486, 931, 543, 262, 1077, 274, 67513, 284, 11903, 486, 931, 7, 16, 15, 15, 15, 11, 220, 16, 16, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_btf_type_int() { let endianness = Endianness::default(); let data: &[u8] = &[ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x08, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, ]; match unsafe { BtfType::read(data, endianness) } { ...
rust_cleaned_test_functions.jsonl/98486
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 880, 8935, 1819, 4042, 368, 341, 286, 1077, 835, 72, 82033, 284, 3972, 72, 82033, 486, 2258, 543, 286, 1077, 821, 25, 44590, 84, 23, 60, 284, 609, 9640, 310, 220, 15, 87, 15, 16, 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...
2
#[test] fn test_client_received_unknown_stream() { let (mut hconn, mut peer_conn) = connect(Client); // create a stream with unknown type. let new_stream_id = peer_conn.conn.stream_create(StreamType::UniDi).unwrap(); let _ = peer_conn .conn .stream_send(n...
rust_cleaned_test_functions.jsonl/10923
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 576 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8179, 40783, 57507, 12673, 368, 341, 286, 1077, 320, 6984, 305, 5148, 11, 5206, 14397, 17241, 8, 284, 4564, 46851, 626, 286, 442, 1855, 264, 4269, 448, 9788, 943, 624, 286, 1077, 501, 12673, 842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_code_lists() { let input = r#" import /io func is_empty:Bool :: l:[Int] -> match |[] -> True |_ -> False -- -- func main -> let e := is_empty([4, 8, 3]) io.print("is empty? $e\n"...
rust_cleaned_test_functions.jsonl/64721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4136, 37288, 741, 262, 341, 286, 1077, 1946, 284, 435, 2, 698, 286, 1159, 608, 815, 271, 286, 2915, 374, 15124, 25, 11233, 3504, 326, 7259, 1072, 60, 12381, 310, 2432, 198, 310, 760, 1294, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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