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_encode_and_decode_batch() -> Result<(), IoError> { let value = vec![0x74, 0x65, 0x73, 0x74]; let record = DefaultRecord { value: DefaultAsyncBuffer::new(value), ..Default::default() }; let mut batch = DefaultBatch::default(); batch....
rust_cleaned_test_functions.jsonl/89502
{ "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, 11224, 8378, 15227, 14534, 368, 1464, 5714, 68843, 29655, 1454, 29, 341, 286, 1077, 897, 284, 7486, 20703, 15, 87, 22, 19, 11, 220, 15, 87, 21, 20, 11, 220, 15, 87, 22, 18, 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...
3
#[test] fn test_string() { assert_leaf! { parsers [ string dq_string ] r#""hello world""# -> 0..13 { String(tag(1, 12)) } } assert_leaf! { parsers [ string sq_string ] r"'hello world'" -> 0..13 { String(tag(1, 12)) } } }
rust_cleaned_test_functions.jsonl/46719
{ "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, 3904, 368, 341, 286, 2060, 38909, 0, 341, 310, 87073, 508, 914, 71613, 3904, 5133, 310, 435, 2, 3014, 14990, 1879, 3014, 2, 1464, 220, 15, 496, 16, 18, 314, 923, 19343, 7, 16, 11, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parking_lot_evict_only_for_ready_txn_insertion() { let mut config = NodeConfig::random(); config.mempool.capacity = 6; let mut pool = CoreMempool::new(&config); // Add transactions with the following sequence numbers to Mempool. for seq in &[0, 1, 2, 9, 10, 11] { add_...
rust_cleaned_test_functions.jsonl/80943
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 462 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 33452, 91849, 43713, 849, 18410, 5478, 35456, 92299, 17678, 290, 368, 341, 262, 1077, 5206, 2193, 284, 6018, 2648, 486, 11463, 543, 262, 2193, 744, 3262, 1749, 59168, 284, 220, 21, 280, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_auth_token() { let auth_tokens = AuthTokens::new(Some("abc123@deno.land".to_string())); let fixture = resolve_url("https://deno.land/x/mod.ts").unwrap(); assert_eq!( auth_tokens.get(&fixture).unwrap().to_string(), "Bearer abc123" ); let fixture = resolve_url("http...
rust_cleaned_test_functions.jsonl/105821
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 381 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14014, 6458, 368, 341, 262, 1077, 4166, 28838, 284, 7366, 29300, 486, 931, 65405, 445, 13683, 16, 17, 18, 31, 5183, 78, 87627, 3263, 983, 3904, 7392, 262, 1077, 12507, 284, 8830, 2903, 445, 2428...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_four_of_a_kind_ranks() { test(&["2S 2H 2C 8D 2D", "4S 5H 5S 5D 5C"], &["4S 5H 5S 5D 5C"]) }
rust_cleaned_test_functions.jsonl/49918
{ "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, 56142, 3575, 4306, 33162, 1710, 4039, 368, 341, 1066, 262, 1273, 2099, 1183, 17, 50, 220, 17, 39, 220, 17, 34, 220, 23, 35, 220, 17, 35, 497, 330, 19, 50, 220, 20, 39, 220, 20, 50, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval_fun_call_2() { let expr = Expr::FunCall("f".to_string(), Box::new(vec![integer_expr(123)])); let mut ctx = ctx(); (*ctx).put("f", RuntimeItem::Function(vec!["x".to_string()], Expr::BindingRef("x".to_string()))); let res = eval_expr(&expr...
rust_cleaned_test_functions.jsonl/108371
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 197 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 28315, 13429, 62, 17, 368, 972, 16885, 286, 1077, 15169, 284, 28819, 486, 30855, 7220, 445, 69, 3263, 983, 3904, 1507, 8261, 486, 931, 25592, 20703, 11662, 21915, 7, 16, 17, 18, 7252, 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_mapping_out_of_bounds() { let mut map = MemoryMap::new(); map.push_remap(0x1000.into(), 0x1000, 0.into()); map.push_remap(0x3000.into(), 0x1000, 0x2000.into()); let mut void = vec![]; let mut cbvoid: OpaqueCallback<_> = (&mut void).into(); assert_...
rust_cleaned_test_functions.jsonl/70006
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 535 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26930, 6068, 3575, 36878, 368, 341, 286, 1077, 5206, 2415, 284, 13850, 2227, 486, 931, 543, 286, 2415, 2552, 1288, 2186, 7, 15, 87, 16, 15, 15, 15, 39860, 1507, 220, 15, 87, 16, 15, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_nan() { let nan: f32 = f32::NAN; let inf: f32 = f32::INFINITY; let neg_inf: f32 = f32::NEG_INFINITY; assert!(nan.is_nan()); assert!(!0.0f32.is_nan()); assert!(!5.3f32.is_nan()); assert!(!(-10.732f32).is_nan()); assert!(!inf.is_na...
rust_cleaned_test_functions.jsonl/8100
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 73936, 368, 341, 286, 1077, 20021, 25, 282, 18, 17, 284, 282, 18, 17, 486, 45, 1093, 280, 286, 1077, 4132, 25, 282, 18, 17, 284, 282, 18, 17, 486, 687, 55990, 280, 286, 1077, 4184, 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_remove_thread_member() { let route = Route::RemoveThreadMember { 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/119841
{ "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, 18193, 10814, 19388, 368, 341, 286, 1077, 6021, 284, 9572, 486, 13021, 6855, 9366, 341, 310, 5496, 842, 25, 58756, 3450, 345, 310, 1196, 842, 25, 13872, 3450, 345, 286, 2605, 286, 2060, 10714, 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_basic_state_synchronization() { // - Kill one node and continue submitting transactions to the others. // - Restart the node // - Wait for all the nodes to catch up // - Verify that the restarted node has synced up with the submitted transactions. let mut env = Smo...
rust_cleaned_test_functions.jsonl/33390
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1548 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 4387, 643, 67929, 368, 341, 1066, 262, 442, 481, 26835, 825, 2436, 323, 3060, 33094, 14131, 311, 279, 3800, 624, 262, 442, 481, 56801, 279, 2436, 198, 262, 442, 481, 13824, 369, 678, 279,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_simple() -> Result<()> { let query = "select number from numbers(1000) order by number limit 10;"; let ctx = crate::tests::try_create_context()?; let plan = crate::tests::parse_query(query, &ctx)?; let mut optimizer = TopNPushDownOptimizer::create(ctx); let plan_node = opti...
rust_cleaned_test_functions.jsonl/52995
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 278 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 368, 1464, 5714, 71698, 341, 262, 1077, 3239, 284, 330, 1742, 1372, 504, 5109, 7, 16, 15, 15, 15, 8, 1973, 553, 1372, 3930, 220, 16, 15, 39678, 262, 1077, 5635, 284, 17717, 486, 23841, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_scoped_register() { let (_s, cfg) = start_dummy_server_with_cfg(); let mut trans = Transport::new_with_cfg("127.0.0.1", cfg).unwrap(); { let mut auto = ScopedRegister::new(&mut trans, 0, RegisterDropFunction::Value(0xbeef)) .unwrap(); ...
rust_cleaned_test_functions.jsonl/46846
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1158 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13171, 16367, 14000, 368, 341, 286, 1077, 5453, 82, 11, 13286, 8, 284, 1191, 60321, 12015, 6615, 18343, 543, 286, 1077, 5206, 1356, 284, 16742, 486, 931, 6615, 18343, 445, 16, 17, 22, 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_age_time() { solana_logger::setup(); let bins = 1; let test = BucketMapHolder::<u64>::new(bins, &Some(AccountsIndexConfig::default()), 1); let threads = 2; let time = AGE_MS * 8 / 3; let expected = (time / AGE_MS) as Age; let now = Instant:...
rust_cleaned_test_functions.jsonl/5428
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32053, 3009, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 28518, 284, 220, 16, 280, 286, 1077, 1273, 284, 47768, 2227, 8589, 27638, 84, 21, 19, 6831, 931, 1883, 1330, 11, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_constant_condition_with_side_effect1() { test("if (b=true) x=1;", "b=true;x=1"); test("if (b=/ab/) x=1;", "b=/ab/;x=1"); test("if (b=/ab/){ x=1; } else { x=2; }", "b=/ab/;x=1"); test_same("var b;b=f();if(b)x=1;"); test_same("var b=f();if(b)x=1;"); test_same("b=b...
rust_cleaned_test_functions.jsonl/373
{ "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, 34967, 27656, 6615, 30862, 27125, 16, 368, 341, 262, 1273, 445, 333, 320, 65, 11265, 8, 856, 28, 16, 32503, 330, 65, 11265, 54621, 28, 16, 797, 262, 1273, 445, 333, 320, 65, 23286, 370, 50807,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_help() { let oup = exec_target(TARGET_EXE_PATH, &["-h"]); assert_eq!(oup.status.success(), true); assert_eq!(oup.stdout, help_msg!()); assert_eq!(oup.stderr, ""); }
rust_cleaned_test_functions.jsonl/79970
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26926, 368, 341, 262, 1077, 5908, 79, 284, 3883, 11123, 4140, 16474, 4966, 36, 7944, 11, 609, 1183, 12, 71, 15049, 262, 2060, 10714, 10297, 13346, 4299, 15426, 1507, 830, 317, 262, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_rwlock_unsized() { let rw: &RwLock<[i32]> = &RwLock::new([1, 2, 3]); { let b = &mut *rw.write(); b[0] = 4; b[2] = 5; } let comp: &[i32] = &[4, 2, 5]; assert_eq!(&*rw.read(), comp); }
rust_cleaned_test_functions.jsonl/15752
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98850, 4907, 82, 1506, 368, 341, 286, 1077, 25991, 25, 609, 49, 86, 11989, 66746, 72, 18, 17, 25669, 284, 609, 49, 86, 11989, 486, 931, 2561, 16, 11, 220, 17, 11, 220, 18, 2558, 286, 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_parse_min_record() { let buf = vec![1, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0]; assert_eq!( parse_min_record(&buf), Some(Record { promise_id: 1, arg: 3, result: 4, }) ); let buf = vec![]; assert_eq!(parse_min_record(&buf), None); let buf = vec![5]; assert_e...
rust_cleaned_test_functions.jsonl/97341
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 175 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 7260, 14192, 368, 341, 220, 1077, 6607, 284, 7486, 20703, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 18, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 19, 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_reader() { let chroms = ["1", "2"]; let starts = [5, 3]; let ends = [5000, 5005]; let names = ["name1", "name2"]; let scores = ["up", "up"]; let mut reader = Reader::new(BED_FILE); for (i, r) in reader.records().enumerate() { l...
rust_cleaned_test_functions.jsonl/3944
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 331 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22306, 368, 341, 286, 1077, 21372, 82, 284, 4383, 16, 497, 330, 17, 6332, 286, 1077, 8471, 284, 508, 20, 11, 220, 18, 935, 286, 1077, 10335, 284, 508, 20, 15, 15, 15, 11, 220, 20, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_left_string() { assert_linter_err!("X$ = \"hello\" - \"hi\"", LinterError::TypeMismatch, 1, 16); assert_linter_err!("X$ = \"hello\" - 1", LinterError::TypeMismatch, 1, 16); assert_linter_err!("X$ = \"hello\" - 1.1", LinterError::TypeMismatch, 1, 16); ...
rust_cleaned_test_functions.jsonl/22654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9579, 3904, 368, 341, 310, 2060, 907, 2245, 9266, 17223, 55, 3, 284, 7245, 14990, 2105, 481, 7245, 6023, 55853, 444, 2245, 1454, 486, 929, 82572, 11, 220, 16, 11, 220, 16, 21, 317, 310, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_function_declaration_invalid_missing_fn_keyword_and_parens() { let mut p = make_parser("name { echo body; }"); assert_eq!( Err(Unexpected(Token::CurlyOpen, src(5, 1, 6))), p.function_declaration() ); }
rust_cleaned_test_functions.jsonl/69867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 113 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9174, 77926, 31433, 40447, 15246, 45824, 8378, 620, 546, 4412, 368, 341, 262, 1077, 5206, 281, 284, 1281, 18517, 445, 606, 314, 1687, 2487, 26, 335, 797, 262, 2060, 10714, 33673, 286, 15495, 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_sort() { // Create a vector of semver_rs::Version let mut input_versions_list = vec![ "1.2.3-dev", "1.2.3-dev.1", "1.2.3-dev.cache", "1.2.3", "2.0.0", "1.1.1", ] .iter() .flat_map(|ver...
rust_cleaned_test_functions.jsonl/120744
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 534 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 368, 341, 286, 442, 4230, 264, 4621, 315, 5234, 423, 47115, 486, 5637, 198, 286, 1077, 5206, 1946, 65148, 2019, 284, 7486, 90515, 310, 330, 16, 13, 17, 13, 18, 25758, 756, 310, 330, 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_remove_from_rrb_backend() { let mut rrb = InnerPool::new(vec![]); let server1 = Server::new(FromStr::from_str("http://127.0.0.1:6000").unwrap(), false); let server2 = Server::new(FromStr::from_str("http://127.0.0.1:6001").unwrap(), false); rrb.add(Backend::new(ser...
rust_cleaned_test_functions.jsonl/13913
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 531 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 5673, 56285, 65, 40011, 368, 341, 286, 1077, 5206, 435, 10681, 284, 36356, 10551, 486, 931, 25592, 0, 56703, 286, 1077, 3538, 16, 284, 8422, 486, 931, 7, 3830, 2580, 486, 1499, 2895, 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_consensus() { sc_service_test::consensus( crate::chain_spec::tests::integration_test_config_with_two_authorities(), |config| { let NewFullBase { task_manager, client, network, transaction_pool, .. } = new_full_base(config, |_, _| ())?; Ok(sc_service_test::TestNetComponents::...
rust_cleaned_test_functions.jsonl/14950
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 315 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31971, 13626, 368, 341, 197, 29928, 12267, 4452, 486, 6254, 13626, 1006, 298, 1444, 7698, 486, 8819, 13594, 486, 23841, 486, 60168, 4452, 5332, 6615, 23241, 22938, 1361, 3148, 298, 197, 91, 1676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ancestors_permutations() { solana_logger::setup(); let mut ancestors = Ancestors::default(); let mut hash = HashMap::new(); let min = 101_000; let width = 400_000; let dead = 19; let mut slot = min; while hash.len() < width { ...
rust_cleaned_test_functions.jsonl/8249
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 684 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 681, 267, 1087, 31961, 82141, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 5206, 37518, 284, 1527, 15184, 1087, 486, 2258, 543, 286, 1077, 5206, 5175, 284, 10528, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
#[test] fn test_from_bytes() { let scheme = Scheme::from_bytes(Bytes::from_static(b"foo:")); assert_eq!(scheme.origin, Bytes::from_static(b"foo:")); }
rust_cleaned_test_functions.jsonl/132940
{ "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, 5673, 12524, 368, 341, 286, 1077, 12859, 284, 43781, 486, 1499, 12524, 76423, 486, 1499, 25360, 1883, 1, 7975, 25, 4010, 286, 2060, 10714, 10297, 46141, 20248, 11, 30024, 486, 1499, 25360, 1883, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ignore_same_transaction_submitted_to_mempool() { let (mut mempool, _) = setup_mempool(); let _ = add_txns_to_mempool(&mut mempool, vec![TestTransaction::new(0, 0, 0)]); let ret = add_txn(&mut mempool, TestTransaction::new(0, 0, 0)); assert!(ret.is_ok()) }
rust_cleaned_test_functions.jsonl/80932
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 126 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58493, 33574, 28884, 5228, 5483, 2346, 717, 3262, 1749, 368, 341, 262, 1077, 320, 6984, 1833, 10285, 11, 27439, 284, 6505, 717, 3262, 1749, 543, 262, 1077, 716, 284, 912, 17805, 4412, 2346, 717, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_established_close() { let mut s = socket_established(); s.close(); assert_eq!(s.state, State::FinWait1); sanity!(s, socket_fin_wait_1()); }
rust_cleaned_test_functions.jsonl/1733
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18583, 5102, 291, 12704, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 274, 4653, 543, 286, 2060, 10714, 10297, 82, 3467, 11, 3234, 486, 9134, 14190, 16, 317, 286, 46842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_seminar() { let reponse = " <div id=\"page-body\"> <div class=\"small-12 medium-12 large-12 cell\"> <!-- Display ONE detailed seminar. --> <div style=\"text-align:center\"><img src=\"/media/uploaded-images/1021.jpg\"></div> <h3>Seminar:</h3> <p style=\"fon...
rust_cleaned_test_functions.jsonl/25041
{ "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, 21039, 3453, 1065, 277, 368, 341, 262, 1077, 312, 1025, 284, 6228, 262, 366, 611, 877, 4070, 2893, 9350, 34821, 688, 366, 611, 536, 4070, 9004, 12, 16, 17, 11051, 12, 16, 17, 3460, 12, 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...
1
#[test] fn test_records() { let era: EraIndex = 100; let epoch: EpochIndex = 20; let account = AccountId32::from_str("DSov56qpKEc32ZjhCN1qTPmTYW3tM65wmsXVkrrtXV3ywpV").unwrap(); let authority_idx: AuthorityIndex = 123; // Define some records let mut r...
rust_cleaned_test_functions.jsonl/54288
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1552 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31279, 368, 341, 286, 1077, 11385, 25, 47588, 1552, 284, 220, 16, 15, 15, 280, 286, 1077, 16342, 25, 87379, 1552, 284, 220, 17, 15, 280, 286, 1077, 2692, 4035, 310, 8615, 764, 18, 17, 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...
6
#[test] fn test_eval_unary_function_vector() { #[rpn_fn(nullable)] fn foo(v: Option<&i64>) -> Result<Option<i64>> { Ok(v.map(|v| v + 5)) } let mut columns = LazyBatchColumnVec::from(vec![{ let mut col = LazyBatchColumn::decoded_with_capacity_and_t...
rust_cleaned_test_functions.jsonl/92663
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 638 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 4907, 658, 9174, 12247, 368, 341, 394, 11506, 81, 19958, 15246, 34885, 5563, 286, 5168, 15229, 3747, 25, 6959, 52244, 72, 21, 19, 9231, 1464, 5714, 94150, 21897, 21, 19, 2452, 341, 310, 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_ambiguity_1() { let mut l = Lexer::<DefaultContext>::new(b"T(a)->m = 7;"); let p = DeclOrExprParser::new(&mut l); let mut context = Context::default(); let t = add_t_type(&mut context); let (_, decl) = p.parse(None, &mut context).unwrap(); let dec...
rust_cleaned_test_functions.jsonl/117544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1000 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 2969, 26745, 487, 62, 16, 368, 341, 286, 1077, 5206, 326, 284, 85082, 27638, 3675, 1972, 6831, 931, 1883, 95029, 2877, 3997, 76, 284, 220, 22, 34649, 286, 1077, 281, 284, 31625, 2195, 16041,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_identifier_reserved_word() { for &keyword in KEYWORDS.iter() { assert_parse_failure!(identifier, keyword); } for &keyword in FUTURE_RESERVED_WORDS.iter() { assert_parse_failure!(identifier, keyword); } for &keyword in FUTURE_RESERVED_WORDS_STRICT.iter() { ...
rust_cleaned_test_functions.jsonl/66448
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 238 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33176, 74913, 13533, 368, 341, 262, 369, 609, 19863, 304, 12013, 94397, 19471, 368, 341, 286, 2060, 21039, 43618, 10297, 15909, 11, 16174, 317, 262, 456, 262, 369, 609, 19863, 304, 434, 87558, 675...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_health_check_with_trusted_validators() { let cluster_info = Arc::new(ClusterInfo::default()); let health_check_slot_distance = 123; let override_health_check = Arc::new(AtomicBool::new(false)); let trusted_validators = vec![ solana_sdk::pubkey::new_ran...
rust_cleaned_test_functions.jsonl/38937
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1580 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45727, 7200, 6615, 3547, 27145, 8337, 2973, 368, 341, 286, 1077, 10652, 3109, 284, 19689, 486, 931, 43644, 4993, 1731, 486, 2258, 1423, 286, 1077, 2820, 7200, 27563, 19464, 284, 220, 16, 17, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_boxed_hasher() { let ordinary_hash = hash(&5u32); let mut hasher_1 = Box::new(DefaultHasher::new()); 5u32.hash(&mut hasher_1); assert_eq!(ordinary_hash, hasher_1.finish()); let mut hasher_2 = Box::new(DefaultHasher::new()) as Box<dyn Hasher>; 5u32.hash(&mut hasher_2); ...
rust_cleaned_test_functions.jsonl/5069
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10194, 291, 8950, 261, 368, 341, 262, 1077, 19119, 8950, 284, 5175, 2099, 20, 84, 18, 17, 626, 262, 1077, 5206, 90819, 62, 16, 284, 8261, 486, 931, 87874, 6370, 261, 486, 931, 1423, 262, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rotate_left() { const N: usize = 600; let a: &mut [_] = &mut [0; N]; for i in 0..N { a[i] = i; } a.rotate_left(42); let k = N - 42; for i in 0..N { assert_eq!(a[(i + k) % N], i); } }
rust_cleaned_test_functions.jsonl/4152
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60834, 9579, 368, 341, 262, 733, 451, 25, 22301, 284, 220, 21, 15, 15, 280, 262, 1077, 264, 25, 609, 6984, 15133, 60, 284, 609, 6984, 508, 15, 26, 451, 935, 262, 369, 600, 304, 220, 15, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_statsd_client_time_multiple_durations_with_overflow() { let client = StatsdClient::from_sink("prefix", NopMetricSink); let durations = vec![ Duration::from_millis(157), Duration::from_secs(u64::MAX), Duration::from_millis(159), ]; ...
rust_cleaned_test_functions.jsonl/10593
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 204 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 3009, 45233, 814, 21449, 6615, 79073, 368, 341, 286, 1077, 2943, 284, 29927, 67, 2959, 486, 1499, 51567, 445, 11849, 497, 451, 453, 54310, 45094, 317, 286, 1077, 89104, 284, 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_optflag_multi() { let args = vec!["--test".to_string(), "-t".to_string()]; match Options::new().optflag("t", "test", "testing").parse(&args) { Err(OptionDuplicated(_)) => {} _ => panic!(), } }
rust_cleaned_test_functions.jsonl/52367
{ "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, 15032, 9903, 25133, 368, 341, 262, 1077, 2827, 284, 7486, 0, 1183, 313, 1944, 3263, 983, 3904, 1507, 6523, 83, 3263, 983, 3904, 33800, 262, 2432, 14566, 486, 931, 1005, 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_row_complex_accessors() { let row = make_row(vec![ ( "a".to_string(), Field::Group(make_row(vec![ ("x".to_string(), Field::Null), ("Y".to_string(), Field::Int(2)), ])), ), ( "b".to_string(), Field::ListInternal(mak...
rust_cleaned_test_functions.jsonl/43811
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 474 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8530, 41522, 12759, 1087, 368, 341, 262, 1077, 2802, 284, 1281, 8530, 25592, 90515, 414, 2399, 286, 330, 64, 3263, 983, 3904, 3148, 286, 8601, 486, 2808, 36944, 8530, 25592, 90515, 688, 3489, 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_compute_leader_slots() { assert_eq!( PohRecorder::compute_leader_slot_ticks(None, 0), (None, 0, 0) ); assert_eq!( PohRecorder::compute_leader_slot_ticks(Some((4, 4)), 8), (Some(36), 39, 4) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/31734
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57028, 79991, 54161, 368, 341, 286, 2060, 10714, 33673, 310, 393, 2267, 47023, 486, 27706, 79991, 27563, 49961, 26717, 11, 220, 15, 1326, 310, 320, 4064, 11, 220, 15, 11, 220, 15, 340, 286, 3475...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_content_type_plain_text() { assert_eq!( HeaderValue::from_static(CONTENT_TYPE_PLAIN_TEXT_STR) .to_str() .unwrap(), CONTENT_TYPE_PLAIN_TEXT_STR ); }
rust_cleaned_test_functions.jsonl/59746
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7495, 1819, 41015, 4326, 368, 341, 286, 2060, 10714, 33673, 310, 12104, 1130, 486, 1499, 25360, 98747, 1825, 4189, 11082, 6836, 10243, 7159, 340, 394, 659, 983, 2895, 741, 394, 659, 15454, 3148, 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
#[test] fn test_lockup_stake_accounts() { let (bank, funding_keypair, stake_rent, system_rent) = create_bank(10_000_000); let funding_pubkey = funding_keypair.pubkey(); let bank_client = BankClient::new(bank); let fee_payer_keypair = create_account(&bank_client, &funding_keypair,...
rust_cleaned_test_functions.jsonl/67785
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1294 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9818, 454, 1261, 726, 55665, 368, 341, 286, 1077, 320, 17033, 11, 10773, 3097, 12670, 11, 18279, 83127, 11, 1849, 83127, 8, 284, 1855, 35733, 7, 16, 15, 62, 15, 15, 15, 62, 15, 15, 15, 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...
2
#[test] fn test_header_map_to_string() { let mut hm = HeaderMap::new(); hm.insert("custom-header", HeaderValue::from_static("custom-value")); hm.insert("custom-header2", HeaderValue::from_static("custom-value2")); let str = header_map_to_string(&hm).unwrap(); assert_eq!( ...
rust_cleaned_test_functions.jsonl/90013
{ "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, 8757, 5376, 2346, 3904, 368, 341, 286, 1077, 5206, 49362, 284, 12104, 2227, 486, 931, 543, 286, 49362, 7030, 445, 9163, 9351, 497, 12104, 1130, 486, 1499, 25360, 445, 9163, 19083, 4010, 286, 49362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_integration() { let bit_and_parser = AggrFnDefinitionParserBitOp::<BitAnd>::new(); let bit_or_parser = AggrFnDefinitionParserBitOp::<BitOr>::new(); let bit_xor_parser = AggrFnDefinitionParserBitOp::<BitXor>::new(); let bit_and = ExprDefBuilder::aggr_func(ExprType...
rust_cleaned_test_functions.jsonl/110195
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 90250, 368, 341, 286, 1077, 2699, 8378, 18517, 284, 4598, 901, 24911, 10398, 6570, 8344, 7125, 27638, 8344, 3036, 6831, 931, 543, 286, 1077, 2699, 8734, 18517, 284, 4598, 901, 24911, 10398, 6570, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_insert_space() { let mut cl = Cmdline::new(100); assert_eq!(cl.insert("a ", "b"), Err(Error::HasSpace)); assert_eq!(cl.insert("a", "b "), Err(Error::HasSpace)); assert_eq!(cl.insert("a ", "b "), Err(Error::HasSpace)); assert_eq!(cl.insert(" a", "b"), Err(E...
rust_cleaned_test_functions.jsonl/29214
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 14663, 368, 341, 286, 1077, 5206, 1185, 284, 40210, 1056, 486, 931, 7, 16, 15, 15, 317, 286, 2060, 10714, 10297, 564, 7030, 445, 64, 3670, 330, 65, 3975, 15495, 37396, 486, 10281, 9914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_h1_body_chunked_explicit() { let mut srv = TestServer::new(|| { HttpService::build().h1(|_| { let body = once::<_, Error>(Ok(Bytes::from_static(STR.as_ref()))); ok::<_, ()>( Response::Ok() .header(header::TRANSFER_ENCODING, ...
rust_cleaned_test_functions.jsonl/102558
{ "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, 16, 14114, 30539, 291, 14214, 6026, 368, 341, 262, 1077, 5206, 43578, 284, 3393, 5475, 486, 931, 79453, 341, 286, 4823, 1860, 486, 5834, 1005, 71, 16, 22428, 35395, 341, 310, 1077, 2487, 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_try_from() { let bad_source = "not valid source"; assert!(Tree::try_from(bad_source).is_err()); let mut good_file = std::fs::File::open("examples/dialogue_files/ex_1.convo.yml").unwrap(); let mut good_source = String::new(); std::io::Read::read_to_string(&mut good_file, &mut...
rust_cleaned_test_functions.jsonl/110228
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 160 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 368, 341, 262, 1077, 3873, 10347, 284, 330, 1921, 2697, 2530, 876, 262, 2060, 10297, 6533, 486, 1539, 5673, 1883, 329, 10347, 568, 285, 9266, 5231, 262, 1077, 5206, 1661, 2458, 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_find_available_port_in_range() { let ip_addr = IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)); assert_eq!( find_available_port_in_range(ip_addr, (3000, 3001)).unwrap(), 3000 ); let port = find_available_port_in_range(ip_addr, (3000, 3050)).unwrap();...
rust_cleaned_test_functions.jsonl/43712
{ "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, 21814, 26962, 8716, 1243, 9698, 368, 341, 286, 1077, 5997, 7387, 284, 35033, 13986, 486, 53, 19, 8972, 30168, 19, 13986, 486, 931, 7, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 1106, 286, 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_bswap() { unsafe { assert_eq!(_bswap(0x0EADBE0F), 0x0FBEAD0E); assert_eq!(_bswap(0x00000000), 0x00000000); } }
rust_cleaned_test_functions.jsonl/116088
{ "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, 880, 25741, 368, 341, 286, 19860, 341, 310, 2060, 10714, 0, 2490, 1279, 21726, 7, 15, 87, 15, 36, 1808, 11594, 15, 37, 701, 220, 15, 87, 15, 37, 11594, 1808, 15, 36, 317, 310, 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_pitch_pos_1() { check_euler(Euler { x: Rad(1f32), y: Rad(0f32), z: Rad(0f32), }); }
rust_cleaned_test_functions.jsonl/38247
{ "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, 51959, 6479, 62, 16, 368, 341, 286, 1779, 2204, 8479, 10722, 8479, 341, 310, 856, 25, 20605, 7, 16, 69, 18, 17, 1326, 310, 379, 25, 20605, 7, 15, 69, 18, 17, 1326, 310, 1147, 25, 20605, 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
#[test] fn test_variable_error() { const FORMAT_STR: &str = "$never$some"; let never_error = StringFormatterError::Custom("NEVER".to_owned()); let segments = StringFormatter::new(FORMAT_STR).and_then(|formatter| { formatter .map(|var| match var { ...
rust_cleaned_test_functions.jsonl/71895
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14635, 4096, 368, 341, 286, 733, 52225, 7159, 25, 609, 495, 284, 5201, 36493, 3, 14689, 876, 286, 1077, 2581, 4096, 284, 923, 14183, 1454, 486, 10268, 445, 3944, 3763, 3263, 983, 51973, 5231, 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...
2
#[test] fn test_get_no_data_value() { let dataset = Dataset::open(fixture!("tinymarble.png")).unwrap(); let rasterband = dataset.rasterband(1).unwrap(); let no_data_value = rasterband.no_data_value(); assert!(no_data_value.is_none()); }
rust_cleaned_test_functions.jsonl/83452
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 130 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 6536, 1769, 3142, 368, 341, 262, 1077, 10337, 284, 39183, 486, 2508, 94886, 17223, 55971, 1600, 277, 891, 3508, 15197, 15454, 543, 262, 1077, 47208, 7053, 284, 10337, 1746, 2300, 7053, 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_propagating_known_values() { let mut value = SquareValue::new(); assert_eq!(false, value.needs_to_be_propagated()); value.set_known_value(5); assert_eq!(true, value.needs_to_be_propagated()); value.has_been_propagated(); assert_eq!(false, value....
rust_cleaned_test_functions.jsonl/33728
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21663, 351, 1095, 71690, 9146, 368, 341, 286, 1077, 5206, 897, 284, 15619, 1130, 486, 931, 1428, 286, 2060, 10714, 10297, 3849, 11, 897, 22631, 6767, 2346, 21263, 21663, 351, 657, 5231, 286, 897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cast_from_uint32() { let u32_values: Vec<u32> = vec![ 0, std::u8::MAX as u32, std::u16::MAX as u32, std::u32::MAX as u32, ]; let u32_array: ArrayRef = Arc::new(UInt32Array::from(u32_values)); let f64_expected = vec!...
rust_cleaned_test_functions.jsonl/29623
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 5673, 15807, 18, 17, 368, 341, 286, 1077, 575, 18, 17, 9146, 25, 11312, 34837, 18, 17, 29, 284, 7486, 90515, 310, 220, 15, 345, 310, 1460, 486, 84, 23, 486, 10586, 438, 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...
1
#[test] fn test_groupby_cumsum() -> Result<()> { let df = df![ "groups" => [1, 2, 2, 3, 3, 3], "vals" => [1, 5, 6, 3, 9, 8] ]?; let out = df .lazy() .groupby([col("groups")]) .agg([col("vals").cumsum(false)]) .sort("groups", Default::default()) ...
rust_cleaned_test_functions.jsonl/13819
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6288, 1694, 91328, 1242, 368, 1464, 5714, 71698, 341, 262, 1077, 6764, 284, 6764, 90515, 286, 330, 16753, 1, 589, 508, 16, 11, 220, 17, 11, 220, 17, 11, 220, 18, 11, 220, 18, 11, 220, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_create_keyshares_err() { assert_eq!(create_keyshares(KEY, 0, 0), Err(SSSError::InvalidN(0))); assert_eq!(create_keyshares(KEY, 5, 0), Err(SSSError::InvalidK(0))); assert_eq!(create_keyshares(KEY, 5, 6), Err(SSSError::InvalidK(6))); assert_eq!(creat...
rust_cleaned_test_functions.jsonl/70738
{ "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, 8657, 3097, 75047, 9266, 368, 341, 310, 2060, 10714, 10297, 3182, 3097, 75047, 37076, 11, 220, 15, 11, 220, 15, 701, 15495, 93544, 19224, 486, 7928, 45, 7, 15, 4945, 310, 2060, 10714, 10297, 318...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let expr = SuffixExpr::new("key", "Rust").prepare().build(); let expected = "key:$Rust"; assert_eq!(expected, expr) }
rust_cleaned_test_functions.jsonl/122492
{ "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, 20801, 368, 341, 286, 1077, 15169, 284, 328, 13554, 16041, 486, 931, 445, 792, 497, 330, 49, 590, 1827, 13609, 1005, 5834, 543, 286, 1077, 3601, 284, 330, 792, 21701, 49, 590, 876, 286, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_conv_ebcdic_implies_block() { // are added to pad each block. // `cbs=4` means use a conversion block size of 4 bytes per block. new_ucmd!() .args(&["conv=ebcdic", "cbs=4"]) .pipe_in(" A A\n A\n") .succeeds() .stdout_is_bytes(b...
rust_cleaned_test_functions.jsonl/99837
{ "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, 22716, 2204, 91490, 292, 21007, 550, 7113, 368, 341, 80719, 262, 442, 525, 3694, 311, 11016, 1817, 2504, 624, 1066, 262, 442, 1565, 66, 1279, 28, 19, 63, 3363, 990, 264, 14409, 2504, 1379, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fin_wait_1_recv() { let mut s = socket_fin_wait_1(); send!(s, TcpRepr { seq_number: REMOTE_SEQ + 1, ack_number: Some(LOCAL_SEQ + 1), payload: &b"abc"[..], ..SEND_TEMPL }); assert_eq!(s.state, State::FinWait1); ...
rust_cleaned_test_functions.jsonl/91856
{ "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, 39737, 18760, 62, 16, 36118, 368, 341, 286, 1077, 5206, 274, 284, 7575, 39737, 18760, 62, 16, 543, 286, 3624, 10297, 82, 11, 64876, 693, 649, 341, 310, 12981, 5500, 25, 25587, 19158, 50045, 488,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_x86_simple() { match Capstone::new().x86().mode(x86::ArchMode::Mode64).build() { Ok(cs) => match cs.disasm_all(X86_CODE, 0x1000) { Ok(insns) => { assert_eq!(insns.len(), 2); let is: Vec<_> = insns.iter().collect(); assert_eq...
rust_cleaned_test_functions.jsonl/127416
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 488 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 23, 21, 30015, 368, 341, 262, 2432, 8012, 10812, 486, 931, 1005, 87, 23, 21, 1005, 8516, 2075, 23, 21, 486, 18727, 3636, 486, 3636, 21, 19, 568, 5834, 368, 341, 286, 7622, 41153, 8, 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, 1, 1, 1, 1, 1...
3
#[test] fn test_parse_header() { let value = HeaderValue::from_static("Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="); let scheme = Basic::parse(&value); assert!(scheme.is_ok()); let scheme = scheme.unwrap(); assert_eq!(scheme.username, "Aladdin"); assert_eq!(scheme.passwo...
rust_cleaned_test_functions.jsonl/75150
{ "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, 21039, 8757, 368, 341, 286, 1077, 897, 284, 12104, 1130, 486, 1499, 25360, 445, 15944, 1207, 54, 87, 71, 57, 8626, 16650, 46054, 7362, 39718, 84, 40, 43165, 17257, 17, 37, 83, 57, 48, 418, 797...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_index() { let (_cluster, client, ctx) = must_new_cluster_and_kv_client(); // Read index let mut req = ReadIndexRequest::default(); req.set_context(ctx.clone()); let mut resp = client.read_index(&req).unwrap(); let last_index = resp.get_read_index(); assert_eq!(l...
rust_cleaned_test_functions.jsonl/61689
{ "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, 6443, 3560, 368, 341, 262, 1077, 5453, 18855, 11, 2943, 11, 5635, 8, 284, 1969, 5921, 28441, 8378, 97066, 8179, 1428, 262, 442, 4457, 1922, 198, 262, 1077, 5206, 4232, 284, 4457, 1552, 1900, 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_i8() { let vals = vec![ ("0", 0), ("1", 1), ("12", 12), ("-13", -13), ("111", 111), ("-128", ::std::i8::MIN), ("127", ::std::i8::MAX), ]; for (s, n) in vals { let expected...
rust_cleaned_test_functions.jsonl/75808
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 288 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 5318, 23, 368, 341, 286, 1077, 28356, 284, 7486, 90515, 310, 3489, 15, 497, 220, 15, 1326, 310, 3489, 16, 497, 220, 16, 1326, 310, 3489, 16, 17, 497, 220, 16, 17, 1326, 310, 98670, 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_simple_bang_proc_macros() -> io::Result<()> { let tmp_dir = TempDir::new().expect("Cannot create temp dir"); setup_proc_macro_project(&tmp_dir.path()).expect("Cannot setup test project"); let proc_macro_dyn_lib = compile_proc_macro(&tmp_dir.path(), "test_proc_macro") .expect(...
rust_cleaned_test_functions.jsonl/76873
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 703 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 880, 524, 24436, 85904, 368, 1464, 6399, 486, 2077, 71698, 341, 262, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 1005, 17119, 445, 17444, 1855, 2730, 5419, 797, 262, 6505, 24436, 58810, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_polygon_extreme_point_x() { // a diamond shape let poly1 = polygon![ (x: 1.0, y: 0.0), (x: 2.0, y: 1.0), (x: 1.0, y: 2.0), (x: 0.0, y: 1.0), (x: 1.0, y: 0.0) ]; let extremes = poly1.extreme_points(); ...
rust_cleaned_test_functions.jsonl/100480
{ "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, 73542, 9927, 9634, 6085, 3212, 368, 341, 286, 442, 264, 22205, 6083, 198, 286, 1077, 9861, 16, 284, 29372, 90515, 310, 320, 87, 25, 220, 16, 13, 15, 11, 379, 25, 220, 15, 13, 15, 1326, 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_invalid_range() { let data = vec![ (1, Some("name:0"), 2), (2, Some("name:4"), 3), (4, Some("name:3"), 1), (5, Some("name:1"), 4), ]; let product = ProductTable::new(); let (_, endpoint) = init_with_data(&product, &data); let mut select = DAG...
rust_cleaned_test_functions.jsonl/34876
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 9698, 368, 341, 262, 1077, 821, 284, 7486, 90515, 286, 320, 16, 11, 4329, 445, 606, 25, 15, 3975, 220, 17, 1326, 286, 320, 17, 11, 4329, 445, 606, 25, 19, 3975, 220, 18, 1326, 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_tiledinputpart_tile_x_size_success() { let input = MultiPartInputFile::new(&*SRC_IMAGE_PATH, 0, true).unwrap(); let tiled_input_part = super::TiledInputPart::new(&input, 0); let tile_x_size = tiled_input_part.tile_x_size(); assert_eq!(tile_x_size, 64); }
rust_cleaned_test_functions.jsonl/59292
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 2181, 1355, 4480, 29844, 3212, 2368, 18632, 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, 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_h1_headers() { let data = STR.repeat(10); let data2 = data.clone(); let mut srv = TestServer::new(move || { let data = data.clone(); HttpService::build().h1(move |_| { let mut builder = Response::Ok(); for idx in 0..90 { builde...
rust_cleaned_test_functions.jsonl/102546
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 877 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 16, 26719, 368, 341, 262, 1077, 821, 284, 12152, 50973, 7, 16, 15, 317, 262, 1077, 821, 17, 284, 821, 15997, 1428, 262, 1077, 5206, 43578, 284, 3393, 5475, 486, 931, 34081, 1369, 341, 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...
3
#[test] fn test_ctcp_action_parsing_1() { let mut buf = vec![]; write!( &mut buf, ":dan!u@localhost PRIVMSG #ircv3 :\x01ACTION writes some specs!\x01\r\n" ) .unwrap(); assert_eq!( parse_irc_msg(&mut buf).unwrap().unwrap(), M...
rust_cleaned_test_functions.jsonl/24488
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 514 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26134, 4672, 7931, 620, 28598, 62, 16, 368, 341, 286, 1077, 5206, 6607, 284, 7486, 0, 15078, 286, 3270, 33673, 310, 609, 6984, 6607, 345, 310, 13022, 35155, 0, 84, 31, 8301, 89345, 19575, 671, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deal_with_increment_rev() { let source = vec![0, 7, 4, 1, 8, 5, 2, 9, 6, 3]; let shuffles = "deal with increment 3".parse().unwrap(); for (i, &v) in source.iter().enumerate() { assert_eq!(shuffle_index_rev(source.len() as u128, i as u128, &shuffles), v); } }
rust_cleaned_test_functions.jsonl/104849
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 278, 6615, 51482, 38082, 368, 341, 10217, 2530, 284, 7486, 20703, 15, 11, 220, 22, 11, 220, 19, 11, 220, 16, 11, 220, 23, 11, 220, 20, 11, 220, 17, 11, 220, 24, 11, 220, 21, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_service_record_idle_client() { let mut exec = fuchsia_async::Executor::new().expect("failed to create an executor"); // Create a configured ClientIfaceContainer. let test_values = test_setup(&mut exec); let (mut iface_manager, _stream) = create_iface_manager_with...
rust_cleaned_test_functions.jsonl/62729
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 956 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12267, 14192, 47810, 8179, 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, 19755, 8423, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hover_non_ascii_space_doc() { check_hover_result( " //- /lib.rs /// <- `\u{3000}` here fn foo() { } fn bar() { fo<|>o(); } ", &["fn foo()\n```\n\n<- `\u{3000}` her...
rust_cleaned_test_functions.jsonl/33508
{ "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, 53445, 21637, 50238, 14663, 18869, 368, 341, 286, 1779, 53445, 5287, 1006, 310, 6228, 310, 78406, 608, 2740, 25638, 198, 310, 1048, 22441, 45342, 91405, 84, 90, 18, 15, 15, 15, 5541, 1588, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nested_mixed_lists() { assert_markdown_eq( common::parts::nested_mixed_lists, r###" * one * two 1. inner one * inner inner one 1. inner two * three "###, ); }
rust_cleaned_test_functions.jsonl/133518
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 107 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 717, 3286, 37288, 368, 341, 262, 2060, 18924, 2923, 10714, 1006, 286, 4185, 486, 18252, 486, 59271, 717, 3286, 37288, 345, 286, 435, 14374, 698, 9, 825, 198, 9, 1378, 198, 220, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_list() { let (_rem, list) = parsers::parse_list("[").unwrap(); assert_eq!(_rem, ""); assert_eq!(list, "["); let (_rem, list) = parsers::parse_list("[]a").unwrap(); assert_eq!(_rem, "a"); assert_eq!(list, "[]"); let (_rem, list) = pa...
rust_cleaned_test_functions.jsonl/22891
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 327 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 2019, 368, 341, 286, 1077, 5453, 1826, 11, 1140, 8, 284, 87073, 486, 6400, 2019, 445, 1183, 568, 15454, 543, 286, 2060, 10714, 0, 2490, 1826, 11, 14498, 286, 2060, 10714, 10297, 1607, 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_multipage_image() { let mut img_file = Cursor::new(Vec::new()); { // first create a multipage image with 2 images let mut img_encoder = TiffEncoder::new(&mut img_file).unwrap(); let img1: Vec<u16> = [1, 2, 3, 4].to_vec(); img_encoder.write_image...
rust_cleaned_test_functions.jsonl/64536
{ "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, 91802, 424, 4954, 368, 341, 262, 1077, 5206, 4964, 2458, 284, 28067, 486, 931, 49923, 486, 931, 5231, 262, 341, 286, 442, 1156, 1855, 264, 12557, 424, 2168, 448, 220, 17, 5335, 198, 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_capital_at() { let expected = 43951.93_f64; let invest = Investment::new(25000, 12, 0.04, 150); assert!( &expected.approx_eq(&invest.capital_at(72), 2.0 * ::std::f64::EPSILON, 200000000), "expected: {}, actual: {}", expected, ...
rust_cleaned_test_functions.jsonl/126191
{ "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, 16388, 2174, 3752, 368, 341, 286, 1077, 3601, 284, 220, 19, 18, 24, 20, 16, 13, 24, 18, 761, 21, 19, 280, 286, 1077, 2725, 284, 32250, 486, 931, 7, 17, 20, 15, 15, 15, 11, 220, 16, 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_fq_from_str() { let f1_from_repr = Fq::from(BigInteger([ 0xab8a2535947d1a77, 0x9ba74cbfda0bbcda, 0xe928b59724d60baf, 0x1cccaaeb9bb1680a, ])); let f1 = Fq::from_str( "13026376210409056429264774981357153555336288129100724591327877625017068755575"...
rust_cleaned_test_functions.jsonl/81829
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 426 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 5673, 2895, 368, 341, 262, 1077, 282, 16, 5673, 68535, 284, 434, 80, 486, 1499, 91756, 8956, 286, 220, 15, 52616, 23, 64, 17, 20, 18, 20, 24, 19, 22, 67, 16, 64, 22, 22, 345, 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_bitmap_length() { assert_eq!(64, Bitmap::new(63 * 8).len()); assert_eq!(64, Bitmap::new(64 * 8).len()); assert_eq!(128, Bitmap::new(65 * 8).len()); }
rust_cleaned_test_functions.jsonl/118646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 103 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41527, 5118, 368, 341, 286, 2060, 10714, 10297, 21, 19, 11, 17533, 486, 931, 7, 21, 18, 353, 220, 23, 568, 2892, 1423, 286, 2060, 10714, 10297, 21, 19, 11, 17533, 486, 931, 7, 21, 19, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_context_handle() { let h = Arc::new(AtomicUsize::new(0)); let h2 = Arc::clone(&h); let m = Arc::new(AtomicUsize::new(0)); let m2 = Arc::clone(&m); System::run(move || { let _addr = ContextHandle::create(move |ctx| { h2.store( Conte...
rust_cleaned_test_functions.jsonl/94385
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11080, 8467, 10630, 368, 341, 262, 1077, 305, 284, 19689, 486, 931, 7, 65857, 52, 2141, 486, 931, 7, 15, 1106, 262, 1077, 305, 17, 284, 19689, 486, 19982, 2099, 71, 317, 262, 1077, 296, 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...
2
#[test] fn test_legal_moves_banmen_with_kaku_left_wall_inside_sente() { const KOMAKINDS:[KomaKind; 2] = [SFu,GFu]; let blank_banmen = Banmen([[Blank; 9]; 9]); for k1 in &KOMAKINDS { for k2 in &KOMAKINDS { let mut wall_banmen = blank_banmen.clone(); for y in 1..8 { wall_banmen.0[y][0]...
rust_cleaned_test_functions.jsonl/81111
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 390 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82324, 45390, 880, 276, 5676, 6615, 4698, 23557, 9579, 50731, 72860, 643, 6817, 368, 972, 4777, 730, 1898, 11907, 5245, 50, 7259, 42, 7786, 10629, 26, 220, 17, 60, 284, 508, 28667, 84, 11, 36332...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_approve() { let cycles_limit = 1024 * 1024 * 1024; let caller = Address::from_hex("0x755cdba6ae4f479f7164792b318b2a06c759833b").unwrap(); let context = mock_context(cycles_limit, caller.clone()); let mut service = new_asset_service(); let supply = 1024 * 1024; let asse...
rust_cleaned_test_functions.jsonl/4493
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 539 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36057, 586, 368, 341, 262, 1077, 24484, 14763, 284, 220, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 353, 220, 16, 15, 17, 19, 26, 715, 262, 1077, 19865, 284, 9177, 486, 1499, 32655, 445, 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_lazy_pushdown_through_agg() { let df = get_df(); let new = df .lazy() .groupby(&["variety"]) .agg(vec![ col("sepal.length").agg_min(), col("petal.length").agg_min().alias("foo"), ]) ...
rust_cleaned_test_functions.jsonl/43486
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 14218, 2923, 87399, 83534, 368, 341, 1789, 286, 1077, 6764, 284, 633, 10894, 543, 286, 1077, 501, 284, 6764, 198, 310, 659, 49013, 741, 310, 659, 4074, 1694, 2099, 1183, 29165, 2611, 14108,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_write_read() { let filename = "writelog_test.wlg"; { match fs::OpenOptions::new().write(true).create(true).open(filename) { Err(e) => panic!("{}", e), Ok(f) => { let mut w = WriteLogWriter::new(Box::new(f)); ...
rust_cleaned_test_functions.jsonl/106461
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 964 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 6443, 368, 341, 286, 1077, 3899, 284, 330, 86, 1003, 50571, 4452, 1418, 11819, 876, 286, 341, 310, 2432, 8619, 486, 5002, 3798, 486, 931, 1005, 4934, 3715, 568, 3182, 3715, 568, 2508, 1096...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_pk_to_key_slice() { for _ in 1..200 { let r = Secp256k1Scalar::new_random().unwrap(); let rg = (Secp256k1Point::generator() * &r).unwrap(); let key_slice = rg.to_vec(); assert!(key_slice.len() == 65); assert!(key_slice[0].clone(...
rust_cleaned_test_functions.jsonl/60392
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 256 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33321, 2346, 3097, 26488, 368, 341, 286, 369, 716, 304, 220, 16, 496, 17, 15, 15, 341, 310, 1077, 435, 284, 4520, 79, 17, 20, 21, 74, 16, 20639, 486, 931, 22644, 1005, 15454, 543, 310, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_LDA_absolute_processor_zero() { let code = vec![0xAD, 0x06, 0xA3]; let mut nes = Cpu::new(); let mut memory = new_memory(code); memory.set(0xA306, 0x00); nes.next(&mut memory).unwrap(); assert_eq!(0x00, nes.A); assert_eq!(0x01, nes.Z); ...
rust_cleaned_test_functions.jsonl/38685
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 176 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2351, 6352, 50874, 50127, 19359, 368, 341, 286, 1077, 2038, 284, 7486, 20703, 15, 79447, 11, 220, 15, 87, 15, 21, 11, 220, 15, 14673, 18, 4821, 286, 1077, 5206, 308, 288, 284, 356, 5584, 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_if_modified_since_without_if_none_match() { let file = NamedFile::open("Cargo.toml").unwrap(); let since = header::HttpDate::from(SystemTime::now().add(Duration::from_secs(60))); let req = TestRequest::default() .header(header::IF_MODIFIED_SINCE, ...
rust_cleaned_test_functions.jsonl/35481
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11119, 37749, 56262, 39904, 11119, 31488, 10708, 368, 341, 286, 1077, 1034, 284, 40459, 1703, 486, 2508, 445, 98228, 73494, 75, 1827, 15454, 543, 286, 1077, 2474, 4035, 310, 4247, 486, 2905, 1916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_channels_limit() { assert!(get_channel_messages_limit(1)); assert!(get_channel_messages_limit(100)); assert!(!get_channel_messages_limit(0)); assert!(!get_channel_messages_limit(101)); }
rust_cleaned_test_functions.jsonl/29951
{ "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, 3062, 19291, 14763, 368, 341, 286, 2060, 10297, 455, 14571, 23428, 14763, 7, 16, 1106, 286, 2060, 10297, 455, 14571, 23428, 14763, 7, 16, 15, 15, 3237, 286, 2060, 0, 3471, 455, 14571, 23428, 147...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_flag() { let mut flag = 2 | 4; super::change_flag(&mut flag, 8, true); assert_eq!(flag, 2 | 4 | 8); super::change_flag(&mut flag, 4, false); assert_eq!(flag, 2 | 8); }
rust_cleaned_test_functions.jsonl/40708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15947, 10933, 368, 341, 286, 1077, 5206, 5181, 284, 220, 17, 760, 220, 19, 280, 286, 2256, 486, 3373, 10933, 2099, 6984, 5181, 11, 220, 23, 11, 830, 317, 286, 2060, 10714, 10297, 9903, 11, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fq_root_of_unity() { assert_eq!(Fq::S, 1); assert_eq!(Fq::multiplicative_generator(), Fq::from(2)); assert_eq!( Fq::multiplicative_generator().pow_vartime([ 0xdcff7fffffffd555u64, 0xf55ffff58a9ffff, 0xb39869507b587b12, 0xb23ba5c...
rust_cleaned_test_functions.jsonl/79199
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 12993, 3575, 62, 2439, 368, 341, 262, 2060, 10714, 10297, 37, 80, 486, 50, 11, 220, 16, 317, 262, 2060, 10714, 10297, 37, 80, 486, 77976, 65266, 25813, 1507, 434, 80, 486, 1499, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tokenizer_3() { test_tokenizer( "(quote '(1 2 3))", vec![ TokenValue::Char('('), TokenValue::Ident("quote".to_string()), TokenValue::Char('\''), TokenValue::Char('('), TokenValue::Int(...
rust_cleaned_test_functions.jsonl/59082
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 308 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6458, 3135, 62, 18, 368, 341, 286, 1273, 6458, 3135, 1006, 310, 11993, 2949, 22022, 16, 220, 17, 220, 18, 593, 756, 310, 7486, 90515, 394, 9660, 1130, 486, 4768, 89856, 1326, 394, 9660, 1130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let value = Annotated::new(42, Meta::from_error("some error")); assert_eq_str!(serialize(&value).unwrap(), r#"{"":{"err":["some error"]}}"#); }
rust_cleaned_test_functions.jsonl/126377
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 368, 341, 286, 1077, 897, 284, 1527, 87029, 486, 931, 7, 19, 17, 11, 15819, 486, 1499, 4096, 445, 14689, 1465, 4010, 286, 2060, 10714, 2895, 10297, 24166, 2099, 957, 568, 15454, 1507, 435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_recip() { let nan: f64 = NAN; let inf: f64 = INFINITY; let neg_inf: f64 = NEG_INFINITY; assert_eq!(1.0f64.recip(), 1.0); assert_eq!(2.0f64.recip(), 0.5); assert_eq!((-0.4f64).recip(), -2.5); assert_eq!(0.0f64.recip(), inf); assert!(...
rust_cleaned_test_functions.jsonl/7835
{ "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, 7080, 573, 368, 341, 286, 1077, 20021, 25, 282, 21, 19, 284, 92129, 280, 286, 1077, 4132, 25, 282, 21, 19, 284, 1964, 55990, 280, 286, 1077, 4184, 26051, 25, 282, 21, 19, 284, 84065, 91110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_window_too_small() { let mut buffer = buffer(); assert!(buffer.enqueue(4, ()).is_ok()); assert!(buffer.enqueue(8, ()).is_ok()); assert!(buffer.dequeue().is_ok()); assert_eq!(buffer.enqueue(16, ()), Err(Full)); assert_eq!(buffer.metadata_ring.len(),...
rust_cleaned_test_functions.jsonl/115425
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 157 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12571, 2346, 78, 31966, 368, 341, 286, 1077, 5206, 4147, 284, 4147, 543, 286, 2060, 10297, 7573, 47468, 7, 19, 11, 1719, 568, 285, 19817, 1423, 286, 2060, 10297, 7573, 47468, 7, 23, 11, 1719, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_prevote_with_check_quorum() { let l = default_logger(); let bootstrap = |id| { let mut cfg = new_test_config(id, 10, 1); cfg.pre_vote = true; cfg.check_quorum = true; let s = MemStorage::new_with_conf_state((vec![1, 2, 3], vec![])); let mut i = new...
rust_cleaned_test_functions.jsonl/19189
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1018 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25566, 1272, 6615, 7200, 11280, 33006, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 26925, 284, 760, 307, 91, 341, 286, 1077, 5206, 13286, 284, 501, 4452, 5332, 3724, 11, 220, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_dat_unicode_arabic() { let strs: Vec<&str> = vec!["أَبْجَدِيَّة", "عَرَبِيَّة"]; let da = DoubleArrayTrieBuilder::new().build(&strs); let input1 = "أَبْجَدِيَّة عَرَبِيَّة"; let result1: Vec<&str> = da .common_prefix_iter(input1) ...
rust_cleaned_test_functions.jsonl/6384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15353, 54662, 25842, 68291, 368, 341, 1789, 286, 1077, 57584, 25, 11312, 52244, 495, 29, 284, 7486, 0, 1183, 69682, 27910, 21360, 59397, 33090, 27910, 13325, 52704, 14558, 27910, 73771, 25871, 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...
1
#[test] fn test_log2() { assert_eq!(log2(1), 0); assert_eq!(log2(2), 1); assert_eq!(log2(3), 2); assert_eq!(log2(4), 2); assert_eq!(log2(5), 3); assert_eq!(log2(5), 3); assert_eq!(log2(6), 3); assert_eq!(log2(7), 3); assert_eq!(log2(8), 3);...
rust_cleaned_test_functions.jsonl/115736
{ "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, 5224, 17, 368, 341, 286, 2060, 10714, 10297, 839, 17, 7, 16, 701, 220, 15, 317, 286, 2060, 10714, 10297, 839, 17, 7, 17, 701, 220, 16, 317, 286, 2060, 10714, 10297, 839, 17, 7, 18, 701, 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_parse_log() { struct Test { s: &'static str, expected: &'static str, expect_error: bool, } let tests = vec![ Test { s: "", expected: "", expect_error: true, }, ...
rust_cleaned_test_functions.jsonl/122515
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 975 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5224, 368, 341, 286, 2036, 3393, 341, 310, 274, 25, 30136, 1978, 607, 345, 310, 3601, 25, 30136, 1978, 607, 345, 310, 1720, 4096, 25, 1807, 345, 286, 555, 286, 1077, 7032, 284, 7486, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deserialize_without_detail_field() { let envelope: OciEnvelope = serde_json::from_str(EXAMPLE_ERROR_MISSING_DETAIL).expect("parse example error"); let e = &envelope.errors[0]; assert_eq!(OciErrorCode::Unauthorized, e.code); assert_eq!("authentication r...
rust_cleaned_test_functions.jsonl/19934
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 39904, 14480, 5013, 368, 341, 286, 1077, 34398, 25, 506, 5855, 62712, 4035, 310, 61570, 9455, 486, 1499, 2895, 25409, 18918, 5414, 80706, 32905, 568, 17119, 445, 6400, 3110, 1465, 797, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deserialize_transaction_unsanitary() { let unsanitary_tx58 = "ju9xZWuDBX4pRxX2oZkTjxU5jB4SSTgEGhX8bQ8PURNzyzqKMPPpNvWihx8zUe\ FfrbVNoAaEsNKZvGzAnTDy5bhNT9kt6KFCTBixpvrLCzg4M5UdFUQYrn1gdgjX\ pLHxcaShD81xBNaFDgnA2nkkdHnKtZt4hVSfKAmw3VRZbjrZ7L2fKZBx21CwsG\ ...
rust_cleaned_test_functions.jsonl/3066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 417 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15768, 9050, 28884, 4907, 33082, 44806, 368, 341, 286, 1077, 6975, 276, 44806, 17805, 20, 23, 284, 330, 8613, 24, 87, 81756, 84, 3506, 55, 19, 79, 50639, 55, 17, 78, 57, 74, 51, 73, 87, 52, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_count_container_combinations() { let containers = [20, 15, 10, 5, 5]; let combinations = count_container_combinations(25, &containers); assert_eq!(combinations, 4); }
rust_cleaned_test_functions.jsonl/118045
{ "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, 3180, 15847, 34454, 12634, 368, 341, 262, 1077, 23853, 284, 508, 17, 15, 11, 220, 16, 20, 11, 220, 16, 15, 11, 220, 20, 11, 220, 20, 935, 262, 1077, 27459, 284, 1760, 15847, 34454, 12634, 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
#[test] fn test_parse_valid() { let mut codec = build_codec(); let mut buffer = BytesMut::new(); buffer.put_slice(b"CONNECT foo.bar.com:443 HTTP/1.1"); buffer.put_slice(REQUEST_END_MARKER); let result = codec.decode(&mut buffer); assert!(result.is_ok()); }
rust_cleaned_test_functions.jsonl/8066
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 368, 341, 286, 1077, 5206, 34647, 284, 1936, 51084, 543, 286, 1077, 5206, 4147, 284, 30024, 51440, 486, 931, 543, 286, 4147, 3597, 26488, 1883, 1, 39521, 15229, 22001, 905, 25, 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