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_iltagcreator_for_dummytagcreator_error() { let c: DummyTagCreator = DummyTagCreator::new(16); c.create_empty_tag(17); }
rust_cleaned_test_functions.jsonl/25700
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 67 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 2963, 351, 32398, 5478, 60321, 4578, 32398, 4096, 368, 341, 262, 1077, 272, 25, 50567, 5668, 31865, 284, 50567, 5668, 31865, 486, 931, 7, 16, 21, 317, 262, 272, 2520, 15124, 9372, 7, 16, 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
#[test] fn test_input() { let input = to_vec(TEST_INPUT); assert_eq!(day3_1(&input), 198); assert_eq!(day3_2(&input), 230); }
rust_cleaned_test_functions.jsonl/66952
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 87 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5898, 368, 341, 286, 1077, 1946, 284, 311, 13251, 50320, 21022, 317, 286, 2060, 10714, 10297, 1292, 18, 62, 16, 2099, 1355, 701, 220, 16, 24, 23, 317, 286, 2060, 10714, 10297, 1292, 18, 62, 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
#[test] fn test_sort_categorical() { let ca = Utf8Chunked::new("a", &[Some("a"), None, Some("c"), None, Some("b")]); let ca = ca.cast(&DataType::Categorical).unwrap(); let ca = ca.categorical().unwrap(); let out = ca.sort_with(SortOptions { descending: false, ...
rust_cleaned_test_functions.jsonl/16392
{ "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, 18435, 87455, 368, 341, 286, 1077, 2162, 284, 43432, 23, 28304, 291, 486, 931, 445, 64, 497, 44590, 8373, 445, 64, 3975, 2240, 11, 4329, 445, 66, 3975, 2240, 11, 4329, 445, 65, 899, 2558, 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_all_subcommands() { let app = built_with_version(); assert_eq!( all_subcommands(&app), vec![ ("test".to_string(), "my-app test".to_string()), ("hello".to_string(), "my-app hello".to_string()), ("help".to_str...
rust_cleaned_test_functions.jsonl/89
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 5228, 24270, 368, 341, 286, 1077, 906, 284, 5798, 6615, 9438, 1428, 286, 2060, 10714, 33673, 310, 678, 5228, 24270, 2099, 676, 1326, 310, 7486, 90515, 394, 3489, 1944, 3263, 983, 3904, 1507,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sql_url() { let db = &checked_memory_handle(); let url0 = Url::parse("http://www.example1.com").unwrap(); let url1 = Url::parse("http://www.example1.com/👌").unwrap(); let url2 = "http://www.example2.com/👌"; db.execute( "INSERT INTO urls (i,...
rust_cleaned_test_functions.jsonl/34767
{ "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, 18063, 2903, 368, 341, 286, 1077, 2927, 284, 609, 7549, 19195, 10630, 1428, 286, 1077, 2515, 15, 284, 22840, 486, 6400, 445, 1254, 1110, 2136, 7724, 16, 905, 1827, 15454, 543, 286, 1077, 2515, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_point_to_coords() { let src = " fn myfn(b:usize) { let a = 3; if b == 12 { let a = 24; do_something_with(a); } do_something_with(a); } "; fn round_trip_point_and_coords(src: &str, lineno: usize, charno: usize) { let raw_src = RawSource::new(src.to_owned(...
rust_cleaned_test_functions.jsonl/119767
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 317 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6085, 2346, 32576, 368, 341, 262, 1077, 2286, 284, 6228, 8822, 847, 8822, 1883, 25, 51878, 8, 341, 256, 1077, 264, 284, 220, 18, 280, 256, 421, 293, 621, 220, 16, 17, 341, 981, 1077, 264, 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_seq() { assert_ser_eq!( vec![1, 2, 3], &[ Token::Seq { len: Some(3) }, Token::I32(1), Token::I32(2), Token::I32(3), Token::SeqEnd ] ); }
rust_cleaned_test_functions.jsonl/44214
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14486, 368, 341, 262, 2060, 75861, 10714, 33673, 286, 7486, 20703, 16, 11, 220, 17, 11, 220, 18, 1259, 286, 609, 9640, 310, 9660, 486, 20183, 314, 2422, 25, 4329, 7, 18, 8, 1153, 310, 9660, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_extraction_with_state_proof_absent() { let invalid_json = r#"{ "op" : "REPLY", "result": {"reqId": 83955, "type": "20001", "identifier": "6ouriXMZkLeHsuXrN1X1fd", "fees": {"1": 4, "10001": 8}}}"#; test_invalid_json(invalid_json); }
rust_cleaned_test_functions.jsonl/35639
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 94842, 6615, 4387, 86757, 31170, 306, 368, 341, 286, 1077, 8318, 9455, 284, 435, 2, 14129, 330, 453, 1, 549, 330, 787, 24834, 497, 330, 1382, 788, 5212, 2958, 764, 788, 220, 23, 18, 24, 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_lookup_no_lines() -> Result<(), Error> { let buffer = ByteView::open(fixture("xul.sym"))?; let object = Object::parse(&buffer)?; let mut buffer = Vec::new(); SymCacheWriter::write_object(&object, Cursor::new(&mut buffer))?; let symcache = SymCache::parse(&buffer)?; let s...
rust_cleaned_test_functions.jsonl/84093
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27464, 6536, 18323, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 1077, 4147, 284, 10906, 851, 486, 2508, 94886, 445, 87, 360, 50901, 2761, 37445, 262, 1077, 1633, 284, 3002, 486, 6400, 2099, 7573, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_onix3_oapen_issues() { let mut test_issue = WorkIssues { issue_ordinal: 1, series: WorkIssuesSeries { series_type: thoth_client::SeriesType::JOURNAL, series_name: "Name of series".to_string(), issn_print: "1234-5678"...
rust_cleaned_test_functions.jsonl/67621
{ "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, 4470, 941, 18, 14179, 391, 268, 90232, 368, 341, 286, 1077, 5206, 1273, 53340, 284, 5547, 85828, 341, 310, 4265, 62, 45151, 25, 220, 16, 345, 310, 4013, 25, 5547, 85828, 25544, 341, 394, 4013, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fold_blocks_with_many_children() { test("function f() { if (false) {} }", "function f(){}"); test( "function f() { { if (false) {} if (true) {} {} } }", "function f(){}", ); test( "{var x; var y; var z; class Foo { constructor() { var a; { var b; } } } }",...
rust_cleaned_test_functions.jsonl/369
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 61187, 25201, 6615, 22101, 31206, 368, 341, 262, 1273, 445, 1688, 282, 368, 314, 421, 320, 3849, 8, 4687, 335, 497, 330, 1688, 282, 368, 6257, 797, 262, 1273, 1006, 286, 330, 1688, 282, 368, 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_batch() { let q0 = Timestamp::Hours(11) .into_query("weather") .add_field("temperature", 82) .add_tag("location", "us-midwest"); let q1 = Timestamp::Hours(12) .into_query("weather") .add_field("temperature", 65) ...
rust_cleaned_test_functions.jsonl/40011
{ "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, 14534, 368, 341, 286, 1077, 2804, 15, 284, 32758, 486, 23235, 7, 16, 16, 340, 310, 659, 18122, 5738, 445, 15206, 1138, 310, 659, 718, 5013, 445, 34558, 497, 220, 23, 17, 340, 310, 659, 718, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_transform() { let position = Vec3::new(1.0, 0.0, 0.0); let scale = Vec3::new(2.0, 2.0, 2.0); let rotation = Quat::new_from_axis_angle(Vec3::new(1.0, 0.0, 0.0), FRAC_PI_2); let transform = Transform { position, scale, rotation, }; let vertex = Vec3:...
rust_cleaned_test_functions.jsonl/21597
{ "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, 18449, 368, 341, 262, 1077, 2309, 284, 11312, 18, 486, 931, 7, 16, 13, 15, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 317, 262, 1077, 5452, 284, 11312, 18, 486, 931, 7, 17, 13, 15, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_token_bucket_preprocess() { let tb = TokenBucket::new(1000, None, 1000); assert_eq!(tb.get_processed_capacity(), 1); assert_eq!(tb.get_processed_refill_time(), NANOSEC_IN_ONE_MILLISEC); let thousand = 1000; let tb = TokenBucket::new(3 * 7 * 11 * 19 * thou...
rust_cleaned_test_functions.jsonl/52867
{ "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, 6458, 38749, 10442, 4630, 368, 341, 286, 1077, 16363, 284, 9660, 36018, 486, 931, 7, 16, 15, 15, 15, 11, 2240, 11, 220, 16, 15, 15, 15, 317, 286, 2060, 10714, 10297, 18387, 670, 63916, 35603, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_a_diamond_is_not_a_cycle() { // This is fine: // A // B C // D let ctx = TestContext::new(); let a_path = ctx.new_include( "a.cmx", json!({ "include": ["b.cmx", "c.cmx...
rust_cleaned_test_functions.jsonl/50694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 496 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37878, 4306, 814, 18479, 6892, 7913, 4306, 39079, 368, 341, 286, 442, 1096, 374, 6915, 510, 1789, 286, 442, 256, 362, 8945, 286, 442, 425, 256, 356, 8945, 286, 442, 256, 422, 198, 286, 1077, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dont_add_floodsub_peers_to_mesh_on_join() { let (mut gs, _, _) = inject_nodes1() .peer_no(0) .topics(Vec::new()) .to_subscribe(false) .create_network(); let topic = Topic::new("test"); let topics = vec![topic.hash()]; ...
rust_cleaned_test_functions.jsonl/66944
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 469 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 814, 544, 2891, 761, 4556, 1966, 36367, 388, 2346, 29453, 4470, 31017, 368, 341, 286, 1077, 320, 6984, 28081, 11, 8358, 27439, 284, 15551, 14896, 16, 741, 310, 659, 16537, 6536, 7, 15, 340, 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_tgl_cpy() { let input = "cpy a 1 tgl 1 cpy a 2 inc a inc a"; let regs = compute(input); assert_eq!(2, regs.get('a')); }
rust_cleaned_test_functions.jsonl/21654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 6072, 666, 3288, 368, 341, 10217, 1946, 284, 330, 7641, 264, 220, 16, 198, 45078, 220, 16, 198, 7641, 264, 220, 17, 198, 2840, 264, 198, 2840, 264, 876, 10217, 44498, 284, 12564, 5384, 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
#[test] fn test_fq_add_assign() { { // Random number let mut tmp = Fq(FqRepr([ 0x624434821df92b69, 0x503260c04fd2e2ea, 0xd9df726e0d16e8ce, 0xfbcb39adfd5dfaeb, 0x86b8a22b0c88b112, 0x165...
rust_cleaned_test_functions.jsonl/2324
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3000 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 2891, 20688, 368, 341, 286, 341, 310, 442, 10612, 1372, 198, 310, 1077, 5206, 4174, 284, 434, 80, 7832, 80, 693, 649, 8956, 394, 220, 15, 87, 21, 17, 19, 19, 18, 19, 23, 17, 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_struct() { ok("struct Foo {}"); err( "struct Foo {} struct Foo {}", pos(1, 15), SemError::ShadowStruct("Foo".into()), ); err( "struct Foo {} class Foo {}", pos(1, 15), SemError::ShadowStruct("...
rust_cleaned_test_functions.jsonl/24598
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 280 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 368, 341, 286, 5394, 445, 1235, 33428, 4687, 797, 286, 1848, 1006, 310, 330, 1235, 33428, 4687, 2036, 33428, 4687, 756, 310, 1133, 7, 16, 11, 220, 16, 20, 1326, 310, 14248, 1454, 486, 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_accountsdb_lamport_overflow2() { solana_logger::setup(); let offset = 2; let input = vec![ vec![CalculateHashIntermediate::new( Hash::new(&[1u8; 32]), u64::MAX - offset, Pubkey::new_unique(), )], ...
rust_cleaned_test_functions.jsonl/94730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 395 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 1999, 907, 309, 403, 79073, 17, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 1428, 286, 1077, 4347, 284, 220, 17, 280, 286, 1077, 1946, 284, 7486, 90515, 310, 7486, 20703, 47866, 6370, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_intersection_horizontal_precision() { // TODO make a cleaner test case exercising the same edge case. // This test has an almost horizontal segment e1 going from right to left intersected // by another segment e2. Since e1 is almost horizontal the intersection point ends up // wi...
rust_cleaned_test_functions.jsonl/102415
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 82558, 66469, 54618, 368, 341, 262, 442, 5343, 1281, 264, 31881, 1273, 1142, 50482, 279, 1852, 6821, 1142, 624, 262, 442, 1096, 1273, 702, 458, 4558, 16202, 10238, 384, 16, 2087, 504, 1290, 311, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_bad_stack() { let mut vm = ShrekVM::new(Vec::new()); vm.push(3); assert!(add(&mut vm).is_err()); }
rust_cleaned_test_functions.jsonl/71695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 34199, 15528, 368, 341, 286, 1077, 5206, 10995, 284, 1417, 41861, 11187, 486, 931, 49923, 486, 931, 1423, 286, 10995, 2552, 7, 18, 317, 286, 2060, 10297, 718, 2099, 6984, 10995, 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
#[test] fn test_run_election() { let server = MockLockServer::new(); let client0 = MockClient::new("client0", server.clone()); let client1 = MockClient::new("client1", server.clone()); let client2 = MockClient::new("client2", server.clone()); let expected = client0.clon...
rust_cleaned_test_functions.jsonl/117262
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 753 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 2204, 1170, 368, 341, 286, 1077, 3538, 220, 284, 14563, 11989, 5475, 486, 931, 543, 286, 1077, 2943, 15, 284, 14563, 2959, 486, 931, 445, 2972, 15, 497, 3538, 15997, 1423, 286, 1077, 2943...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_align() { trait Aligned { fn alignment(&self) -> usize; } impl Aligned for u32 { fn alignment(&self) -> usize { core::mem::align_of::<Self>() } } impl Aligned for u64 { fn alignment(&self) -> usize { core::mem::align_of:...
rust_cleaned_test_functions.jsonl/21299
{ "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, 37015, 368, 341, 262, 17567, 1674, 1542, 341, 286, 5168, 17189, 2099, 721, 8, 1464, 22301, 280, 262, 456, 262, 11605, 1674, 1542, 369, 575, 18, 17, 341, 286, 5168, 17189, 2099, 721, 8, 1464, 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_iterator() { let mut arr = [false; 32]; for i in (0..32).step_by(3) { arr[i] = true; } let mut bit_arr = Bit::from(arr); assert_eq!(arr, bit!(bit_arr).extract()); for (i, bit) in bit!(bit_arr).iter().enumerate() { assert_e...
rust_cleaned_test_functions.jsonl/44788
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13491, 368, 341, 286, 1077, 5206, 2890, 284, 508, 3849, 26, 220, 18, 17, 935, 286, 369, 600, 304, 320, 15, 496, 18, 17, 568, 9520, 3710, 7, 18, 8, 341, 310, 2890, 989, 60, 284, 830, 280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_publish_without_flood_publishing() { // node should: // - Send publish message to all peers //turn off flood publish to test old behaviour let config = GossipsubConfigBuilder::default() .flood_publish(false) .build() ....
rust_cleaned_test_functions.jsonl/66881
{ "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, 58779, 39904, 761, 4556, 58779, 287, 368, 341, 286, 442, 2436, 1265, 510, 286, 442, 481, 11000, 3415, 1943, 311, 678, 25029, 198, 23459, 286, 442, 412, 1007, 17726, 3415, 311, 1273, 2310, 16999, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_basic_highlight_field_read_write() { check( r#" struct S { f: u32, } fn foo() { let mut s = S{f: 0}; s.f<|> = 0; } "#, expect![[r#" f Field FileId(0) 15..21 15..16 Other FileId(0) 55..56 RecordFieldExprOrPat Read ...
rust_cleaned_test_functions.jsonl/47782
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34729, 74546, 5013, 6443, 9165, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1235, 328, 341, 262, 282, 25, 575, 18, 17, 345, 630, 8822, 15229, 368, 341, 262, 1077, 5206, 274, 284, 328, 90, 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_scans_nested_array() { let mut scanner = Scanner::new("<?php $a = [1, 2, 3, [1, 2,]];"); scanner.scan().unwrap(); assert_eq!( token_list!(scanner.tokens), "<?php $a = [ 1 , 2 , 3 , [ 1 , 2 , ] ] ; " ); }
rust_cleaned_test_functions.jsonl/52942
{ "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, 13171, 596, 66279, 3858, 368, 341, 286, 1077, 5206, 20775, 284, 17170, 486, 931, 98276, 1208, 400, 64, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 508, 16, 11, 220, 17, 11, 97829, 3071, 286,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sst_file_stream() { let dir = TempDir::new("test_import_sst_file_stream").unwrap(); let uuid = Uuid::new_v4(); let opts = DbConfig::default(); let engine = Arc::new(Engine::new(dir.path(), uuid, opts).unwrap()); for i in 0..16 { let k = Key::f...
rust_cleaned_test_functions.jsonl/9436
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 267, 2458, 12673, 368, 341, 286, 1077, 5419, 284, 19944, 6184, 486, 931, 445, 1944, 18434, 643, 267, 2458, 12673, 1827, 15454, 543, 286, 1077, 16040, 284, 547, 2423, 486, 931, 2273, 19, 543...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_parse_import() { assert_eq!( parse_import(r#"import "mechiru/common.proto";"#), Some("mechiru/common.proto".into()) ); assert_eq!( parse_import(r#"import weak "mechiru/common.proto";"#), Some("mechiru/common.proto".into()) ...
rust_cleaned_test_functions.jsonl/8976
{ "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, 21039, 18434, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 18434, 2601, 55543, 474, 330, 2660, 331, 404, 84, 11356, 57322, 5123, 57676, 1326, 310, 4329, 445, 2660, 331, 404, 84, 11356, 57322, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_supply() { let rpc = RpcHandler::start(); let request = create_test_request("getSupply", None); let result = { let mut result: RpcResponse<RpcSupply> = parse_success_result(rpc.handle_request_sync(request)); result.value.non_cir...
rust_cleaned_test_functions.jsonl/6298
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 501 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 65630, 368, 341, 286, 1077, 35596, 284, 79961, 3050, 486, 2468, 543, 286, 1077, 1681, 284, 1855, 4452, 7893, 445, 455, 51296, 497, 2240, 317, 286, 1077, 1102, 284, 341, 310, 1077, 5206, 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_url_for() { let mut resource = ResourceHandler::<()>::default(); resource.name("index"); let routes = vec![(Resource::new("index", "/user/{name}.{ext}"), Some(resource))]; let (router, _) = Router::new("/", routes); let info = router.default_ro...
rust_cleaned_test_functions.jsonl/30112
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 497 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2903, 5478, 368, 341, 286, 1077, 5206, 5101, 284, 11765, 3050, 27638, 368, 6831, 2258, 543, 286, 5101, 2644, 445, 1252, 797, 286, 1077, 11291, 4035, 310, 7486, 0, 9697, 4783, 486, 931, 445, 1252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_binary_array_get_value_index_out_of_bound() { let values: [u8; 12] = [104, 101, 108, 108, 111, 112, 97, 114, 113, 117, 101, 116]; let offsets: [i32; 4] = [0, 5, 5, 12]; let array_data = ArrayData::builder(DataType::Binary) .len(3) .add_...
rust_cleaned_test_functions.jsonl/11627
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 269 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31761, 3858, 3062, 3142, 3560, 6068, 3575, 19447, 368, 341, 286, 1077, 2750, 25, 508, 84, 23, 26, 220, 16, 17, 60, 4035, 310, 508, 16, 15, 19, 11, 220, 16, 15, 16, 11, 220, 16, 15, 23, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lazy_query_6() { let df = df! { "uid" => [0, 0, 0, 1, 1, 1], "day" => [1, 2, 4, 1, 2, 3], "cumcases" => [10, 12, 15, 25, 30, 41] } .unwrap(); let out = df .lazy() .groupby(vec![col("uid")]) /...
rust_cleaned_test_functions.jsonl/14667
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 307 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49646, 5738, 62, 21, 368, 341, 286, 1077, 6764, 284, 6764, 0, 341, 310, 330, 2423, 1, 589, 508, 15, 11, 220, 15, 11, 220, 15, 11, 220, 16, 11, 220, 16, 11, 220, 16, 1259, 310, 330, 1292,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_primitive_array_compare_scalar_slice() { let a: Int32Array = (0..100).map(Some).collect(); let a = a.slice(50, 50); let a = a.as_any().downcast_ref::<Int32Array>().unwrap(); let actual = lt_scalar(&a, 200).unwrap(); let expected: BooleanArray = (0..50).map...
rust_cleaned_test_functions.jsonl/36035
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 182 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84087, 3858, 32235, 41652, 26488, 368, 341, 286, 1077, 264, 25, 1333, 18, 17, 1857, 284, 320, 15, 496, 16, 15, 15, 568, 2186, 65405, 568, 17384, 543, 286, 1077, 264, 284, 264, 14530, 7, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_push_externalize() { let sender_id = test_node_id(11).responder_id; let quorum_set = QuorumSet::<ResponderId>::empty(); let local_node_id = test_node_id(1); let local_node_quorum_set = QuorumSet::<ResponderId>::empty(); let mut network_state = ...
rust_cleaned_test_functions.jsonl/60948
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 560 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 47432, 551, 368, 341, 286, 1077, 4646, 842, 284, 1273, 5084, 842, 7, 16, 16, 568, 416, 20328, 842, 280, 286, 1077, 922, 33006, 2602, 284, 3406, 33006, 1649, 27638, 30884, 764, 6831, 3194,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_timespec_sub() { let a = Timespec::new(2, 3); let b = Timespec::new(1, 2); let c = a - b; assert_eq!(c.num_nanoseconds(), Some(super::NSEC_PER_SEC as i64 + 1)); let p = Timespec::new(2, 0); let q = Timespec::new(1, 2); let r = p - q; ...
rust_cleaned_test_functions.jsonl/7348
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 304 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22353, 992, 5228, 368, 341, 286, 1077, 264, 284, 8523, 992, 486, 931, 7, 17, 11, 220, 18, 317, 286, 1077, 293, 284, 8523, 992, 486, 931, 7, 16, 11, 220, 17, 317, 286, 1077, 272, 284, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_config_dirs() { let mut root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); root.push("tpl"); let config = Config::new("[general]\ndirs = [\"tpl\"]"); assert_eq!(config.dirs, vec![root]); }
rust_cleaned_test_functions.jsonl/22981
{ "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, 5332, 44869, 368, 341, 286, 1077, 5206, 3704, 284, 7933, 15064, 486, 1499, 16978, 486, 947, 445, 34, 7581, 46, 25143, 91120, 8291, 1827, 15454, 1423, 286, 3704, 2552, 445, 12620, 797, 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_lpc_restore_signal() { let coefficients = [ &[1042, -399, -75, -269, 121, 166, -75][..] , &[1757, -1199, 879, -836, 555, -255, 119][..] ]; let mut outputs = [ &mut [-796, -547, -285, -32, 199, 443, 670 , -2, -23, ...
rust_cleaned_test_functions.jsonl/61777
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 579 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 3992, 62677, 21137, 368, 341, 262, 1077, 36829, 284, 508, 44590, 16, 15, 19, 17, 11, 481, 18, 24, 24, 11, 481, 22, 20, 11, 481, 17, 21, 24, 11, 220, 16, 17, 16, 11, 220, 16, 21, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fourier_sin() { let data = vec![ Complex64::new(0.0, 0.0), Complex64::new(1.0, 0.0), Complex64::new(0.0, 0.0), Complex64::new(-1.0, 0.0), ]; let expected_ft = vec![ Complex64::new(0.0, 0.0), Complex64...
rust_cleaned_test_functions.jsonl/79832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 322 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56142, 1268, 78710, 368, 341, 286, 1077, 821, 284, 7486, 90515, 310, 22096, 21, 19, 486, 931, 7, 15, 13, 15, 11, 220, 15, 13, 15, 1326, 310, 22096, 21, 19, 486, 931, 7, 16, 13, 15, 11, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_emoji_colons() { assert_eq!(":rust:", add_emoji_colons(":rust:")); assert_eq!(":rust:", add_emoji_colons(":rust")); assert_eq!(":rust:", add_emoji_colons("rust:")); assert_eq!(":rust:", add_emoji_colons("rust")); }
rust_cleaned_test_functions.jsonl/25067
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 144 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 62, 37523, 10211, 2382, 368, 341, 286, 2060, 10714, 17223, 25, 35788, 12147, 912, 62, 37523, 10211, 2382, 18893, 35788, 25, 4010, 286, 2060, 10714, 17223, 25, 35788, 12147, 912, 62, 37523, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unwrap_date() { use chrono::TimeZone; assert!(unwrap_date(&FixedOffset::east(0).ymd(1970, 1, 1).and_hms(0, 0, 0)).is_err()); assert!(unwrap_date(&FixedOffset::east(0).ymd(2018, 1, 1).and_hms(0, 0, 0)).is_ok()); }
rust_cleaned_test_functions.jsonl/133330
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4907, 10097, 4164, 368, 341, 262, 990, 80372, 486, 77786, 401, 262, 2060, 10297, 15454, 4164, 2099, 13520, 6446, 486, 60501, 7, 15, 568, 1600, 67, 7, 16, 24, 22, 15, 11, 220, 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_no_pushes_to_from_different_shred_versions() { let mut crds = Crds::default(); let stakes = HashMap::new(); let node = CrdsGossipPush::default(); let gossip = socketaddr!("127.0.0.1:1234"); let me = CrdsValue::new_unsigned(CrdsData::ContactInfo(ContactIn...
rust_cleaned_test_functions.jsonl/79133
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 999 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 14218, 288, 2346, 5673, 82741, 3712, 1151, 65148, 368, 341, 286, 1077, 5206, 1560, 5356, 284, 4553, 5356, 486, 2258, 543, 286, 1077, 44425, 284, 10528, 486, 931, 543, 286, 1077, 2436, 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_transport_cc_extension_extra_bytes() -> Result<()> { let raw = Bytes::from_static(&[0x00, 0x02, 0x00, 0xff, 0xff]); let buf = &mut raw.clone(); let t1 = TransportCcExtension::unmarshal(buf)?; let t2 = TransportCcExtension { transport_sequence: 2, }; assert_eq!(t1,...
rust_cleaned_test_functions.jsonl/120380
{ "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, 46398, 28955, 31035, 31858, 12524, 368, 1464, 5714, 71698, 341, 262, 1077, 7112, 284, 30024, 486, 1499, 25360, 2099, 58, 15, 87, 15, 15, 11, 220, 15, 87, 15, 17, 11, 220, 15, 87, 15, 15, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_large_number_of_clients() { let mut runner = Runner::new(); // Create MAX_CONCURRENT_CLIENTS clients. for i in 0..MAX_CONCURRENT_CLIENTS { let mut query = runner.proxy.start_logging_forever( &(i as u32).to_string(), &mut vec![&...
rust_cleaned_test_functions.jsonl/66703
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 819 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45228, 5500, 3575, 56899, 368, 341, 286, 1077, 5206, 22259, 284, 44946, 486, 931, 1428, 286, 442, 4230, 8334, 4307, 44690, 22521, 50, 8239, 624, 286, 369, 600, 304, 220, 15, 496, 10586, 4307, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_persist_app() { block_on(async { let config = config_generator(); let mut state_machine = StateMachine::new( StubPolicyEngine, StubHttpRequest, StubInstaller::default(), &config, StubT...
rust_cleaned_test_functions.jsonl/104636
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 438 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 4975, 8191, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2193, 284, 2193, 25813, 543, 310, 1077, 5206, 1584, 38695, 284, 3234, 21605, 486, 931, 1006, 394, 66611, 13825, 4571, 345, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_overflow_correction_neg() { for test_val in 0o100000..0o137777 { let result = overflow_correction(test_val); assert_eq!(test_val | 0o40000, result); } }
rust_cleaned_test_functions.jsonl/10191
{ "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, 79073, 82474, 28209, 368, 341, 286, 369, 1273, 6189, 304, 220, 15, 78, 16, 15, 15, 15, 15, 15, 496, 15, 78, 16, 18, 22, 22, 22, 22, 341, 310, 1077, 1102, 284, 16484, 82474, 8623, 6189, 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_hash_many_sse41() { if !crate::sse41_detected() { return; } test_hash_many_fn(crate::ffi::x86::blake3_hash_many_sse41); }
rust_cleaned_test_functions.jsonl/79364
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8950, 22101, 643, 325, 19, 16, 368, 341, 262, 421, 753, 61711, 486, 64513, 19, 16, 98876, 368, 341, 286, 470, 280, 262, 456, 262, 1273, 8950, 22101, 15246, 54907, 486, 53799, 486, 87, 23, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
#[test] fn test_parse_get_mmds_request() { assert!(parse_get_mmds().is_ok()); assert!(METRICS.get_api_requests.mmds_count.count() > 0); }
rust_cleaned_test_functions.jsonl/53458
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 3062, 717, 2277, 82, 7893, 368, 341, 286, 2060, 10297, 6400, 3062, 717, 2277, 82, 1005, 285, 19817, 1423, 286, 2060, 10297, 44875, 84172, 670, 11697, 37216, 744, 2277, 82, 3180, 6501, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_should_preserve_empty_line_without_final_newline() { new_ucmd!() .arg("-w2") .pipe_in("12\n\n34") .succeeds() .stdout_is("12\n\n34"); }
rust_cleaned_test_functions.jsonl/23265
{ "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, 43378, 32116, 5852, 15124, 6528, 39904, 20676, 5921, 1056, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 858, 13645, 86, 17, 1138, 286, 659, 13768, 1243, 445, 16, 17, 1699, 1699, 18, 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
#[test] fn test_variant_iter_map() { let mut map = HashMap::new(); map.insert("foo", 1); map.insert("bar", 1); let v = map.to_variant(); assert_eq!(v.iter().count(), 2); }
rust_cleaned_test_functions.jsonl/59856
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 115 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 46112, 11723, 5376, 368, 341, 286, 1077, 5206, 2415, 284, 10528, 486, 931, 543, 286, 2415, 7030, 445, 7975, 497, 220, 16, 317, 286, 2415, 7030, 445, 2257, 497, 220, 16, 317, 286, 1077, 348, 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
#[test] fn test_parse_malformed_content() { let documents = load_document("../tests/Gossiping_M.1519661420.A.098.html"); assert_eq!(parse_content(&documents), Err(Error::InvalidFormat)); }
rust_cleaned_test_functions.jsonl/87162
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 717, 278, 10155, 7495, 368, 341, 286, 1077, 9293, 284, 2795, 26231, 17409, 23841, 15792, 41473, 287, 1245, 13, 16, 20, 16, 24, 21, 21, 16, 19, 17, 15, 875, 13, 15, 24, 23, 2564, 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
#[test] fn test_part1() { assert_eq!(part1("[1,2,3]"), 6); assert_eq!(part1(r#"{"a":2,"b":4}"#), 6); assert_eq!(part1("[[[3]]]"), 3); assert_eq!(part1(r#"{"a":{"b":4},"c":-1}"#), 3); assert_eq!(part1(r#"{"a":[-1,1]}"#), 0); assert_eq!(part1(r#"[-1,{"a":1}]"#), 0);...
rust_cleaned_test_functions.jsonl/115542
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 16, 368, 341, 286, 2060, 10714, 10297, 4480, 16, 10937, 16, 11, 17, 11, 18, 60, 3975, 220, 21, 317, 286, 2060, 10714, 10297, 4480, 16, 2601, 55543, 4913, 64, 788, 17, 1335, 65, 788, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_initial_window_size() { let payload = Cursor::new([0, 4, 129, 255, 255, 255]); assert_eq!(SettingsFrame::from_reader(single_setting_frame_header(), payload) .unwrap_err() .kind(), ErrorKind::FlowControl); ...
rust_cleaned_test_functions.jsonl/93810
{ "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, 31433, 15809, 12571, 2368, 368, 341, 286, 1077, 7729, 284, 28067, 486, 931, 2561, 15, 11, 220, 19, 11, 220, 16, 17, 24, 11, 220, 17, 20, 20, 11, 220, 17, 20, 20, 11, 220, 17, 20, 20, 255...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mut_last() { let mut x = [1, 2, 3, 4, 5]; let h = x.mut_last(); assert_eq!(*h.unwrap(), 5); let y: &mut [int] = []; assert!(y.mut_last().is_none()); }
rust_cleaned_test_functions.jsonl/75646
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 123 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29523, 12195, 368, 341, 286, 1077, 5206, 856, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 935, 286, 1077, 305, 284, 856, 744, 332, 12195, 543, 286, 2060, 10714, 0, 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_generic_ctor_without_type_params() { err( "class Foo<A, B>() fun test() { Foo(); }", pos(2, 26), Msg::WrongNumberTypeParams(2, 0), ); }
rust_cleaned_test_functions.jsonl/106643
{ "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, 41232, 54185, 39904, 1819, 6745, 368, 341, 286, 1848, 1006, 310, 330, 1040, 33428, 30192, 11, 425, 18949, 310, 2464, 1273, 368, 314, 33428, 2129, 335, 756, 310, 1133, 7, 17, 11, 220, 17, 21, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_t04() { // Range selection let (r, sioe) = do_execute!(&["-s", "\"cats\".[1:2]"], super::IN_DAT_04); assert_eq!(buff!(sioe, serr), ""); assert_eq!( buff!(sioe, sout), "[{\"second\":\"Kitkat\"},{\"third\":\"Misty\"}]\n", ); a...
rust_cleaned_test_functions.jsonl/118359
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1061 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 15, 19, 368, 341, 286, 442, 16437, 6589, 198, 286, 1077, 320, 81, 11, 274, 815, 68, 8, 284, 653, 44329, 0, 2099, 1183, 12, 82, 497, 15898, 37452, 2105, 7873, 16, 25, 17, 60, 7914, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_early_return_invalid() { let cache = DnsLru::new(0, dns_lru::TtlConfig::default()); let client = mock(vec![empty()]); let mut client = CachingClient::with_cache(cache, client, false); assert!(block_on(client.lookup( Query::query( Name:...
rust_cleaned_test_functions.jsonl/103486
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 246 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 22140, 12511, 31433, 368, 341, 286, 1077, 6500, 284, 422, 4412, 43, 2672, 486, 931, 7, 15, 11, 44077, 907, 2672, 486, 51, 11544, 2648, 486, 2258, 1423, 286, 1077, 2943, 284, 7860, 25592, 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_fill3() { use ndshape::ConstShape3u32; let dst_shape = ConstShape3u32::<11, 12, 13>; const DST_SIZE: usize = 11 * 12 * 13; let mut dst = [0; DST_SIZE]; fill3([2, 3, 4], 1, &mut dst, &dst_shape, [4, 5, 6]); for z in 6..6 + 4 { for y in 5..5 + 3 { for...
rust_cleaned_test_functions.jsonl/85382
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 328 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30728, 18, 368, 341, 262, 990, 15581, 12231, 486, 19167, 12301, 18, 84, 18, 17, 401, 262, 1077, 10648, 13597, 284, 24522, 12301, 18, 84, 18, 17, 27638, 16, 16, 11, 220, 16, 17, 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...
5
#[test] fn test_vhostmemory() { let mut obj = VhostMemory::new(2); let region = vhost_memory_region { guest_phys_addr: 0x1000u64, memory_size: 0x2000u64, userspace_addr: 0x300000u64, flags_padding: 0u64, }; assert!(obj.get_region(2)...
rust_cleaned_test_functions.jsonl/57992
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 464 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 3790, 17269, 368, 341, 286, 1077, 5206, 2839, 284, 647, 3790, 10642, 486, 931, 7, 17, 317, 286, 1077, 5537, 284, 348, 3790, 19195, 20627, 341, 310, 8640, 69319, 7387, 25, 220, 15, 87, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parent_child_with_nth_child() { let selector_str = "pair > string:nth-child(0)"; let expected = vec![SelectorRaw { node_selectors: vec![ NodeSelectorRaw { node_kind: "pair".into(), nth_child: None, ...
rust_cleaned_test_functions.jsonl/56561
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15960, 17268, 6615, 78342, 17268, 368, 341, 286, 1077, 9367, 2895, 284, 330, 12670, 861, 914, 37964, 23484, 7, 15, 24023, 286, 1077, 3601, 284, 7486, 20703, 5877, 20015, 341, 310, 2436, 13051, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_config_manager__config_dir_exists__failure() -> TestResult { let cm = ConfigManager {}; let (_config_dir, _tmp_dir) = set_config_dir()?; let config_dir_exists = cm.config_dir_exists(); env::remove_var("HOME"); assert!(!config_dir_exists); Ok(())...
rust_cleaned_test_functions.jsonl/81014
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 151 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 12144, 563, 1676, 4334, 9766, 563, 28939, 368, 1464, 3393, 2077, 341, 286, 1077, 9961, 284, 5532, 2043, 9321, 286, 1077, 5453, 1676, 4334, 11, 716, 5173, 4334, 8, 284, 738, 5332, 4334, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_rotate_left_random() { let shifts = [ 6, 1, 0, 11, 12, 1, 11, 7, 9, 3, 6, 1, 4, 0, 5, 1, 3, 1, 12, 8, 3, 1, 11, 11, 9, 4, 12, 3, 12, 9, 11, 1, 7, 9, 7, 2, ]; let n = 12; let mut v: VecDeque<_> = (0..n).collect(); let mut total_shift = 0; for shift in shift...
rust_cleaned_test_functions.jsonl/73739
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60834, 9579, 22644, 368, 341, 262, 1077, 28635, 284, 2278, 286, 220, 21, 11, 220, 16, 11, 220, 15, 11, 220, 16, 16, 11, 220, 16, 17, 11, 220, 16, 11, 220, 16, 16, 11, 220, 22, 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...
3
#[test] fn test_simple_extract() { let s = schema(&[("a", DataType::Int64)]); let extract = |sql| PartitionFilter::extract(&s, &[parse(sql, &s)]); // Comparisons. assert_eq!( extract("a < 10").min_max, vec![MinMaxCondition { min: vec![None...
rust_cleaned_test_functions.jsonl/65526
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1916 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 39123, 368, 341, 286, 1077, 274, 284, 10802, 2099, 58, 445, 64, 497, 33172, 486, 1072, 21, 19, 41958, 286, 1077, 8649, 284, 760, 3544, 91, 54626, 5632, 486, 23493, 2099, 82, 11, 44590, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_load_inode() { let mut f = OpenOptions::new() .truncate(true) .create(true) .write(true) .read(true) .open("/tmp/buf_1") .unwrap(); let mut writer = Box::new(f.try_clone().unwrap()) as RafsIoWriter; l...
rust_cleaned_test_functions.jsonl/74897
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 46748, 368, 341, 286, 1077, 5206, 282, 284, 5264, 3798, 486, 931, 741, 310, 659, 66054, 3715, 340, 310, 659, 3182, 3715, 340, 310, 659, 4934, 3715, 340, 310, 659, 878, 3715, 340, 310, 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...
2
#[test] fn test_needs_permit_to_start_stream() { let mut exec = fasync::TestExecutor::new().expect("an executor"); let (avdtp, remote) = setup_avdtp_peer(); let (profile_proxy, _requests) = create_proxy_and_stream::<ProfileMarker>().expect("test proxy pair creation"); ...
rust_cleaned_test_functions.jsonl/91788
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1675 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13925, 6767, 5678, 1763, 2346, 4906, 12673, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 276, 31558, 3071, 286, 1077, 320, 402, 67, 790, 11, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
#[test] fn test_response_cookies() { let mut headers = HeaderMap::new(); headers.insert(COOKIE, HeaderValue::from_static("cookie1=value1")); headers.insert(COOKIE, HeaderValue::from_static("cookie2=value2")); let req = HttpRequest::new( Method::GET, Uri::...
rust_cleaned_test_functions.jsonl/2944
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 709 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 94158, 368, 341, 286, 1077, 5206, 7102, 284, 12104, 2227, 486, 931, 543, 286, 7102, 7030, 3025, 46, 23588, 11, 12104, 1130, 486, 1499, 25360, 445, 16236, 16, 46538, 16, 4010, 286, 7102, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_modulo_and_remainder() { let p = polar(); qeval(&p, "1 mod 1 == 0"); qeval(&p, "1 rem 1 == 0"); qeval(&p, "1 mod -1 == 0"); qeval(&p, "1 rem -1 == 0"); qeval(&p, "0 mod 1 == 0"); qeval(&p, "0 rem 1 == 0"); qeval(&p, "0 mod -1 == 0"); qeval(&p, "0 rem -1 == 0")...
rust_cleaned_test_functions.jsonl/68122
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 611 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7480, 8763, 8378, 86607, 1107, 368, 341, 262, 1077, 281, 284, 24660, 543, 262, 2804, 14170, 2099, 79, 11, 330, 16, 1463, 220, 16, 621, 220, 15, 797, 262, 2804, 14170, 2099, 79, 11, 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...
3
#[test] fn test_write_object() { assert_eq!(mk_object(&[]).to_string(), "{}"); assert_eq!(mk_object(&[]).pretty().to_string(), "{}"); assert_eq!( mk_object(&[ ("a".to_string(), Boolean(true)) ]).to_string(), "{\"a\":true}" ); ...
rust_cleaned_test_functions.jsonl/22708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1213 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 5314, 368, 341, 286, 2060, 10714, 10297, 24452, 5314, 2099, 1294, 568, 983, 3904, 1507, 35503, 797, 286, 2060, 10714, 10297, 24452, 5314, 2099, 1294, 568, 32955, 1005, 983, 3904, 1507, 35503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_complex_nested_or_join_type_projection() { let mut schemaReplicant = SchemaReplicant::default(); associate_causetId(&mut schemaReplicant, Keyword::namespaced("page", "title"), 98); add_attribute(&mut schemaReplicant, 98, Attribute { value_type: MinkowskiValueType::String, ...
rust_cleaned_test_functions.jsonl/90718
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 713 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41522, 66279, 8734, 31017, 1819, 72738, 368, 341, 262, 1077, 5206, 10802, 18327, 35237, 284, 12539, 18327, 35237, 486, 2258, 543, 262, 21946, 666, 11855, 295, 764, 2099, 6984, 10802, 18327, 35237, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_localfs_get_reader() { let tempfile = TempFile::new().unwrap(); let path = tempfile.as_path(); let filename = path.file_name().unwrap().to_str().unwrap(); { let mut file = unsafe { File::from_raw_fd(tempfile.as_file().as_raw_fd()) }; file....
rust_cleaned_test_functions.jsonl/20351
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 900 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13564, 3848, 3062, 22306, 368, 341, 286, 1077, 54819, 284, 19944, 1703, 486, 931, 1005, 15454, 543, 286, 1077, 1815, 284, 54819, 5357, 2638, 543, 286, 1077, 3899, 284, 1815, 9715, 1269, 1005, 1545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rpc() { let mut cmd1 = Command::cargo_bin("factomd").unwrap(); let mut cmd2 = Command::cargo_bin("factomd").unwrap(); let mut cmd3 = Command::cargo_bin("factomd").unwrap(); let mut cmd4 = Command::cargo_bin("factomd").unwrap(); let mut cmd5 = Command::cargo_bin("factomd").unw...
rust_cleaned_test_functions.jsonl/86579
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 367 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 368, 341, 262, 1077, 5206, 5439, 16, 284, 7348, 486, 66715, 21816, 445, 33110, 316, 67, 1827, 15454, 543, 262, 1077, 5206, 5439, 17, 284, 7348, 486, 66715, 21816, 445, 33110, 316, 67, 182...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sync() { let dir = tempdir().unwrap(); { let env = Environment::new().open(dir.path()).unwrap(); env.sync(true).unwrap(); } { let env = Environment::new() .set_flags(Mode::ReadOnly.into()) .open(d...
rust_cleaned_test_functions.jsonl/81371
{ "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, 23008, 368, 341, 286, 1077, 5419, 284, 2730, 3741, 1005, 15454, 543, 286, 341, 310, 1077, 6105, 284, 11586, 486, 931, 1005, 2508, 14161, 3875, 6011, 15454, 543, 310, 6105, 30712, 3715, 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...
1
#[test] fn test_vcx_version() { let return_version = CStringUtils::c_str_to_string(vcx_version()).unwrap().unwrap(); assert!(return_version.len() > 5); }
rust_cleaned_test_functions.jsonl/19813
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 9438, 368, 341, 286, 1077, 470, 9438, 284, 356, 34780, 486, 66, 2895, 2346, 3904, 3747, 25844, 9438, 6011, 15454, 1005, 15454, 543, 286, 2060, 10297, 689, 9438, 19406, 368, 861, 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
#[test] fn test_inverted_match() { let text = "Además de todo lo anteriormente dicho, también encontramos..."; let matcher = Matcher::new(vec![Lang::Spa, Lang::Eng, Lang::Bul], Lang::Spa, 1.0, true); assert_eq!(matcher.is_lang(text), false); }
rust_cleaned_test_functions.jsonl/104037
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 129 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 21630, 10708, 368, 341, 286, 1077, 1467, 284, 330, 2589, 41841, 409, 11804, 775, 36129, 12541, 92860, 11, 28471, 22547, 10585, 65589, 286, 1077, 36052, 284, 60632, 486, 931, 25592, 20703, 2622...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_menu_build() { let cond = false; let builder = MenuBuilder::new() .checkable("This is checkable", true, Events::CheckableItem1) .submenu( "Sub Menu", MenuBuilder::new() .item("Sub item 1", Events::SubItem...
rust_cleaned_test_functions.jsonl/49987
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 822 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10403, 20801, 368, 341, 286, 1077, 9756, 284, 895, 280, 286, 1077, 7363, 284, 9738, 3297, 486, 931, 741, 310, 659, 2028, 480, 445, 1986, 374, 1779, 480, 497, 830, 11, 17627, 486, 3973, 480, 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...
3
#[test] fn test_xcrs() { let mini_plugin = MiniPlugin { assembly_src: "org 0x1000 bits 16 mov byte [0x3000], 1", src: r#" #define XCR0_VALUE 0x1 #define KILL_ADDRESS 0x3000 int g_kill_evt; struct kvm_xcrs g_xcrs; ...
rust_cleaned_test_functions.jsonl/35302
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1332 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3212, 5082, 82, 368, 341, 262, 1077, 13420, 23110, 284, 19643, 11546, 341, 286, 14614, 16274, 25, 330, 1775, 220, 15, 87, 16, 15, 15, 15, 198, 1797, 9472, 220, 16, 21, 198, 1797, 1974, 4922, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_saving_and_loading_relations5() { use rand::rngs::StdRng; use rand::{Rng, SeedableRng}; let mut rng = StdRng::from_entropy(); let mut facts: Vec<(u8, u64, u8, u16)> = Vec::with_capacity(100000); for _ in 0..facts.capacity() { facts.push((rng.ge...
rust_cleaned_test_functions.jsonl/103791
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 2317, 8378, 57726, 94221, 20, 368, 341, 286, 990, 10382, 486, 69890, 82, 486, 22748, 49, 968, 280, 286, 990, 10382, 22964, 49, 968, 11, 35822, 480, 49, 968, 2440, 286, 1077, 5206, 28422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_with_known_services_does_not_infer_service() { let sb = create_test_sandbox(vec![String::from("fuchsia.test.taurus")]); let cms = create_test_cmx_map(vec![(String::from("meta/bar.cmx"), sb)]); let pkg = create_test_package_with_cms(String::from("fuchsia-p...
rust_cleaned_test_functions.jsonl/19464
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 637 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 6615, 71690, 39846, 96374, 7913, 1243, 802, 12267, 368, 341, 1789, 286, 1077, 7898, 284, 1855, 4452, 643, 31536, 25592, 20703, 703, 486, 1499, 445, 69, 73391, 5958, 734, 42513, 899, 2558, 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_vcx_issuer_credential_get_state() { init!("true"); let handle = issuer_credential::from_string(DEFAULT_SERIALIZED_ISSUER_CREDENTIAL).unwrap(); assert!(handle > 0); let cb = return_types_u32::Return_U32_U32::new().unwrap(); assert_eq!(vcx_issuer_credential_...
rust_cleaned_test_functions.jsonl/66778
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 357 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 25844, 62, 66817, 666, 30320, 3062, 4387, 368, 341, 286, 2930, 17223, 1866, 797, 286, 1077, 3705, 284, 54835, 666, 30320, 486, 1499, 3904, 43175, 14844, 88727, 92687, 52, 640, 920, 81509, 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...
1
#[test] fn test_eq_0() { with_default_globals(|| { let test_res = string_to_ts("foo"); let test_eqs = string_to_ts("foo"); assert_eq!(test_res, test_eqs) }) }
rust_cleaned_test_functions.jsonl/12426
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 128 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10714, 62, 15, 368, 341, 286, 448, 9993, 58775, 79453, 341, 310, 1077, 1273, 4918, 284, 914, 2346, 25023, 445, 7975, 797, 310, 1077, 1273, 10714, 82, 284, 914, 2346, 25023, 445, 7975, 797, 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 ]
2
#[test] fn test_near_pi() { let x = f64::from_bits(0x400921fb000FD5DD); let sx = f64::from_bits(0x3ea50d15ced1a4a2); // 6.273720864039205e-7 assert_eq!(sin(x), sx); }
rust_cleaned_test_functions.jsonl/38611
{ "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, 76340, 47771, 368, 341, 262, 1077, 856, 284, 282, 21, 19, 486, 1499, 20034, 7, 15, 87, 19, 15, 15, 24, 17, 16, 10798, 15, 15, 15, 14596, 20, 4103, 1215, 715, 262, 1077, 31808, 284, 282, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sort_func_empty() { assert_eq!( MusicMetadata::sort_func( &Some(MusicMetadata { album: "".to_string(), artist: "".to_string(), disk_number: None, title: "".to_string(), ...
rust_cleaned_test_functions.jsonl/77632
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 452 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18435, 9596, 15124, 368, 341, 286, 2060, 10714, 33673, 310, 10717, 14610, 486, 6860, 9596, 1006, 394, 609, 8373, 3189, 11524, 14610, 341, 503, 8017, 25, 44907, 983, 3904, 3148, 503, 10049, 25, 449...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lineoffsets_fused() { let data = b""; let mut offsets = LineOffsets::new(data); offsets.next(); assert_eq!(None, offsets.next()); assert_eq!(None, offsets.next()); assert_eq!(None, offsets.next()); }
rust_cleaned_test_functions.jsonl/77783
{ "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, 6528, 3176, 82, 761, 2591, 368, 341, 262, 1077, 821, 284, 293, 1, 876, 262, 1077, 5206, 35046, 284, 7083, 81095, 486, 931, 2592, 626, 262, 35046, 4529, 543, 262, 2060, 10714, 10297, 4064, 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_fr_add() { let f1 = Fr::from(BigInteger([ 0xccfc9a195e0f5c46, 0xaed4874d13fb1285, 0x27368f86ca2848eb, 0x4f8adcfeb44fccc, ])); let f2 = Fr::from(BigInteger([ 0x661ff05bf8570851, 0x1b171f4c59be97ef, 0x5d2ce7f9b4d701f3, 0x1...
rust_cleaned_test_functions.jsonl/124842
{ "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, 41537, 2891, 368, 341, 262, 1077, 282, 16, 284, 2869, 486, 1499, 91756, 8956, 286, 220, 15, 47380, 8316, 24, 64, 16, 24, 20, 68, 15, 69, 20, 66, 19, 21, 345, 286, 220, 15, 9591, 291, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_round_trip() { let b = r#"{"signatures": {"Alice": {"ed25519:zxcvb": "hvA+XXFEkHk80pLMeIYjNkWy5Ds2ZckSrvj00NvbyFJQe3H9LuJNnu8JLZ/ffIzChs3HmhwPldO0MSmyJAYpCA"}}, "my_key": "my_data"}"#; #[derive(Debug, Deserialize, Serialize, PartialEq, Eq)] struct Test {}; let s...
rust_cleaned_test_functions.jsonl/31933
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 326 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29896, 63883, 368, 341, 286, 1077, 293, 284, 435, 55543, 4913, 7752, 2789, 788, 5212, 61686, 788, 5212, 291, 17, 20, 20, 16, 24, 25, 89, 8148, 42405, 788, 330, 81979, 32, 10, 6148, 11419, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_year_as_string() { let cs: Vec<(i64, Vec<u8>, String)> = vec![ (0, b"0000".to_vec(), "0000".to_string()), (2000, b"2000".to_vec(), "2000".to_string()), ]; let ref_cs = helper_get_cs_ref(&cs); test_as_string_helper( ref_cs, ...
rust_cleaned_test_functions.jsonl/1970
{ "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, 14645, 11898, 3904, 368, 341, 286, 1077, 10532, 25, 11312, 28706, 72, 21, 19, 11, 11312, 34837, 23, 8066, 923, 16018, 284, 7486, 90515, 310, 320, 15, 11, 293, 1, 15, 15, 15, 15, 3263, 983, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_choke() { let mut r = Reader::new(); r.state = State::Len; let data = vec![0u8, 0, 0, 1, 0]; test_message(data, Message::Choke); }
rust_cleaned_test_functions.jsonl/46444
{ "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, 6443, 62, 958, 440, 368, 341, 286, 1077, 5206, 435, 284, 25166, 486, 931, 543, 286, 435, 3467, 284, 3234, 486, 11271, 280, 286, 1077, 821, 284, 7486, 20703, 15, 84, 23, 11, 220, 15, 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_to_string() { assert_eq!( FinancialPeriod::Quarter { quarter: 2, year: 1972 } .to_string(), "Q2 1972".to_string() ); assert_eq!( FinancialPeriod::Half { half: 2, ...
rust_cleaned_test_functions.jsonl/21180
{ "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, 2346, 3904, 368, 341, 286, 2060, 10714, 33673, 310, 17503, 23750, 486, 86608, 341, 394, 8338, 25, 220, 17, 345, 394, 1042, 25, 220, 16, 24, 22, 17, 198, 310, 456, 310, 659, 983, 3904, 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_pci_driver_override() { let testdir = tempdir().expect("failed to create tmpdir"); let syspci = testdir.path(); // Path to mock /sys/bus/pci let dev0 = pci::Address::new(0, 0, pci::SlotFn::new(0, 0).unwrap()); let dev0path = syspci.join("devices").join(dev0.to_st...
rust_cleaned_test_functions.jsonl/66442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 761 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76384, 20602, 48576, 368, 341, 286, 1077, 1273, 3741, 284, 2730, 3741, 1005, 17119, 445, 16091, 311, 1855, 4174, 3741, 797, 286, 1077, 5708, 55387, 284, 1273, 3741, 3875, 2129, 442, 7933, 311, 786...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enter_alt() { let mut test = SdlTest::new(); test.console().print("Before entering the alternate console").unwrap(); test.console().enter_alt().unwrap(); test.console().print("After entering the alternate console").unwrap(); test.verify("sdl-enter-alt");...
rust_cleaned_test_functions.jsonl/15266
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 127 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37480, 32105, 368, 341, 286, 1077, 5206, 1273, 284, 328, 8736, 2271, 486, 931, 1428, 286, 1273, 47802, 1005, 1350, 445, 10227, 16262, 279, 24609, 2339, 1827, 15454, 543, 286, 1273, 47802, 1005, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tree_reader_handle_repeated_fields_with_no_annotation() { type RepeatedNoAnnotation = (i32, Option<(List<(i64, Option<String>)>,)>); // Array field `phoneNumbers` does not contain LIST annotation. // We parse it as struct with `phone` repeated field as array. let rows = test_file_reader...
rust_cleaned_test_functions.jsonl/92469
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11663, 22306, 10630, 1288, 41954, 12132, 6615, 6536, 61237, 368, 341, 197, 13158, 1032, 41954, 2753, 19711, 284, 320, 72, 18, 17, 11, 6959, 28706, 852, 28706, 72, 21, 19, 11, 6959, 3464, 9231, 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_run_dev() { let env = ConfigSpec::new_without_pass(); let artifacts_dir = env.output_dir().join("artifacts"); // Mocks existence of old DB files that are supposed to be cleaned up. let db_dir = artifacts_dir.join("db"); fs::create_dir_all(&db_dir).unwrap(); let old_db_fi...
rust_cleaned_test_functions.jsonl/97983
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 271 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 10433, 368, 341, 262, 1077, 6105, 284, 5532, 8327, 486, 931, 39904, 15464, 1428, 262, 1077, 35036, 4334, 284, 6105, 13413, 4334, 1005, 5987, 445, 471, 26401, 797, 262, 442, 14563, 82, 13885...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_doc_spec_chunk() { crate::tests::test_read_doc_spec_chunk( TEST_CHUNK_I16_LZ4.as_ref(), CompressionType::Lz4(Lz4Compression::default()), ); }
rust_cleaned_test_functions.jsonl/40666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 18869, 13594, 30539, 368, 341, 286, 17717, 486, 23841, 486, 1944, 6443, 18869, 13594, 30539, 1006, 310, 13602, 70508, 7959, 16, 21, 2351, 57, 19, 5357, 7793, 3148, 310, 66161, 929, 486, 43, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_delete_old_records_from_cost_table() { let ledger_path = get_tmp_ledger_path_auto_delete!(); let blockstore = Blockstore::open(ledger_path.path()).unwrap(); let num_entries: usize = 10; let mut cost_table: HashMap<Pubkey, u64> = HashMap::new(); for x in 1...
rust_cleaned_test_functions.jsonl/9588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 849 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11353, 21108, 31279, 5673, 15890, 5237, 368, 341, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 27740, 11353, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 7, 50704, 263...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_account_withdraw_verify_fail() { let db = create_db(); let (txaux, tx, _, account, secret_key, accounts, last_account_root_hash) = prepare_app_valid_withdraw_tx(0); let extra_info = ChainInfo { min_fee_computed: LinearFee::new(Milli::new(1, 1), Mil...
rust_cleaned_test_functions.jsonl/129489
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4210 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13500, 6615, 7633, 35638, 22121, 368, 341, 286, 1077, 2927, 284, 1855, 8685, 543, 286, 1077, 320, 3998, 11981, 11, 9854, 11, 8358, 2692, 11, 6234, 3097, 11, 9618, 11, 1537, 13500, 12993, 8950, 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_ser_de() { let msg1 = ToServerPacket::Message { salts_xor: 1194876546, messages: vec![Message::ReliableAcks { first_sequence: 0, acks: BitSet::new().into(), }], }; let mut v = Vec::new(); serialize_packet(&mut v, &msg1).unwrap(); ...
rust_cleaned_test_functions.jsonl/72778
{ "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, 75861, 2259, 368, 341, 262, 1077, 3750, 16, 284, 2014, 5475, 16679, 486, 2052, 341, 286, 77135, 76462, 25, 220, 16, 16, 24, 19, 23, 22, 21, 20, 19, 21, 345, 286, 6605, 25, 7486, 20703, 2052,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fg_ansi_color() { let colored = Colored::ForegroundColor(Color::AnsiValue(255)); assert_eq!(colored.to_string(), "38;5;255"); }
rust_cleaned_test_functions.jsonl/18347
{ "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, 21039, 69473, 62, 52067, 6714, 368, 341, 286, 1077, 27197, 284, 4254, 3018, 486, 84997, 15028, 486, 2082, 6321, 1130, 7, 17, 20, 20, 1106, 286, 2060, 10714, 10297, 2074, 3018, 2389, 3904, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_string() { Variant::VString("hello".to_string()) .minus(Variant::VString("world".to_string())) .expect_err("Type mismatch"); }
rust_cleaned_test_functions.jsonl/84565
{ "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, 3904, 368, 341, 394, 39292, 486, 53, 703, 445, 14990, 3263, 983, 3904, 2398, 503, 659, 38365, 12410, 15341, 486, 53, 703, 445, 14615, 3263, 983, 3904, 12145, 503, 659, 17119, 9266, 445, 929, 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
#[test] fn test_vectors_dot_product() { let vector_a = Vector { x: 1.0, y: 1.5, z: 2.0, }; let vector_b = Vector { x: -1.0, y: 0.5, z: 0.0, }; let expected_result = -0.25; assert_approx_eq!(...
rust_cleaned_test_functions.jsonl/134058
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49158, 30941, 9840, 368, 341, 286, 1077, 4621, 4306, 284, 4196, 341, 310, 856, 25, 220, 16, 13, 15, 345, 310, 379, 25, 220, 16, 13, 20, 345, 310, 1147, 25, 220, 17, 13, 15, 345, 286, 2605,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1