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_create_self_collision_checker() { let urdf_robot = urdf_rs::read_file("sample.urdf").unwrap(); let robot = Arc::new(k::Chain::<f64>::from(&urdf_robot)); let self_collision_checker = create_self_collision_checker( "sample.urdf", &["root:l_shoulder_roll".into()], ...
rust_cleaned_test_functions.jsonl/124310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 754 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 25637, 70375, 62715, 368, 341, 262, 1077, 4335, 2940, 59116, 284, 4335, 2940, 47115, 486, 878, 2458, 445, 13611, 44785, 2940, 1827, 15454, 543, 262, 1077, 12305, 284, 19689, 486, 931, 5969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resolve_fragment_identifier() { let document: CoreDocument = document(); // Resolve methods by fragment assert_eq!(document.resolve("#key-1").unwrap().id(), "did:example:1234#key-1"); assert_eq!(document.resolve("#key-2").unwrap().id(), "did:example:1234#key-2"); assert_eq!(...
rust_cleaned_test_functions.jsonl/125544
{ "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, 77291, 43012, 33176, 368, 341, 262, 1077, 2197, 25, 9518, 7524, 284, 2197, 1428, 262, 442, 47302, 5413, 553, 12289, 198, 262, 2060, 10714, 10297, 6062, 14691, 3584, 792, 12, 16, 1827, 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_join_community_fund() { let now = 778899; let principal_a = 42; let principal_b = 128; let fixture: GovernanceProto = GovernanceProto { economics: Some(NetworkEconomics::default()), neurons: [ ( 1, Neuron { ...
rust_cleaned_test_functions.jsonl/1192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31017, 97508, 761, 1241, 368, 341, 262, 1077, 1431, 284, 220, 22, 22, 23, 23, 24, 24, 280, 262, 1077, 12435, 4306, 284, 220, 19, 17, 280, 262, 1077, 12435, 880, 284, 220, 16, 17, 23, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tokenize_fields_trailing_custom_separator() { let line = "a"; assert_eq!(tokenize_helper(line, Some('a')), vec![0..0]); let line = "aa"; assert_eq!(tokenize_helper(line, Some('a')), vec![0..0, 1..1]); let line = "..a..a"; assert_eq!(tokenize_helper...
rust_cleaned_test_functions.jsonl/31608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86508, 12132, 3547, 14277, 15875, 58204, 368, 341, 286, 1077, 1555, 284, 330, 64, 876, 286, 2060, 10714, 10297, 5839, 551, 10418, 8797, 11, 4329, 492, 64, 46259, 7486, 20703, 15, 496, 15, 2558, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ldxdw() { disasm!("entrypoint:\n ldxdw r1, [r2+0x3]\n"); disasm!("entrypoint:\n ldxdw r1, [r2-0x3]\n"); }
rust_cleaned_test_functions.jsonl/68759
{ "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, 50573, 9703, 86, 368, 341, 262, 827, 10530, 17223, 4085, 2768, 7190, 77, 262, 26129, 9703, 86, 435, 16, 11, 508, 81, 17, 10, 15, 87, 18, 17960, 77, 797, 262, 827, 10530, 17223, 4085, 2768, 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
#[test] fn test_transact_bond_work() { TestNet::reset(); ParaA::execute_with(|| { assert_ok!(LiquidStaking::stake(Origin::signed(ALICE), ksm(2000f64),)); assert_ok!(LiquidStaking::bond( Origin::signed(ALICE), ksm(3f64), RewardDestination::Staked ...
rust_cleaned_test_functions.jsonl/53660
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 455 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7965, 531, 880, 2111, 11498, 368, 341, 262, 3393, 6954, 486, 9716, 1428, 262, 22989, 32, 486, 10257, 6615, 79453, 341, 286, 2060, 19817, 10297, 96640, 623, 1765, 486, 267, 726, 7, 13298, 486, 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_auto_check_sbp_piksi_30() { { let payload: Vec<u8> = vec![85, 25, 0, 246, 215, 4, 1, 0, 0, 0, 216, 140]; // Test the round trip payload parsing let mut parser = sbp::parser::Parser::new(std::io::Cursor::new(&payload)); let msg_result = parser.parse(); ...
rust_cleaned_test_functions.jsonl/87846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 781 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27740, 7200, 643, 17808, 620, 1579, 6321, 62, 18, 15, 368, 341, 262, 341, 286, 1077, 7729, 25, 11312, 34837, 23, 29, 284, 7486, 20703, 23, 20, 11, 220, 17, 20, 11, 220, 15, 11, 220, 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...
2
#[test] fn test_encode_buf() { let mut buf = String::new(); base62::encode_buf(u128::MAX, &mut buf); assert_eq!(buf, "7n42DGM5Tflk9n8mt7Fhc7"); }
rust_cleaned_test_functions.jsonl/50828
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 10363, 368, 341, 286, 1077, 5206, 6607, 284, 923, 486, 931, 543, 286, 2331, 21, 17, 486, 6180, 10363, 8154, 16, 17, 23, 486, 10586, 11, 609, 6984, 6607, 317, 286, 2060, 10714, 10297, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_on_chain_config_pub_sub() { let mut rt = tokio::runtime::Runtime::new().unwrap(); // set up reconfig subscription let subscribed_configs = &[VMConfig::CONFIG_ID]; let (subscription, mut reconfig_receiver) = ReconfigSubscription::subscribe(subscribed_configs); let (mut config...
rust_cleaned_test_functions.jsonl/132846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2559 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4470, 30583, 5332, 34014, 5228, 368, 341, 262, 1077, 5206, 16677, 284, 9628, 815, 486, 22255, 486, 15123, 486, 931, 1005, 15454, 543, 262, 442, 738, 705, 312, 1676, 15142, 198, 262, 1077, 52100, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tuples() { use std::net::IpAddr; let ip = "1.2.3.4".parse().unwrap(); #[serde_as] #[derive(Debug, Serialize, Deserialize, PartialEq)] struct Struct1 { #[serde_as(as = "(DisplayFromStr,)")] values: (u32,), }; is_equal(Struct1 { values: (1,) }, r#"{"val...
rust_cleaned_test_functions.jsonl/23042
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 848 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89269, 368, 341, 262, 990, 1460, 486, 4711, 486, 23378, 13986, 280, 262, 1077, 5997, 284, 330, 16, 13, 17, 13, 18, 13, 19, 3263, 6400, 1005, 15454, 1428, 262, 11506, 47024, 11898, 921, 262, 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_struct_array_from() { let boolean = Arc::new(BooleanArray::from(vec![false, false, true, true])); let int = Arc::new(Int32Array::from(vec![42, 28, 19, 31])); let struct_array = StructArray::from(vec![ ( Field::new("b", DataType::Boolean, false...
rust_cleaned_test_functions.jsonl/684
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 410 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 3858, 5673, 368, 341, 286, 1077, 2710, 284, 19689, 486, 931, 39969, 1857, 486, 1499, 25592, 20703, 3849, 11, 895, 11, 830, 11, 830, 14382, 286, 1077, 526, 284, 19689, 486, 931, 24123, 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_verify_account_changes_data() { let alice_program_id = solana_sdk::pubkey::new_rand(); let mallory_program_id = solana_sdk::pubkey::new_rand(); assert_eq!( Change::new(&alice_program_id, &alice_program_id) .data(vec![0], vec![42]) ...
rust_cleaned_test_functions.jsonl/15695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 555 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 13500, 47526, 1769, 368, 341, 286, 1077, 70433, 25096, 842, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 33253, 679, 25096, 842, 284, 2048, 3362, 61783, 486, 958...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_attachments_works() { { let mut attachments = Attachments::new(); assert_eq!(0, attachments.0.len()); let json: Json = Json::new(AttachmentId::Credential, _json(), AttachmentEncoding::Base64).unwrap(); attachments.add(Attachment::JSON(json...
rust_cleaned_test_functions.jsonl/23120
{ "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, 98581, 11498, 82, 368, 341, 286, 341, 310, 1077, 5206, 33679, 284, 48384, 1368, 486, 931, 543, 310, 2060, 10714, 10297, 15, 11, 33679, 13, 15, 19406, 5231, 310, 1077, 2951, 25, 8308, 284, 8308, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_buffered_writer() { let inner = MemWriter::new(); let mut writer = BufferedWriter::with_capacity(2, inner); writer.write([0, 1]).unwrap(); let b: &[_] = &[]; assert_eq!(writer.get_ref().get_ref(), b); writer.write([2]).unwrap(); let b: &[...
rust_cleaned_test_functions.jsonl/83704
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 705 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 291, 28908, 368, 341, 286, 1077, 9179, 284, 13550, 6492, 486, 931, 543, 286, 1077, 5206, 6916, 284, 63129, 486, 4197, 35603, 7, 17, 11, 9179, 626, 286, 6916, 3836, 2561, 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_order() { let ordered: Vec<RData> = vec![ RData::A(Ipv4Addr::from_str("0.0.0.0").unwrap()), RData::AAAA(Ipv6Addr::from_str("::").unwrap()), RData::SRV(SRV::new( 1, 2, 3, Name::from_str("ww...
rust_cleaned_test_functions.jsonl/76041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1443 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7869, 368, 341, 286, 1077, 11457, 25, 11312, 23370, 1043, 29, 284, 7486, 90515, 310, 431, 1043, 486, 32, 8972, 30168, 19, 13986, 486, 1499, 2895, 445, 15, 13, 15, 13, 15, 13, 15, 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...
1
#[test] fn test_jpx() { assert_eq_ok!( ImageInfo::from_file_path("images/valid/jpx/sample.jpx"), ImageInfo { format: ImageFormat::JPX, ext: "jpx", full_ext: "jpx", mimetype: "image/jpx", size: ImageSize { width: 2717, height: 3701 }...
rust_cleaned_test_functions.jsonl/65163
{ "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, 5374, 1767, 368, 341, 262, 2060, 10714, 19817, 33673, 286, 4654, 1731, 486, 1499, 2458, 2638, 445, 3642, 14, 1891, 4437, 1767, 69851, 1169, 1767, 4461, 286, 4654, 1731, 341, 310, 3561, 25, 4654, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_exchange_code_successful_with_complete_json_response() { let client = new_client().set_auth_type(AuthType::RequestBody); let token = client .exchange_code(AuthorizationCode::new("ccc".to_string())) .request(mock_http_client( vec![ (ACCEPT, "app...
rust_cleaned_test_functions.jsonl/18592
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59212, 4136, 92951, 6615, 27675, 9455, 9655, 368, 341, 262, 1077, 2943, 284, 501, 8179, 1005, 746, 14014, 1819, 37640, 929, 486, 33334, 317, 262, 1077, 3950, 284, 2943, 198, 286, 659, 39568, 4136,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encryption_key() { assert_eq!(get_encryption_key(5764801, 17807724), 14897079); }
rust_cleaned_test_functions.jsonl/103855
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 61 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 13781, 15597, 3097, 368, 341, 286, 2060, 10714, 10297, 455, 13781, 15597, 3097, 7, 20, 22, 21, 19, 23, 15, 16, 11, 220, 16, 22, 23, 15, 22, 22, 17, 19, 701, 220, 16, 19, 23, 24, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_keep_collapsed_states() { let mut res = StatusTree::default(); res.update(&string_vec_to_status(&[ "a/b", "c", ])) .unwrap(); res.collapse("a", 0); assert_eq!( res.all_collapsed().iter().collect::<Vec<_>>(), ...
rust_cleaned_test_functions.jsonl/34457
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 654 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50293, 43597, 9200, 22972, 368, 341, 286, 1077, 5206, 592, 284, 8104, 6533, 486, 2258, 543, 286, 592, 5317, 2099, 917, 13251, 2346, 4773, 2099, 9640, 310, 330, 64, 3470, 497, 715, 310, 330, 66, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_gen_mac_retail_padtype2() { let res = generate_mac(&MacAlgo::RetailMac, &PaddingType::Type2, &Vec::from(hex!("0102030405060708010203040506070801020304050607080000")), &Vec::from(hex!("e0f4543f3e2a2c5ffc7e5e5a222e3e4d"))); match res { Ok(...
rust_cleaned_test_functions.jsonl/23728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16322, 22802, 1288, 14586, 30290, 1313, 17, 368, 341, 286, 1077, 592, 284, 6923, 22802, 2099, 19552, 2101, 3346, 486, 76906, 19552, 11, 609, 21616, 929, 486, 929, 17, 345, 7561, 609, 10050, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_subv() { let a = [1.2, 1.3, 1.4]; let b = [1.3, 1.5, 2.4]; let c = a.subv(&b); let c_expected: [f64; 3] = [-0.1, -0.2, -1.0]; for i in 0..c.len() { assert_approx_eq!(c[i], c_expected[i]); } }
rust_cleaned_test_functions.jsonl/66747
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 181 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5228, 85, 368, 341, 286, 1077, 264, 284, 508, 16, 13, 17, 11, 220, 16, 13, 18, 11, 220, 16, 13, 19, 935, 286, 1077, 293, 284, 508, 16, 13, 18, 11, 220, 16, 13, 20, 11, 220, 17, 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...
2
#[test] fn test_remove() { let mut buffer = setup_buffer("ABCD"); buffer.remove_chars(Mark::Cursor(0), Direction::Right, 1); assert_eq!(buffer.len(), 4); assert_eq!(buffer.lines().next().unwrap(), [b'B', b'C', b'D']); }
rust_cleaned_test_functions.jsonl/94754
{ "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, 18193, 368, 341, 286, 1077, 5206, 4147, 284, 6505, 7776, 445, 1867, 6484, 797, 286, 4147, 4850, 37418, 3189, 838, 486, 14543, 7, 15, 701, 18904, 486, 5979, 11, 220, 16, 626, 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_cmp() { assert!(_0 == _0 && _1 == _1); assert!(_0 != _1 && _1 != _0); assert!(_0 < _1 && !(_1 < _0)); assert!(_1 > _0 && !(_0 > _1)); assert!(_0 <= _0 && _1 <= _1); assert!(_0 <= _1 && !(_1 <= _0)); assert!(_0 >= _0 && _1 >= _1); ...
rust_cleaned_test_functions.jsonl/825
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 248 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35193, 368, 341, 286, 2060, 0, 2490, 15, 621, 716, 15, 1009, 716, 16, 621, 716, 16, 317, 286, 2060, 0, 2490, 15, 961, 716, 16, 1009, 716, 16, 961, 716, 15, 317, 286, 2060, 0, 2490, 15, 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...
9
#[test] fn test_blend_luma_alpha() { let ref mut a = LumaA([255 as u8, 255]); let b = LumaA([255 as u8, 255]); a.blend(&b); assert_eq!(a.0[0], 255); assert_eq!(a.0[1], 255); let ref mut a = LumaA([255 as u8, 0]); let b = LumaA([255 as u8, 255]); a...
rust_cleaned_test_functions.jsonl/46640
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88520, 907, 13416, 26633, 368, 341, 286, 1077, 2053, 5206, 264, 284, 444, 13416, 32, 2561, 17, 20, 20, 438, 575, 23, 11, 220, 17, 20, 20, 2558, 286, 1077, 293, 284, 444, 13416, 32, 2561, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_ledger_fees() { let _setup = SetupMocks::init(); let cb = return_types_u32::Return_U32_STR::new().unwrap(); assert_eq!(vcx_ledger_get_fees(cb.command_handle, Some(cb.get_callback())), error::SUCCESS.code_num);...
rust_cleaned_test_functions.jsonl/35823
{ "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, 3062, 38367, 1389, 761, 5516, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 9858, 284, 470, 9763, 7300, 18, 17, 486, 5598, 6665, 18, 17, 7159, 486, 931, 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_metadata_kinds() { let context = Context::create(); let i8_type = context.i8_type(); let f32_type = context.f32_type(); let ptr_type = i8_type.ptr_type(AddressSpace::Generic); let struct_type = context.struct_type(&[i8_type.into(), f32_type.into()], false); let vector_ty...
rust_cleaned_test_functions.jsonl/134523
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 401 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22220, 4698, 8673, 368, 341, 262, 1077, 2266, 284, 9608, 486, 3182, 1428, 262, 1077, 600, 23, 1819, 284, 2266, 8607, 23, 1819, 543, 262, 1077, 282, 18, 17, 1819, 284, 2266, 833, 18, 17, 1819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_permute_func() { assert_eq!( permute_func(&vec!['a', 'b', 'c'], &vec![2, 1, 0]), vec!['c', 'b', 'a'] ); }
rust_cleaned_test_functions.jsonl/50996
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31961, 1070, 9596, 368, 341, 262, 2060, 10714, 33673, 286, 13854, 1070, 9596, 2099, 4083, 0, 677, 64, 516, 364, 65, 516, 364, 66, 4089, 609, 4083, 20703, 17, 11, 220, 16, 11, 220, 15, 17036, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_kill_partition_switch_threshold_no_progress() { let max_switch_threshold_failure_pct = 1.0 - 2.0 * SWITCH_FORK_THRESHOLD; let total_stake = 10_000; let max_failures_stake = (max_switch_threshold_failure_pct * total_stake as f64) as u64; let failures_stake = max_failures_stake; ...
rust_cleaned_test_functions.jsonl/35990
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 404 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73327, 43840, 27652, 21858, 6536, 27200, 368, 341, 262, 1077, 1932, 27652, 21858, 43618, 71512, 284, 220, 16, 13, 15, 481, 220, 17, 13, 15, 353, 72543, 1400, 10647, 44405, 280, 262, 1077, 2790, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nested_primitives() { let mut bvc = ByValueChecker::new(); let t: ItemStruct = parse_quote! { struct Foo { a: i32, b: i64, } }; bvc.ingest_struct(&t, &Namespace::new()); let t: ItemStruct = parse_quot...
rust_cleaned_test_functions.jsonl/93409
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 365 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 5294, 35209, 368, 341, 286, 1077, 5206, 293, 7362, 284, 3216, 1130, 35188, 486, 931, 543, 286, 1077, 259, 25, 5739, 9422, 284, 4715, 45236, 0, 341, 310, 2036, 33428, 341, 394, 264, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialized_is_null() { let v: Value = serde_json::from_str("{}").unwrap(); assert!(check(&v, &serde_json::Value::Null).is_err()); }
rust_cleaned_test_functions.jsonl/52329
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 67577, 6892, 15162, 368, 341, 286, 1077, 348, 25, 5162, 284, 61570, 9455, 486, 1499, 2895, 53430, 1827, 15454, 543, 286, 2060, 10297, 2028, 2099, 85, 11, 609, 47024, 9455, 486, 1130, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_create_default_values() { for v in 1..=9 { let mut value = SquareValue::new(); assert!(!value.has_known_value()); for possible_value in 1..=9 { assert!(value.can_have_value(possible_value)); } value.set_known_v...
rust_cleaned_test_functions.jsonl/33727
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 9993, 9146, 368, 341, 286, 369, 348, 304, 220, 16, 496, 28, 24, 341, 310, 1077, 5206, 897, 284, 15619, 1130, 486, 931, 1428, 310, 2060, 0, 3471, 957, 6858, 71690, 3142, 1423, 310, 369, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invoke_abstract_class_ctor() { err( "abstract class A fun test() -> A { return A(); }", pos(2, 38), Msg::NewAbstractClass, ); }
rust_cleaned_test_functions.jsonl/106640
{ "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, 79779, 85939, 4790, 54185, 368, 341, 286, 1848, 1006, 310, 330, 16249, 536, 362, 198, 310, 2464, 1273, 368, 1464, 362, 314, 470, 362, 2129, 335, 756, 310, 1133, 7, 17, 11, 220, 18, 23, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_addr_and_zone() { let addr_and_zone = AddrAndZone::new(Address::LinkLocalUnicast, ()); assert_eq!(addr_and_zone, Some(AddrAndZone(Address::LinkLocalUnicast, ()))); assert_eq!(addr_and_zone.unwrap().into_addr_scope_id(), (Address::LinkLocalUnicast, ())); assert_eq!...
rust_cleaned_test_functions.jsonl/33649
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7387, 8378, 28692, 368, 341, 286, 1077, 10789, 8378, 28692, 284, 72585, 3036, 15363, 486, 931, 68492, 486, 3939, 7319, 1806, 35446, 11, 49323, 286, 2060, 10714, 10297, 6214, 8378, 28692, 11, 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...
1
#[test] fn test_splitting() { use crate::front_matter; let contents = r#" [global] name = "techou" version = "0.1.0 || " --- this is the actual article contents yeah."#; let result = front_matter::detect_front_matter(contents, "testfile.md", &Default::default()); asse...
rust_cleaned_test_functions.jsonl/43339
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 1280, 368, 341, 286, 990, 17717, 486, 6951, 717, 1650, 280, 286, 1077, 8794, 284, 435, 2, 698, 58, 9752, 921, 606, 284, 330, 17785, 283, 698, 4366, 284, 330, 15, 13, 16, 13, 15, 1369,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set_lockup() { let stake_pubkey = solana_sdk::pubkey::new_rand(); let stake_lamports = 42; let stake_account = AccountSharedData::new_ref_data_with_space( stake_lamports, &StakeState::Uninitialized, std::mem::size_of::<StakeState>(), ...
rust_cleaned_test_functions.jsonl/104278
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1845 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 9818, 454, 368, 341, 286, 1077, 18279, 34014, 792, 284, 2048, 3362, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 18279, 907, 309, 3394, 284, 220, 19, 17, 280, 286, 1077, 18279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_into_bytes_u16() { let n = 55u16; let b = Bytes::new(n); assert_eq!(&n.to_be_bytes()[..], &b.into_bytes()[..]); }
rust_cleaned_test_functions.jsonl/66209
{ "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, 45514, 12524, 7300, 16, 21, 368, 341, 286, 1077, 308, 284, 220, 20, 20, 84, 16, 21, 280, 286, 1077, 293, 284, 30024, 486, 931, 1445, 317, 286, 2060, 10714, 0, 2099, 77, 2389, 21263, 12524, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_double_to_single() { assert_less(Variant::from(1.0), Variant::from(2.0_f32)); assert_equal(Variant::from(3.0), Variant::from(3.0_f32)); assert_greater(Variant::from(5.0), Variant::from(4.0_f32)); }
rust_cleaned_test_functions.jsonl/84516
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24598, 2346, 19487, 368, 341, 310, 2060, 50747, 12410, 15341, 486, 1499, 7, 16, 13, 15, 701, 39292, 486, 1499, 7, 17, 13, 15, 761, 18, 17, 1106, 310, 2060, 11478, 12410, 15341, 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...
1
#[test] fn test_variance() { test_case(0.0, 0.0, |x| x.variance()); test_case(-5.0, 0.0, |x| x.variance()); test_case(f64::INFINITY, 0.0, |x| x.variance()); }
rust_cleaned_test_functions.jsonl/66858
{ "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, 77450, 368, 341, 286, 1273, 19096, 7, 15, 13, 15, 11, 220, 15, 13, 15, 11, 760, 87, 91, 856, 19526, 5284, 1423, 286, 1273, 19096, 4080, 20, 13, 15, 11, 220, 15, 13, 15, 11, 760, 87, 91, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_format1_deser() { let expected = ClassDef { classes: btreemap!( 1 => 1, 2 => 2, 3 => 0, 4 => 1, 5 => 2, 6 => 0, 7 => 1, 8 => 2, 9 => 0, 10 => 1, 11 => 2, 12 => 0, 13 => 1, 14 => 2), }; let binary_classdef = vec![ 0x00, 0x01, 0x00, 0x0...
rust_cleaned_test_functions.jsonl/122934
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 437 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8955, 16, 15768, 261, 368, 341, 286, 1077, 3601, 284, 3228, 2620, 341, 310, 6846, 25, 293, 10157, 42040, 33673, 220, 16, 589, 220, 16, 345, 220, 17, 589, 220, 17, 345, 220, 18, 589, 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_serialisation() { use crate::test_utils::round_trip; for i in 0..32usize { let pw = randombytes(i); let pwh = pwhash(&pw, OPSLIMIT_INTERACTIVE, MEMLIMIT_INTERACTIVE).unwrap(); let salt = gen_salt(); round_trip(pwh); roun...
rust_cleaned_test_functions.jsonl/130176
{ "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, 25602, 7923, 368, 341, 286, 990, 17717, 486, 1944, 17309, 486, 1049, 63883, 280, 286, 369, 600, 304, 220, 15, 496, 18, 17, 51878, 341, 310, 1077, 26581, 284, 4194, 9651, 1956, 317, 310, 1077, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_block_store_prune() { let (blocks, block_store) = build_simple_tree(); assert_eq!(block_store.prune_tree(blocks[0].id()).len(), 0); assert_eq!(block_store.len(), 7); assert_eq!(block_store.child_links(), block_store.len() - 1); assert_eq!(block_store.pruned_blocks_in_mem...
rust_cleaned_test_functions.jsonl/50984
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1014 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 14809, 5294, 2886, 368, 341, 262, 1077, 320, 21928, 11, 2504, 14809, 8, 284, 1936, 30015, 11663, 543, 1066, 262, 2060, 10714, 10297, 4574, 14809, 10367, 2886, 11663, 97207, 58, 15, 936, 307,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_time_since_last_departure() { let bus = Bus{id: 7, offset: 0}; assert_eq!(bus.time_since_last_departure(939), 1); let bus = Bus{id: 13, offset: 0}; assert_eq!(bus.time_since_last_departure(939), 3); let bus = Bus{id: 59, offset: 0}; assert_eq!(bus.time_since_last_depart...
rust_cleaned_test_functions.jsonl/77200
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3009, 56262, 12195, 69865, 552, 368, 341, 262, 1077, 5828, 284, 18598, 61761, 25, 220, 22, 11, 4347, 25, 220, 15, 2440, 262, 2060, 10714, 10297, 10338, 6378, 56262, 12195, 69865, 552, 7, 24, 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_no_non_self_method() { check( r#" struct A {} impl A { fn the_method() {} } fn foo(a: A) { a.$0 } "#, expect![[""]], ); }
rust_cleaned_test_functions.jsonl/26254
{ "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, 6536, 21637, 25637, 9032, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 362, 5613, 6383, 362, 341, 262, 5168, 279, 9032, 368, 5613, 532, 8822, 15229, 2877, 25, 362, 8, 341, 256, 264, 2418...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_command_valid() { let result = run_command("echo 'Hello World Mier!!!!'"); assert!(result.is_ok()); assert_eq!(result.unwrap(), "Hello World Mier!!!!\n"); }
rust_cleaned_test_functions.jsonl/49462
{ "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, 14007, 10811, 8337, 368, 341, 310, 1077, 1102, 284, 1598, 10811, 445, 3047, 364, 9707, 4337, 386, 1268, 17085, 6, 3071, 310, 2060, 10297, 1382, 2079, 19817, 1423, 310, 2060, 10714, 10297, 1382, 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
#[test] fn test_process() { let id = "abc123rgb"; let init = true; let process = Process::new( &Logger::root(slog::Discard, o!("source" => "unit-test")), &OCIProcess::default(), id, init, 32, ); let mut process ...
rust_cleaned_test_functions.jsonl/28267
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11305, 368, 341, 286, 1077, 877, 284, 330, 13683, 16, 17, 18, 16509, 876, 286, 1077, 2930, 284, 830, 280, 286, 1077, 1882, 284, 8603, 486, 931, 1006, 310, 609, 7395, 486, 2888, 1141, 839, 486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ecdsa_parsing() { for test in wycheproof::ecdsa::TestName::all() { let _kat = wycheproof::ecdsa::TestSet::load(test).unwrap(); } }
rust_cleaned_test_functions.jsonl/5833
{ "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, 36844, 96780, 620, 28598, 368, 341, 262, 369, 1273, 304, 289, 5641, 747, 75636, 486, 757, 96780, 486, 2271, 675, 486, 541, 368, 341, 286, 1077, 716, 33755, 284, 289, 5641, 747, 75636, 486, 757, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_to_string_should_return_start_string() { let lsys: LSystem = LSystem::new("AB".to_string()); assert_eq!(lsys.to_string(), "AB"); }
rust_cleaned_test_functions.jsonl/101657
{ "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, 2346, 3904, 43378, 12511, 4906, 3904, 368, 341, 286, 1077, 326, 7791, 25, 444, 2320, 284, 444, 2320, 486, 931, 445, 1867, 3263, 983, 3904, 1423, 286, 2060, 10714, 10297, 4730, 1047, 2389, 3904, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_constructor_should_reject_zero_millisecond_input() { let i2p_date = I2pDate::new(I2pInt64::new(0)); assert!(i2p_date.is_err()); }
rust_cleaned_test_functions.jsonl/73428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66210, 43378, 1288, 583, 19359, 717, 65358, 5898, 368, 341, 286, 1077, 600, 17, 79, 4164, 284, 358, 17, 79, 1916, 486, 931, 8972, 17, 79, 1072, 21, 19, 486, 931, 7, 15, 3237, 286, 2060, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_flags_from_vec_12() { let (flags, subcommand, argv) = flags_from_vec(svec!["deno", "types"]); assert_eq!(flags, DenoFlags::default()); assert_eq!(subcommand, DenoSubcommand::Types); assert_eq!(argv, svec!["deno"]); }
rust_cleaned_test_functions.jsonl/112841
{ "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, 14130, 5673, 13251, 62, 16, 17, 368, 341, 262, 1077, 320, 11161, 11, 1186, 5631, 11, 10213, 8, 284, 8042, 5673, 13251, 1141, 4083, 0, 1183, 5183, 78, 497, 330, 9242, 15049, 262, 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...
1
#[test] fn test_vote_balance_and_staked_normal() { let mut stakes = Stakes::default(); impl Stakes { pub fn vote_balance_and_warmed_staked(&self) -> u64 { self.vote_accounts .iter() .map(|(_pubkey, (staked, account))| staked + a...
rust_cleaned_test_functions.jsonl/94751
{ "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, 54360, 29396, 8378, 1261, 7741, 13973, 368, 341, 286, 1077, 5206, 44425, 284, 794, 2050, 486, 2258, 543, 286, 11605, 794, 2050, 341, 310, 6675, 5168, 6910, 29396, 8378, 1670, 30272, 1261, 7741, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_single() { struct Foo; impl fmt::Debug for Foo { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_list() .entry(&true) .finish() } } assert_eq!("[true]", format...
rust_cleaned_test_functions.jsonl/69324
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 255 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 368, 341, 286, 2036, 33428, 401, 286, 11605, 8879, 486, 7939, 369, 33428, 341, 310, 5168, 8879, 2099, 721, 11, 8879, 25, 609, 6984, 8879, 486, 14183, 18291, 62, 9231, 1464, 8879, 486, 207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_seconds_overflow() { let x: u128 = 18446744073709551614599999; x.sec().unwrap(); }
rust_cleaned_test_functions.jsonl/40379
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 55 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34825, 79073, 368, 341, 262, 1077, 856, 25, 575, 16, 17, 23, 284, 220, 16, 23, 19, 19, 21, 22, 19, 19, 15, 22, 18, 22, 15, 24, 20, 20, 16, 21, 16, 19, 20, 24, 24, 24, 24, 24, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_create_delete_dir() { let tmp_dir = TempDir::new().unwrap(); let subdir = tmp_dir.path().join("subdir"); assert!(!delete_dir_if_exist(&subdir).unwrap()); assert!(create_dir_if_not_exist(&subdir).unwrap()); assert!(!create_dir_if_not_exist(&subdir).unwrap(...
rust_cleaned_test_functions.jsonl/23427
{ "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, 8657, 11353, 4334, 368, 341, 286, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 1005, 15454, 543, 286, 1077, 98021, 284, 4174, 4334, 3875, 1005, 5987, 445, 1966, 3741, 3071, 286, 2060, 0, 3471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_percent_to_char_width() { // Create the default grid for testing let mut grid = Grid::builder() .width(10) .height(5) .build(); grid.set_width_chars(150); grid.set_height_chars(36); assert_eq!(grid.percent_to_char_widt...
rust_cleaned_test_functions.jsonl/71779
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29883, 2346, 9232, 7927, 368, 1476, 286, 442, 4230, 279, 1638, 5827, 369, 7497, 198, 286, 1077, 5206, 5827, 284, 10587, 486, 17850, 741, 310, 659, 3098, 7, 16, 15, 340, 310, 659, 2563, 7, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mem_metrics() { setup_mem_metrics(); register_counter!( "requests_processed", Unit::Count, "number of requests processed" ); increment_counter!("requests_processed"); increment_counter!("requests_processed"); l...
rust_cleaned_test_functions.jsonl/72695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 808 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 37686, 368, 341, 286, 6505, 12976, 37686, 1428, 286, 4161, 15730, 33673, 310, 330, 36242, 63916, 756, 310, 7954, 486, 2507, 345, 310, 330, 4082, 315, 7388, 15233, 698, 286, 1439, 286, 16252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_save_ok_explicit_name() { let content = "\n some line \n "; for (explicit, actual, canonical) in &[ ("first", "MEMORY:/first.bas", "MEMORY:first.bas"), ("second.bas", "MEMORY:/second.bas", "MEMORY:second.bas"), ("THIRD", "MEMORY:/THIRD.BAS", ...
rust_cleaned_test_functions.jsonl/112760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15376, 19817, 14214, 6026, 1269, 368, 341, 286, 1077, 2213, 284, 2917, 77, 1045, 1555, 256, 1124, 77, 7620, 286, 369, 320, 93632, 11, 5042, 11, 42453, 8, 304, 609, 9640, 310, 3489, 3896, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_function_with_custom_calling_convention() { let ir = ir_from_cc("int f_vectorcall(int, int) [[clang::vectorcall]];").unwrap(); assert_ir_matches!( ir, quote! { Func { name: "f_vectorcall", ... mangled_name: "_Z12f_vectorcallii",...
rust_cleaned_test_functions.jsonl/37153
{ "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, 9174, 6615, 15875, 13429, 287, 3382, 7459, 368, 341, 262, 1077, 6216, 284, 6216, 5673, 28955, 445, 396, 282, 12247, 6659, 1548, 11, 526, 8, 4318, 25380, 486, 3215, 6659, 97829, 1827, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nnpsk2_session() { // Also test prologue and rekeying. let mut session1 = SessionBuilder::new("NNpsk2") .prologue(b"prologue".to_vec()) .add_psk([0u8; 32]) .build_initiator(); let mut session2 = SessionBuilder::new("NNpsk2") .prologue(b"prologue".to_v...
rust_cleaned_test_functions.jsonl/51961
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 456 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69962, 1690, 74, 17, 12316, 368, 341, 262, 442, 7281, 1273, 462, 67078, 323, 312, 792, 287, 624, 262, 1077, 5206, 3797, 16, 284, 9164, 3297, 486, 931, 445, 9745, 1690, 74, 17, 1138, 286, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_artefact_scope() -> Result<()> { let url = TremorURL::parse("pipe/01/in")?; assert_eq!(Scope::Artefact, url.scope()); assert_eq!(None, url.resource_type()); assert_eq!(Some("pipe".to_owned()), url.artefact()); assert_eq!(Some("01".to_owned()), url.instance...
rust_cleaned_test_functions.jsonl/100910
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36932, 823, 531, 23199, 368, 1464, 5714, 71698, 341, 286, 1077, 2515, 284, 75163, 269, 3144, 486, 6400, 445, 13768, 14, 15, 16, 17996, 899, 37445, 286, 2060, 10714, 10297, 10803, 486, 6953, 665, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_header_sync_timeout() { use std::iter::FromIterator; let faketime_file = faketime::millis_tempfile(0).expect("create faketime file"); faketime::enable(&faketime_file); let (chain_controller, shared) = start_chain(None); let synchronizer = gen_synchronize...
rust_cleaned_test_functions.jsonl/95019
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1014 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8757, 23008, 20537, 368, 341, 286, 990, 1460, 486, 2015, 486, 3830, 11951, 280, 286, 1077, 282, 585, 4107, 2458, 284, 282, 585, 4107, 486, 25013, 285, 11771, 1192, 7, 15, 568, 17119, 445, 3182, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_datum() { let fields = vec![ field_type(types::LONG_LONG), field_type(types::FLOAT), field_type(types::DATETIME), field_type(types::DURATION), field_type(types::NEW_DECIMAL), field_type(types::JSON), ...
rust_cleaned_test_functions.jsonl/100685
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 761 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 15353, 372, 368, 341, 286, 1077, 5043, 284, 7486, 90515, 310, 2070, 1819, 52613, 486, 51306, 19903, 1326, 310, 2070, 1819, 52613, 486, 50915, 1326, 310, 2070, 1819, 52613, 486, 47892, 44618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_too_many_cards() { assert_eq!( parse_freecells("JH TD 9H 6C 5S"), Err("Could not parse freecells: \"JH TD 9H 6C 5S\"".to_string()) ); }
rust_cleaned_test_functions.jsonl/3208
{ "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, 2346, 78, 22101, 41357, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 74179, 757, 6436, 445, 41, 39, 27716, 220, 24, 39, 220, 21, 34, 220, 20, 50, 4461, 286, 15495, 445, 12895, 537, 4715, 3457...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scope() { let html = r" <div> <b>1</b> <span> <span><b>2</b></span> <b>3</b> </span> </div> "; let fragment = Html::parse_fragment(html); let sel1 = Sel...
rust_cleaned_test_functions.jsonl/91316
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23199, 368, 341, 286, 1077, 5272, 284, 435, 698, 310, 366, 611, 397, 394, 366, 65, 29, 16, 522, 65, 397, 394, 366, 1480, 397, 503, 366, 1480, 1784, 65, 29, 17, 522, 65, 1472, 1480, 397, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialize_new_id() { let request = TestInterfaceRequest::from_args(5 /* opcode */, vec![Arg::NewId(NEW_ID_VALUE)]) .unwrap(); assert_match!(request, TestInterfaceRequest::NewId{arg} => assert_eq!(arg.id(), NEW_ID_VALUE)); }
rust_cleaned_test_functions.jsonl/55802
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 5921, 842, 368, 341, 286, 1077, 1681, 4035, 310, 3393, 5051, 1900, 486, 1499, 8384, 7, 20, 1391, 30028, 36572, 7486, 20703, 2735, 486, 3564, 764, 7, 20594, 3450, 7476, 27144, 394, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_range_iterator() { let dir = TempDir::new("_tikv_test_tmp_db").unwrap(); let db = open_db(dir.path()); for i in 0..100 { let k = format!("k-{:04}", i); let v = format!("v-{:04}", i); db.put(k.as_bytes(), v.as_bytes()).unwrap(); ...
rust_cleaned_test_functions.jsonl/9435
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1911 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 13491, 368, 341, 286, 1077, 5419, 284, 19944, 6184, 486, 931, 16975, 83, 1579, 85, 4452, 16125, 8685, 1827, 15454, 543, 286, 1077, 2927, 284, 1787, 8685, 14161, 3875, 5231, 286, 369, 600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_file_access() { use std::io::Write; unsafe { assert_exit_code( 0, run_in_pty(|| { let mut random_file = tempfile::tempfile().expect("creating temp file should not fail"); r...
rust_cleaned_test_functions.jsonl/20653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 338 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 12759, 368, 341, 286, 990, 1460, 486, 815, 486, 7985, 280, 286, 19860, 341, 310, 2060, 16880, 4136, 1006, 394, 220, 15, 345, 394, 1598, 1243, 62, 1595, 79453, 341, 503, 1077, 5206, 4194, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_node_archive_filename() { assert_eq!( Node::archive_filename("1.2.3"), format!( "node-v1.2.3-{}-{}.{}", NODE_DISTRO_OS, NODE_DISTRO_ARCH, NODE_DISTRO_EXTENSION ) ); }
rust_cleaned_test_functions.jsonl/98941
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 178 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5084, 42873, 13323, 368, 341, 286, 2060, 10714, 33673, 310, 6018, 486, 16019, 13323, 445, 16, 13, 17, 13, 18, 4461, 310, 3561, 33673, 394, 330, 3509, 8273, 16, 13, 17, 13, 18, 12, 6257, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_metrics() { let f = Font::default_font().expect("Could not get default font"); assert_eq!(f.get_height(), 17); assert_eq!(f.get_width("Foo!"), 33); let text_to_wrap = "Walk on car leaving trail of paw prints on hood and windshield sniff \ ...
rust_cleaned_test_functions.jsonl/5772
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 546 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37686, 368, 341, 286, 1077, 282, 284, 9562, 486, 2258, 17451, 1005, 17119, 445, 12895, 537, 633, 1638, 3301, 797, 286, 2060, 10714, 10297, 69, 670, 9561, 1507, 220, 16, 22, 317, 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_lockfile_already_exists_error_msg() { let schema_builder = schema::Schema::builder(); let index = Index::create_in_ram(schema_builder.build()); let _index_writer = index.writer_for_tests().unwrap(); match index.writer_for_tests() { Err(err) => { ...
rust_cleaned_test_functions.jsonl/21498
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9818, 1192, 80772, 9766, 4096, 6483, 368, 341, 286, 1077, 10802, 28532, 284, 10802, 486, 8632, 486, 17850, 543, 286, 1077, 1922, 284, 8008, 486, 3182, 1243, 62124, 42735, 28532, 13239, 1423, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_keywords_in_loop() { check( r"fn my() { loop { $0 } }", expect![[r#" kw unsafe kw fn kw const kw type kw impl kw extern kw use kw trait ...
rust_cleaned_test_functions.jsonl/22466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 601 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51354, 1243, 17198, 368, 341, 286, 1779, 1006, 310, 435, 1, 8822, 847, 368, 314, 6337, 314, 400, 15, 335, 335, 756, 310, 1720, 0, 15505, 81, 2, 698, 394, 29525, 19860, 198, 394, 29525, 5168, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scale_unscale() { assert_eq!(_05_05i.scale(2.0), _1_1i); assert_eq!(_1_1i.unscale(2.0), _05_05i); for &c in all_consts.iter() { assert_eq!(c.scale(2.0).unscale(2.0), c); } }
rust_cleaned_test_functions.jsonl/105653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16727, 4907, 12445, 368, 341, 286, 2060, 10714, 0, 2490, 15, 20, 62, 15, 20, 72, 17266, 7, 17, 13, 15, 701, 716, 16, 62, 16, 72, 317, 286, 2060, 10714, 0, 2490, 16, 62, 16, 72, 6307, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_star_network_push_star_200() { let mut network = star_network_create(200); let thread_pool = build_gossip_thread_pool(); network_simulator(&thread_pool, &mut network, 0.9); }
rust_cleaned_test_functions.jsonl/2397
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31681, 20966, 14218, 31681, 62, 17, 15, 15, 368, 341, 262, 1077, 5206, 3922, 284, 6774, 20966, 8657, 7, 17, 15, 15, 317, 262, 1077, 4516, 15709, 284, 1936, 1889, 41473, 10814, 15709, 543, 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
#[test] fn test_ed25519_encode_decode_pkcs8() { let algorithm = Algorithm::ED25519; encode_decode_with_format(KeyFormat::Pkcs8, algorithm, true, true); }
rust_cleaned_test_functions.jsonl/36902
{ "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, 32370, 17, 20, 20, 16, 24, 11224, 15227, 33321, 4837, 23, 368, 341, 286, 1077, 12111, 284, 40325, 486, 1479, 17, 20, 20, 16, 24, 280, 286, 16164, 15227, 6615, 8955, 21358, 4061, 486, 58415, 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
#[test] fn test_if_modified_since_with_if_none_match() { let file = NamedFile::open("Cargo.toml").unwrap(); let since = header::HttpDate::from(SystemTime::now().add(Duration::from_secs(60))); let req = TestRequest::default() .header(header::IF_NONE_MATCH, "miss_e...
rust_cleaned_test_functions.jsonl/35482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11119, 37749, 56262, 6615, 11119, 31488, 10708, 368, 341, 286, 1077, 1034, 284, 40459, 1703, 486, 2508, 445, 98228, 73494, 75, 1827, 15454, 543, 286, 1077, 2474, 4035, 310, 4247, 486, 2905, 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_smallest_common_element() { { let mat = vec![ vec![1, 2, 3, 4, 5], vec![2, 4, 5, 8, 10], vec![3, 5, 7, 9, 11], vec![1, 3, 5, 7, 9], ]; assert_eq!(smallest_common_element(mat), 5); } { let mat = vec![vec![...
rust_cleaned_test_functions.jsonl/107767
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15874, 19236, 21107, 7894, 368, 341, 262, 341, 286, 1077, 5517, 284, 7486, 90515, 310, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 1259, 310, 7486, 20703, 17, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resolving_minimum_version_with_transitive_deps() { enable_nightly_features(); // -Z minimal-versions // When the minimal-versions config option is specified then the lowest ...
rust_cleaned_test_functions.jsonl/48310
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 796 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4918, 19648, 84855, 9438, 6615, 7965, 3404, 76489, 368, 341, 262, 7283, 1089, 71948, 14965, 2129, 442, 481, 57, 17377, 12, 28290, 198, 7561, 442, 3197, 279, 17377, 12, 28290, 2193, 2999, 374, 5189...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_polynomial() { let two = Polynomial::constant(2); let a = Polynomial::input(InputName::first()); assert_eq!(Some(2), two.get_constant()); assert_eq!(None, a.get_constant()); assert_eq!((a + two).times(5), a.times(5) + two.times(5)) }
rust_cleaned_test_functions.jsonl/132166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47323, 25358, 368, 341, 262, 1077, 1378, 284, 75153, 486, 18077, 7, 17, 317, 262, 1077, 264, 284, 75153, 486, 1355, 29773, 675, 486, 3896, 1423, 262, 2060, 10714, 10297, 8373, 7, 17, 701, 1378, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_selection_skips_collapsed() { let items = string_vec_to_status(&[ "a/b/c", "a/d", ]); //0 a/ //1 b/ //2 c //3 d let mut res = StatusTree::default(); res.update(&items).unwrap(); res.coll...
rust_cleaned_test_functions.jsonl/34462
{ "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, 23672, 33811, 3077, 43597, 9200, 368, 341, 286, 1077, 3589, 284, 914, 13251, 2346, 4773, 2099, 9640, 310, 330, 64, 3470, 2899, 497, 715, 310, 330, 64, 3446, 497, 5872, 286, 22712, 286, 442, 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_handle_scan() { let _ = fs::remove_file("test_scan.kv"); let log_file = fs::File::create("test_scan.kv").unwrap(); let storage_engine = Arc::new(RwLock::new(KVStorage::new(log_file))); for i in 0..2048 { let key = gen_key_n(i); let value = ...
rust_cleaned_test_functions.jsonl/26666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 952 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 28857, 368, 341, 286, 1077, 716, 284, 8619, 486, 5399, 2458, 445, 1944, 28857, 5202, 85, 797, 286, 1077, 1487, 2458, 284, 8619, 486, 1703, 486, 3182, 445, 1944, 28857, 5202, 85, 1827, 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...
6
#[test] fn test_generic_image_copy_within_tl() { let data = &[ 00, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15 ]; let expected = [ 00, 01, 02, 03, 04, 00, 01, 02, 08, 04, 05, 06, ...
rust_cleaned_test_functions.jsonl/2200
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41232, 4954, 16096, 72385, 82970, 368, 341, 286, 1077, 821, 284, 609, 9640, 310, 220, 15, 15, 11, 220, 15, 16, 11, 220, 15, 17, 11, 220, 15, 18, 345, 310, 220, 15, 19, 11, 220, 15, 20, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_file_single() { let input = "demo\u{0}"; let (f, rest) = match parse_c_string(input){ Ok((f, Some(rest))) => (f,rest), _ => ("",""), }; println!("{:?} {:?}", f, rest); assert!(f == "demo"); assert!(rest == ""); }
rust_cleaned_test_functions.jsonl/72358
{ "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, 21039, 2458, 19487, 368, 341, 286, 1077, 1946, 284, 330, 25762, 3770, 90, 15, 71612, 286, 1077, 320, 69, 11, 2732, 8, 284, 2432, 4715, 666, 3904, 5384, 1264, 310, 7622, 1188, 69, 11, 4329, 620...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_codec() { let lease = RequestStreamFrame::new( 1, true, 2, Payload::builder() .set_metadata(Bytes::from("metadata")) .set_data(Bytes::from("data")) .build(), ); let mut buf = ...
rust_cleaned_test_functions.jsonl/106131
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 561 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51084, 368, 341, 286, 1077, 25064, 284, 6145, 3027, 4369, 486, 931, 1006, 310, 220, 16, 345, 310, 830, 345, 310, 220, 17, 345, 310, 52916, 486, 17850, 741, 394, 659, 746, 22220, 76423, 486, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_filter() { let df = create_frame(); println!("{}", df.column("days").unwrap()); println!("{:?}", df); println!("{:?}", df.filter(&df.column("days").unwrap().equal(0))) }
rust_cleaned_test_functions.jsonl/18790
{ "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, 8727, 368, 341, 286, 1077, 6764, 284, 1855, 8929, 543, 286, 13751, 79878, 6764, 12863, 445, 13778, 1827, 15454, 1423, 286, 13751, 88928, 25, 52652, 6764, 317, 286, 13751, 88928, 25, 52652, 6764, 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
#[test] fn test_none() { test! { let sym = AST::None(None::new_wrapped()); let r_node = sym.to_r_ast_node(0); assert_eq!(r_node, eval_string("quote(NULL)").unwrap()); } }
rust_cleaned_test_functions.jsonl/75453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31488, 368, 341, 286, 1273, 0, 341, 310, 1077, 7886, 284, 22465, 486, 4064, 26717, 486, 931, 44074, 5677, 1423, 310, 1077, 435, 5084, 284, 7886, 2389, 1710, 48019, 5084, 7, 15, 317, 310, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_maybe_owned_clone() { assert_eq!(Owned(String::from_str("abcde")), Slice("abcde").clone()); assert_eq!(Owned(String::from_str("abcde")), Owned(String::from_str("abcde")).clone()); assert_eq!(Slice("abcde"), Slice("abcde").clone()); assert_eq!(Slice("abcde"), Owned...
rust_cleaned_test_functions.jsonl/56867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 49791, 51973, 54742, 368, 341, 286, 2060, 10714, 10297, 57641, 2242, 486, 1499, 2895, 445, 13683, 450, 35674, 56476, 445, 13683, 450, 1827, 19982, 1423, 286, 2060, 10714, 10297, 57641, 2242, 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_slice_2() { let ss = "中华Việt Nam"; assert_eq!("华", ss.slice(3, 6)); assert_eq!("Việt Nam", ss.slice(6, 16)); assert_eq!("ab", "abc".slice(0, 2)); assert_eq!("bc", "abc".slice(1, 3)); assert_eq!("", "abc".slice(1, 1)); assert_eq!("中", ss.slice(0, 3)); assert_eq!...
rust_cleaned_test_functions.jsonl/11094
{ "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, 26488, 62, 17, 368, 341, 262, 1077, 10870, 284, 330, 100849, 35544, 124382, 29974, 3302, 262, 2060, 10714, 17223, 85361, 497, 10870, 14530, 7, 18, 11, 220, 21, 1106, 262, 2060, 10714, 17223, 35544...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_elst32() { let src_box = ElstBox { version: 0, flags: 0, entries: vec![ElstEntry { segment_duration: 634634, media_time: 0, media_rate: 1, media_rate_fraction: 0, }], }...
rust_cleaned_test_functions.jsonl/7266
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21602, 267, 18, 17, 368, 341, 286, 1077, 2286, 10194, 284, 3984, 267, 1611, 341, 310, 2319, 25, 220, 15, 345, 310, 8042, 25, 220, 15, 345, 310, 10695, 25, 7486, 20703, 6582, 267, 5874, 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_ld_rr() { let mut emu = MockEmulator::new().unwrap(); emu.cpu.pc = 0xC000; emu.wram[0] = 0x40; emu.wram[1] = 0x41; emu.wram[2] = 0x42; emu.wram[3] = 0x43; emu.wram[4] = 0x44; emu.wram[5] = 0x45; emu.wram[6] =...
rust_cleaned_test_functions.jsonl/51425
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 866 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50573, 56285, 368, 341, 286, 1077, 5206, 976, 84, 284, 14563, 2269, 10511, 486, 931, 1005, 15454, 1428, 1789, 286, 976, 84, 42387, 53335, 284, 220, 15, 12125, 15, 15, 15, 280, 286, 976, 84, 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_decode_lsls() { match decode_16(0x00a1) { Instruction::LSL_imm { params, thumb32 } => { assert!(params.rd == Reg::R1); assert!(params.rm == Reg::R4); assert!(params.shift_n == 2); assert!(params.setflags == SetFlags::NotInITBlock);...
rust_cleaned_test_functions.jsonl/64755
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 907, 3226, 82, 368, 341, 1066, 262, 2432, 16895, 62, 16, 21, 7, 15, 87, 15, 15, 64, 16, 8, 341, 286, 29051, 486, 7268, 43, 71370, 314, 3628, 11, 24050, 18, 17, 335, 589, 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...
2
#[test] fn test_read_table_with_width_prop() { let c = r#"<w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"> <w:tbl> <w:tblPr> <w:tblW w:w="9638" w:type="dxa"/> </w:tblPr> <w:tblGrid> <w:gridCol w:w="3212"/> <w:gridCol w:w="3213"/> ...
rust_cleaned_test_functions.jsonl/77561
{ "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, 6443, 5237, 6615, 7927, 21663, 368, 341, 286, 1077, 272, 284, 435, 2, 22476, 86, 25, 6062, 24967, 52882, 428, 1254, 1110, 56543, 5826, 6455, 63482, 2659, 14, 1158, 20660, 1014, 14, 17, 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_serde_default_config() { let cfg: TiKvConfig = toml::from_str("").unwrap(); assert_eq!(cfg, TiKvConfig::default()); let content = read_file_in_project_dir("integrations/config/test-default.toml"); let cfg: TiKvConfig = toml::from_str(&content).unwrap(); assert_eq!(cfg, TiKvC...
rust_cleaned_test_functions.jsonl/13539
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75861, 450, 9993, 5332, 368, 341, 262, 1077, 13286, 25, 22325, 42, 85, 2648, 284, 311, 1014, 486, 1499, 2895, 80821, 15454, 543, 262, 2060, 10714, 10297, 14072, 11, 22325, 42, 85, 2648, 486, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_json_viewmodel(){ let mut subject = MessagesCollector::default(); let mut commit: GitCommit = GitCommit::default(); commit.message.push(String::from("line 1")); commit.message.push(String::from("line 2")); commit.message.push(String::from("line 3")); ...
rust_cleaned_test_functions.jsonl/103957
{ "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, 9455, 7122, 2528, 3032, 286, 1077, 5206, 3832, 284, 26729, 53694, 486, 2258, 543, 286, 1077, 5206, 5266, 25, 21120, 33441, 284, 21120, 33441, 486, 2258, 543, 286, 5266, 6698, 2552, 2242, 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_unconstrained_5_bytes() { // from playground serialize_and_deserialize_uper( 48, &[0x28, 0x12, 0x34, 0x56, 0x78, 0x90], &Unconstrained { abc: BitVec::from_all_bytes(vec![0x12, 0x34, 0x56, 0x78, 0x90]), }, ); }
rust_cleaned_test_functions.jsonl/50177
{ "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, 4907, 443, 57727, 62, 20, 12524, 368, 341, 262, 442, 504, 41615, 198, 262, 24235, 8378, 15768, 9050, 62, 3466, 1006, 286, 220, 19, 23, 345, 286, 44590, 15, 87, 17, 23, 11, 220, 15, 87, 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_app_scopes() { let mut builder = App::builder(); builder.client_name("test").scopes(Scopes::all()); let app = builder.build().expect("Couldn't build App"); assert_eq!(app.scopes(), &Scopes::all()); }
rust_cleaned_test_functions.jsonl/51205
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8191, 13171, 18523, 368, 341, 286, 1077, 5206, 7363, 284, 1845, 486, 17850, 543, 286, 7363, 6581, 1269, 445, 1944, 1827, 80925, 7, 3326, 18523, 486, 541, 1423, 286, 1077, 906, 284, 7363, 13239, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rope_combine_leafs3() { let rope = Rope::new(String::from(""), 3); let rope = rope.concat(Rope::Leaf(Leaf::new(String::from("first"), 0, false))); let rope = rope.concat(Rope::Leaf(Leaf::new(String::from("可"), 0, true))); let rope = rope.co...
rust_cleaned_test_functions.jsonl/14036
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 414 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26608, 375, 72374, 38909, 82, 18, 368, 341, 286, 1077, 33420, 284, 97896, 486, 931, 2242, 486, 1499, 86076, 220, 18, 317, 286, 1077, 33420, 4035, 310, 33420, 15256, 2785, 2792, 486, 31461, 7, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_block_building() { // Add a handful of transactions let mut dummy_chain = DummyChainImpl::new(); let head_header = block::BlockHeader { height: 1, ..block::BlockHeader::default() }; dummy_chain.store_head_header(&head_header); let new_output = DummyOutputSet::empty() .with_...
rust_cleaned_test_functions.jsonl/17041
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7113, 82397, 368, 341, 197, 197, 322, 2691, 264, 22955, 315, 14131, 198, 197, 10217, 5206, 17292, 30583, 284, 50567, 18837, 9673, 486, 931, 543, 197, 10217, 1968, 8757, 284, 2504, 486, 4713, 4047,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_scientific_precision() { assert_eq!(to_string(-2.1474836480001e9), "-2147483648.0001001") }
rust_cleaned_test_functions.jsonl/77578
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 70 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 12295, 1086, 54618, 368, 341, 310, 2060, 10714, 10297, 983, 3904, 4080, 17, 13, 16, 19, 22, 19, 23, 18, 21, 19, 23, 15, 15, 15, 16, 68, 24, 701, 6523, 17, 16, 19, 22, 19, 23, 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
#[test] fn test_bool_op1() -> Result<(), Box<EvalAltResult>> { let engine = Engine::new(); assert_eq!(engine.eval::<bool>("true && (false || true)")?, true); assert_eq!(engine.eval::<bool>("true & (false | true)")?, true); Ok(()) }
rust_cleaned_test_functions.jsonl/57124
{ "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, 22159, 10287, 16, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 1077, 4712, 284, 8200, 486, 931, 1428, 262, 2060, 10714, 10297, 8512, 31710, 27638, 2641, 13211, 1866, 1009, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_step_1_rand() { let sigma = 500u32; for _ in 0..100 { let mut s = random_uniform_vec(1, sigma, 9); s.push(0); let mut sa = vec![0; s.len()]; let mut solver = Li2016Ro::init(&s, &mut sa, sigma);...
rust_cleaned_test_functions.jsonl/99437
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 524 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11946, 62, 16, 33864, 368, 341, 286, 1077, 20254, 284, 220, 20, 15, 15, 84, 18, 17, 280, 286, 369, 716, 304, 220, 15, 496, 16, 15, 15, 341, 310, 1077, 5206, 274, 284, 4194, 45066, 13251, 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...
3
#[test] fn test_naive_empty_image() { let mut img = vec![0; 0]; let ctx = RenderContext::new( Camera::new( CameraConfig { look_from: Vec3::new(0.0, 0.0, 0.0), look_at: Vec3::new(0.0, 0.0, -1.0), up: Vec3::new...
rust_cleaned_test_functions.jsonl/130024
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 511 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58631, 533, 15124, 4954, 368, 341, 286, 1077, 5206, 4964, 284, 7486, 20703, 15, 26, 220, 15, 935, 286, 1077, 5635, 284, 13848, 1972, 486, 931, 1006, 310, 14332, 486, 931, 1006, 394, 14332, 2648,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1