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_part2() { assert_eq!(part2(18), (Cell(90, 269), 16)); assert_eq!(part2(42), (Cell(232, 251), 12)); }
rust_cleaned_test_functions.jsonl/32462
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 66 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 17, 368, 341, 262, 2060, 10714, 10297, 4480, 17, 7, 16, 23, 701, 320, 3599, 7, 24, 15, 11, 220, 17, 21, 24, 701, 220, 16, 21, 1106, 262, 2060, 10714, 10297, 4480, 17, 7, 19, 17, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_smart_pointers() { let schema = r#" { "type":"record", "name":"TestSmartPointers", "fields":[ { "name":"a", "type": "string" }, { "name"...
rust_cleaned_test_functions.jsonl/27823
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 724 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88825, 6085, 388, 368, 341, 286, 1077, 10802, 284, 435, 2, 698, 286, 341, 310, 330, 1313, 3252, 8548, 756, 310, 330, 606, 3252, 2271, 33817, 2609, 388, 756, 310, 330, 9007, 8899, 198, 394, 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_str() { let _: String = "foo".into_prop_value(); let _: Option<String> = "foo".into_prop_value(); let _: AttrValue = "foo".into_prop_value(); let _: Option<AttrValue> = "foo".into_prop_value(); let _: Option<AttrValue> = Rc::<str>::from("foo").into_prop_va...
rust_cleaned_test_functions.jsonl/63979
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 155 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2895, 368, 341, 286, 1077, 58536, 923, 284, 330, 7975, 3263, 18122, 21663, 3142, 543, 286, 1077, 58536, 6959, 3464, 29, 284, 330, 7975, 3263, 18122, 21663, 3142, 543, 286, 1077, 58536, 50943, 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_write_timestamp_nanosecond() { let expected = vec![ "+-------------------------------+", "| f |", "+-------------------------------+", "| 1970-01-01 00:00:00.011111111 |", "| ...
rust_cleaned_test_functions.jsonl/39717
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 319 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 23073, 73936, 960, 1297, 368, 341, 286, 1077, 3601, 284, 7486, 90515, 310, 6630, 27814, 4421, 10, 756, 310, 25203, 282, 6526, 760, 756, 310, 6630, 27814, 4421, 10, 756, 310, 25203, 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_equality() { let int_data = ArrayData::builder(DataType::Int32).build(); let float_data = ArrayData::builder(DataType::Float32).build(); assert_ne!(int_data, float_data); }
rust_cleaned_test_functions.jsonl/133942
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2204, 10473, 368, 341, 286, 1077, 526, 1769, 284, 2910, 1043, 486, 17850, 63941, 486, 1072, 18, 17, 568, 5834, 543, 286, 1077, 2224, 1769, 284, 2910, 1043, 486, 17850, 63941, 486, 5442, 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
#[test] fn test_parse_mod_decl() { let code = String::from(" mod: somemodule { mod: nestedmodule { fn: five() ~ int { return 5 } } } mod: othermodule { fn: multiply(lhs: int, rhs: int) ~ int { ...
rust_cleaned_test_functions.jsonl/43213
{ "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, 21039, 7480, 35814, 368, 341, 262, 1077, 2038, 284, 923, 486, 1499, 70576, 286, 1463, 25, 1757, 336, 1756, 341, 310, 1463, 25, 24034, 4352, 341, 394, 5168, 25, 4236, 368, 3968, 526, 341, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_struct_attribute_descriptors() { let descriptors = VertexA::ATTRIBUTE_DESCRIPTORS; assert_eq!( descriptors, &[ VertexAttributeDescriptor { location: 0, format: VertexAttributeFormat::Float4_f32, offset_in_bytes:...
rust_cleaned_test_functions.jsonl/33123
{ "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, 15126, 16791, 15768, 25705, 368, 341, 262, 1077, 47517, 284, 23225, 32, 486, 82998, 2881, 24787, 9821, 401, 262, 2060, 10714, 33673, 286, 47517, 345, 286, 609, 9640, 310, 23225, 3907, 11709, 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_expr_paran_delim() { use pgs::{ parser::ast::* }; let code = String::from(" (1 + 2) + 2) "); let mut lexer = Token::lexer(code.as_str()); let parser = Parser::new(code.clone()); let expr_res = parser.parse_expr(&mut lexer, &[ Token::Cl...
rust_cleaned_test_functions.jsonl/43209
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 906 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 21915, 620, 21320, 18029, 318, 368, 341, 262, 990, 281, 5857, 74843, 286, 6729, 486, 559, 34076, 2303, 262, 3634, 262, 1077, 2038, 284, 923, 486, 1499, 70576, 286, 320, 16, 488, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
#[test] fn test_1() { if get_effective_gid() != 0 { new_ucmd!() .arg("bin") .arg(DIR) .fails() .stderr_is("chgrp: changing group of '/tmp': Operation not permitted (os error 1)"); } }
rust_cleaned_test_functions.jsonl/53687
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 141 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 16, 368, 341, 262, 421, 633, 27125, 533, 72893, 368, 961, 220, 15, 341, 286, 501, 68887, 2277, 0, 741, 310, 659, 858, 445, 6863, 1138, 310, 659, 858, 82868, 340, 310, 659, 59631, 741, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_share_by_admin_other() { use super::NonSharableFileError; let user = test_model::new_admin_user(); let other = test_model::new_general_user(); let (file, _) = test_model::new_file(other.id().clone()); assert!(matches!( file.share_by(&user, Fil...
rust_cleaned_test_functions.jsonl/5065
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38272, 3710, 12207, 30456, 368, 341, 286, 990, 2256, 486, 8121, 42215, 480, 1703, 1454, 401, 286, 1077, 1196, 284, 1273, 5047, 486, 931, 12207, 3317, 543, 286, 1077, 1008, 284, 1273, 5047, 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_append() { let subcommand = Subcommand::Modify { filter: Filter { conditions: vec![Condition::IdList(vec![TaskId::WorkingSetId(123)])], }, modification: Modification { description: DescriptionMod::Append(s!("foo bar")), ...
rust_cleaned_test_functions.jsonl/84275
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26041, 368, 341, 286, 1077, 1186, 5631, 284, 3719, 5631, 486, 44427, 341, 310, 4051, 25, 12339, 341, 394, 4682, 25, 7486, 20703, 10547, 486, 764, 852, 25592, 20703, 6262, 764, 486, 33978, 1649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_include_paths_take_priority_by_order() { let ctx = TestContext::new(); let cmx_path = ctx.new_file( "some.cmx", json!({ "include": ["shard.cmx"], "program": { "binary": "bin/hello_world" }...
rust_cleaned_test_functions.jsonl/50686
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 733 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37878, 24152, 73261, 38161, 3710, 7869, 368, 341, 286, 1077, 5635, 284, 3393, 1972, 486, 931, 543, 286, 1077, 9961, 87, 2638, 284, 5635, 4618, 2458, 1006, 310, 330, 14689, 520, 18085, 756, 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_get_guild_integrations() { let route = Route::GetGuildIntegrations { guild_id: GUILD_ID }; assert_eq!( route.to_string(), format!("guilds/{guild_id}/integrations", guild_id = GUILD_ID) ); }
rust_cleaned_test_functions.jsonl/119857
{ "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, 3062, 1889, 1498, 4042, 14412, 804, 368, 341, 286, 1077, 6021, 284, 9572, 486, 1949, 72574, 1072, 14412, 804, 314, 26411, 842, 25, 479, 18023, 3450, 2605, 286, 2060, 10714, 33673, 310, 6021, 2389,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_worktree_list() { let wt_list = &parse_worktree_list(concat!( "worktree /home/user/git/repo\n", "HEAD a5abe4af040eb3204fe77e16cbe6f5c7042836aa\n", "branch refs/heads/add-four\n\n", "worktree /home/user/git/wt\n", "HEAD a5a...
rust_cleaned_test_functions.jsonl/114795
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 773 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 11498, 9344, 2019, 368, 341, 286, 1077, 40473, 2019, 284, 609, 6400, 11498, 9344, 2019, 96360, 33673, 310, 330, 1778, 9344, 608, 5117, 11739, 60590, 10758, 5368, 1699, 756, 310, 330, 35433, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_validate_not_allowed_origin() { let cors = Cors::build() .allowed_origin("https://www.example.com") .finish(); let req = TestRequest::with_header("Origin", "https://www.unknown.com") .method(Method::GET) .finish(); cors.sta...
rust_cleaned_test_functions.jsonl/90069
{ "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, 42681, 7913, 42155, 34043, 368, 341, 286, 1077, 43911, 284, 52518, 486, 5834, 741, 310, 659, 20967, 34043, 445, 2428, 1110, 2136, 7724, 905, 1138, 310, 659, 30150, 1428, 286, 1077, 4232, 284, 3393...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enforce_skip_rate_limited() { let mut envelope = envelope![]; let mut item = Item::new(ItemType::Attachment); item.set_payload(ContentType::OctetStream, "0123456789"); item.set_rate_limited(true); envelope.add_item(item); let mut mock = MockLimit...
rust_cleaned_test_functions.jsonl/101166
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 350 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6205, 8833, 44830, 9246, 907, 31511, 368, 341, 286, 1077, 5206, 34398, 284, 34398, 0, 40901, 286, 1077, 5206, 1509, 284, 5739, 486, 931, 29771, 929, 486, 33569, 317, 286, 1509, 980, 32813, 7, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_slice_reader() { let in_buf = vec![0, 1, 2, 3, 4, 5, 6, 7]; let reader = &mut &in_buf[..]; let mut buf = []; assert_eq!(reader.read(&mut buf).unwrap(), 0); let mut buf = [0]; assert_eq!(reader.read(&mut buf).unwrap(), 1); assert_eq!(reader....
rust_cleaned_test_functions.jsonl/4226
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26488, 22306, 368, 341, 286, 1077, 304, 10363, 284, 7486, 20703, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 935, 286, 1077, 6604, 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_read_description() -> io::Result<()> { let mut buf = Vec::new(); let data = b"+r0\n"; let mut reader = &data[..]; buf.clear(); read_description(&mut reader, &mut buf)?; assert_eq!(buf, b"r0"); let data = b"r0\n"; let mut reader = ...
rust_cleaned_test_functions.jsonl/28636
{ "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, 6443, 11448, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 1077, 5206, 6607, 284, 11312, 486, 931, 1428, 286, 1077, 821, 284, 293, 5572, 81, 15, 1699, 876, 286, 1077, 5206, 6604, 284, 609, 691, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_accumulator_extension_proof() { // Test empty let empty = AccumulatorExtensionProof::<TestOnlyHasher>::new(vec![], 0, vec![]); let derived_tree = empty.verify(*ACCUMULATOR_PLACEHOLDER_HASH).unwrap(); assert_eq!(*ACCUMULATOR_PLACEHOLDER_HASH, derived_tree.root_hash()); assert...
rust_cleaned_test_functions.jsonl/33630
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 516 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 75837, 10511, 31035, 86757, 368, 341, 262, 442, 3393, 4287, 198, 262, 1077, 4287, 284, 79525, 10511, 12049, 31076, 27638, 2271, 7308, 6370, 261, 6831, 931, 25592, 0, 12995, 220, 15, 11, 7486, 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...
1
#[test] fn test_emit_movl_reg_memq() { assert_emit!(0x89, 0x0d, 0, 0, 0, 0; emit_movl_reg_memq(RCX, RIP, 0)); assert_emit!(0x89, 0x48, 3; emit_movl_reg_memq(RCX, RAX, 3)); }
rust_cleaned_test_functions.jsonl/85440
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69082, 55798, 75, 4920, 12976, 80, 368, 341, 286, 2060, 69082, 10297, 15, 87, 23, 24, 11, 220, 15, 87, 15, 67, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 26, 16691, 55798, 75, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_from_shear_y() { let shear_y_with_x = 5; let matrix = Matrix2x2::from_shear_y(shear_y_with_x); let expected = Vector2::new(1, 1 + shear_y_with_x); let result = matrix * Vector2::new(1, 1); assert_eq!(result, expected); }
rust_cleaned_test_functions.jsonl/128990
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 147 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 643, 86060, 4178, 368, 341, 286, 1077, 64244, 4178, 6615, 3212, 284, 220, 20, 280, 286, 1077, 6172, 284, 11631, 17, 87, 17, 486, 1499, 643, 86060, 4178, 1141, 86060, 4178, 6615, 3212, 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_type_env_apply() { let s = Scheme { vars: vec![String::from("a")], t: Box::new(Type::Fun( Box::new(Type::var("a")), Box::new(Type::var("c")), )), }; let mut m = HashMap::new(); m.insert(String::fr...
rust_cleaned_test_functions.jsonl/125814
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 545 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1819, 15879, 36551, 368, 341, 286, 1077, 274, 284, 43781, 341, 310, 19942, 25, 7486, 20703, 703, 486, 1499, 445, 64, 899, 1259, 310, 259, 25, 8261, 486, 931, 22498, 486, 30855, 1006, 394, 8261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_failure() { let dir = temp_dir(); let mut path = dir.path().to_owned(); path.push("sock"); let _ = SocketListener::new(&path, true).unwrap(); let _ = SocketListener::new(&path, false).is_err(); assert!(Master::<SocketEndpoint<_>>::connect(&p...
rust_cleaned_test_functions.jsonl/75346
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 274 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 43618, 368, 341, 286, 1077, 5419, 284, 2730, 4334, 543, 286, 1077, 5206, 1815, 284, 5419, 3875, 1005, 983, 51973, 543, 286, 1815, 2552, 445, 13199, 797, 286, 1077, 716, 284, 20954, 2743, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_get_swap_info() { let mut deps = mock_dependencies(&[]); let msg = default_init(); let info = mock_info("creator", &coins(1000, "earth")); let res = instantiate(deps.as_mut(), mock_env(), info, msg).unwrap(); assert_eq!(0, res.messages.len()); let config = CONFIG....
rust_cleaned_test_functions.jsonl/50309
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1457 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 40991, 3109, 368, 341, 262, 1077, 5206, 48178, 284, 7860, 71841, 2099, 1294, 626, 262, 1077, 3750, 284, 1638, 6137, 543, 262, 1077, 3546, 284, 7860, 3109, 445, 32398, 497, 609, 29609, 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...
1
#[test] fn test_init_fails_with_open_wallet() { init!("ledger"); let config_path = "/tmp/test_init.json"; let content = create_config_util(None); settings::write_config_to_file(&content, config_path).unwrap(); let cb = return_types_u32::Return_U32::new().unwrap(); ...
rust_cleaned_test_functions.jsonl/127535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 306 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6137, 761, 6209, 6615, 11311, 62308, 368, 341, 286, 2930, 17223, 50704, 3071, 286, 1077, 2193, 2638, 284, 3521, 5173, 12697, 6137, 4323, 876, 286, 1077, 2213, 284, 1855, 5332, 18974, 26717, 317, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_intact_distance_ring_buffer1() { static BR:&'static[u8] = &[0x1b, 0x09, 0x00, 0x00, 0x00, 0x00, 0x80, 0xe3, 0xb4, 0x0d, 0x00, 0x00, 0x07, 0x5b, 0x26, 0x31, 0x40, 0x02, 0x00, 0xe0, 0x4e, 0x1b, 0x21, 0xa0, 0x20, 0x00 ]; static OUT:&'static[u8] = b"scrollroll"; assert_decompressed_i...
rust_cleaned_test_functions.jsonl/26470
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 333 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 531, 19464, 34683, 7776, 16, 368, 341, 220, 1099, 18803, 35218, 6, 1978, 21335, 23, 60, 284, 44590, 15, 87, 16, 65, 11, 220, 15, 87, 15, 24, 11, 220, 15, 87, 15, 15, 11, 220, 15, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_partition() { fn check(xs: &mut [i32], ref p: impl Fn(&i32) -> bool, expected: usize) { let i = xs.iter_mut().partition_in_place(p); assert_eq!(expected, i); assert!(xs[..i].iter().all(p)); assert!(!xs[i..].iter().any(p)); assert!(xs.iter().is_partitio...
rust_cleaned_test_functions.jsonl/70289
{ "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, 43840, 368, 341, 262, 5168, 1779, 53322, 25, 609, 6984, 508, 72, 18, 17, 1125, 2053, 281, 25, 11605, 50182, 2099, 72, 18, 17, 8, 1464, 1807, 11, 3601, 25, 22301, 8, 341, 286, 1077, 600, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_bips39_vectors() { let tests = test_vectors_bip39(); for t in tests.iter() { let entropy = hex::decode(t.seed).unwrap(); let correct_mnemonic_string = t.mnemonic; let computed_mnemonic = Mnemonic::mnemonic(&entropy[..]).unwrap(); let computed_mnemonic_stri...
rust_cleaned_test_functions.jsonl/21415
{ "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, 880, 3077, 18, 24, 49158, 368, 341, 262, 1077, 7032, 284, 1273, 49158, 880, 573, 18, 24, 543, 262, 369, 259, 304, 7032, 19471, 368, 341, 286, 1077, 47502, 284, 12371, 486, 18196, 1155, 36325, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invalid_btc_conversion() { INVALID_TEST_AMOUNTS .iter() .for_each(|amounts| test_from_btc(amounts.bitcoin, BitcoinAmount(amounts.satoshi))); }
rust_cleaned_test_functions.jsonl/131276
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 880, 10413, 64132, 368, 341, 394, 32269, 11641, 59993, 50, 198, 503, 659, 2015, 741, 503, 659, 1958, 32046, 22428, 6045, 82, 91, 1273, 5673, 880, 10413, 33989, 82, 30099, 7160, 11, 13127, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_enum_size_no_tag() { assert_eq!(1, compute_enum_size_no_tag(0)); assert_eq!(1, compute_enum_size_no_tag(10)); assert_eq!(1, compute_enum_size_no_tag(112)); }
rust_cleaned_test_functions.jsonl/73857
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57028, 31054, 2368, 6536, 9372, 368, 341, 197, 6948, 10714, 10297, 16, 11, 12564, 31054, 2368, 6536, 9372, 7, 15, 1106, 197, 6948, 10714, 10297, 16, 11, 12564, 31054, 2368, 6536, 9372, 7, 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
#[test] fn test_tcpds_query_3() { assert_eq!( parse_sql( " SELECT dt.d_year, item.i_brand_id brand_id, item.i_brand brand, Sum(ss_ext_discount_amt) sum_agg FROM date_dim dt, store_sales, ...
rust_cleaned_test_functions.jsonl/50102
{ "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, 45562, 5356, 5738, 62, 18, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 18063, 1006, 310, 6228, 286, 19094, 7594, 950, 14645, 345, 2290, 1509, 8607, 54858, 842, 688, 6741, 842, 345, 2290, 1509, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_msg2_no_conf() { // Create ESS Security Association let mut supplicant = test_util::get_wpa2_supplicant(); supplicant.start().expect("Failed starting Supplicant"); // Send the first frame but don't send a conf in response. let msg = test_util::get_wpa2_4w...
rust_cleaned_test_functions.jsonl/21809
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 641 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6483, 17, 6536, 16059, 368, 341, 286, 442, 4230, 468, 1220, 8234, 10024, 198, 286, 1077, 5206, 90035, 35237, 284, 1273, 18974, 486, 455, 1670, 6595, 17, 91480, 35237, 543, 286, 90035, 35237, 4962,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_module_1() { let result_object = create_module_1(); // We group the calls together start_module_1(&result_object); c1_l59_action_invoke(&result_object); c2_l60_action_invoke(&result_object); c3_l61_action_invoke(&result_object); c4_l62_action_invoke(&result_object); ...
rust_cleaned_test_functions.jsonl/6746
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 186 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10750, 62, 16, 368, 341, 262, 1077, 1102, 5314, 284, 1855, 10750, 62, 16, 543, 262, 442, 1205, 1874, 279, 6738, 3786, 198, 262, 1191, 10750, 62, 16, 2099, 1382, 5314, 317, 262, 272, 16, 907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_one() { let hwdb = Hwdb::new().unwrap(); let value = hwdb .query_one("usb:v1D6Bp0001", "ID_MODEL_FROM_DATABASE") .unwrap(); assert_eq!(value, "1.1 root hub"); }
rust_cleaned_test_functions.jsonl/78887
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 11667, 368, 341, 286, 1077, 31256, 1999, 284, 472, 86, 1999, 486, 931, 1005, 15454, 543, 286, 1077, 897, 284, 31256, 1999, 198, 310, 659, 1631, 11667, 445, 24343, 52649, 16, 35, 21, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_line_buffer_fail_flush() { // Issue #32085 struct FailFlushWriter<'a>(&'a mut Vec<u8>); impl<'a> Write for FailFlushWriter<'a> { fn write(&mut self, buf: &[u8]) -> io::Result<usize> { self.0.extend_from_slice(buf); Ok(buf.len()...
rust_cleaned_test_functions.jsonl/17440
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 498 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6528, 7776, 22121, 39213, 368, 341, 286, 442, 25226, 671, 18, 17, 15, 23, 20, 198, 286, 2036, 39645, 46874, 6492, 18291, 64, 44784, 6, 64, 5206, 11312, 34837, 23, 29, 626, 286, 11605, 18291, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_entry_point() { let addr = socketaddr!("127.0.0.1:10"); let ci = ContactInfo::new_gossip_entry_point(&addr); assert_eq!(ci.gossip, addr); assert!(ci.tvu.ip().is_unspecified()); assert!(ci.tpu_forwards.ip().is_unspecified()); assert!(ci.rpc.ip().is_...
rust_cleaned_test_functions.jsonl/71984
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9078, 6085, 368, 341, 286, 1077, 10789, 284, 7575, 6214, 17223, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 16, 15, 797, 286, 1077, 11825, 284, 9180, 1731, 486, 931, 1889, 41473, 9078, 6085, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_crds_filter_set_new() { // Validates invariances required by CrdsFilterSet::get in the // vector of filters generated by CrdsFilterSet::new. let filters: Vec<CrdsFilter> = CrdsFilterSet::new(/*num_items=*/ 55345017, /*max_bytes=*/ 4098).into(); assert_...
rust_cleaned_test_functions.jsonl/82271
{ "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, 32331, 5356, 8727, 2602, 5921, 368, 341, 286, 442, 97843, 304, 947, 21813, 2567, 553, 4553, 5356, 5632, 1649, 486, 455, 304, 279, 198, 286, 442, 4621, 315, 13406, 7907, 553, 4553, 5356, 5632, 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_extract_maven_version_no_version_but_deps() -> io::Result<()> { // pom.xml with common nested tags and dependencies let pom = " <project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://mav...
rust_cleaned_test_functions.jsonl/100134
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 403 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 717, 5276, 9438, 6536, 9438, 86874, 76489, 368, 1464, 6399, 486, 2077, 71698, 341, 286, 442, 29484, 9028, 448, 4185, 24034, 9492, 323, 19543, 198, 286, 1077, 29484, 284, 6228, 310, 366, 498...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_segment() { let segment1 = Segment::new(Point { x: 0, y: 0 }, Point { x: 5, y: 0 }); assert_eq!(segment1.horizontal(), true); assert_eq!(segment1.vertical(), false); let segment2 = Segment::new(Point { x: 3, y: -2 }, Point { x: 3, y: 4 }); assert_eq!(segme...
rust_cleaned_test_functions.jsonl/57081
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 705 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28061, 368, 341, 286, 1077, 10238, 16, 284, 37103, 486, 931, 32737, 314, 856, 25, 220, 15, 11, 379, 25, 220, 15, 2470, 5126, 314, 856, 25, 220, 20, 11, 379, 25, 220, 15, 1625, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fee_calculator_derived_default() { solana_logger::setup(); let f0 = FeeCalculator::default(); assert_eq!( f0.target_signatures_per_slot, DEFAULT_TARGET_SIGNATURES_PER_SLOT ); assert_eq!( f0.target_lamports_per_signature...
rust_cleaned_test_functions.jsonl/22033
{ "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, 34305, 24005, 20022, 35345, 2221, 9993, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 282, 15, 284, 40458, 55743, 486, 2258, 543, 286, 2060, 10714, 33673, 310, 282, 15, 6539, 1117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_deprecated_config() { let config_path = "config"; let body = r#"{ "ipv4_address": "169.254.170.2", "network_interfaces": [] }"#; depr_action_from_req( parse_put_mmds(&Body::new(body), Some(&config_path)).unwrap(), S...
rust_cleaned_test_functions.jsonl/53460
{ "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, 2259, 19889, 5332, 368, 341, 286, 1077, 2193, 2638, 284, 330, 1676, 3302, 286, 1077, 2487, 284, 435, 55543, 515, 310, 330, 42676, 19, 6744, 788, 330, 16, 21, 24, 13, 17, 20, 19, 13, 16, 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_true() { let gil = Python::acquire_gil(); let py = gil.python(); assert!(PyBool::new(py, true).is_true()); let t: &PyAny = PyBool::new(py, true).into(); assert_eq!(true, t.extract().unwrap()); assert_eq!(true.to_object(py), PyBool::new(py, true).in...
rust_cleaned_test_functions.jsonl/12200
{ "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, 16082, 368, 341, 286, 1077, 342, 321, 284, 13027, 486, 580, 984, 1889, 321, 543, 286, 1077, 4510, 284, 342, 321, 43193, 543, 286, 2060, 10297, 13828, 11233, 486, 931, 46827, 11, 830, 568, 285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rfc6979_keypair() { let sk = SecKey { k: NonZeroExponentP256::from_int_checked(int256_from_hex(RFC6979_X)).unwrap(), }; let pk = sk.genpk(); assert_eq!(pk.p.getx().to_int(), int256_from_hex(RFC6979_UX)); assert_eq!(pk.p.gety().to_int(), int256_...
rust_cleaned_test_functions.jsonl/81723
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 8316, 21, 24, 22, 24, 3097, 12670, 368, 341, 286, 1077, 1901, 284, 4520, 1592, 341, 310, 595, 25, 11581, 17999, 840, 1146, 47, 17, 20, 21, 486, 1499, 4042, 56456, 1548, 17, 20, 21, 567...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stddev_return_type() -> Result<()> { let observed = return_type(&AggregateFunction::Stddev, &[DataType::Float32])?; assert_eq!(DataType::Float64, observed); let observed = return_type(&AggregateFunction::Stddev, &[DataType::Float64])?; assert_eq!(DataType::Float6...
rust_cleaned_test_functions.jsonl/4602
{ "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, 15656, 3583, 12511, 1819, 368, 1464, 5714, 71698, 341, 286, 1077, 13166, 284, 470, 1819, 2099, 64580, 5152, 486, 22748, 3583, 11, 44590, 22653, 486, 5442, 18, 17, 2467, 37445, 286, 2060, 10714, 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...
6
#[test] fn test_pending_capacity() { let mut worker = Builder::new("test-worker-busy") .batch_size(4) .pending_capacity(3) .create(); let scheduler = worker.scheduler(); for i in 0..3 { scheduler.schedule(i).unwrap(); } ass...
rust_cleaned_test_functions.jsonl/84783
{ "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, 37861, 35603, 368, 341, 286, 1077, 5206, 11864, 284, 20626, 486, 931, 445, 1944, 65516, 1455, 355, 88, 1138, 310, 659, 14049, 2368, 7, 19, 340, 310, 659, 28210, 35603, 7, 18, 340, 310, 659, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_noatime_does_not_update_infile_atime() { // NOTE: Not all environments support tracking access time. If this // is not working and the systems that pass it simply don't update file access time. let fname = "this-ifile-exists-noatime.txt"; assert_fixture_exists!(&fname); ...
rust_cleaned_test_functions.jsonl/59386
{ "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, 6536, 266, 545, 96374, 7913, 8882, 1243, 1192, 3752, 545, 368, 341, 262, 442, 16743, 25, 2806, 678, 21737, 1824, 14849, 2615, 882, 13, 1416, 419, 7213, 262, 442, 374, 537, 3238, 323, 279, 5942, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_headers_multi_value() { let mut buf = BytesMut::from( "GET /test HTTP/1.1\r\n\ Set-Cookie: c1=cookie1\r\n\ Set-Cookie: c2=cookie2\r\n\r\n", ); let settings = WorkerSettings::<HttpApplication>::new(Vec::new(), KeepAlive::Os); l...
rust_cleaned_test_functions.jsonl/110386
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 403 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26719, 25133, 3142, 368, 341, 286, 1077, 5206, 6607, 284, 30024, 51440, 486, 1499, 1006, 310, 330, 3806, 608, 1944, 10130, 14, 16, 13, 16, 12016, 1699, 5661, 1797, 2573, 7658, 9619, 25, 272, 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_count_pythagorean_triples() { assert_eq!(count_pythagorean_triples(10u64.pow(6)), (808950, 70229)); }
rust_cleaned_test_functions.jsonl/99955
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 63 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3180, 40291, 95362, 45195, 3547, 37458, 368, 341, 262, 2060, 10714, 10297, 1830, 40291, 95362, 45195, 3547, 37458, 7, 16, 15, 84, 21, 19, 25290, 7, 21, 5731, 320, 23, 15, 23, 24, 20, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_subbytes() { let mut state = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]; let expect = [ 99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, 118, ]; subbytes(&mut state); assert_eq!(state, expect); }
rust_cleaned_test_functions.jsonl/89382
{ "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, 5228, 9651, 368, 341, 286, 1077, 5206, 1584, 284, 508, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 11, 220, 24, 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_cause_chain() { #[derive(Debug)] struct Chain<T>(Option<T>); impl<T: fmt::Display> fmt::Display for Chain<T> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if let Some(ref link) = self.0 { write!(f, "chain: {}", ...
rust_cleaned_test_functions.jsonl/56953
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 855 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 3454, 30583, 368, 341, 286, 11506, 27098, 42618, 5563, 286, 2036, 28525, 3125, 2235, 5341, 3125, 29, 626, 286, 11605, 3125, 25, 8879, 486, 7020, 29, 8879, 486, 7020, 220, 369, 28525, 3125, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_decode() { let _: ApiGatewayHttpV2Event = serde_json::from_str(API_GATEWAY_V2_GET_ROOT_NOQUERY).unwrap(); let _: LambdaHttpEvent = serde_json::from_str(API_GATEWAY_V2_GET_ROOT_NOQUERY).unwrap(); let _: ApiGatewayRestEvent = serde_json::from_str(API...
rust_cleaned_test_functions.jsonl/115193
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 368, 341, 286, 1077, 58536, 13443, 40709, 2905, 53, 17, 1556, 4035, 310, 61570, 9455, 486, 1499, 2895, 48953, 81116, 41803, 2334, 17, 12702, 16197, 9100, 41019, 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_state_builder() { let properties: HashMap<AudioStreamType, TransformFlags> = [ (AudioStreamType::Background, TransformFlags::TRANSFORM_MAX), (AudioStreamType::Media, TransformFlags::TRANSFORM_MIN), ] .iter() .cloned() .collect(); ...
rust_cleaned_test_functions.jsonl/32956
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 586 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4387, 28532, 368, 341, 286, 1077, 5888, 25, 10528, 65406, 3027, 929, 11, 15226, 9195, 29, 284, 2278, 310, 320, 14755, 3027, 929, 486, 8706, 11, 15226, 9195, 486, 43103, 10818, 6806, 1326, 310, 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...
3
#[test] fn test_mapper_multiple() { let value = cache_dir("$CACHE"); let test = Value::String("$CACHE/$CACHE".to_string()); assert_eq!(cache(&identity)(test), Some(Value::String(format!("{}/{}", value, value)))); }
rust_cleaned_test_functions.jsonl/120133
{ "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, 76664, 45233, 368, 341, 286, 1077, 897, 284, 6500, 4334, 20912, 61736, 797, 286, 1077, 1273, 284, 5162, 486, 703, 20912, 61736, 10749, 61736, 3263, 983, 3904, 1423, 286, 2060, 10714, 10297, 9360, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_new_lif_inexisting_port() { let d = LIF::new(3, LIFType::WAN, "name", PortId::from(0), vec![PortId::from(5)], 0, None); assert!(d.is_ok()); let d = LIF::new( 3, LIFType::LAN, "name", PortId::from(0), vec![PortId:...
rust_cleaned_test_functions.jsonl/81909
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 263 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 907, 333, 1243, 36895, 8716, 368, 341, 286, 1077, 294, 284, 444, 2773, 486, 931, 7, 18, 11, 444, 2773, 929, 486, 54, 1093, 11, 330, 606, 497, 5776, 764, 486, 1499, 7, 15, 701, 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_compile_or_e() { let compiled = bitwise::compile_or("E".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b10011001); }
rust_cleaned_test_functions.jsonl/100589
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 81 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 74170, 8734, 2204, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 8734, 445, 36, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 220, 16, 317, 262, 2060, 10714, 10297, 508...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_condition_multisig() { let secp = Secp256k1::new(); let (_, pk0, _) = setup_keys(TPRV0_STR, PATH, &secp); let (_, pk1, _) = setup_keys(TPRV1_STR, PATH, &secp); let desc = descriptor!(wsh(multi(1, pk0, pk1))).unwrap(); let (wallet_desc, keymap) = desc...
rust_cleaned_test_functions.jsonl/77146
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 807 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 27656, 26290, 285, 343, 368, 341, 286, 1077, 511, 4672, 284, 4520, 79, 17, 20, 21, 74, 16, 486, 931, 1428, 286, 1077, 39464, 22458, 15, 11, 27439, 284, 6505, 12631, 4140, 6480, 53, 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_jset_imm() { test_interpreter_and_jit_asm!( " mov32 r0, 0 mov32 r1, 0x7 jset r1, 0x8, +4 mov32 r0, 1 mov32 r1, 0x9 jset r1, 0x8, +1 mov32 r0, 2 exit", [], (), { |_vm, res: Result| { res.unwrap() =...
rust_cleaned_test_functions.jsonl/59020
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5374, 746, 71370, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 1974, 18, 17, 435, 15, 11, 220, 15, 198, 286, 1974, 18, 17, 435, 16, 11, 220, 15, 87, 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_get_hex_proof() { let endpoint = "https://ropsten.infura.io/v3/71c02c451b6248708e493c4ea007c3b2"; let tx_hash = "0xf576731c8b9033ee1c15665a58ed0e513946f1f3ef22c009546817d3daed836e"; let proof = generate_eth_proof(String::from(tx_hash), String::from(endpoint), String::from("4347818b33...
rust_cleaned_test_functions.jsonl/76359
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 517 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 32655, 86757, 368, 341, 262, 1077, 14887, 284, 330, 2428, 1110, 887, 15795, 30957, 5690, 4245, 5457, 18, 14, 22, 16, 66, 15, 17, 66, 19, 20, 16, 65, 21, 17, 19, 23, 22, 15, 23, 68, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parse_code_block() { let input = [ r#"<script src="/a/b.js">alert('aaa')</script>"#, r#"'aaa'"#, r#""aaa""#, ] .iter() .map(|&s| s.into()) .collect(); let expected: Vec<String>...
rust_cleaned_test_functions.jsonl/958
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 441 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 4136, 7113, 368, 341, 310, 1077, 1946, 284, 2278, 394, 435, 2, 22476, 2282, 2286, 5914, 64, 3470, 2857, 755, 5083, 492, 32646, 43872, 2282, 9877, 2, 345, 394, 435, 2, 20584, 32646, 14913,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_documentation() { let schema = Schema::from_str( r#"{"type": "enum", "name": "Coin", "doc": "Some documentation", "symbols": ["heads", "tails"]}"# ).unwrap(); let doc = match schema.top_node().inner { SchemaPiece::Enum { doc, .. } => doc.c...
rust_cleaned_test_functions.jsonl/23012
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26231, 367, 368, 341, 286, 1077, 10802, 284, 12539, 486, 1499, 2895, 1006, 394, 435, 55543, 4913, 1313, 788, 330, 9018, 497, 330, 606, 788, 330, 41180, 497, 330, 5236, 788, 330, 8373, 9705, 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_add_to_cache_failure_no_attribute() { let mut sqlite = db::new_connection("").unwrap(); let mut conn = Conn::connect(&mut sqlite).unwrap(); let _report = conn .transact( &mut sqlite, r#"[ { :db/ident :foo/bar ...
rust_cleaned_test_functions.jsonl/76423
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 537 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 2346, 11529, 43618, 6536, 16791, 368, 341, 286, 1077, 5206, 22003, 284, 2927, 486, 931, 15866, 80821, 15454, 543, 286, 1077, 5206, 4534, 284, 18213, 486, 6459, 2099, 6984, 22003, 568, 15454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_old_collation_non_unique_common_handle_index() { const TABLE_ID: i64 = 3; const INDEX_ID: i64 = 42; let columns_info = vec![ { let mut ci = ColumnInfo::default(); ci.set_column_id(1); ci.as_mut_accessor().set_tp(...
rust_cleaned_test_functions.jsonl/12231
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1786 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21108, 43597, 367, 21637, 21218, 21107, 10630, 3560, 368, 341, 286, 733, 14363, 3450, 25, 600, 21, 19, 284, 220, 18, 280, 286, 733, 39300, 3450, 25, 600, 21, 19, 284, 220, 19, 17, 280, 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_exchange_code_with_unexpected_content_type() { let client = new_client(); let token = client .exchange_code(AuthorizationCode::new("ccc".to_string())) .request(mock_http_client( vec![ (ACCEPT, "application/json"), (CONTENT_TYPE,...
rust_cleaned_test_functions.jsonl/18605
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 614 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 59212, 4136, 6615, 4907, 7325, 7495, 1819, 368, 341, 262, 1077, 2943, 284, 501, 8179, 543, 262, 1077, 3950, 284, 2943, 198, 286, 659, 39568, 4136, 4346, 1553, 2022, 2078, 486, 931, 445, 37054, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_int_others() { let mut args = HashMap::new(); let result = int(&to_value(1.23).unwrap(), &args); assert!(result.is_ok()); assert_eq!(result.unwrap(), to_value(1).unwrap()); let result = int(&to_value(-5).unwrap(), &args); assert!(result.is_ok());...
rust_cleaned_test_functions.jsonl/119661
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1054 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 14179, 2985, 368, 341, 286, 1077, 5206, 2827, 284, 10528, 486, 931, 1428, 286, 1077, 1102, 284, 526, 2099, 983, 3142, 7, 16, 13, 17, 18, 568, 15454, 1507, 609, 2116, 317, 286, 2060, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_parse_interval_full() { use DateTimeField::*; run_test_parse_interval_full( "6-7 1 2:3:4.5", Interval::new(79, 93_784, 500_000_000).unwrap(), ); run_test_parse_interval_full( "-6-7 1 2:3:4.5", Interval::new(-79, 93_784, 500_000_000).unwrap(), ...
rust_cleaned_test_functions.jsonl/55844
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 668 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 20541, 16372, 368, 341, 262, 990, 6520, 1877, 79304, 262, 1598, 4452, 21039, 20541, 16372, 1006, 286, 330, 21, 12, 22, 220, 16, 220, 17, 25, 18, 25, 19, 13, 20, 756, 286, 40584, 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_adding_nullables() { use crate::schema::nullable_table::dsl::*; let connection = connection_with_nullable_table_data(); let expected_data = vec![None, None, Some(2), Some(3), Some(2)]; let data = nullable_table.select(value + Some(1)).load(&connection); assert_eq!(Ok(expecte...
rust_cleaned_test_functions.jsonl/83664
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 283 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 287, 15162, 4788, 368, 341, 262, 990, 17717, 486, 17349, 486, 12902, 5237, 486, 81874, 56162, 262, 1077, 3633, 284, 3633, 6615, 69743, 5237, 1769, 1428, 262, 1077, 3601, 1769, 284, 7486, 207...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bloom_f64_existence() -> Result<()> { let table = create_blocks(); let indexer = BloomFilterIndexer::from_data_and_seeds(table.as_ref(), create_seeds())?; let bloom = indexer.try_get_bloom("ColumnFloat64")?; for num in [1.0_f64, 3.0, 5.0, 7.0, 9.0, 11.0, 13.0, 15.0] { ...
rust_cleaned_test_functions.jsonl/101374
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 247 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 18474, 761, 21, 19, 35906, 763, 368, 1464, 5714, 71698, 341, 1066, 262, 1077, 1965, 284, 1855, 25201, 543, 262, 1077, 87216, 284, 24503, 5632, 1552, 261, 486, 1499, 1769, 8378, 3453, 6767, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_response_codes() { match parse_response(b"* OK [ALERT] Alert!\r\n") { Ok(( _, Response::Data { status: Status::Ok, code: Some(ResponseCode::Alert), information: Some("Alert!"), ...
rust_cleaned_test_functions.jsonl/8552
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2313 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 38482, 368, 341, 286, 2432, 4715, 9655, 1883, 61593, 10402, 508, 969, 3399, 60, 13975, 14771, 81, 1699, 899, 341, 310, 7622, 94702, 394, 716, 345, 394, 5949, 486, 1043, 341, 503, 2639, 25,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
#[test] fn test_parse_background_image() { assert_eq!( parse_style_background_content("image(\"Cat 01\")"), Ok(StyleBackgroundContent::Image(CssImageId(String::from( "Cat 01" )))) ); }
rust_cleaned_test_functions.jsonl/114063
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 139 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 24103, 4954, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 15117, 24103, 7495, 445, 1805, 36014, 26801, 220, 15, 16, 62705, 4461, 310, 7622, 7, 2323, 8706, 2762, 486, 1906, 3025, 778, 1906,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_confidence_interval() { let total = 100_000; let true_p = 0.25; let mut rng = rand::thread_rng(); let mut delta = 100_000; let mut positive = 0; for i in 1..=101 { positive += rng.gen_bool(true_p) as usize; if i % 20 == 1 {...
rust_cleaned_test_functions.jsonl/16010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 388 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16059, 7087, 20541, 368, 341, 286, 1077, 2790, 284, 220, 16, 15, 15, 62, 15, 15, 15, 280, 286, 1077, 830, 620, 284, 220, 15, 13, 17, 20, 280, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_validate_unknown_script() { let (config, keypair) = get_test_config(); let vm_validator = TestValidator::new(&config); let address = account_config::association_address(); let signed_txn = transaction_test_helpers::get_test_signed_txn( address, 1, keypair...
rust_cleaned_test_functions.jsonl/90964
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 283 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 57507, 14660, 368, 341, 262, 1077, 320, 1676, 11, 1376, 12670, 8, 284, 633, 4452, 5332, 543, 262, 1077, 10995, 64959, 284, 3393, 14256, 486, 931, 2099, 1676, 626, 262, 1077, 2621, 284, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_empty() { assert_eq!(<()>::static_variant_type().as_str(), "()"); let a = ().to_variant(); assert_eq!(a.type_().as_str(), "()"); assert_eq!(a.get::<()>(), Some(())); }
rust_cleaned_test_functions.jsonl/30223
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 120 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 368, 341, 286, 2060, 10714, 10297, 27, 368, 6831, 1978, 46112, 1819, 1005, 300, 2895, 1507, 330, 45961, 286, 1077, 264, 284, 33711, 983, 46112, 543, 286, 2060, 10714, 10297, 64, 4852, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_bucket() { use crate::Provider; let key1 = Key::<Provider>::random().expect(line_error!()); let key2 = Key::<Provider>::random().expect(line_error!()); let rid1 = RecordId::random::<Provider>().expect(line_error!()); let rid2 = RecordId::random::<Provide...
rust_cleaned_test_functions.jsonl/95952
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 782 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38749, 368, 341, 286, 990, 17717, 486, 5179, 401, 286, 1077, 1376, 16, 284, 5309, 27638, 5179, 6831, 11463, 1005, 17119, 8797, 4096, 0, 1423, 286, 1077, 1376, 17, 284, 5309, 27638, 5179, 6831, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_describe_unnamed_statement() { const EXPECTED: &[u8] = b"D\0\0\0\x06S\0"; let mut buf = Vec::new(); let m = Describe::UnnamedStatement; m.encode(&mut buf); assert_eq!(buf, EXPECTED); }
rust_cleaned_test_functions.jsonl/29090
{ "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, 11224, 15768, 3114, 4907, 30245, 37404, 368, 341, 262, 733, 8921, 1479, 25, 44590, 84, 23, 60, 284, 293, 61428, 59, 15, 59, 15, 59, 15, 3462, 15, 21, 50, 59, 15, 3302, 262, 1077, 5206, 6607,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_insult_json() { let insult = Insult::new("This is fucking awesome".to_string(), "UnitTest".to_string()); let json = serde_json::to_string(&insult).unwrap(); assert_eq!("{\"message\":\"This is fucking awesome\",\"subtitle\":\"UnitTest\"}", json); }
rust_cleaned_test_functions.jsonl/102760
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 105 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34386, 494, 9455, 368, 341, 262, 1077, 26132, 284, 9726, 494, 486, 931, 445, 1986, 374, 17224, 12456, 3263, 983, 3904, 1507, 330, 97330, 3263, 983, 3904, 1423, 262, 1077, 2951, 284, 61570, 9455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_upcoming_iterator() { let expression = "0 2,17,51 1-3,6,9-11 4,29 2,3,7 Wed"; let schedule = Schedule::from_str(expression).unwrap(); println!("Upcoming fire times for '{}':", expression); for datetime in schedule.upcoming(Utc).take(12) { println!("-> ...
rust_cleaned_test_functions.jsonl/50807
{ "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, 8237, 4959, 13491, 368, 341, 286, 1077, 7493, 284, 330, 15, 220, 17, 11, 16, 22, 11, 20, 16, 220, 16, 12, 18, 11, 21, 11, 24, 12, 16, 16, 220, 19, 11, 17, 24, 220, 17, 11, 18, 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_virtio_fs_dax_on_default_cache_size_w_virtiofsd_rs_daemon() { test_virtio_fs(true, None, "none", &prepare_virtofsd_rs_daemon, false) }
rust_cleaned_test_functions.jsonl/29383
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 2106, 815, 34470, 814, 706, 4470, 9993, 11529, 2368, 1670, 2273, 2106, 815, 3848, 67, 47115, 47070, 7291, 368, 341, 310, 1273, 2273, 2106, 815, 34470, 3715, 11, 2240, 11, 330, 6697, 497, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_backwards() { let mut arr = vec![50, 25, 10, 5, 1]; bubble_sort(&mut arr); assert_eq!(arr, [1, 5, 10, 25, 50]); }
rust_cleaned_test_functions.jsonl/55263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3895, 4014, 368, 341, 286, 1077, 5206, 2890, 284, 7486, 20703, 20, 15, 11, 220, 17, 20, 11, 220, 16, 15, 11, 220, 20, 11, 220, 16, 935, 286, 23611, 18435, 2099, 6984, 2890, 317, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stackbuffer_record_with_count() { let mut buffer = StackBuffer::new(HashMap::new()); let stack_trace = StackTrace::new( None, None, None, vec![StackFrame::new( None, Some("test_record".to_string()), None, Non...
rust_cleaned_test_functions.jsonl/124454
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15528, 7573, 14192, 6615, 3180, 368, 341, 262, 1077, 5206, 4147, 284, 14284, 4095, 486, 931, 7, 18497, 486, 931, 1423, 262, 1077, 5611, 23575, 284, 14284, 6550, 486, 931, 1006, 286, 2240, 345, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tail_shutdown() -> Result<(), Box<dyn Error>> { ore::test::init_logging(); let (server, _) = util::start_server(util::Config::default())?; // We have to use the async PostgreSQL client so that we can ungracefully // abort the connection task. // See: https://github.com/sfac...
rust_cleaned_test_functions.jsonl/26337
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 407 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35471, 54804, 368, 1464, 5714, 68843, 8261, 92846, 4600, 2452, 341, 262, 16144, 486, 1944, 486, 2327, 59982, 1428, 262, 1077, 320, 4030, 11, 27439, 284, 4094, 486, 2468, 12015, 67811, 486, 2648, 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...
6
#[test] fn test_close_wr() { test_executor!(async move { let rc = Rc::new(RwLock::new(1)); let rc2 = rc.clone(); Task::local(async move { let _lock = rc2.write().await.unwrap(); rc2.close(); }) .await; ...
rust_cleaned_test_functions.jsonl/134529
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12704, 44074, 368, 341, 286, 1273, 81207, 10297, 7692, 3271, 341, 310, 1077, 10192, 284, 81463, 486, 931, 2785, 86, 11989, 486, 931, 7, 16, 1106, 310, 1077, 10192, 17, 284, 10192, 15997, 1428, 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_account_setup() { let num_nodes = 1; let num_archivers = 1; let mut validator_config = ValidatorConfig::default(); validator_config.storage_slots_per_turn = SLOTS_PER_TURN_TEST; let config = ClusterConfig { validator_configs: vec![ValidatorConfig::default(); num_nodes...
rust_cleaned_test_functions.jsonl/57916
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 555 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 21363, 368, 341, 262, 1077, 1629, 14896, 284, 220, 16, 280, 262, 1077, 1629, 34330, 1945, 284, 220, 16, 280, 262, 1077, 5206, 22935, 5332, 284, 32566, 2648, 486, 2258, 543, 262, 22935, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rk4() { let y0 = Vector2::<f64>::new(0., 0.); let t0 = 0.; let t1 = 100.; let h = 1.; /// Point accelerating at 2. m/s^2 fn dy(s: Vector2<f64>, _: f64) -> Vector2<f64> { Vector2::<f64>::new(s[1], 2.) } let mut integrat...
rust_cleaned_test_functions.jsonl/116544
{ "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, 1710, 74, 19, 368, 341, 286, 1077, 379, 15, 284, 4196, 17, 27638, 69, 21, 19, 6831, 931, 7, 15, 2572, 220, 15, 58957, 286, 1077, 259, 15, 284, 220, 15, 37403, 286, 1077, 259, 16, 284, 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_decode_pushw() { match decode_32(0xe92d4ff0) { Instruction::PUSH { registers, thumb32 } => { let elems: Vec<_> = registers.iter().collect(); assert_eq!( vec![ Reg::R4, Reg::R5, ...
rust_cleaned_test_functions.jsonl/64797
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 479 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15227, 14218, 86, 368, 341, 9401, 262, 2432, 16895, 62, 18, 17, 7, 15, 8371, 24, 17, 67, 19, 542, 15, 8, 341, 286, 29051, 486, 47, 19518, 314, 24740, 11, 24050, 18, 17, 335, 589, 341, 310,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_trim_and_lowercase_then_replace_spaces() { let input1 = "Bar App"; let actual1 = trim_and_lowercase_then_replace_spaces(input1, "-"); let expected1 = "bar-app"; assert_eq!(expected1, actual1); let input2 = "BarApp-Foo"; let actual2 = trim_and_lowe...
rust_cleaned_test_functions.jsonl/62314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70025, 8378, 93129, 68367, 10633, 67883, 368, 341, 286, 1077, 1946, 16, 284, 330, 3428, 1845, 876, 286, 1077, 5042, 16, 284, 11013, 8378, 93129, 68367, 10633, 67883, 5384, 16, 11, 6523, 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_trim_end() -> Result<(), MetricForwarderError> { let input = [ "MONITORING", "cool_service", "2017-04-26T10:41:09.023Z", "sysmon-generator-started:1|g\n", ]; let expected = Metric::Gauge(Gauge { value: 1.0, ...
rust_cleaned_test_functions.jsonl/132010
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70025, 6213, 368, 1464, 5714, 68843, 52458, 25925, 261, 1454, 29, 341, 286, 1077, 1946, 284, 2278, 310, 330, 21344, 44556, 1718, 756, 310, 330, 42196, 12267, 756, 310, 330, 17, 15, 16, 22, 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...
2
#[test] fn test_unresolved_value_error() { insta::assert_display_snapshot!(compilation_errors( "\n\nfn main() {\nlet b = a;\n\nlet d = c;\n}" )); }
rust_cleaned_test_functions.jsonl/21694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 39747, 3142, 4096, 368, 341, 286, 1761, 64, 486, 2207, 14825, 53265, 10297, 5689, 13455, 20196, 1006, 310, 2917, 77, 1699, 8822, 1887, 368, 28152, 77, 1149, 293, 284, 264, 17882, 77, 1699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_compare_real() { for (arg0, arg1, cmp_op, expect_output) in generate_numeric_compare_cases() { let sig = match cmp_op { TestCaseCmpOp::GT => ScalarFuncSig::GtReal, TestCaseCmpOp::GE => ScalarFuncSig::GeReal, TestCaseCmpOp::LT =>...
rust_cleaned_test_functions.jsonl/75981
{ "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, 32235, 15266, 368, 341, 286, 369, 320, 858, 15, 11, 1392, 16, 11, 26089, 10287, 11, 1720, 7645, 8, 304, 6923, 29418, 32235, 41427, 368, 341, 310, 1077, 8366, 284, 2432, 26089, 10287, 341, 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...
3
#[test] fn test_a_canister_other_than_the_proposals_canister_cannot_add_nodes_to_subnet() { local_test_on_nns_subnet(|runtime| { async move { // An attacker got a canister that is trying to pass for the proposals let attacker_canister = set_up_universal_canister(...
rust_cleaned_test_functions.jsonl/128505
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1236 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4306, 27421, 1571, 30456, 51613, 16068, 21663, 85975, 27421, 1571, 666, 3401, 2891, 14896, 2346, 95681, 368, 341, 262, 2205, 4452, 4470, 1089, 4412, 95681, 22428, 22255, 91, 341, 286, 3312, 3271, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_category_out_from() { use super::*; use std::time::SystemTime; let time = SystemTime::now(); let str_time = DateTime::<Utc>::from(time).to_rfc3339(); let category = Category { id: 12345, name: "some_name".to_string(), c...
rust_cleaned_test_functions.jsonl/36569
{ "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, 11847, 6068, 5673, 368, 341, 286, 990, 2256, 56162, 286, 990, 1460, 486, 1678, 486, 2320, 1462, 401, 286, 1077, 882, 284, 739, 1462, 486, 3328, 543, 286, 1077, 607, 3009, 284, 6520, 27638, 97768...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_maybe_data_types() { let cases = vec![ ( vec![DataType::UInt8, DataType::UInt16], vec![DataType::UInt8, DataType::UInt16], Some(vec![DataType::UInt8, DataType::UInt16]), ), ...
rust_cleaned_test_functions.jsonl/23467
{ "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, 717, 49791, 1769, 9763, 368, 341, 1789, 286, 1077, 5048, 284, 7486, 90515, 3374, 310, 2399, 394, 7486, 20703, 22653, 486, 18777, 23, 11, 33172, 486, 18777, 16, 21, 1259, 394, 7486, 20703, 22653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_filter_zero_lamport_clean_for_incremental_snapshots() { solana_logger::setup(); let slot = 10; struct TestParameters { last_full_snapshot_slot: Option<Slot>, max_clean_root: Option<Slot>, should_contain: bool, } let do...
rust_cleaned_test_functions.jsonl/7058
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2350 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 19359, 907, 309, 403, 19573, 5478, 51482, 278, 74175, 27634, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 9446, 284, 220, 16, 15, 401, 286, 2036, 3393, 9706, 341, 310, 153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rx_data() { let mut ctx = CsmTestContext::new_established(); let data = &[1, 2, 3, 4]; ctx.set_stream(TestStream::new_with_read_buf(data)); assert_eq!(ctx.conn.get_polled_fd(), ctx.conn.stream.as_raw_fd()); ctx.notify_epollin(); ctx.recv(); ...
rust_cleaned_test_functions.jsonl/83287
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24330, 1769, 368, 341, 286, 1077, 5206, 5635, 284, 356, 3563, 2271, 1972, 486, 931, 18583, 5102, 291, 543, 286, 1077, 821, 284, 44590, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 286, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_buyerror_toolittle() { let buy_error = BuyError{ min_required: 0, max_allowed: 0, requested: 0, available: 0, reason: BuyErrorType::TooLittle }; println!("{}", buy_error) }
rust_cleaned_test_functions.jsonl/28645
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46348, 841, 22785, 2377, 368, 341, 286, 1077, 3695, 4096, 284, 11292, 1454, 90, 1308, 18743, 25, 220, 15, 11, 1932, 42155, 25, 220, 15, 11, 11223, 25, 220, 15, 11, 2500, 25, 220, 15, 11, 287...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_http_tunnel_encoder() { let mut codec = build_codec(); let pattern = Regex::new(r"^HTTP/1\.1 ([2-5][\d]{2}) [A-Z_]{2,20}\r\n\r\n").unwrap(); for code in &[ EstablishTunnelResult::Ok, EstablishTunnelResult::BadGateway, EstablishTunnelR...
rust_cleaned_test_functions.jsonl/8078
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 463 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25888, 95692, 39068, 368, 341, 286, 1077, 5206, 34647, 284, 1936, 51084, 1428, 286, 1077, 5383, 284, 26146, 486, 931, 2601, 86490, 9230, 14, 16, 18831, 16, 11743, 17, 12, 20, 1457, 59, 67, 15370...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_preboot_set_vsock_dev() { let req = VmmAction::SetVsockDevice(VsockDeviceConfig { vsock_id: String::new(), guest_cid: 0, uds_path: String::new(), }); check_preboot_request(req, |result, vm_res| { assert_eq!(result, Ok(VmmDat...
rust_cleaned_test_functions.jsonl/44533
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10442, 4619, 2602, 2273, 13199, 10433, 368, 341, 286, 1077, 4232, 284, 647, 3821, 2512, 486, 1649, 53, 13199, 6985, 12410, 13199, 6985, 2648, 341, 310, 348, 13199, 842, 25, 923, 486, 931, 3148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_good_script_numeric_code() { match lookup_by_numeric(&80) { None => panic!("was expecting a script"), Some(script) => { assert_eq!(script.alphabetic_code.to_string(), "Hluw".to_string()); assert_eq!(script.numeric_code, 80); ...
rust_cleaned_test_functions.jsonl/29978
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44781, 14660, 29418, 4136, 368, 341, 286, 2432, 18615, 3710, 29418, 2099, 23, 15, 8, 341, 310, 2240, 589, 21975, 17223, 16123, 22331, 264, 5316, 4461, 310, 4329, 42795, 8, 589, 341, 394, 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...
2
#[test] fn test_pin_code() { let pin_code = authenticator::current_pin_code("DGF3J5CSIU2JN6WEHECHIUUCLYHCNYAW", 6); match pin_code { Ok(code) => { println!("Current Pin Code: {}", code) } Err(e) => { println!("Something has error: {}", e) } } }
rust_cleaned_test_functions.jsonl/89601
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26296, 4136, 368, 341, 286, 1077, 8983, 4136, 284, 13210, 850, 486, 3231, 26296, 4136, 445, 35, 36332, 18, 41, 20, 48407, 52, 17, 41, 45, 21, 12457, 1799, 2149, 80000, 52, 3140, 56, 22455, 230...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_string() { let s = String::from("this is a test"); let v = s.to_variant(); assert_eq!(v.get(), Some(s)); assert_eq!(v.normal_form(), v); }
rust_cleaned_test_functions.jsonl/30215
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 102 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3904, 368, 341, 286, 1077, 274, 284, 923, 486, 1499, 445, 574, 374, 264, 1273, 797, 286, 1077, 348, 284, 274, 2389, 46112, 543, 286, 2060, 10714, 10297, 85, 670, 1507, 4329, 1141, 1106, 286, 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
#[test] fn test_job_config() { assert!(serde_yaml::from_str::<JobConfig>("{}").is_err()); assert!( serde_yaml::from_str::<JobConfig>(r#"{"command":""}"#).is_err()); assert!( serde_yaml::from_str::<JobConfig>(r#"{"schedule":""}"#).is_err()); }
rust_cleaned_test_functions.jsonl/6417
{ "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, 20298, 5332, 368, 341, 286, 2060, 10297, 47024, 64380, 486, 1499, 2895, 27638, 12245, 2648, 13211, 6257, 1827, 285, 9266, 1423, 286, 2060, 33673, 310, 61570, 64380, 486, 1499, 2895, 27638, 12245, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1