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_list_to_set() { let s = list_to_set(&vec![2, 2, 4]); assert_eq!(2, s.len()); let s = list_to_set(&vec![2, 3, 4]); assert_eq!(3, s.len()); let s = list_to_set(&vec![2, 2, 2]); assert_eq!(1, s.len()); }
rust_cleaned_test_functions.jsonl/64894
{ "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, 2019, 2346, 2602, 368, 341, 286, 1077, 274, 284, 1140, 2346, 2602, 2099, 4083, 20703, 17, 11, 220, 17, 11, 220, 19, 2558, 286, 2060, 10714, 10297, 17, 11, 274, 19406, 5231, 286, 1077, 274, 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_transactions_from_packets() { use solana_sdk::feature_set::FeatureSet; use solana_vote_program::vote_state::Vote; solana_logger::setup(); let mut vote_packet = Packet::default(); let vote_instruction = solana_vote_program::vote_instruction::vote( ...
rust_cleaned_test_functions.jsonl/53229
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1085 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68182, 5673, 63569, 368, 341, 286, 990, 2048, 3362, 61783, 486, 12753, 2602, 486, 13859, 1649, 280, 286, 990, 2048, 3362, 54360, 25096, 486, 29358, 4387, 486, 41412, 280, 286, 2048, 3362, 27413, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_zeros() { assert_decompressed_input_matches_output(include_bytes!("../../testdata/zeros.compressed"), include_bytes!("../../testdata/zeros"), 65536, 65536); }
rust_cleaned_test_functions.jsonl/26466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 199 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 83761, 368, 341, 220, 2060, 2259, 45703, 5898, 38344, 7645, 77863, 12524, 17223, 2748, 92425, 31082, 6264, 905, 14318, 4461, 14265, 2924, 12524, 17223, 2748, 92425, 31082, 6264, 4461, 14265, 220, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_product() { let two = Vec4::new(2.0, 2.0, 2.0, 2.0); assert_eq!(vec![two, two].iter().product::<Vec4>(), two * two); }
rust_cleaned_test_functions.jsonl/68892
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9840, 368, 341, 262, 1077, 1378, 284, 11312, 19, 486, 931, 7, 17, 13, 15, 11, 220, 17, 13, 15, 11, 220, 17, 13, 15, 11, 220, 17, 13, 15, 317, 262, 2060, 10714, 10297, 4083, 20703, 19789, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_leader_append_response() { let l = default_logger(); let mut tests = vec![ // Stale resp; no replies. (3, true, 0, 3, 0, 0, 0), // Denied resp; decrease next and send probing message. (2, true, 0, 2, 1, 1, 0), // Accepted resp; leader commits;...
rust_cleaned_test_functions.jsonl/19131
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1168 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79991, 26041, 9655, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 1066, 262, 1077, 5206, 7032, 284, 7486, 90515, 286, 442, 794, 1574, 9039, 26, 902, 30637, 624, 286, 320, 18, 11, 830, 11, 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...
8
#[test] fn test_storage_release() { let mut storage = Storage::<TestData1>::new(8); let alice_ref = storage.insert("alice", (1, 3.0, "Alice".to_string())); let bob_ref = storage.insert("bob", (2, 4.0, "Bob".to_string())); storage.release(alice_ref); assert_eq!(storage.g...
rust_cleaned_test_functions.jsonl/19588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 205 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23310, 24577, 368, 341, 286, 1077, 5206, 5819, 284, 14693, 27638, 83920, 16, 6831, 931, 7, 23, 626, 286, 1077, 70433, 7793, 284, 5819, 7030, 445, 63195, 497, 320, 16, 11, 220, 18, 13, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_file_style_with_color_only_has_style() { let config = integration_test_utils::make_config_from_args(&["--color-only", "--file-style", "red"]); let output = integration_test_utils::run_delta(GIT_DIFF_SINGLE_HUNK, &config); ansi_test_utils::assert_line_has_styl...
rust_cleaned_test_functions.jsonl/70083
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 15117, 6615, 6714, 18410, 21778, 15117, 368, 341, 286, 1077, 2193, 4035, 310, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 1183, 313, 3423, 15382, 497, 14482, 1192, 11297, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_java_jar() { assert_eq!( parse_java_args(&["-jar", "test.jar", "arg1", "arg2"]), JavaArgs { mode: ExecutionMode::JarFile { file: "test.jar".to_string(), args: vec!["arg1".to_string(), "arg2".to_string()], }, ...
rust_cleaned_test_functions.jsonl/107285
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 77323, 5374, 277, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 77323, 8384, 2099, 1183, 12, 19033, 497, 330, 1944, 27628, 497, 330, 858, 16, 497, 330, 858, 17, 46442, 286, 7943, 4117, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_as_height_indexed_pool() { run_persistent_pool_test("test_as_height_indexed_pool", |config, log| { let rb_ops = random_beacon_ops(); let fz_ops = finalization_ops(); let nz_ops = notarization_ops(); let bp_ops = block_proposal_ops(); ...
rust_cleaned_test_functions.jsonl/24992
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1428 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 9561, 3560, 291, 15709, 368, 341, 286, 1598, 620, 13931, 15709, 4452, 445, 1944, 11898, 9561, 3560, 291, 15709, 497, 760, 1676, 11, 1487, 91, 341, 310, 1077, 18717, 21959, 284, 4194, 880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_template_1() { let lorem = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed eget nunc rhoncus velit pretium viverra. Pellentesque tempor lacus non diam convallis fermentum. Cras eu purus et massa tincidunt rhoncus eget ut lectus. Nulla lacus lorem, conseq...
rust_cleaned_test_functions.jsonl/58308
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8693, 62, 16, 368, 341, 262, 1077, 92385, 284, 330, 32783, 26342, 23655, 2444, 27212, 11, 35140, 57924, 30060, 624, 286, 35278, 69663, 308, 1347, 21669, 263, 56340, 71548, 4410, 2356, 17950, 13886, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_valid_s3_get_bucket_acl() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "s3-get-bucket-acl.xml", ); let mock = MockRequestDispatcher::with_status(200).with_body(&mock_response); let client ...
rust_cleaned_test_functions.jsonl/29196
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 643, 18, 3062, 38749, 63692, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 330, 82, 18, 22491, 145...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_alias_push_down_optimizer() -> Result<()> { use pretty_assertions::assert_eq; use crate::optimizers::*; use crate::sql::*; #[allow(dead_code)] struct Test { name: &'static str, query: &'static str, expect: &'static str, } let tests = ...
rust_cleaned_test_functions.jsonl/74981
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1487 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 35947, 14218, 13998, 68168, 368, 1464, 5714, 71698, 341, 262, 990, 5020, 16553, 908, 486, 2207, 10714, 401, 262, 990, 17717, 486, 19133, 12230, 56162, 262, 990, 17717, 486, 3544, 79304, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_monitor_update_raa_while_paused() { // Tests handling of an RAA while monitor updating has already been marked failed. // Backported from chanmon_fail_consistency fuzz tests as this used to be broken. let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfg...
rust_cleaned_test_functions.jsonl/120458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2007 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40112, 8882, 59969, 64, 86069, 55475, 2591, 368, 341, 197, 322, 20150, 11589, 315, 458, 431, 6029, 1393, 8718, 21010, 702, 2669, 1012, 12864, 4641, 624, 197, 322, 6841, 35526, 504, 26023, 1645, 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_pretend_executable_with_absolute_path() -> Result<(), Box<dyn std::error::Error>> { let executable_name = if cfg!(windows) { "test_randomtemp_absolute.exe" } else { "test_randomtemp_absolute" }; let tmp_dir_1 = TempDir::new()?; let...
rust_cleaned_test_functions.jsonl/19006
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 633 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 2122, 408, 18430, 5922, 6615, 50874, 2638, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 32156, 1269, 284, 421, 13286, 10297, 27077, 8, 341, 310, 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...
8
#[test] fn test_qstring_and_qbytearray() { let qba1: QByteArray = (b"hello" as &[u8]).into(); let qba2: QByteArray = "hello".into(); let s: String = "hello".into(); let qba3: QByteArray = s.clone().into(); assert_eq!(qba1.to_string(), "hello"); assert_eq!(qba2.to...
rust_cleaned_test_functions.jsonl/45529
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8976, 917, 8378, 8976, 3782, 1653, 368, 341, 286, 1077, 2804, 4645, 16, 25, 49399, 284, 320, 65, 1, 14990, 1, 438, 44590, 84, 23, 10697, 18122, 543, 286, 1077, 2804, 4645, 17, 25, 49399, 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_status_todo_and_blocked() { let dir = tempdir().unwrap(); let repo = init_repo_with_tasks( dir.path(), &[ Task::new(TaskStatus::ToDo, "Foo"), Task::new(TaskStatus::Blocked, "Bar"), ], ); check_cur...
rust_cleaned_test_functions.jsonl/36278
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 268 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4773, 87686, 8378, 89223, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 15867, 284, 2930, 37784, 6615, 32823, 1006, 310, 5419, 3875, 3148, 310, 609, 9640, 394, 5430, 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_from_config_fancy() { let mut c = Config::with_none(); c.icons = Some(Icons { when: None, theme: Some(IconTheme::Fancy), separator: None, }); assert_eq!(Some(IconTheme::Fancy), IconTheme::from_config(&c)); }
rust_cleaned_test_functions.jsonl/17367
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 5332, 761, 6572, 368, 341, 286, 1077, 5206, 272, 284, 5532, 486, 4197, 31488, 543, 286, 272, 78874, 284, 4329, 35066, 341, 310, 979, 25, 2240, 345, 310, 6912, 25, 4329, 7, 4395, 12594, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shr_reg_imm() { assert_emit!(0x48, 0xC1, 0xE8, 0x02; emit_shr_reg_imm(1, RAX, 2)); assert_emit!(0x48, 0xC1, 0xE8, 0x09; emit_shr_reg_imm(1, RAX, 9)); assert_emit!(0x49, 0xC1, 0xEA, 0x09; emit_shr_reg_imm(1, R10, 9)); assert_emit!(0x49, 0xC1, 0xEF, 0x09; emit_shr_r...
rust_cleaned_test_functions.jsonl/85467
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 384 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3712, 81, 4920, 71370, 368, 341, 286, 2060, 69082, 10297, 15, 87, 19, 23, 11, 220, 15, 12125, 16, 11, 220, 15, 12606, 23, 11, 220, 15, 87, 15, 17, 26, 16691, 3712, 81, 4920, 71370, 7, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_regge6j() { let tj_max = 15; let mut map = HashMap::new(); let n = CanonicalRegge6j::len(tj_max); let mut vec = vec![Default::default(); n]; internal::get_6tjs(tj_max, &mut |w6j| { let value = w6j.value(); let regge = CanonicalRegge6j::from(w6j); asser...
rust_cleaned_test_functions.jsonl/80987
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4920, 709, 21, 73, 368, 341, 262, 1077, 65254, 6345, 284, 220, 16, 20, 280, 262, 1077, 5206, 2415, 284, 10528, 486, 931, 543, 262, 1077, 308, 284, 95177, 3477, 709, 21, 73, 486, 2892, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fuzz_shrinking() { let cfg = Config::istanbul(); let compiled = COMPILED.find("GreeterTest").expect("could not find contract"); let vicinity = new_vicinity(); let backend = new_backend(&vicinity, Default::default()); let precompiles = ...
rust_cleaned_test_functions.jsonl/71187
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1031 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 8889, 3712, 81, 15736, 368, 341, 310, 1077, 13286, 284, 5532, 486, 8944, 16110, 543, 310, 1077, 19697, 284, 7682, 1893, 13639, 2658, 445, 64747, 1404, 2271, 1827, 17119, 445, 28077, 537, 1477...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_solutions() { assert_eq!( sum_fuels(&get_puzzle_string(1).unwrap(), Box::new(fuel)), 3301059 ); assert_eq!( sum_fuels( &get_puzzle_string(1).unwrap(), Box::new(fuel_with_dividends) ), ...
rust_cleaned_test_functions.jsonl/60147
{ "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, 643, 20201, 368, 341, 286, 2060, 10714, 33673, 310, 2629, 36467, 2010, 2099, 455, 620, 14945, 3904, 7, 16, 568, 15454, 1507, 8261, 486, 931, 955, 4000, 6965, 310, 220, 18, 18, 15, 16, 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
#[test] fn test_h2_head_empty() { let openssl = ssl_acceptor().unwrap(); let mut srv = TestServer::new(move || { openssl .clone() .map_err(|e| println!("Openssl error: {}", e)) .and_then( HttpService::build() .finish(|_| ok:...
rust_cleaned_test_functions.jsonl/102551
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 458 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 17, 13138, 15124, 368, 341, 262, 1077, 80733, 284, 33537, 35728, 269, 1005, 15454, 543, 262, 1077, 5206, 43578, 284, 3393, 5475, 486, 931, 34081, 1369, 341, 286, 80733, 198, 310, 659, 19982,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_datetime_full_from_str() { assert_eq!(Value::DateTime(DateTime::new(Date::new_str("2012", "01", "03"), Some(Time::new_str( "03", "30", "30", Some("3030"), Some(TimeOffset::Time(TimeOffsetAmount::new_str( "+", "07", "45" ))) )))), Value::datetime_full_from_str("...
rust_cleaned_test_functions.jsonl/86231
{ "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, 8657, 28943, 16372, 5673, 2895, 368, 341, 262, 2060, 10714, 10297, 1130, 486, 7689, 32083, 486, 931, 19987, 486, 931, 2895, 445, 17, 15, 16, 17, 497, 330, 15, 16, 497, 330, 15, 18, 3975, 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_load() { let mut test_file_path = fixture_path("zips"); test_file_path.push("test-file.zip"); let test_file = File::open(test_file_path).expect("Couldn't open test file"); let zip = Zip::load(test_file).expect("Failed to load zip file"); assert_eq!(zip.co...
rust_cleaned_test_functions.jsonl/100431
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 368, 341, 286, 1077, 5206, 1273, 2458, 2638, 284, 12507, 2638, 445, 89, 3077, 797, 286, 1273, 2458, 2638, 2552, 445, 1944, 14203, 20991, 797, 286, 1077, 1273, 2458, 284, 2887, 486, 2508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_complex_program_output() { let mut processor = processor_stub(); processor.json = r#"["a", 2, true, null, {"hello":"world"},{"hello":2}]"#.to_owned(); processor.pretty_output = true; processor.program = r#"tostream ...
rust_cleaned_test_functions.jsonl/90638
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 855 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41522, 25096, 7645, 368, 341, 310, 1077, 5206, 17654, 284, 17654, 62781, 543, 310, 17654, 4323, 284, 435, 55543, 1183, 64, 497, 220, 17, 11, 830, 11, 845, 11, 5212, 14990, 3252, 14615, 36509, 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_cookie_domain_string_is_added() { let cookie = CookieOptions { cookie_name: "".to_string(), cookie_value: None, max_age: None, domain: Some("domain.com".to_string()), path: None, secure: false, http_only:...
rust_cleaned_test_functions.jsonl/101598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38663, 20111, 3904, 6892, 37653, 368, 341, 286, 1077, 12544, 284, 24356, 3798, 341, 310, 12544, 1269, 25, 44907, 983, 3904, 3148, 310, 12544, 3142, 25, 2240, 345, 310, 1932, 32053, 25, 2240, 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_subnet_id_from_topic_hash() { let topic_hash = TopicHash::from_raw("/eth2/e1925f3b/beacon_block/ssz_snappy"); assert!(subnet_id_from_topic_hash(&topic_hash).is_none()); let topic_hash = TopicHash::from_raw("/eth2/e1925f3b/beacon_attestation_42/ssz_snappy"); asser...
rust_cleaned_test_functions.jsonl/131037
{ "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, 95681, 842, 5673, 31414, 8950, 368, 341, 286, 1077, 8544, 8950, 284, 32911, 6370, 486, 1499, 16067, 4283, 769, 17, 16546, 16, 24, 17, 20, 69, 18, 65, 58689, 22379, 7113, 87602, 89, 28022, 11144,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_shuffle_rev() { let shuffles = DATA.parse::<Techniques>().unwrap(); const SHUFFLES: usize = 1; let deck = (0..SHUFFLES).fold((0..10_007).collect::<Vec<usize>>(), |acc, _| shuffles.shuffle(&acc)); assert_eq!( (0..SHUFFLES).fold(2019, |index, _| shuffle_index_rev(10_007, ind...
rust_cleaned_test_functions.jsonl/104853
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73484, 38082, 368, 341, 10217, 557, 77453, 284, 14112, 4632, 27638, 28256, 8303, 10483, 15454, 1428, 4777, 6434, 8825, 14017, 25, 22301, 284, 220, 16, 401, 10217, 9530, 284, 320, 15, 496, 8590, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_match_word() { assert_eq!(match_word(a("fates"), a("wrung")), [NoMatch; 5]); assert_eq!( match_word(a("fates"), a("facts")), [Matched, Matched, NoMatch, WrongPosition, Matched] ); assert_eq!( match_word(a("phone"), a("photo")), ...
rust_cleaned_test_functions.jsonl/1508
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 439 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 13533, 368, 341, 286, 2060, 10714, 10297, 6347, 13533, 2877, 445, 69, 973, 3975, 264, 445, 18718, 2185, 35674, 508, 2753, 8331, 26, 220, 20, 2558, 286, 2060, 10714, 33673, 310, 2432, 13533,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_string_lit() { assert_eq!( parse_literal(r#""my string""#.into()).unwrap().1.kind, LiteralValue::String("my string".into()).into_node_kind() ); assert_eq!( parse_literal(r#"'my string'"#.into()).unwrap().1.kind, LiteralValue...
rust_cleaned_test_functions.jsonl/77768
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 940 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 98399, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 34100, 2601, 2, 3014, 2408, 914, 3014, 87846, 18122, 6011, 15454, 1005, 16, 36632, 345, 310, 49674, 1130, 486, 703, 445, 2408, 914, 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_strip_enum_prefix() { assert_eq!(strip_enum_prefix("Foo", "FooBar"), "Bar"); assert_eq!(strip_enum_prefix("Foo", "Foobar"), "Foobar"); assert_eq!(strip_enum_prefix("Foo", "Foo"), "Foo"); assert_eq!(strip_enum_prefix("Foo", "Bar"), "Bar"); assert_eq!(strip_...
rust_cleaned_test_functions.jsonl/10711
{ "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, 66130, 31054, 13974, 368, 341, 286, 2060, 10714, 10297, 13105, 31054, 13974, 445, 40923, 497, 330, 40923, 3428, 3975, 330, 3428, 797, 286, 2060, 10714, 10297, 13105, 31054, 13974, 445, 40923, 497, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_date_from_weekday_of_month_opt() { let ymwd = |y,m,w,n| NaiveDate::from_weekday_of_month_opt(y,m,w,n); assert_eq!(ymwd(2018, 8, Weekday::Tue, 0), None); assert_eq!(ymwd(2018, 8, Weekday::Wed, 1), Some(NaiveDate::from_ymd(2018, 8, 1))); assert_eq!(ymwd(2018, 8, Wee...
rust_cleaned_test_functions.jsonl/4761
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 631 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4164, 5673, 31277, 1292, 3575, 18933, 15032, 368, 341, 286, 1077, 379, 76, 6377, 284, 760, 88, 13086, 24558, 10128, 91, 12812, 533, 1916, 486, 1499, 31277, 1292, 3575, 18933, 15032, 7021, 13086, 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_jis0208_encode_all() { let input = include_str!("test_data/jis0208_out.txt"); let expectation = include_bytes!("test_data/jis0208_out_ref.txt"); let (cow, encoding, had_errors) = EUC_JP.encode(input); assert!(!had_errors, "Should not have had errors."); as...
rust_cleaned_test_functions.jsonl/15058
{ "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, 5374, 285, 15, 17, 15, 23, 11224, 5705, 368, 341, 286, 1077, 1946, 284, 2924, 2895, 17223, 1944, 1769, 4437, 285, 15, 17, 15, 23, 6068, 3909, 797, 286, 1077, 30193, 284, 2924, 12524, 17223, 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_list_builder() { let values_builder = PrimitiveBuilder::<Int32Type>::new(10); let mut builder = ListPrimitiveChunkedBuilder::new("a", values_builder, 10); // create a series containing two chunks let mut s1 = Int32Chunked::new_from_slice("a", &[1, 2, 3]).into_ser...
rust_cleaned_test_functions.jsonl/45658
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 537 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 28532, 368, 341, 286, 1077, 2750, 28532, 284, 51460, 3297, 27638, 1072, 18, 17, 929, 6831, 931, 7, 16, 15, 317, 286, 1077, 5206, 7363, 284, 1759, 33313, 28304, 291, 3297, 486, 931, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_win_escape_char() { assert_eq!( win_escape_char(r#"F:\^^Users^\Valarauca"#).unwrap(), r#"F:\^Users\Valarauca"# ); }
rust_cleaned_test_functions.jsonl/84135
{ "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, 25672, 21832, 9232, 368, 341, 262, 2060, 10714, 33673, 286, 3164, 21832, 9232, 2601, 55543, 37, 7190, 21876, 7137, 24884, 2208, 277, 2863, 924, 57676, 568, 15454, 3148, 286, 435, 55543, 37, 7190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_p2pkh_from_key() { let key = hex_key!("048d5141948c1702e8c95f438815794b87f706a8d4cd2bffad1dc1570971032c9b6042a0431ded2478b5c9cf2d81c124a5e57347a3c63ef0e7716cf54d613ba183"); let addr = Address::p2pkh(&key, Digibyte); assert_eq!(&addr.to_string(), "1QJVDzdqb1VpbDK7uDeyVXy9m...
rust_cleaned_test_functions.jsonl/63227
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 368 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 17, 20819, 71, 5673, 3097, 368, 341, 286, 1077, 1376, 284, 12371, 3097, 17223, 15, 19, 23, 67, 20, 16, 19, 16, 24, 19, 23, 66, 16, 22, 15, 17, 68, 23, 66, 24, 20, 69, 19, 18, 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_unixtime_to_year() { for epoch in (1..1000_000_000).step_by(1000) { let ymd = unixtime_to_ymd(epoch); let y = unixtime_to_year(epoch); assert_eq!(y, ymd.y); } }
rust_cleaned_test_functions.jsonl/122950
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 80572, 1678, 2346, 14645, 368, 341, 286, 369, 16342, 304, 320, 16, 496, 16, 15, 15, 15, 62, 15, 15, 15, 62, 15, 15, 15, 568, 9520, 3710, 7, 16, 15, 15, 15, 8, 341, 310, 1077, 379, 2277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unqualified_address_from_verkey_success() { let vk_bytes = rand_bytes(VERKEY_LEN); let verkey = vk_bytes.into_base58(); let address = unqualified_address_from_verkey(&verkey).unwrap(); let address_bytes = address.from_base58().unwrap(); assert!(address.le...
rust_cleaned_test_functions.jsonl/72536
{ "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, 4907, 36335, 6744, 5673, 26042, 792, 18632, 368, 341, 286, 1077, 34283, 12524, 284, 10382, 12524, 7, 3763, 4784, 15536, 317, 286, 1077, 2739, 792, 284, 34283, 12524, 39860, 7651, 20, 23, 543, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_read_scion_json() { // Delete scion.json before the test let path = Path::new("scion.json"); let _r = std::fs::remove_file(path); let config = ScionConfigReader::read_or_create_default_scion_json(); assert!(config.is_ok()); }
rust_cleaned_test_functions.jsonl/100063
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 13171, 290, 9455, 368, 341, 286, 442, 10428, 1136, 290, 4323, 1573, 279, 1273, 198, 286, 1077, 1815, 284, 7933, 486, 931, 445, 2388, 290, 4323, 797, 286, 1077, 716, 81, 284, 1460, 486, 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_adjacently_b_roundtrip() { let v = EnumStructAdjacently::VariantB { foo: 1, bar: 2, }; test_roundtrip(v); }
rust_cleaned_test_functions.jsonl/110488
{ "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, 42559, 580, 4402, 880, 29896, 32981, 368, 341, 262, 1077, 348, 284, 14086, 9422, 54866, 580, 4402, 486, 20746, 33, 341, 286, 15229, 25, 220, 16, 345, 286, 3619, 25, 220, 17, 345, 262, 2605, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_cursor_movement() { let mut editor = Editor::new(Rc::new(RefCell::new(Buffer::new(1)))); editor.buffer.borrow_mut().splice(0..0, "abc"); editor.buffer.borrow_mut().splice(3..3, "\n"); editor.buffer.borrow_mut().splice(4..4, "\ndef"); assert_eq!(render_sele...
rust_cleaned_test_functions.jsonl/123911
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28601, 70325, 368, 341, 286, 1077, 5206, 6440, 284, 12580, 486, 931, 2785, 66, 486, 931, 7, 3945, 3599, 486, 931, 55574, 486, 931, 7, 16, 38776, 286, 6440, 24465, 83640, 29523, 1005, 94960, 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...
5
#[test] fn test_ransac_plane_par() { let buffer = setup_point_cloud(); let (_plane, indices) = ransac_plane_par(&buffer, 0.1, 300); assert!(indices.len() == 1600); for i in 0..2000 { if !(i % 5 == 3) { assert!(indices.contains(&i)); } ...
rust_cleaned_test_functions.jsonl/40357
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 180 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 596, 580, 46023, 22654, 368, 341, 286, 1077, 4147, 284, 6505, 6085, 37356, 543, 286, 1077, 5453, 19025, 11, 14937, 8, 284, 435, 596, 580, 46023, 22654, 2099, 7573, 11, 220, 15, 13, 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...
3
#[test] fn test_contains_binary() { let data = vec![ Some(vec![Some(b"a"), Some(b"b"), None]), Some(vec![Some(b"a"), Some(b"b"), None]), Some(vec![Some(b"a"), Some(b"b"), None]), None, ]; let values = BinaryArray::<i32>::from(&[Some(b"a"), Some(b"c"), None, Some(b"a")...
rust_cleaned_test_functions.jsonl/96434
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 324 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63598, 31761, 368, 341, 262, 1077, 821, 284, 7486, 90515, 286, 4329, 25592, 20703, 8373, 1883, 56693, 3975, 4329, 1883, 1, 65, 3975, 2240, 17036, 286, 4329, 25592, 20703, 8373, 1883, 56693, 3975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_first_style() { let minus_line_from_unconfigured_git = "\x1b[31m-____\x1b[m\n"; let style = parse_first_style(minus_line_from_unconfigured_git); let expected_style = ansi_term::Style { foreground: Some(ansi_term::Color::Red), ..ansi_term::Sty...
rust_cleaned_test_functions.jsonl/49547
{ "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, 21039, 12978, 15117, 368, 341, 286, 1077, 27283, 6528, 5673, 4907, 81443, 68801, 284, 2917, 87, 16, 65, 58, 18, 16, 76, 12, 2130, 59, 87, 16, 65, 12065, 1699, 876, 286, 1077, 1707, 284, 4715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_container_pipe_size() { #[derive(Debug)] struct TestData<'a> { param: &'a str, result: Result<i32>, } let tests = &[ TestData { param: "", result: Err(anyhow!(ERR_INVALID_CONTAINER_PIPE_SIZE)...
rust_cleaned_test_functions.jsonl/119145
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1658 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 15847, 41862, 2368, 368, 341, 286, 11506, 27098, 42618, 5563, 286, 2036, 93200, 18291, 64, 29, 341, 310, 1685, 25, 30136, 64, 607, 345, 310, 1102, 25, 5714, 21897, 18, 17, 12520, 286, 555,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_continuation_pop_empty_after_insert_empty() { let continuations = Continuations::new(); continuations.insert_remaining_packets(&PduId::GetElementAttributes, vec![]); assert!(continuations.pop_packet(&PduId::GetElementAttributes).is_none()); }
rust_cleaned_test_functions.jsonl/21851
{ "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, 68948, 4002, 17061, 15124, 19844, 17678, 15124, 368, 341, 286, 1077, 16122, 804, 284, 20297, 37070, 486, 931, 543, 286, 16122, 804, 7030, 59244, 63569, 2099, 47, 1054, 764, 486, 1949, 1691, 10516, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_test_environment() { let env_temp_dir = temp_dir(); let mut previous_folders: Vec<PathBuf> = Vec::new(); let folder_entries = read_dir(&env_temp_dir) .expect("Error getting entries from system default temp folder."); for entry in folder_entries ...
rust_cleaned_test_functions.jsonl/129708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 736 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 4452, 51774, 368, 341, 286, 1077, 6105, 11771, 4334, 284, 2730, 4334, 543, 286, 1077, 5206, 3681, 83928, 25, 11312, 82883, 15064, 29, 284, 11312, 486, 931, 543, 286, 1077, 8527, 26092, 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...
4
#[test] fn test_push_bytes() { let mut s = String::from_str("ABC"); unsafe { let mv = s.as_mut_vec(); mv.push_all(&[b'D']); } assert_eq!(s, "ABCD"); }
rust_cleaned_test_functions.jsonl/50
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 12524, 368, 341, 286, 1077, 5206, 274, 284, 923, 486, 1499, 2895, 445, 25411, 797, 286, 19860, 341, 310, 1077, 23164, 284, 274, 5357, 29523, 13251, 543, 310, 23164, 2552, 5705, 2099, 58, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_header_complex() { let header = [0x42, 0xFE, 0x02, 0x00, 0x02, 0x04, 0x08, 0x10]; let obtained = read_header(&mut &header[..]).unwrap(); let expected = DataFrameHeader { flags: DataFrameFlags::RSV1, opcode: 2, mask: Some([2, 4, 8, 16]), len: 512, }; assert_eq!(obtained...
rust_cleaned_test_functions.jsonl/31068
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 156 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 8757, 41522, 368, 341, 197, 10217, 4247, 284, 508, 15, 87, 19, 17, 11, 220, 15, 41381, 11, 220, 15, 87, 15, 17, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 15, 17, 11, 220, 15, 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_dead_fork_entry_deserialize_failure() { // Insert entry that causes deserialization failure let res = check_dead_fork(|_, bank| { let gibberish = [0xa5u8; SIZE_OF_DATA_SHRED_PAYLOAD]; let parent_offset = bank.slot() - bank.parent_slot(); let sh...
rust_cleaned_test_functions.jsonl/73263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 521 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53427, 761, 669, 9078, 15768, 9050, 43618, 368, 341, 286, 442, 17101, 4343, 429, 11137, 939, 50563, 7901, 198, 286, 1077, 592, 284, 1779, 53427, 761, 669, 22428, 6878, 6073, 91, 341, 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...
1
#[test] fn test_count_bits_slice() { assert_eq!(0, count_set_bits(&[0b00000000])); assert_eq!(8, count_set_bits(&[0b11111111])); assert_eq!(3, count_set_bits(&[0b00001101])); assert_eq!(6, count_set_bits(&[0b01001001, 0b01010010])); }
rust_cleaned_test_functions.jsonl/6788
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3180, 20034, 26488, 368, 341, 286, 2060, 10714, 10297, 15, 11, 1760, 2602, 20034, 2099, 58, 15, 65, 15, 15, 15, 15, 15, 15, 15, 15, 14382, 286, 2060, 10714, 10297, 23, 11, 1760, 2602, 20034, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rand_alphanumerics_impl() { let s = rand_alphanumerics_impl(&|| 14134, 5); assert_eq!("67676", s); }
rust_cleaned_test_functions.jsonl/49246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33864, 8418, 9943, 3389, 1211, 21007, 368, 341, 286, 1077, 274, 284, 10382, 8418, 9943, 3389, 1211, 21007, 2099, 8484, 220, 16, 19, 16, 18, 19, 11, 220, 20, 317, 286, 2060, 10714, 17223, 21, 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 ]
2
#[test] fn test_get_dkg_summary_block() { ic_test_utilities::artifact_pool_config::with_test_pool_config(|pool_config| { let interval_length = 3; let Dependencies { mut pool, .. } = dependencies_with_subnet_params( pool_config, subnet_test_id(0), ...
rust_cleaned_test_functions.jsonl/107787
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1057 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 814, 7351, 27251, 7113, 368, 341, 286, 17902, 4452, 94044, 486, 63722, 15709, 5332, 486, 4197, 4452, 15709, 5332, 22428, 10285, 5332, 91, 341, 310, 1077, 9873, 5118, 284, 220, 18, 280, 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_i8() { let test = assert_de_tokens_error::<i8>; // from signed test( &[Token::I16(-129)], "invalid value: integer `-129`, expected i8", ); test( &[Token::I32(-129)], "invalid value: integer `-129`, expected i8", ); test( &[Toke...
rust_cleaned_test_functions.jsonl/129492
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 559 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 23, 368, 341, 262, 1077, 1273, 284, 2060, 2259, 28838, 4096, 27638, 72, 23, 19421, 262, 442, 504, 8499, 198, 262, 1273, 1006, 286, 44590, 3323, 486, 40, 16, 21, 4080, 16, 17, 24, 30749, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_uncleaned_slots_and_collect_pubkeys() { solana_logger::setup(); let db = AccountsDb::new(Vec::new(), &ClusterType::Development); let slot1 = 11; let slot2 = 222; let slot3 = 3333; let pubkey1 = Pubkey::new_unique(); let pubkey2 = P...
rust_cleaned_test_functions.jsonl/1436
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1042 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 76576, 2675, 291, 54161, 8378, 68140, 34014, 10563, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 2927, 284, 40655, 7994, 486, 931, 49923, 486, 931, 1507, 609, 28678, 929, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generator() { let generator = Affine::prime_subgroup_generator(); assert!(generator.is_on_curve()); assert!(generator.is_in_correct_subgroup_assuming_on_curve()); }
rust_cleaned_test_functions.jsonl/121771
{ "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, 25813, 368, 341, 262, 1077, 13823, 284, 9748, 482, 486, 32338, 5228, 4074, 25813, 543, 262, 2060, 10297, 35851, 2079, 4470, 43407, 1423, 262, 2060, 10297, 35851, 2079, 1243, 31550, 5228, 4074, 12083...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_tay() { let mut r = Register::new(); r.set_A(0xFF); tay(&mut r); assert_eq!(r.get_Y(),0xFF) }
rust_cleaned_test_functions.jsonl/14189
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 352, 368, 341, 262, 1077, 5206, 435, 284, 8451, 486, 931, 543, 262, 435, 980, 1566, 7, 15, 9264, 317, 262, 259, 352, 2099, 6984, 435, 317, 262, 2060, 10714, 10297, 81, 670, 10626, 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
#[test] fn test_superfluous_open() { err( "class A { @open fun f() {} }", pos(1, 17), SemError::SuperfluousOpen("f".into()), ); }
rust_cleaned_test_functions.jsonl/128702
{ "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, 38886, 1489, 9193, 11311, 368, 341, 286, 1848, 1006, 310, 330, 1040, 362, 314, 569, 2508, 2464, 282, 368, 4687, 335, 756, 310, 1133, 7, 16, 11, 220, 16, 22, 1326, 310, 14248, 1454, 486, 19284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_semicolon() { assert_eq!(semicolon(";"), Ok(("", ";"))); assert_eq!( semicolon("a"), Err(NomErr::Error(VerboseError { errors: vec![ ("a", VerboseErrorKind::Nom(ErrorKind::Tag)), ("a", VerboseErrorKind...
rust_cleaned_test_functions.jsonl/17449
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3453, 21220, 72269, 368, 341, 286, 2060, 10714, 10297, 44761, 61064, 3975, 7622, 7, 19814, 18963, 17621, 286, 2060, 10714, 33673, 310, 5234, 38517, 445, 64, 4461, 310, 15495, 8204, 316, 7747, 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_datelike_methods() -> Result<()> { let s = Series::new("foo", &[1, 2, 3]); let s = s.cast(&DataType::Datetime(TimeUnit::Nanoseconds, None))?; let out = s.subtract(&s)?; assert!(matches!( out.dtype(), DataType::Duration(TimeUnit::Nanosecond...
rust_cleaned_test_functions.jsonl/8717
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 240 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15353, 301, 2970, 36084, 368, 1464, 5714, 71698, 341, 286, 1077, 274, 284, 11131, 486, 931, 445, 7975, 497, 44590, 16, 11, 220, 17, 11, 220, 18, 2558, 286, 1077, 274, 284, 274, 35091, 2099, 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_verify_post_dynamic_to_fixed_input() { let proof_a = [0; 192].to_vec(); let proof_b = [1; 192].to_vec(); let comm_r_a = [0; 32]; let comm_r_b = [1; 32]; let comm_r_c = [2; 32]; let comm_r_d = [3; 32]; let dynamic_a = VerifyPoStDynamicSect...
rust_cleaned_test_functions.jsonl/6742
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35638, 6333, 45992, 2346, 37839, 5898, 368, 341, 286, 1077, 11064, 4306, 284, 508, 15, 26, 220, 16, 24, 17, 936, 983, 13251, 543, 286, 1077, 11064, 880, 284, 508, 16, 26, 220, 16, 24, 17, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hex_numbers_2() { let s = to_chars("0xdf 0xZZ"); let cur = &mut 0; expect_next_token(&s, cur, to_hex_number("0xdf")); expect_next_token(&s, cur, Token::Illegal); }
rust_cleaned_test_functions.jsonl/21029
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32655, 32964, 62, 17, 368, 341, 286, 1077, 274, 284, 311, 37418, 445, 15, 53833, 220, 15, 87, 33536, 797, 286, 1077, 2847, 284, 609, 6984, 220, 15, 280, 286, 1720, 11257, 6458, 2099, 82, 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_range_nth() { assert_eq!((10..15).nth(0), Some(10)); assert_eq!((10..15).nth(1), Some(11)); assert_eq!((10..15).nth(4), Some(14)); assert_eq!((10..15).nth(5), None); let mut r = 10..20; assert_eq!(r.nth(2), Some(12)); assert_eq!(r, 13..20); assert_eq!(r.nth(2), S...
rust_cleaned_test_functions.jsonl/54151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 223 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 78342, 368, 341, 262, 2060, 10714, 0, 1188, 16, 15, 496, 16, 20, 568, 51738, 7, 15, 701, 4329, 7, 16, 15, 1106, 262, 2060, 10714, 0, 1188, 16, 15, 496, 16, 20, 568, 51738, 7, 16, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_address_space_base() { let mut file = TempFile::new().unwrap().into_file(); let sample_buf = &[1, 2, 3, 4, 5]; assert!(file.write_all(sample_buf).is_ok()); file.set_len(0x10000).unwrap(); let reg = Arc::new( AddressSpaceRegion::create_d...
rust_cleaned_test_functions.jsonl/75648
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 6744, 14663, 7651, 368, 341, 286, 1077, 5206, 1034, 284, 19944, 1703, 486, 931, 1005, 15454, 1005, 18122, 2458, 543, 286, 1077, 6077, 10363, 284, 44590, 16, 11, 220, 17, 11, 220, 18, 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_disruptive_follower_pre_vote() { setup_for_test(); let mut n1 = new_test_raft_with_prevote(1, vec![1, 2, 3], 10, 1, new_storage(), true); let mut n2 = new_test_raft_with_prevote(2, vec![1, 2, 3], 10, 1, new_storage(), true); let mut n3 = new_test_raft_with_prevote(3, vec![1, 2, 3...
rust_cleaned_test_functions.jsonl/107131
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 835 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9932, 6585, 533, 761, 29034, 10442, 54360, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 5206, 308, 16, 284, 501, 4452, 62, 2944, 6615, 25566, 1272, 7, 16, 11, 7486, 20703, 16, 11, 220, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_metadata_tf2x_scalar_tensor_without_dataclass() { let md = pb::SummaryMetadata { plugin_data: Some(PluginData { plugin_name: plugin_names::SCALARS.to_string(), content: Bytes::from_static(b"preserved!"), ..De...
rust_cleaned_test_functions.jsonl/6192
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 731 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22220, 47719, 17, 87, 41652, 23188, 39904, 1769, 1040, 368, 341, 310, 1077, 10688, 284, 17310, 486, 19237, 14610, 341, 394, 9006, 1769, 25, 4329, 7, 11546, 1043, 341, 503, 9006, 1269, 25, 9006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_arithmetic_mul_div() -> Result<()> { let test_suite = vec![ Test { name: "f(x) = -5 * x", expr: Expression::create_binary_expression("*", vec![lit(-5_i8), col("x")]), column: "x", left: None, right: None, expect_...
rust_cleaned_test_functions.jsonl/7322
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25842, 25922, 24944, 16237, 368, 1464, 5714, 71698, 341, 262, 1077, 1273, 57239, 284, 7486, 90515, 286, 3393, 341, 310, 829, 25, 330, 69, 2075, 8, 284, 481, 20, 353, 856, 756, 310, 15169, 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...
3
#[test] fn test_scripts() { let mut context = Context::new(); let result = load(&mut context.commands); assert!(result.is_ok()); assert!(!context.commands.get_all_command_names().is_empty()); let result = runner::run_script("test_directory ../test", context); assert!(result.is_ok());...
rust_cleaned_test_functions.jsonl/32111
{ "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, 35789, 368, 341, 262, 1077, 5206, 2266, 284, 9608, 486, 931, 543, 262, 1077, 1102, 284, 2795, 2099, 6984, 2266, 33902, 626, 262, 2060, 10297, 1382, 2079, 19817, 5231, 262, 2060, 0, 3471, 2147, 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_lint_cap_hash_different() { let mut v1 = Options::default(); let mut v2 = Options::default(); let v3 = Options::default(); v1.lint_cap = Some(Level::Forbid); v2.lint_cap = Some(Level::Allow); assert_non_crate_hash_different(&v1, &v2); assert_non_crate_hash_different...
rust_cleaned_test_functions.jsonl/100719
{ "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, 907, 396, 16388, 8950, 82741, 368, 341, 262, 1077, 5206, 348, 16, 284, 14566, 486, 2258, 543, 262, 1077, 5206, 348, 17, 284, 14566, 486, 2258, 543, 262, 1077, 348, 18, 284, 14566, 486, 2258, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { assert_eq!(5, parse_unsigned_str("0B_10_1")); assert_eq!(3, parse_unsigned_str("0b_01_1")); assert_eq!(510, parse_unsigned_str("0x_1f_e")); assert_eq!(239, parse_unsigned_str("0X_E_f")); assert_eq!(239, parse_unsigned_str("239")); asse...
rust_cleaned_test_functions.jsonl/103107
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 67830, 368, 341, 286, 2060, 10714, 10297, 20, 11, 4715, 67830, 2895, 445, 15, 33, 62, 16, 15, 62, 16, 4010, 286, 2060, 10714, 10297, 18, 11, 4715, 67830, 2895, 445, 15, 65, 62, 15, 16, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_single_incorrect_case_diagnostic_in_function_name_issue_6970() { let input = r#"fn FOO<|>() {}"#; let expected = r#"fn foo() {}"#; let (analysis, file_position) = fixture::position(input); let diagnostics = analysis.diagnostics(&DiagnosticsConfig::def...
rust_cleaned_test_functions.jsonl/11436
{ "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, 19487, 1243, 19928, 19096, 29477, 11953, 1243, 9174, 1269, 53340, 62, 21, 24, 22, 15, 368, 341, 286, 1077, 1946, 284, 435, 55543, 8822, 434, 19499, 27, 91, 13555, 4687, 57676, 280, 286, 1077, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_all_characters() { let querier = new_valid_db("query_characters.db"); let characters = querier.query_characters(None, None); assert_eq!(5, characters.len()); }
rust_cleaned_test_functions.jsonl/107694
{ "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, 5738, 5705, 79060, 368, 341, 286, 1077, 29134, 1268, 284, 501, 8337, 8685, 445, 1631, 79060, 7076, 3071, 286, 1077, 5766, 284, 29134, 1268, 4786, 79060, 26717, 11, 2240, 317, 286, 2060, 10714, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_example_7() { let input: &str = "a\nb\nc"; let valid: usize = count_common_chars(&input); assert_eq!(valid, 0); }
rust_cleaned_test_functions.jsonl/120249
{ "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, 39304, 62, 22, 368, 341, 286, 1077, 1946, 25, 609, 495, 284, 330, 64, 1699, 65, 59, 1016, 876, 286, 1077, 2697, 25, 22301, 284, 1760, 21107, 37418, 2099, 1355, 317, 286, 2060, 10714, 10297, 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
#[test] fn test_decompose_weakly_connected_components_scc() { let mut graph = petgraph_impl::new(); let n0 = graph.add_node(0); let n1 = graph.add_node(1); let n2 = graph.add_node(2); let n3 = graph.add_node(3); let n4 = graph.add_node(4); let _e0 = graph....
rust_cleaned_test_functions.jsonl/115466
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 957 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 52706, 86356, 398, 43276, 23258, 643, 638, 368, 341, 286, 1077, 5206, 4771, 284, 6753, 4439, 21007, 486, 931, 543, 286, 1077, 308, 15, 284, 4771, 1364, 5084, 7, 15, 317, 286, 1077, 308, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_partial_in_arithmetic_op() -> TestResult { let p = Polar::new(); p.load_str("f(x) if x = x + 0;")?; let mut q = p.new_query_from_term(term!(call!("f", [sym!("x")])), false); assert_partial_expression!(next_binding(&mut q)?, "x", "_this + 0 = _this"); asser...
rust_cleaned_test_functions.jsonl/63016
{ "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, 52068, 1243, 25842, 25922, 10287, 368, 1464, 3393, 2077, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 5104, 2895, 445, 69, 2075, 8, 421, 856, 284, 856, 488, 220, 15, 26, 899, 3744...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_not_operator() { let tests = vec![ ("!true", Some(Object::Bool(false))), ("!false", Some(Object::Bool(true))), ("!!true", Some(Object::Bool(true))), ("!!false", Some(Object::Bool(false))), ("!!5", Some(Object::Bool(true))), ...
rust_cleaned_test_functions.jsonl/12295
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 227 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7913, 40594, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 3489, 0, 1866, 497, 4329, 12526, 486, 11233, 3576, 41749, 310, 3489, 0, 3849, 497, 4329, 12526, 486, 11233, 3715, 41749, 310, 3489, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rng_seeded() { let mut ra: MyRng = SeedableRng::from_seed((ReseedWithDefault, 2)); let mut rb: MyRng = SeedableRng::from_seed((ReseedWithDefault, 2)); assert!(ra.gen_ascii_chars() .take(100) .eq(rb.gen_ascii_chars().take(100))); }
rust_cleaned_test_functions.jsonl/77698
{ "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, 66849, 3453, 29935, 368, 341, 286, 1077, 5206, 15122, 25, 3017, 49, 968, 284, 35822, 480, 49, 968, 486, 1499, 33809, 1188, 1061, 12051, 2354, 3675, 11, 220, 17, 1106, 286, 1077, 5206, 18717, 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_bigint_literal() { test! { let sym = AST::BigIntLiteral(BigIntLiteral::new_wrapped(1)); let r_node = sym.to_r_ast_node(0); assert_eq!(r_node, eval_string("as.integer(1)").unwrap()); } }
rust_cleaned_test_functions.jsonl/75452
{ "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, 36386, 396, 34100, 368, 341, 286, 1273, 0, 341, 310, 1077, 7886, 284, 22465, 486, 87474, 17350, 5349, 343, 1072, 17350, 486, 931, 44074, 5677, 7, 16, 1106, 310, 1077, 435, 5084, 284, 7886, 2389,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_buf_writer_error() { let mut buf = [0 as u8, ..2]; let mut writer = BufWriter::new(&mut buf); writer.write(&[0]).unwrap(); match writer.write(&[0, 0]) { Ok(..) => panic!(), Err(e) => assert_eq!(e.kind, io::ShortWrite(1)), } }
rust_cleaned_test_functions.jsonl/7087
{ "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, 10363, 28908, 4096, 368, 341, 286, 1077, 5206, 6607, 284, 508, 15, 438, 575, 23, 11, 5241, 17, 935, 286, 1077, 5206, 6916, 284, 69013, 6492, 486, 931, 2099, 6984, 6607, 317, 286, 6916, 3836, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_manual_insertion() -> Result<(), Error> { let manager = FontPackageManagerBuilder::new() .add_package_url(PkgUrl::parse("fuchsia-pkg://fuchsia.com/font1")?) .unwrap() .add_package_url(PkgUrl::parse("fuchsia-pkg://fuchsia.com/font2")?) .unwr...
rust_cleaned_test_functions.jsonl/15574
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75428, 17678, 290, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 6645, 284, 9562, 89170, 3297, 486, 931, 741, 310, 659, 718, 26328, 2903, 5304, 7351, 2864, 486, 6400, 445, 69, 73391, 2268, 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...
6
#[test] fn test_parsing() { assert_eq!(ScoreDefinition::try_from(&Element::from_str(r#" <definition> <fragment name="Siegpunkte"> <aggregation>SUM</aggregation> <relevantForRanking>true</relevantForRanking> </fragment> ...
rust_cleaned_test_functions.jsonl/876
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 402 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 28598, 368, 341, 286, 2060, 10714, 10297, 10570, 10398, 486, 1539, 5673, 2099, 1691, 486, 1499, 2895, 2601, 2, 698, 310, 366, 18375, 397, 394, 366, 42202, 829, 428, 50855, 21888, 3122, 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...
1
#[test] fn test_http_request_upgrade_h2c() { let mut buf = BytesMut::from( "GET /test HTTP/1.1\r\n\ connection: upgrade, http2-settings\r\n\ upgrade: h2c\r\n\ http2-settings: dummy\r\n\r\n", ); let mut reader = MessageDecoder::<Request>:...
rust_cleaned_test_functions.jsonl/38472
{ "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, 25888, 7893, 67794, 1523, 17, 66, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 1499, 1006, 310, 330, 3806, 608, 1944, 10130, 14, 16, 13, 16, 12016, 1699, 5661, 1797, 3633, 25, 13910,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unclosed_tags() { let tags = vec![ "{", "{ foo.bar", "{ foo.bar\n }", "{{", "{{ if foo.bar", "{{ if foo.bar \n}}", "{#", "{# if foo.bar", "{# if foo.bar \n#}", ]...
rust_cleaned_test_functions.jsonl/18187
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 270 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76576, 9259, 16333, 368, 972, 286, 1077, 9492, 284, 7486, 20703, 319, 310, 13868, 4723, 310, 13868, 15229, 22001, 4723, 310, 13868, 15229, 22001, 1699, 335, 4723, 310, 47219, 4723, 310, 47219, 421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_update_from_nothing() { let null = Config::default(); let defaulted = Config::from_defaults(); let mut actual = defaulted.clone(); actual.update(&null); assert_eq!(actual, defaulted); }
rust_cleaned_test_functions.jsonl/4425
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 109 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 5673, 6536, 1596, 368, 341, 286, 1077, 845, 284, 5532, 486, 2258, 543, 286, 1077, 92989, 284, 5532, 486, 1499, 42290, 1428, 286, 1077, 5206, 5042, 284, 92989, 15997, 543, 286, 5042, 5317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_country_succeeds() { // Setup environment let mut exec = fasync::TestExecutor::new().expect("Failed to create an executor"); let test_values = test_setup(); let (phy, mut phy_stream) = fake_phy(); let phy_id = 10u16; test_values.phys.insert(ph...
rust_cleaned_test_functions.jsonl/20596
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 592 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 28106, 643, 29264, 82, 368, 341, 286, 442, 18626, 4573, 198, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 9408, 311, 1855, 458, 31558, 797, 286, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_geometry_collection() { let mut expected_coords = vec![]; let (line_string, mut coords) = create_line_string(); expected_coords.append(&mut coords); let (polygon, mut coords) = create_polygon(); expected_coords.append(&mut coords); let actual_coor...
rust_cleaned_test_functions.jsonl/21580
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 262 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57022, 25019, 368, 341, 286, 1077, 5206, 3601, 32576, 284, 7486, 0, 15078, 286, 1077, 320, 1056, 3904, 11, 5206, 23897, 8, 284, 1855, 6528, 3904, 543, 286, 3601, 32576, 2057, 2099, 6984, 23897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_efi_partition() { let d = FakeDisk::new("clear-28660-kvm.img"); match super::find_efi_partition(&d) { Ok((start, end)) => { assert_eq!(start, 2048); assert_eq!(end, 1_048_575); } Err(e) => panic!(e), ...
rust_cleaned_test_functions.jsonl/107899
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 79410, 72, 43840, 368, 341, 286, 1077, 294, 284, 36965, 47583, 486, 931, 445, 7422, 12, 17, 23, 21, 21, 15, 12646, 7338, 15334, 3071, 286, 2432, 2256, 486, 3903, 79410, 72, 43840, 2099, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_app_builder_build_fails_if_no_client_name_2() { let mut builder = App::builder(); builder .website("https://example.com") .redirect_uris("https://example.com") .scopes(Scopes::all()); builder.build().expect("no client-name"); }
rust_cleaned_test_functions.jsonl/51208
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8191, 28532, 20801, 761, 6209, 11119, 6536, 8179, 1269, 62, 17, 368, 341, 286, 1077, 5206, 7363, 284, 1845, 486, 17850, 543, 286, 7363, 198, 310, 659, 19485, 445, 2428, 1110, 8687, 905, 1138, 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_add_inf() { let x = Complex::new(1.0, 1.0); let z = Complex::new(f64::INFINITY, 0.0); let w: Complex = x.add(&z); assert!(w.get_imaginary() == 1.0); assert!(f64::INFINITY == w.get_real()); let x = Complex::new(f64::NEG_INFINITY, 0.0); ass...
rust_cleaned_test_functions.jsonl/43832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 26051, 368, 341, 286, 1077, 856, 284, 22096, 486, 931, 7, 16, 13, 15, 11, 220, 16, 13, 15, 317, 286, 1077, 1147, 284, 22096, 486, 931, 955, 21, 19, 486, 687, 55990, 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_empty_operations_group() { let schema_builder = schema::Schema::builder(); let index = Index::create_in_ram(schema_builder.build()); let index_writer = index.writer(3_000_000).unwrap(); let operations1 = vec![]; let batch_opstamp1 = index_writer.run(operat...
rust_cleaned_test_functions.jsonl/21496
{ "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, 15124, 57345, 6288, 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, 1077, 1922, 28908, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_missing_checksum() { // Try a sentence without checksum let mut p = NmeaParser::new(); assert!(p .parse_sentence("!AIVDM,1,1,,A,38Id705000rRVJhE7cl9n;160000,0") .ok() .is_some()); }
rust_cleaned_test_functions.jsonl/52788
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 154 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 40447, 64038, 368, 341, 286, 442, 9735, 264, 11652, 2041, 32529, 198, 286, 1077, 5206, 281, 284, 451, 2660, 64, 6570, 486, 931, 543, 286, 2060, 10297, 79, 198, 310, 659, 6400, 48332, 8516...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tag_new() { let tag = Tag::new("key".to_string(), "value".to_string()); assert_eq!(tag.key, "key"); assert_eq!(tag.value, "value"); }
rust_cleaned_test_functions.jsonl/124444
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9372, 5921, 368, 341, 262, 1077, 4772, 284, 12353, 486, 931, 445, 792, 3263, 983, 3904, 1507, 330, 957, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 4578, 4735, 11, 330, 792, 797, 262, 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
#[test] fn test_identifiers() { let scanner = Scanner::new(); let source = "foo bar".to_owned(); assert_eq!( Ok(vec![ Token { t: TokenType::Identifier, line: 1, lexeme: "foo".to_owned(), ...
rust_cleaned_test_functions.jsonl/92093
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 581 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38399, 11836, 368, 341, 286, 1077, 20775, 284, 17170, 486, 931, 543, 286, 1077, 2530, 284, 330, 7975, 3619, 3263, 983, 51973, 543, 286, 2060, 10714, 33673, 310, 7622, 25592, 90515, 394, 9660, 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_eval() { use moniker::FreeVar; let x = FreeVar::fresh_named("x"); let y = FreeVar::fresh_named("y"); let expr = RcExpr::from(Expr::App( RcExpr::from(Expr::Lam(Scope::new( Binder(x.clone()), RcExpr::from(Expr::Var(Var::Free(x.clone()))), ...
rust_cleaned_test_functions.jsonl/33404
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 368, 341, 262, 990, 1615, 24803, 486, 10940, 3962, 401, 262, 1077, 856, 284, 3574, 3962, 486, 71308, 71834, 445, 87, 797, 262, 1077, 379, 284, 3574, 3962, 486, 71308, 71834, 445, 88, 3071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tiledinputpart_level_width_failure_invalid_level() { let input = MultiPartInputFile::new(&*SRC_IMAGE_PATH, 0, true).unwrap(); let tiled_input_part = super::TiledInputPart::new(&input, 0); tiled_input_part.level_width(i32::MIN).unwrap(); }
rust_cleaned_test_functions.jsonl/59302
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 2181, 1355, 4480, 8274, 7927, 43618, 31433, 8274, 368, 341, 286, 1077, 1946, 284, 17439, 5800, 2505, 1703, 486, 931, 2099, 9, 56017, 19121, 7944, 11, 220, 15, 11, 830, 568, 15454, 543, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_duration() { assert_eq!( duration("1 year"), Ok(Duration::new(crate::time::SECONDS_PER_YEAR, 0)) ); assert_eq!( duration("1 month"), Ok(Duration::new(crate::time::SECONDS_PER_MONTH, 0)) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/71120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25454, 368, 341, 286, 2060, 10714, 33673, 310, 8090, 445, 16, 1042, 4461, 310, 7622, 64114, 486, 931, 54907, 486, 1678, 486, 925, 26904, 10617, 57127, 11, 220, 15, 1171, 286, 1439, 286, 2060, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_blocks_uastc_to_astc() { // CEM 8 - RGB Direct test_uastc_mode(0); test_uastc_mode(1); test_uastc_mode(2); test_uastc_mode(3); test_uastc_mode(4); test_uastc_mode(5); test_uastc_mode(6); test_uastc_mode(7); // Void-Extent test_uastc_mode(8); // ...
rust_cleaned_test_functions.jsonl/19836
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 348 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25201, 7300, 559, 66, 2346, 48019, 66, 368, 1476, 262, 442, 356, 2716, 220, 23, 481, 20978, 7139, 198, 262, 1273, 7300, 559, 66, 7302, 7, 15, 317, 262, 1273, 7300, 559, 66, 7302, 7, 16, 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_file_mode_change_lose_executable_bit() { let config = integration_test_utils::make_config_from_args(&[]); let output = integration_test_utils::run_delta( GIT_DIFF_FILE_MODE_CHANGE_LOSE_EXECUTABLE_BIT, &config, ); let output = strip_ansi_cod...
rust_cleaned_test_functions.jsonl/70115
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2458, 7302, 15947, 62, 1469, 18430, 5922, 13996, 368, 341, 286, 1077, 2193, 284, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 56703, 286, 1077, 2550, 284, 17590, 4452, 17309, 486, 6108, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_num_bits() { let min_max = 2i16.pow(13); for value in -min_max..=min_max { let num_bits1 = get_num_bits(value); let (num_bits2, _) = get_code(value); assert_eq!( num_bits1, num_bits2, "Difference in num bit...
rust_cleaned_test_functions.jsonl/20868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 4273, 20034, 368, 341, 286, 1077, 1308, 6345, 284, 220, 17, 72, 16, 21, 25290, 7, 16, 18, 626, 286, 369, 897, 304, 481, 1065, 6345, 496, 28, 1065, 6345, 341, 310, 1077, 1629, 20034, 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...
2
#[test] fn test_owned_name_from_str() { assert_eq!("prefix:name".parse(), Some(OwnedName { local_name: "name".to_string(), namespace: None, prefix: Some("prefix".to_string()) })); assert_eq!("name".parse(), Some(OwnedName { local_name: "na...
rust_cleaned_test_functions.jsonl/103879
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 341 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51973, 1269, 5673, 2895, 368, 341, 286, 2060, 10714, 17223, 11849, 57520, 3263, 6400, 1507, 4329, 7, 57641, 675, 341, 310, 2205, 1269, 25, 330, 606, 3263, 983, 3904, 3148, 310, 4473, 25, 2240, 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