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_conflicting_methods_in_ns() { let cxx = indoc! {" uint32_t A::Bob::get() const { return a; } uint32_t B::Fred::get() const { return b; } "}; let hdr = indoc! {" #include <cstdint> namespace A { struct Bob { uint32_t a; ...
rust_cleaned_test_functions.jsonl/9807
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 443 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16059, 78208, 36084, 1243, 34728, 368, 341, 262, 1077, 272, 4146, 284, 1257, 509, 0, 314, 698, 286, 2622, 18, 17, 528, 362, 486, 32388, 486, 455, 368, 733, 314, 470, 264, 26, 456, 286, 2622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_current_node() { let mut tree = Tree::new(); // Should be none because no current key has been set yet assert!(tree.current_node().is_none()); // Should be None still as the node does not exist in the map unsafe { tree.set_current_key_unchecked("current") } assert!(tree...
rust_cleaned_test_functions.jsonl/110235
{ "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, 11080, 5084, 368, 341, 262, 1077, 5206, 4916, 284, 8942, 486, 931, 1428, 262, 442, 12260, 387, 6857, 1576, 902, 1482, 1376, 702, 1012, 738, 3602, 198, 262, 2060, 10297, 9344, 4952, 5084, 1005, 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_abort() { static LK: SeqLock = SeqLock::new(); let before = LK.optimistic_read().unwrap(); { let guard = LK.write(); guard.abort(); } let after = LK.optimistic_read().unwrap(); assert_eq!(before, after, "aborted write does n...
rust_cleaned_test_functions.jsonl/21994
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 171 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70907, 368, 341, 286, 1099, 444, 42, 25, 23744, 11989, 284, 23744, 11989, 486, 931, 543, 286, 1077, 1573, 284, 444, 42, 45883, 4532, 6443, 1005, 15454, 543, 286, 341, 310, 1077, 7616, 284, 444, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_take_value_index_from_list() { let list = build_generic_list::<i32, Int32Type>(vec![ Some(vec![0, 1]), Some(vec![2, 3, 4]), Some(vec![5, 6, 7, 8, 9]), ]); let indices = UInt32Array::from(vec![2, 0]); let (indexed, offsets) = ta...
rust_cleaned_test_functions.jsonl/67653
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 265 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 73261, 3142, 3560, 5673, 2019, 368, 341, 286, 1077, 1140, 284, 1936, 41232, 2019, 27638, 72, 18, 17, 11, 1333, 18, 17, 929, 2235, 4083, 90515, 310, 4329, 25592, 20703, 15, 11, 220, 16, 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, 1, 1, 1, 1, 1...
1
#[test] fn test_tree_d() { let tmp = tempdir(); tmp.child("one").touch().unwrap(); tmp.child("two").touch().unwrap(); tmp.child("one.d").create_dir_all().unwrap(); tmp.child("one.d/one").touch().unwrap(); tmp.child("one.d/one.d").create_dir_all().unwrap(); tmp.child("two.d").create_d...
rust_cleaned_test_functions.jsonl/646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 261 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11663, 814, 368, 341, 262, 1077, 4174, 284, 2730, 3741, 543, 262, 4174, 17531, 445, 603, 1827, 22020, 1005, 15454, 543, 262, 4174, 17531, 445, 19789, 1827, 22020, 1005, 15454, 543, 262, 4174, 1753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fn_generate_identity() { ffi::change_runtime_configuration( TezosRuntimeConfiguration { log_enabled: is_ocaml_log_enabled(), no_of_ffi_calls_treshold_for_gc: no_of_ffi_calls_treshold_for_gc() } ).unwrap().unwrap(); // generate let identity...
rust_cleaned_test_functions.jsonl/100568
{ "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, 15246, 48851, 46244, 368, 341, 262, 76956, 486, 3373, 33232, 35726, 1006, 286, 2655, 53701, 15123, 7688, 341, 310, 1487, 18220, 25, 374, 49648, 9467, 5224, 18220, 3148, 310, 902, 3575, 62, 53799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_adjust_lockouts_after_replay_all_rooted_with_too_old() { use solana_sdk::slot_history::MAX_ENTRIES; let mut tower = Tower::new_for_tests(10, 0.9); tower.record_vote(0, Hash::default()); tower.record_vote(1, Hash::default()); tower.record_vote(2, Hash::def...
rust_cleaned_test_functions.jsonl/61166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44153, 9818, 11672, 19844, 1288, 1363, 5705, 12993, 291, 6615, 2346, 78, 21108, 368, 341, 286, 990, 2048, 3362, 61783, 486, 21537, 19802, 486, 10586, 87695, 401, 286, 1077, 5206, 21271, 284, 21938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rand_sort() { let size = 1000u32; let mut rng = StdRng::seed_from_u64(42); let mut before: Vec<u32> = (0..size).map(|_| rng.gen::<u32>()).collect(); let mut d = before.clone(); let last = (rng.next_u32() % size) as usize; d.sort_unstable();...
rust_cleaned_test_functions.jsonl/6177
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 221 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 52068, 33864, 18435, 368, 341, 286, 1077, 1379, 284, 220, 16, 15, 15, 15, 84, 18, 17, 280, 286, 1077, 5206, 28422, 284, 42517, 49, 968, 486, 22602, 5673, 7300, 21, 19, 7, 19, 17, 317, 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_dual_vec_acosh() { let res = DualVec64::<2>::new(1.2, StaticVec::new_vec([1.0, 1.0])).acosh(); assert!((res.re - 0.622362503714779).abs() < 1e-12); assert!((res.eps[0] - 1.50755672288882).abs() < 1e-12); assert!((res.eps[1] - 1.50755672288882).abs() < 1e-12); }
rust_cleaned_test_functions.jsonl/28626
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 96772, 13251, 14718, 9267, 368, 341, 262, 1077, 592, 284, 33659, 10050, 21, 19, 27638, 17, 6831, 931, 7, 16, 13, 17, 11, 23105, 10050, 486, 931, 13251, 2561, 16, 13, 15, 11, 220, 16, 13, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_meta_extended_key_value_attributes() { check( r#" macro_rules! m { (#[$m:meta]) => ( #[$m] fn bar() {} ) } m! { #[doc = concat!("The `", "bla", "` lang item.")] } "#, expect![[r##" macro_rules! m { (#[$m:meta]) => ( #[$m] fn bar() {} ) } #[doc = concat!("The `", "bla"...
rust_cleaned_test_functions.jsonl/85236
{ "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, 13381, 61678, 3097, 3142, 18240, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 341, 262, 29083, 3442, 76, 25, 5490, 2467, 589, 320, 671, 3442, 76, 60, 5168, 3619, 368, 468...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_change_working_directory() { use os; let parent_dir = os::getcwd().unwrap().dir_path(); let result = pwd_cmd().current_dir(&parent_dir).output().unwrap(); let output = String::from_utf8(result.stdout).unwrap(); let child_dir = old_path::...
rust_cleaned_test_functions.jsonl/5987
{ "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, 15947, 81101, 14846, 368, 341, 286, 990, 2643, 280, 16885, 286, 1077, 2681, 4334, 284, 2643, 486, 455, 32165, 1005, 15454, 1005, 3741, 2638, 543, 286, 1077, 1102, 284, 32706, 11684, 1005, 3231, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_logical_types() { let schema = Schema::parse_str(r#"{"type": "int", "logicalType": "date"}"#).unwrap(); assert_eq!(schema, Schema::Date); let schema = Schema::parse_str(r#"{"type": "long", "logicalType": "timestamp-micros"}"#).unwrap(); assert_eq!(sch...
rust_cleaned_test_functions.jsonl/26539
{ "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, 86484, 9763, 368, 341, 286, 1077, 10802, 284, 12539, 486, 6400, 2895, 2601, 55543, 4913, 1313, 788, 330, 396, 497, 330, 30256, 929, 788, 330, 1028, 9207, 57676, 568, 15454, 543, 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_default_on_error() { #[serde_as] #[derive(Debug, Serialize, Deserialize, PartialEq)] struct Struct { #[serde_as(as = "DefaultOnError<DisplayFromStr>")] value: u32, }; // Normal is_equal(Struct { value: 123 }, r#"{"value":"123"}"#); is_equal(Struct { v...
rust_cleaned_test_functions.jsonl/23048
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 903 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 4470, 4096, 368, 341, 262, 11506, 47024, 11898, 921, 262, 11506, 27098, 42618, 11, 39900, 11, 48440, 11, 55039, 5563, 262, 2036, 16139, 341, 286, 11506, 47024, 11898, 36951, 284, 330, 3675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_three() { let classes = vec![ String::from("Cat"), String::from("Dog"), String::from("Rabbit"), ]; let mut metrics = MulticlassClassificationMetrics::new(classes.len()); let labels = arr1(&[ Some(NonZeroUsize::new(1).unwrap()), Some(NonZeroUsize::new(1).unwrap()), Some(NonZeroU...
rust_cleaned_test_functions.jsonl/112682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1822 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50016, 368, 341, 1572, 10217, 6846, 284, 7486, 90515, 197, 4980, 486, 1499, 445, 26801, 4461, 197, 4980, 486, 1499, 445, 48940, 4461, 197, 4980, 486, 1499, 445, 49, 19949, 4461, 197, 935, 10217, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_push_vote() { let keys = Keypair::new(); let contact_info = ContactInfo::new_localhost(&keys.pubkey(), 0); let cluster_info = ClusterInfo::new_with_invalid_keypair(contact_info); // make sure empty crds is handled correctly let now = timestamp(); ...
rust_cleaned_test_functions.jsonl/28068
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 568 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 54360, 368, 341, 286, 1077, 6894, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 3645, 3109, 284, 9180, 1731, 486, 931, 62, 8301, 2099, 10563, 47773, 792, 1507, 220, 15, 317, 286, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_u32() { for &i in &[ 0, 1, 2, 3, 1234, u32::max_value(), u32::max_value() - 1, u32::max_value() / 2, u32::min_value(), u32::min_value() + 1, u32::min_value() / 2, 123123123, 321312312, ...
rust_cleaned_test_functions.jsonl/132317
{ "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, 7300, 18, 17, 368, 341, 262, 369, 609, 72, 304, 609, 9640, 286, 220, 15, 345, 286, 220, 16, 345, 286, 220, 17, 345, 286, 220, 18, 345, 286, 220, 16, 17, 18, 19, 345, 286, 575, 18, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_init_with_logging_config() { init!("ledger"); wallet::close_wallet().unwrap(); pool::close().unwrap(); let content = create_config_util(Some("debug")); let cb = return_types_u32::Return_U32::new().unwrap(); assert_eq!(vcx_init_with_config(cb.comman...
rust_cleaned_test_functions.jsonl/127546
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6137, 6615, 59982, 5332, 368, 341, 286, 2930, 17223, 50704, 797, 286, 15085, 486, 5552, 62308, 1005, 15454, 543, 286, 7314, 486, 5552, 1005, 15454, 543, 286, 1077, 2213, 284, 1855, 5332, 18974, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lograte() { try_init_logger_at_level_info().ok(); let _readlock = get_env_lock().read(); assert_eq!( Counter::default_log_rate(), DEFAULT_LOG_RATE, "default_log_rate() is {}, expected {}, SOLANA_DEFAULT_LOG_RATE environment variable set...
rust_cleaned_test_functions.jsonl/33705
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 314 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5224, 7698, 368, 341, 286, 1430, 6137, 27413, 3752, 8274, 3109, 1005, 562, 543, 286, 1077, 716, 878, 1023, 284, 633, 15879, 9818, 1005, 878, 543, 286, 2060, 10714, 33673, 310, 19735, 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
#[test] fn test_mkfifoat_directory() { // mkfifoat should fail if a directory is given let tempdir = tempfile::tempdir().unwrap(); let dirfd = open(tempdir.path(), OFlag::empty(), Mode::empty()).unwrap(); let mkfifoat_dir = "mkfifoat_dir"; stat::mkdirat(dirfd, mkfifoat_dir, Mode::S_IRUSR).un...
rust_cleaned_test_functions.jsonl/30593
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 166 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64861, 74031, 266, 14846, 368, 341, 262, 442, 23789, 74031, 266, 1265, 3690, 421, 264, 6220, 374, 2661, 198, 262, 1077, 2730, 3741, 284, 54819, 486, 3888, 3741, 1005, 15454, 543, 262, 1077, 5419, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode_decode_2() { let mut de = DeltaEncoder::new(); de.encode(2); let mut dec = DeltaDecoder::new(&de.encoded()); let val = dec.decode(); assert_eq!(val, Some(2)); }
rust_cleaned_test_functions.jsonl/3994
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 15227, 62, 17, 368, 341, 286, 1077, 5206, 409, 284, 24957, 19921, 486, 931, 543, 286, 409, 17313, 7, 17, 317, 286, 1077, 5206, 1622, 284, 24957, 20732, 486, 931, 2099, 450, 13, 19329, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_vfs_init() { let vfs = Vfs::default(); let out_opts = FsOptions::ASYNC_READ | FsOptions::PARALLEL_DIROPS | FsOptions::BIG_WRITES | FsOptions::HANDLE_KILLPRIV | FsOptions::ASYNC_DIO | FsOptions::HAS_IOCTL_DIR ...
rust_cleaned_test_functions.jsonl/33254
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 619 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 3848, 6137, 368, 341, 286, 1077, 92941, 284, 647, 3848, 486, 2258, 1428, 286, 1077, 700, 32354, 284, 84619, 3798, 486, 52466, 9949, 13117, 198, 310, 760, 84619, 3798, 486, 16567, 86737, 4466...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_check_vote_threshold_without_votes() { let locktower = Locktower::new(EpochStakes::new_for_tests(2), 1, 0.67); let stakes = vec![( 0, StakeLockout { stake: 1, lockout: 8, }, )] .into_iter() ...
rust_cleaned_test_functions.jsonl/25559
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 54360, 21858, 39904, 65116, 368, 341, 286, 1077, 5296, 77578, 284, 15701, 77578, 486, 931, 10722, 79, 4953, 623, 2050, 486, 931, 5478, 32509, 7, 17, 701, 220, 16, 11, 220, 15, 13, 21, 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_column_aliasing() { let expected_sql = "SELECT `bar` AS `foo` FROM `meow`"; let query = Select::from_table("meow").column(Column::new("bar").alias("foo")); let (sql, _) = Sqlite::build(query).unwrap(); assert_eq!(expected_sql, sql); }
rust_cleaned_test_functions.jsonl/52921
{ "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, 8744, 35947, 287, 368, 341, 286, 1077, 3601, 18063, 284, 330, 4858, 1565, 2257, 63, 5752, 1565, 7975, 63, 4295, 1565, 2660, 363, 63, 876, 286, 1077, 3239, 284, 8427, 486, 1499, 5237, 445, 2660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ldax_d() { let mut state = State8080::empty_state(); state.memory = vec![0x1a, 0xde, 0x0e, 0xad]; state.a = 0x00; state.d = 0x00; state.e = 0x01; emulate_8080_op(&mut state); assert_eq!(state.a, 0xde); }
rust_cleaned_test_functions.jsonl/7765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50573, 706, 814, 368, 341, 286, 1077, 5206, 1584, 284, 3234, 23, 15, 23, 15, 486, 3194, 4387, 543, 286, 1584, 36611, 284, 7486, 20703, 15, 87, 16, 64, 11, 220, 15, 56185, 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_sequential_height_check() { zebra_test::init(); let height = zebra_test::vectors::BLOCK_MAINNET_347499_BYTES .bitcoin_deserialize_into::<Arc<Block>>() .unwrap() .coinbase_height() .unwrap(); height_one_more_than_parent_hei...
rust_cleaned_test_functions.jsonl/43980
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 486 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3453, 15838, 9561, 7200, 368, 341, 286, 1147, 50213, 4452, 486, 2327, 1428, 286, 1077, 2608, 284, 1147, 50213, 4452, 486, 85, 10605, 486, 39964, 32276, 15373, 62, 18, 19, 22, 19, 24, 24, 40705, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_move_iter() { let data = vec![5, 9, 3]; let iterout = vec![9, 5, 3]; let pq = BinaryHeap::from_vec(data); let v: Vec<_> = pq.into_iter().collect(); assert_eq!(v, iterout); }
rust_cleaned_test_functions.jsonl/85020
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17134, 11723, 368, 341, 286, 1077, 821, 284, 7486, 20703, 20, 11, 220, 24, 11, 220, 18, 935, 286, 1077, 5367, 411, 284, 7486, 20703, 24, 11, 220, 20, 11, 220, 18, 935, 286, 1077, 39639, 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_optflag_multi() { let args = vec!("--test".to_string(), "-t".to_string()); let opts = vec!(optflag("t", "test", "testing")); let rs = getopts(args.as_slice(), opts.as_slice()); match rs { Err(OptionDuplicated(_)) => {}, _ => panic!() } ...
rust_cleaned_test_functions.jsonl/11186
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 9903, 25133, 368, 341, 286, 1077, 2827, 284, 7486, 17223, 313, 1944, 3263, 983, 3904, 1507, 6523, 83, 3263, 983, 3904, 1423, 286, 1077, 12185, 284, 7486, 10297, 2912, 9903, 445, 83, 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_update_data_store() { let mut mmds = Mmds::new().unwrap(); mmds.set_data_store_limit(MAX_DATA_STORE_SIZE); let data = r#"{ "name": { "first": "John", "second": "Doe" }, "age": "43" }"#; l...
rust_cleaned_test_functions.jsonl/40964
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 1769, 14809, 368, 341, 286, 1077, 5206, 296, 2277, 82, 284, 386, 2277, 82, 486, 931, 1005, 15454, 543, 286, 296, 2277, 82, 980, 1769, 14809, 14763, 55212, 7896, 40415, 4098, 626, 286, 1077...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_encoded_pointer_indirect() { let expected_rest = [1, 2, 3, 4]; let encoding = constants::DW_EH_PE_indirect; let input = Section::with_endian(Endian::Little) .L32(0x1234_5678) .append_bytes(&expected_rest); let input = input.get_conte...
rust_cleaned_test_functions.jsonl/9422
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 412 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 73069, 21425, 9122, 1226, 368, 341, 286, 1077, 3601, 32231, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 286, 1077, 11170, 284, 18021, 486, 54219, 2089, 39, 45784, 9122, 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_duplicate_slot() { let slot = 0; let entries1 = make_slot_entries_with_transactions(1); let entries2 = make_slot_entries_with_transactions(1); let leader_keypair = Arc::new(Keypair::new()); let shredder = Shredder::new(slot, 0, 0, 0).unwrap(); let ...
rust_cleaned_test_functions.jsonl/9576
{ "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, 70434, 27563, 368, 341, 286, 1077, 9446, 284, 220, 15, 280, 286, 1077, 10695, 16, 284, 1281, 27563, 26092, 6615, 68182, 7, 16, 317, 286, 1077, 10695, 17, 284, 1281, 27563, 26092, 6615, 68182, 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_fp_pow() { for x in 0..F::P { for y in 0..10_u32 { assert_fp_eq!(fp!(x).pow(y as u64), fp!(x.pow(y))); } } }
rust_cleaned_test_functions.jsonl/103946
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34160, 56183, 368, 341, 286, 369, 856, 304, 220, 15, 496, 37, 486, 47, 341, 310, 369, 379, 304, 220, 15, 496, 16, 15, 7300, 18, 17, 341, 394, 2060, 34160, 10714, 10297, 10852, 10297, 87, 568...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
#[test] fn test_tokenize_short() { let mut tokenizer = Tokenizer::new().unwrap(); let tokens: Vec<&str> = tokenizer.tokenize_str("日本住").unwrap(); assert_eq!(tokens, vec!["日本", "住"]); }
rust_cleaned_test_functions.jsonl/61447
{ "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, 86508, 16673, 368, 341, 286, 1077, 5206, 45958, 284, 9660, 3135, 486, 931, 1005, 15454, 543, 286, 1077, 11211, 25, 11312, 52244, 495, 29, 284, 45958, 96790, 2895, 445, 101059, 99296, 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
#[test] fn test_account_checked_sub_tocks_underflow2() { let key = Pubkey::new_unique(); let (_account1, mut account2) = make_two_accounts(&key); account2.checked_sub_tocks(u64::MAX).unwrap(); }
rust_cleaned_test_functions.jsonl/56007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 104 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 56456, 5228, 528, 25183, 58228, 4965, 17, 368, 341, 286, 1077, 1376, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 5453, 4608, 16, 11, 5206, 2692, 17, 8, 284, 1281, 23241, 55665, 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
#[test] fn test_curl_basic_test() -> Result<(), curl::Error> { let mut easy = Easy2::new(CollectorForTests(Vec::new())); easy.get(true)?; easy.url("https://www.rust-lang.org/")?; easy.perform()?; assert_eq!(easy.response_code()?, CHECK_DEFAULT_SUCCESSFUL_HTTP_COD...
rust_cleaned_test_functions.jsonl/80323
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 309 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 1085, 34729, 4452, 368, 1464, 5714, 68843, 13957, 486, 1454, 29, 341, 286, 1077, 5206, 4135, 284, 18609, 17, 486, 931, 3025, 24605, 269, 2461, 18200, 49923, 486, 931, 7392, 286, 4135, 670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_empty_heap() { let mut heap = Heap::<32>::new(); assert!(heap.alloc(Layout::from_size_align(1, 1).unwrap()).is_err()); }
rust_cleaned_test_functions.jsonl/99749
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 71 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 33059, 368, 341, 262, 1077, 5206, 17364, 284, 47307, 27638, 18, 17, 6831, 931, 543, 262, 2060, 10297, 15961, 78224, 76690, 486, 1499, 2368, 37015, 7, 16, 11, 220, 16, 568, 15454, 6011, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_sign_verify() { let (privkey, pubkey) = Generator::random_keypair(); let message = random_message(); let signature = privkey.sign_recoverable(&message).unwrap(); assert!(signature.is_valid()); assert!(pubkey.verify(&message, &signature).is_ok()); }
rust_cleaned_test_functions.jsonl/122789
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11172, 35638, 368, 341, 286, 1077, 320, 11887, 792, 11, 95116, 8, 284, 28358, 486, 11463, 3097, 12670, 543, 286, 1077, 1943, 284, 4194, 6462, 543, 286, 1077, 11957, 284, 6095, 792, 15499, 1288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cnot_c0t2_of_3_bits() { let p = Default::default(); let a = Complex::new(1.0, 0.0); let b = Complex::new(0.0, 1.0); let mut v = StateVector::from_complex_bases(vec![p, a, p, a, p, b, p, b]); v.cnot(0, 2); assert_eq!( v, Stat...
rust_cleaned_test_functions.jsonl/21351
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 1921, 666, 15, 83, 17, 3575, 62, 18, 20034, 368, 341, 286, 1077, 281, 284, 7899, 486, 2258, 543, 286, 1077, 264, 284, 22096, 486, 931, 7, 16, 13, 15, 11, 220, 15, 13, 15, 317, 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_get_credential_def_by_send_request_fails() { settings::clear_config(); settings::set_defaults(); settings::set_config_value(settings::CONFIG_ENABLE_TEST_MODE, "false"); assert!(retrieve_credential_def(CRED_DEF_ID).is_err()); }
rust_cleaned_test_functions.jsonl/67962
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 666, 30320, 7844, 3710, 13565, 7893, 761, 6209, 368, 341, 286, 5003, 486, 7422, 5332, 543, 286, 5003, 486, 746, 42290, 543, 286, 5003, 486, 746, 5332, 3142, 23369, 486, 24652, 14379, 11641, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_populate_after_initialize_ko() { ExtBuilder::default().build().execute_with(|| { assert_ok!(CrowdloanRewards::initialize(Origin::root())); assert_noop!( CrowdloanRewards::populate(Origin::root(), vec![]), Error::<Test>::AlreadyInitialized ); }); }
rust_cleaned_test_functions.jsonl/41082
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17061, 6334, 19844, 40889, 4698, 78, 368, 341, 76605, 3297, 486, 2258, 1005, 5834, 1005, 10257, 6615, 79453, 341, 197, 6948, 19817, 10297, 93926, 67, 38329, 58465, 2347, 486, 21641, 7, 13298, 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_pause_and_stop() { let (sink, mut queue_rx) = Sink::new_idle(); let v = vec![10i16, -10, 20, -20, 30, -30]; // Low rate to ensure immediate control. sink.append(SamplesBuffer::new(1, 1, v.clone())); let mut src = SamplesBuffer::new(1, 1, v).con...
rust_cleaned_test_functions.jsonl/24068
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 364 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59989, 8378, 19039, 368, 341, 286, 1077, 320, 66738, 11, 5206, 7177, 24330, 8, 284, 56451, 486, 931, 47810, 1428, 23459, 286, 1077, 348, 284, 7486, 20703, 16, 15, 72, 16, 21, 11, 481, 16, 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_v8_bidi_rules() { let config = idna::Config::default() .verify_dns_length(true) .use_std3_ascii_rules(true); assert_eq!(config.to_ascii("abc").unwrap(), "abc"); assert_eq!(config.to_ascii("123").unwrap(), "123"); assert_eq!(config.to_ascii("אבּג").unwrap(), "xn--...
rust_cleaned_test_functions.jsonl/13896
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 400 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 23, 880, 12278, 21407, 368, 341, 262, 1077, 2193, 284, 877, 3376, 486, 2648, 486, 2258, 741, 286, 659, 12446, 71125, 5118, 3715, 340, 286, 659, 810, 15656, 18, 50238, 21407, 3715, 626, 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...
1
#[test] fn test_non_power_of_two() { assert_eq!(BinomialPartitioner::new(0, 7).levels(), 4); assert_eq!(BinomialPartitioner::new(0, 6).levels(), 4); assert_eq!(BinomialPartitioner::new(0, 5).levels(), 4); assert_eq!(BinomialPartitioner::new(0, 4).levels(), 3); }
rust_cleaned_test_functions.jsonl/84673
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21637, 20421, 3575, 23241, 368, 341, 286, 2060, 10714, 10297, 28794, 20855, 49978, 261, 486, 931, 7, 15, 11, 220, 22, 568, 42564, 1507, 220, 19, 317, 286, 2060, 10714, 10297, 28794, 20855, 49978, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_primitive_array_float_sum() { let a = Float64Array::from_slice(&[1.1f64, 2.2, 3.3, 4.4, 5.5]); assert!((16.5 - sum_primitive(&a).unwrap()).abs() < f64::EPSILON); }
rust_cleaned_test_functions.jsonl/58848
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 17586, 10160, 368, 341, 286, 1077, 264, 284, 13001, 21, 19, 1857, 486, 1499, 26488, 2099, 58, 16, 13, 16, 69, 21, 19, 11, 220, 17, 13, 17, 11, 220, 18, 13, 18, 11, 220, 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_prompt_for_string_confirm_mismatch() { let (ctx, is, os) = create_normal_test_context("foo\nbar\nfoo\nfoo\n"); let result = prompt_for_string_confirm(is, os, TEST_PROMPT, /*is_sensitive=*/ false).unwrap(); assert_eq!("foo", result); assert!(ctx.has_default_attributes()); ass...
rust_cleaned_test_functions.jsonl/110981
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61421, 5478, 3904, 23800, 717, 24976, 368, 341, 262, 1077, 320, 3773, 11, 374, 11, 2643, 8, 284, 1855, 13973, 4452, 8467, 445, 7975, 1699, 2257, 1699, 7975, 1699, 7975, 1699, 797, 262, 1077, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_buck_cell_root() { let tmp_dir = make_tmp_dir().expect("Failed to create tmp dir for test"); let path = tmp_dir.path(); // Before we create our sigil we should find no repo root assert!(find_buck_cell_root(path).is_err()); let buck_root = path.join("buck...
rust_cleaned_test_functions.jsonl/22105
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1090 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 1942, 16648, 12993, 368, 341, 286, 1077, 4174, 4334, 284, 1281, 16125, 4334, 1005, 17119, 445, 9408, 311, 1855, 4174, 5419, 369, 1273, 797, 286, 1077, 1815, 284, 4174, 4334, 3875, 1428, 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_string_dynamic() -> Result<(), Box<EvalAltResult>> { let engine = Engine::new(); let mut scope = Scope::new(); scope.push("x", "foo"); scope.push("y", "foo"); scope.push("z", "foo"); assert!(engine.eval_with_scope::<bool>(&mut scope, r#"x == "foo""#)?); assert!(engin...
rust_cleaned_test_functions.jsonl/21602
{ "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, 3904, 45992, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 1077, 4712, 284, 8200, 486, 931, 543, 262, 1077, 5206, 6891, 284, 34920, 486, 931, 543, 262, 6891, 2552, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_safe_checkout_independently_typechanged_tree() -> BitResult<()> { BitRepo::with_sample_repo_no_sym(|repo| { let target = commit! { foo bar dir < "changed to a file" }; rmdir!(repo: "dir"); touch!(repo: "dir" < "changed to a ...
rust_cleaned_test_functions.jsonl/62983
{ "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, 34067, 68186, 1243, 19510, 4402, 1819, 17353, 11663, 368, 1464, 6495, 2077, 71698, 341, 262, 6495, 25243, 486, 4197, 17491, 37784, 6536, 26825, 22428, 23476, 91, 341, 286, 1077, 2169, 284, 5266, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_file_path_from_git_diff_header_line_rename_containing_spaces() { assert_eq!( parse_diff_header_line("rename from with space/file1.el", true, None), ("with space/file1.el".to_string(), FileEvent::Rename) ); }
rust_cleaned_test_functions.jsonl/72334
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 2458, 2638, 5673, 68801, 15850, 8757, 6528, 79399, 10260, 2056, 67883, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 15850, 8757, 6528, 445, 51058, 504, 448, 3550, 23903, 16, 15851, 497, 830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ses_set_identity_dkim_enabled() { let mock_response = MockResponseReader::read_response( "test_resources/generated/valid", "ses-set-identity-dkim-enabled.xml", ); let mock = MockRequestDispatcher::with_status(200).with_body(&mock_respon...
rust_cleaned_test_functions.jsonl/21980
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 643, 288, 2602, 46244, 814, 57893, 18220, 368, 341, 286, 1077, 7860, 9655, 284, 14563, 2582, 5062, 486, 878, 9655, 1006, 310, 330, 1944, 35569, 79372, 14, 1891, 756, 310, 330, 9275, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_from_program() { let mut some = document(json!({ "program": { "binary": "bin/hello_world" } })); let mut other = document(json!({ "program": { "runner": "elf" } })); some.merge_from(&mut other, &Path::new("some/path")).unwrap(); let expected = do...
rust_cleaned_test_functions.jsonl/34912
{ "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, 20888, 5673, 25096, 368, 341, 286, 1077, 5206, 1045, 284, 2197, 9304, 0, 2306, 330, 14906, 788, 314, 330, 25891, 788, 330, 6863, 7530, 4791, 31792, 1, 335, 17830, 286, 1077, 5206, 1008, 284, 219...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_data_channel_state_string() { let tests = vec![ (DataChannelState::Unspecified, crate::UNSPECIFIED_STR), (DataChannelState::Connecting, "connecting"), (DataChannelState::Open, "open"), (DataChannelState::Closing, "closing"), (Da...
rust_cleaned_test_functions.jsonl/122383
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1769, 14571, 4387, 3904, 368, 341, 286, 1077, 7032, 284, 7486, 90515, 310, 320, 1043, 9629, 1397, 486, 1806, 53434, 11, 17717, 486, 1861, 56481, 27320, 7159, 1326, 310, 320, 1043, 9629, 1397, 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_event_bits_iter_multiple_elements_empty() { let mut iter = EventBitsIter::< u16 >::new( &[0, 0, 0, 0] ); assert_eq!( iter.next(), None ); }
rust_cleaned_test_functions.jsonl/69405
{ "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, 6748, 20034, 11723, 45233, 22801, 15124, 368, 341, 262, 1077, 5206, 5367, 284, 3665, 19920, 8537, 27638, 575, 16, 21, 33813, 931, 7, 44590, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 60, 1439,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_import() { assert_to_bytes!( Import { namespace: "a", name: "b", signature_type: 0, }, &[ 0x01, // string of length 1 0x61, // "a" 0x01, // string of length...
rust_cleaned_test_functions.jsonl/132565
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 286 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18434, 368, 341, 286, 2060, 2346, 12524, 33673, 310, 13213, 341, 394, 4473, 25, 330, 64, 756, 394, 829, 25, 330, 65, 756, 394, 11957, 1819, 25, 220, 15, 345, 310, 1153, 310, 609, 9640, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bitv_set_subset() { let mut set1 = BitvSet::new(); let mut set2 = BitvSet::new(); assert!(set1.is_subset(&set2)); set2.insert(100); assert!(set1.is_subset(&set2)); set2.insert(200); assert!(set1.is_subset(&set2)); set1.insert(20...
rust_cleaned_test_functions.jsonl/119311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 433 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13996, 85, 2602, 47532, 368, 341, 286, 1077, 5206, 738, 16, 284, 6495, 85, 1649, 486, 931, 543, 286, 1077, 5206, 738, 17, 284, 6495, 85, 1649, 486, 931, 1428, 286, 2060, 10297, 746, 16, 2079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_home_get_shuffle_path() { let dir = tempdir().unwrap(); let home = Home::new(dir.path()).unwrap(); let correct_dir = dir.path().join(".shuffle"); assert_eq!(correct_dir, home.get_shuffle_path()); }
rust_cleaned_test_functions.jsonl/39528
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21653, 3062, 73484, 2638, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 1077, 2114, 284, 5379, 486, 931, 14161, 3875, 6011, 15454, 543, 286, 1077, 4396, 4334, 284, 5419, 3875,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_concatenation() { let input = "\"Hello\" + \" \" + \"World!\""; assert_eq!( Some(Object::String(String::from("Hello World!"))), eval(input) ); }
rust_cleaned_test_functions.jsonl/12289
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 57478, 268, 367, 368, 341, 286, 1077, 1946, 284, 15898, 9707, 2105, 488, 7245, 7245, 488, 7245, 10134, 0, 2105, 3302, 286, 2060, 10714, 33673, 310, 4329, 12526, 486, 703, 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
#[test] fn test_optional_lockup_for_stake_program_v3_and_earlier() { let stake_pubkey = analog_sdk::pubkey::new_rand(); let stake_lamports = 42; let stake_account = AccountSharedData::new_ref_data_with_space( stake_lamports, &StakeState::Uninitialized, ...
rust_cleaned_test_functions.jsonl/15295
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2179 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74644, 9818, 454, 5478, 1261, 726, 25096, 2273, 18, 8378, 62, 682, 5623, 368, 341, 286, 1077, 18279, 34014, 792, 284, 23400, 61783, 486, 9585, 792, 486, 931, 33864, 543, 286, 1077, 18279, 907, 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...
4
#[test] fn test_u16x8_only_third_any() { let x1 = u16x8::new(2, 2, 1, 2, 2, 2, 2, 2); let x2 = u16x8::splat(1); assert!((x1.eq(x2)).any()); }
rust_cleaned_test_functions.jsonl/43291
{ "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, 7300, 16, 21, 87, 23, 18410, 79519, 37248, 368, 341, 286, 1077, 856, 16, 284, 575, 16, 21, 87, 23, 486, 931, 7, 17, 11, 220, 17, 11, 220, 16, 11, 220, 17, 11, 220, 17, 11, 220, 17, 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_exec_copy() { let header = make_test_header(EndianSlice::new(&[], LittleEndian)); let mut initial_registers = LineRow::new(&header); initial_registers.address = 1337; initial_registers.line = 42; let opcode = LineInstruction::Copy; let expected_...
rust_cleaned_test_functions.jsonl/20679
{ "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, 18430, 16096, 368, 341, 286, 1077, 4247, 284, 1281, 4452, 8757, 7, 43231, 33236, 486, 931, 2099, 12995, 14671, 43231, 3237, 286, 1077, 5206, 2856, 78360, 284, 7083, 3102, 486, 931, 2099, 2708, 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_build_swarm() { let id = get_random_id(); let transport = DummyTransport::<(PeerId, Multiplex<DummyStream>)>::new(); let behaviour = DummyBehaviour {}; let swarm = SwarmBuilder::new(transport, behaviour, id.into()) .incoming_connection_limit(4) ...
rust_cleaned_test_functions.jsonl/6023
{ "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, 20801, 32581, 2178, 368, 341, 286, 1077, 877, 284, 633, 22644, 842, 543, 286, 1077, 7557, 284, 50567, 27560, 27638, 7, 30888, 764, 11, 58712, 2571, 29061, 8574, 3027, 9231, 6831, 931, 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_basic_namespace() { let schema = r#" { "type":"record", "name":"com.testing.namespace.TestBasicNamespace", "fields":[ { "name":"a", "type":"int" }, { ...
rust_cleaned_test_functions.jsonl/27816
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 470 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 41571, 368, 341, 286, 1077, 10802, 284, 435, 2, 698, 286, 341, 310, 330, 1313, 3252, 8548, 756, 310, 330, 606, 3252, 874, 45056, 50409, 8787, 15944, 22699, 756, 310, 330, 9007, 8899, 198,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_add_thread_member() { let route = Route::AddThreadMember { channel_id: CHANNEL_ID, user_id: USER_ID, }; assert_eq!( route.to_string(), format!( "channels/{channel_id}/thread-members/{user_id}", ...
rust_cleaned_test_functions.jsonl/119839
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 10814, 19388, 368, 341, 286, 1077, 6021, 284, 9572, 486, 2212, 6855, 9366, 341, 310, 5496, 842, 25, 58756, 3450, 345, 310, 1196, 842, 25, 13872, 3450, 345, 286, 2605, 286, 2060, 10714, 336...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_identity() { let tr = TransformRT::IDENTITY; assert_eq!(tr.rotation, Quat::IDENTITY); assert_eq!(tr.translation, Vec3::ZERO); let srt = TransformSRT::IDENTITY; assert_eq!(srt.scale, Vec3::ONE); assert_eq!(srt.rotation, Quat::IDENTITY); ass...
rust_cleaned_test_functions.jsonl/120014
{ "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, 46244, 368, 341, 286, 1077, 489, 284, 15226, 5350, 486, 19811, 3333, 280, 286, 2060, 10714, 10297, 376, 23255, 11, 3406, 266, 486, 19811, 3333, 317, 286, 2060, 10714, 10297, 376, 53644, 11, 11312,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multi_node_ledger_window() -> result::Result<()> { logger::setup(); let leader_keypair = Arc::new(Keypair::new()); let leader_pubkey = leader_keypair.pubkey().clone(); let leader = Node::new_localhost_with_pubkey(leader_keypair.pubkey()); let leader_data = leader.info.clone(...
rust_cleaned_test_functions.jsonl/36552
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 5084, 38367, 1389, 12571, 368, 1464, 1102, 486, 2077, 71698, 341, 262, 5925, 486, 15188, 1428, 262, 1077, 7653, 3097, 12670, 284, 19689, 486, 931, 7, 6608, 1082, 1310, 486, 931, 1423, 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_url_for_external() { let mut rdef = ResourceDef::new("https://youtube.com/watch/{video_id}"); rdef.set_name("youtube"); let mut rmap = ResourceMap::new(ResourceDef::prefix("")); rmap.add(&mut rdef, None); let req = TestRequest::default().rmap(rmap).to_h...
rust_cleaned_test_functions.jsonl/39766
{ "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, 2903, 5478, 47432, 368, 341, 286, 1077, 5206, 435, 750, 284, 11765, 2620, 486, 931, 445, 2428, 1110, 43978, 905, 26213, 9388, 9986, 842, 64139, 286, 435, 750, 980, 1269, 445, 43978, 3071, 286, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_uint_as_string() { test_none_with_ctx_and_extra(cast_uint_as_string); let cs: Vec<(u64, Vec<u8>, String)> = vec![ ( i64::MAX as u64, (i64::MAX as u64).to_string().into_bytes(), (i64::MAX as u64).to_string(), ...
rust_cleaned_test_functions.jsonl/1969
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 640 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15807, 11898, 3904, 368, 341, 286, 1273, 31488, 6615, 15147, 8378, 31858, 1337, 559, 15807, 11898, 3904, 626, 286, 1077, 10532, 25, 11312, 28706, 84, 21, 19, 11, 11312, 34837, 23, 8066, 923, 16018...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rule_add_load() { let mut ctx = ScmpFilterContext::new_filter(ScmpAction::Allow).unwrap(); ctx.add_arch(ScmpArch::Native).unwrap(); let syscall = get_syscall_from_name("dup2", None).unwrap(); ctx.add_rule(ScmpAction::Errno(111), syscall, None).unwrap(); ...
rust_cleaned_test_functions.jsonl/66426
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21124, 2891, 12411, 368, 341, 286, 1077, 5206, 5635, 284, 2463, 1307, 5632, 1972, 486, 931, 8727, 7, 3326, 1307, 2512, 486, 18605, 568, 15454, 543, 286, 5635, 1364, 34330, 7, 3326, 1307, 18727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_document_cache_change() { let mut document_cache = DocumentCache::default(); let specifier = resolve_url("file:///a/b.ts").unwrap(); document_cache.open( specifier.clone(), 1, LanguageId::TypeScript, "console.log(\"Hello deno\");\n", ); document_cache ...
rust_cleaned_test_functions.jsonl/56714
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26231, 11529, 15947, 368, 341, 262, 1077, 5206, 2197, 11529, 284, 11789, 8233, 486, 2258, 543, 262, 1077, 97616, 284, 8830, 2903, 445, 1192, 60896, 64, 3470, 21288, 1827, 15454, 543, 262, 2197, 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_no_startfn_good() { let wasm: Vec<u8> = vec![ 0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00, 0x01, 0x04, 0x01, 0x60, 0x00, 0x00, 0x03, 0x02, 0x01, 0x00, 0x07, 0x08, 0x01, 0x04, 0x6d, 0x61, 0x69, 0x6e, 0x00, 0x00, 0x0a, 0x04, 0x01, 0x02, 0x00, 0x0b, ...
rust_cleaned_test_functions.jsonl/10747
{ "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, 6536, 4906, 8822, 44781, 368, 341, 286, 1077, 98263, 25, 11312, 34837, 23, 29, 284, 7486, 90515, 310, 220, 15, 87, 15, 15, 11, 220, 15, 87, 21, 16, 11, 220, 15, 87, 22, 18, 11, 220, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_config() { write_test_config(); let temp_dir = temp_dir(); let test_config_file = temp_dir.as_path().join("test_config"); let config: Config = parse_config(&test_config_file).unwrap(); assert_eq!(config.request_type, PackageType::Npm); }
rust_cleaned_test_functions.jsonl/19924
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5332, 368, 341, 286, 3270, 4452, 5332, 543, 286, 1077, 2730, 4334, 284, 2730, 4334, 543, 286, 1077, 1273, 5332, 2458, 284, 2730, 4334, 5357, 2638, 1005, 5987, 445, 1944, 5332, 797, 286, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_adaptive_predict_and_owned_tree() { let text = "a 34 b".to_owned(); let mut _lexer = ReferenceToATNLexer::new_with_token_factory( InputStream::new_owned(text.into_boxed_str()), &FACTORY, ); let token_source = CommonTokenStream::new(_lexer);...
rust_cleaned_test_functions.jsonl/113688
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 276 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10027, 27781, 26815, 8378, 51973, 11663, 368, 341, 286, 1077, 1467, 284, 330, 64, 220, 18, 19, 293, 3263, 983, 51973, 543, 286, 1077, 5206, 716, 38815, 284, 17207, 1249, 828, 30042, 327, 261, 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_optimizer_scope() -> Result<(), Box<EvalAltResult>> { const SCRIPT: &str = " fn foo() { FOO } foo() "; let engine = Engine::new(); let mut scope = Scope::new(); scope.push_constant("FOO", 42 as INT); let ast = engine.compile_with_scope(&scope, SCRIPT)?;...
rust_cleaned_test_functions.jsonl/70025
{ "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, 68168, 23199, 368, 1464, 5714, 68843, 8261, 23835, 831, 26017, 2077, 2452, 341, 262, 733, 53679, 25, 609, 495, 284, 6228, 286, 5168, 15229, 368, 314, 434, 19499, 456, 286, 15229, 741, 262, 41620, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_const_check() { err( "const one: int = 1; fun f() -> long { return one; }", pos(2, 31), Msg::ReturnType("long".into(), "int".into()), ); err( "const one: int = 1; fun f() { let x: Str = one; }", ...
rust_cleaned_test_functions.jsonl/106632
{ "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, 13610, 7200, 368, 341, 286, 1848, 1006, 310, 330, 1024, 825, 25, 526, 284, 220, 16, 280, 310, 2464, 282, 368, 1464, 1293, 314, 470, 825, 26, 335, 756, 310, 1133, 7, 17, 11, 220, 18, 16, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_candidate_fallback() { setup_for_test(); let new_message_ext = |f, to, term| { let mut m = new_message(f, to, MessageType::MsgAppend, 0); m.set_term(term); m }; let mut tests = vec![new_message_ext(2, 1, 1), new_message_ext(2, 1, 2)]; for (i, m) in tes...
rust_cleaned_test_functions.jsonl/54468
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 504 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62360, 761, 3420, 368, 341, 262, 6505, 5478, 4452, 543, 262, 1077, 501, 6462, 9927, 284, 760, 69, 11, 311, 11, 4647, 91, 341, 286, 1077, 5206, 296, 284, 501, 6462, 955, 11, 311, 11, 62336, 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...
4
#[test] fn test_let_const() { test( concat!( "function f(x) {", " if (true) {", " let y = x; y; y;", " }", "}", ), concat!( "function f(x) {", " if (true) { ", " let y;", ...
rust_cleaned_test_functions.jsonl/27734
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1092 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 1149, 13610, 368, 341, 262, 1273, 1006, 286, 33720, 33673, 310, 330, 1688, 282, 2075, 8, 314, 756, 310, 330, 220, 421, 320, 1866, 8, 314, 756, 310, 330, 262, 1077, 379, 284, 856, 26, 379...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_node_checks() { let mut data = Data::new(); assert!(data.apply(&create_node!(parent: 0, id: 1, name: "first")).is_ok()); assert!(data.apply(&create_node!(parent: 0, id: 2, name: "second")).is_ok()); assert!(data.apply(&create_node!(parent: 1, id: 3, name: "...
rust_cleaned_test_functions.jsonl/10366
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 5084, 75797, 368, 341, 286, 1077, 5206, 821, 284, 2885, 486, 931, 543, 286, 2060, 10297, 691, 13045, 2099, 3182, 5084, 10297, 3765, 25, 220, 15, 11, 877, 25, 220, 16, 11, 829, 25, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rejects_invalid_static_config() { let rules = vec![rule!("fuchsia.com" => "fuchsia.com", "/a" => "/b")]; let dynamic_config = make_rule_config(rules.clone()); let static_config = make_temp_file(|writer| { write!( writer, "{}", ...
rust_cleaned_test_functions.jsonl/46495
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 448 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 583, 82, 31433, 25360, 5332, 368, 341, 286, 1077, 5601, 284, 7486, 20703, 12937, 17223, 69, 73391, 905, 1, 589, 330, 69, 73391, 905, 497, 3521, 64, 1, 589, 3521, 65, 899, 935, 286, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_empty_pubkey() -> Result<()> { let pubkey = ed25519_dalek::PublicKey::from_bytes(&[0; 32])?; assert!(is_empty_pubkey(&pubkey)); let pubkey = ed25519_dalek::PublicKey::from_bytes(&[1; 32])?; assert!(!is_empty_pubkey(&pubkey)); let mut array = [0; 32]; array[0] = 1; ...
rust_cleaned_test_functions.jsonl/4930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 15124, 34014, 792, 368, 1464, 5714, 71698, 341, 262, 1077, 95116, 284, 1578, 17, 20, 20, 16, 24, 814, 1574, 74, 486, 61822, 486, 1499, 12524, 2099, 58, 15, 26, 220, 18, 17, 2467, 69493, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_mru() { let mut cache = Cache::with_capacity(100); let key1 = Key::Rid(RID(1)); let key2 = Key::Rid(RID(2)); let dbs = Box::new(DivBufShared::from(vec![0u8; 5])); cache.insert(key1, dbs); let dbs = Box::new(DivBufShared::from(vec![0u8; 7])); cache.insert(key2, dbs...
rust_cleaned_test_functions.jsonl/90041
{ "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, 3062, 717, 2672, 368, 341, 262, 1077, 5206, 6500, 284, 19479, 486, 4197, 35603, 7, 16, 15, 15, 317, 262, 1077, 1376, 16, 284, 5309, 486, 49, 307, 2785, 915, 7, 16, 1106, 262, 1077, 1376, 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_expected_sql_standard_interval_tokens() { use DateTimeField::*; use TimeStrToken::*; assert_eq!( expected_sql_standard_interval_tokens(Year), vec![Num(0, 1), Dash, Num(0, 1), Delim] ); assert_eq!( expected_sql_standard_...
rust_cleaned_test_functions.jsonl/100320
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32190, 18063, 48688, 20541, 28838, 368, 341, 286, 990, 6520, 1877, 56162, 286, 990, 4120, 2580, 3323, 56162, 286, 2060, 10714, 33673, 310, 3601, 18063, 48688, 20541, 28838, 7, 9490, 1326, 310, 7486,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_indices_1() { let mut a1 = Array::default(12); for (i, elt) in a1.indexed_iter_mut() { *elt = i; } let count = AtomicUsize::new(0); par_azip!(index i, elt (&a1) in { count.fetch_add(1, Ordering::SeqCst); assert_eq!(elt, i); }); assert_eq!(coun...
rust_cleaned_test_functions.jsonl/116943
{ "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, 18333, 62, 16, 368, 341, 262, 1077, 5206, 264, 16, 284, 2910, 486, 2258, 7, 16, 17, 317, 262, 369, 320, 72, 11, 54139, 8, 304, 264, 16, 5154, 291, 11723, 29523, 368, 341, 286, 353, 3818, 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_error_compilation_error() { let mut c = Compiler::new().unwrap(); let result = c.compile_into_spirv(TWO_ERROR, ShaderKind::Vertex, "shader.glsl", "main", None); assert!(result.is_err()); assert_eq!( Some(Error::CompilationError(2, TWO_ERROR...
rust_cleaned_test_functions.jsonl/41073
{ "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, 4096, 18177, 13455, 4096, 368, 341, 286, 1077, 5206, 272, 284, 45631, 486, 931, 1005, 15454, 543, 286, 1077, 1102, 4035, 310, 272, 18922, 45514, 643, 5565, 85, 4140, 22681, 5414, 11, 34788, 10629,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_minimal_json_response() { let mock = mock("POST", "/token") .match_header("Accept", "application/json") .match_header("Authorization", "Basic YWFhOmJiYg==") .match_body("grant_type=authorization_code&code=ccc") // Ensure that tok...
rust_cleaned_test_functions.jsonl/12766
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 656 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59212, 4136, 92951, 6615, 7260, 2861, 9455, 9655, 368, 341, 262, 1077, 7860, 284, 7860, 445, 2946, 497, 3521, 5839, 1138, 286, 659, 6347, 8757, 445, 16646, 497, 330, 5132, 8931, 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_multiple() { let mut dut0 = Routine::new(StackSize::KiB8, move ||{ for i in 0usize.. { swap(i*2); } }).unwrap(); let mut dut1 = Routine::new(StackSize::KiB8, move||{ for i in 0usize.. { swap(i*4); } }).unwrap(); for x in...
rust_cleaned_test_functions.jsonl/87592
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 267 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 368, 341, 262, 1077, 5206, 10043, 15, 284, 71062, 486, 931, 7, 74026, 486, 72572, 33, 23, 11, 3271, 1369, 515, 286, 369, 600, 304, 220, 15, 51878, 496, 341, 310, 14291, 1956, 9, 17, 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...
6
#[test] fn test_handshake() { let req = TestRequest::default().method(Method::POST).finish(); assert_eq!( HandshakeError::GetMethodRequired, verify_handshake(req.head()).err().unwrap() ); let req = TestRequest::default().finish(); assert_eq!( ...
rust_cleaned_test_functions.jsonl/22428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1894 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23194, 29661, 368, 341, 286, 1077, 4232, 284, 3393, 1900, 486, 2258, 1005, 4393, 35419, 486, 2946, 568, 30150, 543, 286, 2060, 10714, 33673, 310, 8536, 29661, 1454, 486, 85073, 8164, 345, 310, 101...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_and_reg_value2() { let compiled = compile("SET A 255\nAND A 345"); let out_cpu = test_program(compiled); assert_eq!(out_cpu.a.value, 89); assert_eq!(out_cpu.b.value, 0); assert_eq!(out_cpu.c.value, 0); assert_eq!(out_cpu.f.value, 0); }
rust_cleaned_test_functions.jsonl/63163
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 134 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8378, 4920, 3142, 17, 368, 341, 262, 1077, 19697, 284, 19192, 445, 5884, 362, 220, 17, 20, 20, 1699, 3976, 362, 220, 18, 19, 20, 797, 262, 1077, 700, 21795, 284, 1273, 25096, 30008, 2181, 626,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pubkey_extraction_from_2of2_multisig() { // Create pubkeys to contruct 2of2 multi let pub1 = PublicKey::from_str( "032e58afe51f9ed8ad3cc7897f634d881fdbe49a81564629ded8156bebd2ffd1af", ) .unwrap(); let pub2 = PublicKey::from_str( "0...
rust_cleaned_test_functions.jsonl/112479
{ "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, 34014, 792, 94842, 5673, 62, 17, 1055, 17, 26290, 285, 343, 368, 341, 286, 442, 4230, 6675, 10563, 311, 6027, 667, 220, 17, 1055, 17, 7299, 198, 286, 1077, 6675, 16, 284, 70280, 486, 1499, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_option_decode_vec() { assert!(Option::<u8>::strict_decode(&[2u8, 0u8, 0u8, 0u8][..]) .err() .is_some()); assert!(Option::<u8>::strict_decode(&[3u8, 0u8, 0u8, 0u8][..]) .err() .is_some()); assert!(Option::<u8>::strict_decode(...
rust_cleaned_test_functions.jsonl/21859
{ "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, 9672, 15227, 13251, 368, 341, 286, 2060, 10297, 5341, 27638, 84, 23, 6831, 6627, 15227, 2099, 58, 17, 84, 23, 11, 220, 15, 84, 23, 11, 220, 15, 84, 23, 11, 220, 15, 84, 23, 1457, 496, 2546...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lt_dyn_scalar() { let array = Int32Array::from(vec![6, 7, 8, 8, 10]); let a_eq = lt_dyn_scalar(&array, 8).unwrap(); assert_eq!( a_eq, BooleanArray::from( vec![Some(true), Some(true), Some(false), Some(false), Some(false)] ...
rust_cleaned_test_functions.jsonl/98211
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39164, 69213, 41652, 368, 341, 286, 1077, 1334, 284, 1333, 18, 17, 1857, 486, 1499, 25592, 20703, 21, 11, 220, 22, 11, 220, 23, 11, 220, 23, 11, 220, 16, 15, 2558, 286, 1077, 264, 10714, 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_reconnect_on_network_selection_results() { let mut exec = fuchsia_async::Executor::new().expect("failed to create an executor"); // Create a configured ClientIfaceContainer. let mut test_values = test_setup(&mut exec); // Insert a saved network. let ssid...
rust_cleaned_test_functions.jsonl/71965
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2440 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 6459, 4470, 20966, 23672, 13576, 368, 341, 286, 1077, 5206, 3883, 284, 282, 73391, 28346, 486, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 3071, 286, 442, 4230, 264, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_to_caps() { gst::init().unwrap(); let caps = gst::Caps::builder("video/x-raw") .field("format", "I420") .field("width", 320) .field("height", 240) .field("framerate", gst::Fraction::new(30, 1)) .field("pixel-aspect...
rust_cleaned_test_functions.jsonl/113670
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 593 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2346, 52955, 368, 341, 286, 43769, 486, 2327, 1005, 15454, 1428, 286, 1077, 18568, 284, 43769, 486, 60741, 486, 17850, 445, 9986, 10776, 12, 1041, 1138, 310, 659, 2566, 445, 2243, 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_example() { let uri = UriTemplate::new("/view/{object:1}{/object,names}{?query*}") .set("object", "lakes") .set("names", &["Erie", "Superior", "Ontario"]) .set("query", &[("size", "15"), ("lang", "en")]) .build(); assert_eq!( uri, "/view/l/...
rust_cleaned_test_functions.jsonl/45716
{ "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, 39304, 368, 341, 262, 1077, 13071, 284, 17226, 7275, 486, 931, 4283, 1050, 9388, 1700, 25, 16, 15170, 14, 1700, 10128, 971, 15170, 30, 1631, 9, 14451, 286, 659, 746, 445, 1700, 497, 330, 75, 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_encode_missing_ref() { let _m = mock("GET", "/subjects/testresult-value/versions/latest") .with_status(200) .with_header("content-type", "application/vnd.schemaregistry.v1+json") .with_body(&get_json_body(json_test_ref_schema(), 10)) .creat...
rust_cleaned_test_functions.jsonl/42273
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 449 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 40447, 7793, 368, 341, 286, 1077, 716, 76, 284, 7860, 445, 3806, 497, 3521, 64782, 12697, 1382, 19083, 14, 28290, 33149, 1138, 310, 659, 4197, 4773, 7, 17, 15, 15, 340, 310, 659, 4197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_overflow_payload() { let mut evt: pt_event = unsafe { mem::zeroed() }; evt.type_ = pt_event_type_ptev_overflow; evt.variant.overflow = pt_event__bindgen_ty_1__bindgen_ty_7 { ip: 11 }; let payload: Payload = evt.into(); match payload { ...
rust_cleaned_test_functions.jsonl/120129
{ "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, 79073, 32813, 368, 341, 286, 1077, 5206, 12358, 25, 10817, 6748, 284, 19860, 314, 1833, 486, 14154, 291, 368, 2605, 286, 12358, 4852, 62, 284, 10817, 6748, 1819, 20124, 5120, 79073, 280, 286, 1235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_transactional_multiple_windows() -> Result<()> { let mut op = select_stmt_from_query( r#" define tumbling window w2_1 with size = 2 end; define tumbling window w2_2 with size = 2 ...
rust_cleaned_test_functions.jsonl/81926
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1340 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 278, 45233, 58220, 368, 1464, 5714, 71698, 341, 286, 1077, 5206, 1179, 284, 3293, 21824, 5673, 5738, 1006, 310, 435, 2, 698, 310, 6979, 15394, 9695, 3241, 289, 17, 62, 16, 198, 310, 448, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_filter_incoming_allow_all_with_duplicates() { let mut filter = AllowAllSubscriptionFilter {}; let t1 = TopicHash::from_raw("t1"); let t2 = TopicHash::from_raw("t2"); let old = vec![t1.clone()].into_iter().collect(); let subscriptions = vec![ ...
rust_cleaned_test_functions.jsonl/121430
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 598 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 1243, 4959, 55731, 5705, 6615, 75051, 368, 341, 286, 1077, 5206, 4051, 284, 26530, 2403, 33402, 5632, 20375, 286, 1077, 259, 16, 284, 32911, 6370, 486, 1499, 16067, 445, 83, 16, 797, 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_ecdsa_pool_remove_unvalidated() { let mut ecdsa_pool = EcdsaPoolImpl::new( ic_logger::replica_logger::no_op_logger(), MetricsRegistry::new(), ); let time_source = FastForwardTimeSource::new(); let msg_id = { let ecdsa_dealing =...
rust_cleaned_test_functions.jsonl/43950
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 485 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36844, 96780, 15709, 18193, 4907, 59590, 368, 341, 286, 1077, 5206, 384, 4385, 9081, 15709, 284, 468, 4385, 9081, 10551, 9673, 486, 931, 1006, 310, 17902, 27413, 486, 9995, 15317, 27413, 486, 2152, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_settings_frame_on_push_stream() { test_wrong_frame_on_push_stream(&[0x4, 0x4, 0x6, 0x4, 0x8, 0x4]); }
rust_cleaned_test_functions.jsonl/101887
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 75 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10853, 8929, 4470, 14218, 12673, 368, 341, 286, 1273, 75198, 8929, 4470, 14218, 12673, 2099, 58, 15, 87, 19, 11, 220, 15, 87, 19, 11, 220, 15, 87, 21, 11, 220, 15, 87, 19, 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
#[test] fn test_cp_archive() { let (at, mut ucmd) = at_and_ucmd!(); let ts = time::now().to_timespec(); let previous = FileTime::from_unix_time(ts.sec as i64 - 3600, ts.nsec as u32); // set the file creation/modification an hour ago filetime::set_file_times( at.plus_as_string(TEST_HE...
rust_cleaned_test_functions.jsonl/21270
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 464 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39811, 42873, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 10591, 284, 882, 486, 3328, 1005, 983, 22353, 992, 543, 262, 1077, 3681, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_v_v2() { let g = traversal().with_remote(graph_serializer(GraphSON::V2)); let results = g.add_v("person").to_list().unwrap(); assert!(results.len() > 0); assert_eq!("person", results[0].label()); let results = g.add_v("person").add_v(()).to_list().unwrap(); asser...
rust_cleaned_test_functions.jsonl/26277
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 2273, 2273, 17, 368, 341, 262, 1077, 342, 284, 56302, 1005, 4197, 36425, 24312, 67441, 63779, 2703, 486, 53, 17, 3237, 262, 1077, 3059, 284, 342, 1364, 2273, 445, 8987, 1827, 983, 2019, 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