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_struct_field_completion() { assert_debug_snapshot!( do_ref_completion( r" struct A { the_field: u32 } fn foo(a: A) { a.<|> } ", ), @r###" [ Comp...
rust_cleaned_test_functions.jsonl/57590
{ "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, 15126, 5013, 60164, 368, 341, 286, 2060, 15446, 53265, 33673, 286, 653, 7793, 60164, 1006, 394, 435, 698, 394, 2036, 362, 314, 279, 5013, 25, 575, 18, 17, 456, 394, 5168, 15229, 2877, 25, 362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_caps() { let mut builder = Path::builder_with_attributes(1); builder.begin(point(1.0, 0.0), Attributes(&[1.0])); builder.end(false); builder.begin(point(2.0, 0.0), Attributes(&[1.0])); builder.end(false); builder.begin(point(3.0, 0.0), Attributes(&[1.0])); buil...
rust_cleaned_test_functions.jsonl/83682
{ "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, 15124, 52955, 368, 341, 262, 1077, 5206, 7363, 284, 7933, 486, 17850, 6615, 18240, 7, 16, 626, 262, 7363, 6848, 20235, 7, 16, 13, 15, 11, 220, 15, 13, 15, 701, 34127, 2099, 58, 16, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_col_prune_cor_subq_simple() { assert_j_plan( "select (select c0 from t3 where t3.c1 = t2.c1) from t2", |sql, mut plan| { col_prune(&mut plan.qry_set, plan.root).unwrap(); print_plan(sql, &plan); let subq = get_lvl_qu...
rust_cleaned_test_functions.jsonl/27145
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10211, 5294, 2886, 14734, 5228, 80, 30015, 368, 341, 286, 2060, 5374, 26564, 1006, 310, 330, 1742, 320, 1742, 272, 15, 504, 259, 18, 1380, 259, 18, 520, 16, 284, 259, 17, 520, 16, 8, 504, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lenient_parse_timezone() { assert!(DateTime::<Utc>::column_result(ValueRef::Text(b"1970-01-01T00:00:00Z")).is_ok()); assert!(DateTime::<Utc>::column_result(ValueRef::Text(b"1970-01-01T00:00:00+00")).is_ok()); }
rust_cleaned_test_functions.jsonl/76843
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 125 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6043, 1167, 21039, 53193, 368, 341, 286, 2060, 10297, 7689, 27638, 97768, 6831, 6229, 5287, 25346, 3945, 486, 1178, 1883, 1, 16, 24, 22, 15, 12, 15, 16, 12, 15, 16, 51, 15, 15, 25, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_first_phase_inside_segment() { let mut asm = Assembler::new(); let test_string = ".data\ntest: .asciiz 'Hello'"; let result = program(test_string); assert!(result.is_ok()); let (_, p) = result.unwrap(); asm.process_first_phase(&p); assert_e...
rust_cleaned_test_functions.jsonl/7205
{ "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, 12978, 37593, 72860, 28061, 368, 341, 286, 1077, 5206, 32828, 284, 1634, 35401, 486, 931, 543, 286, 1077, 1273, 3904, 284, 5933, 691, 59, 406, 477, 25, 659, 5061, 72, 449, 364, 9707, 21689, 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_qualify_path_associated_item() { check_assist( add_missing_impl_members, " mod foo { pub struct Bar<T>; impl Bar<T> { type Assoc = u32; } trait Foo { fn foo(&self, bar: Bar<u32>::Assoc); } } struct S; impl foo::Foo for S { <|> }", " mod foo...
rust_cleaned_test_functions.jsonl/106820
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 281 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64391, 1437, 2638, 58665, 657, 5634, 368, 341, 286, 1779, 12083, 380, 1006, 310, 912, 40447, 21007, 30397, 345, 310, 6228, 2593, 15229, 341, 262, 6675, 2036, 4716, 3125, 10133, 262, 11605, 4716, 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_fill_struct_fields_no_diagnostic() { let content = r" struct TestStruct { one: i32, two: i64, } fn test_fn() { let one = 1; let s = TestStruct{ one, two: 2 }; } "; ...
rust_cleaned_test_functions.jsonl/71654
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 222 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30728, 15126, 12132, 6536, 29477, 11953, 368, 341, 286, 1077, 2213, 284, 435, 698, 310, 2036, 3393, 9422, 341, 394, 825, 25, 600, 18, 17, 345, 394, 1378, 25, 600, 21, 19, 345, 310, 555, 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_insert() { let mut tester = RingBuf::with_capacity(15); // this test isn't covering what it wants to let cap = tester.capacity(); // len is the length *after* insertion for len in range(1, cap) { ...
rust_cleaned_test_functions.jsonl/39514
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 615 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17678, 368, 341, 1789, 23459, 286, 1077, 5206, 37111, 284, 21525, 15064, 486, 4197, 35603, 7, 16, 20, 317, 16885, 286, 442, 419, 1273, 4436, 944, 18202, 1128, 432, 6801, 311, 198, 286, 1077, 206...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_prime_filter(){ let n = 12345; let new_pf = prime_filter(n); let old_pf = old_prime_filter(n); for i in 0..n{ assert_eq!(new_pf[i], old_pf[i], "Failed on number {}", i) } }
rust_cleaned_test_functions.jsonl/50969
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38217, 8727, 3032, 286, 1077, 308, 284, 220, 16, 17, 18, 19, 20, 280, 286, 1077, 501, 74961, 284, 10250, 8727, 1445, 317, 286, 1077, 2310, 74961, 284, 2310, 38217, 8727, 1445, 317, 286, 369, 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_create_twin_works() { ExternalityBuilder::build().execute_with(|| { let document = "some_link".as_bytes().to_vec(); let hash = "some_hash".as_bytes().to_vec(); assert_ok!(TfgridModule::user_accept_tc( Origin::signed(test_ed25519()), docume...
rust_cleaned_test_functions.jsonl/35347
{ "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, 8657, 528, 7526, 11498, 82, 368, 341, 262, 1374, 4160, 2719, 3297, 486, 5834, 1005, 10257, 6615, 79453, 341, 286, 1077, 2197, 284, 330, 14689, 7233, 3263, 300, 12524, 1005, 983, 13251, 543, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_random_poly_long_div_remainder() { // Divide 2 random polynomials and check that the quotient and remainder are correct using // the relation dividend = divisor * quotient + remainder let num_test_cases = 100; let mut rng = rand::thread_rng(); for _ in 0.....
rust_cleaned_test_functions.jsonl/51316
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 585 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22644, 36133, 17799, 16237, 86607, 1107, 368, 341, 286, 442, 62902, 220, 17, 4194, 1471, 76961, 323, 1779, 429, 279, 74762, 323, 26313, 525, 4396, 1667, 198, 286, 442, 279, 12687, 45880, 284, 4910...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_signature_subscribe() { let GenesisBlockInfo { genesis_block, mint_keypair: alice, .. } = create_genesis_block(10_000); let bob = Keypair::new(); let bob_pubkey = bob.pubkey(); let bank = Bank::new(&genesis_block); ...
rust_cleaned_test_functions.jsonl/103080
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 680 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39859, 88935, 368, 341, 286, 1077, 40788, 4713, 1731, 341, 310, 59366, 7113, 345, 310, 28337, 3097, 12670, 25, 70433, 345, 310, 54538, 286, 335, 284, 1855, 16322, 13774, 7113, 7, 16, 15, 62, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_read_header() -> Result<(), Box<dyn std::error::Error>> { let data = [ 0x02, // reference sequence ID = 2 0x03, // alignment start = 3 0x05, // alignment span = 5 0x08, // number of records = 8 0x0d, // record counter = 13 ...
rust_cleaned_test_functions.jsonl/12672
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 840 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 8757, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 821, 284, 2278, 310, 220, 15, 87, 15, 17, 11, 442, 5785, 8500, 3034, 284, 220, 17, 198, 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...
4
#[test] fn test_part2() { fn single_input(program: &str, input: i64, expected: i32) { let single_output = computer::run_single_input(program, input); assert_eq!( single_output, ComputerWord::from(expected), "output: {}", ...
rust_cleaned_test_functions.jsonl/67309
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 775 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10495, 17, 368, 341, 286, 5168, 3175, 5898, 36827, 25, 609, 495, 11, 1946, 25, 600, 21, 19, 11, 3601, 25, 600, 18, 17, 8, 341, 310, 1077, 3175, 7645, 284, 6366, 486, 6108, 19487, 5898, 36827...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_wc() -> Result<(), Box<dyn std::error::Error>> { let mut cmd = Command::cargo_bin(BIN_NAME)?; cmd.arg("config") .arg("--url") .arg("https://net.ton.dev") .arg("--wc") .arg("-1"); cmd.assert() .success(); let mut cmd = Command::cargo...
rust_cleaned_test_functions.jsonl/118326
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 524 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 75871, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 262, 1077, 5206, 5439, 284, 7348, 486, 66715, 21816, 5349, 687, 4708, 40007, 262, 5439, 21186, 445, 1676, 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...
6
#[test] fn test_sig_checking_w_serialization() { store_new_keypair_cleartext( &"test_keys/andrew_pub2.json".to_string(), &"test_keys/andrew_priv2.json".to_string(), ); let test_claim2 = vec![AstAssertion::AstFactAssertion { f: AstFact::AstFlatFactFact...
rust_cleaned_test_functions.jsonl/57524
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 712 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29252, 7200, 287, 1670, 25602, 2022, 368, 341, 286, 3553, 5921, 3097, 12670, 666, 273, 471, 427, 1006, 310, 609, 1, 1944, 12631, 14, 437, 4266, 34014, 17, 4323, 3263, 983, 3904, 3148, 310, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_i128() { test_serde!(I128, i128, 0); test_serde!(I128, i128, 1); test_serde!(I128, i128, -1); test_serde!(I128, i128, 123); test_serde!(I128, i128, 10i128.pow(18)); test_serde!(I128, i128, 2i128.pow(100)); test_serde!(I128, i128, -(2i128.po...
rust_cleaned_test_functions.jsonl/16266
{ "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, 5318, 16, 17, 23, 368, 341, 286, 1273, 75861, 450, 10297, 40, 16, 17, 23, 11, 600, 16, 17, 23, 11, 220, 15, 317, 286, 1273, 75861, 450, 10297, 40, 16, 17, 23, 11, 600, 16, 17, 23, 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_div_rem() { for elm in MUL_TRIPLES.iter() { let (a_vec, b_vec, c_vec) = *elm; let a = BigUint::from_slice(a_vec); let b = BigUint::from_slice(b_vec); let c = BigUint::from_slice(c_vec); if !a.is_zero() { assert_...
rust_cleaned_test_functions.jsonl/90131
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 725 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16237, 19194, 368, 341, 286, 369, 42205, 304, 386, 1094, 6410, 3298, 14017, 19471, 368, 341, 310, 1077, 320, 64, 13251, 11, 293, 13251, 11, 272, 13251, 8, 284, 353, 23162, 280, 310, 1077, 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...
6
#[test] fn test_runnables_project() { if skip_slow_tests() { return; } let code = r#" //- foo/Cargo.toml [package] name = "foo" version = "0.0.0" //- foo/src/lib.rs pub fn foo() {} //- foo/tests/spam.rs #[test] fn test_eggs() {} //- bar/Cargo.toml [package] name = "bar" version = "0.0.0"...
rust_cleaned_test_functions.jsonl/86586
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 990 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14007, 77, 4788, 16352, 368, 341, 262, 421, 10706, 82447, 32509, 368, 341, 286, 470, 280, 262, 555, 262, 1077, 2038, 284, 435, 2, 698, 61463, 15229, 11295, 12088, 73494, 75, 198, 58, 1722, 921, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_eval_array_literal_expression() { let input = "[1, 2 * 2, 3 + 3]"; assert_eq!( eval(input), Object::Array(vec![Object::Int(1), Object::Int(4), Object::Int(6)]) ); }
rust_cleaned_test_functions.jsonl/84224
{ "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, 21296, 3858, 34100, 28068, 368, 341, 262, 1077, 1946, 284, 10545, 16, 11, 220, 17, 353, 220, 17, 11, 220, 18, 488, 220, 18, 59757, 262, 2060, 10714, 33673, 286, 5603, 5384, 1326, 286, 3002, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_state_count() { let config = RegExpConfig::new(); let mut dfa = DFA::new(&config); assert_eq!(dfa.state_count(), 1); dfa.insert(GraphemeCluster::from("abcd", &RegExpConfig::new())); assert_eq!(dfa.state_count(), 5); }
rust_cleaned_test_functions.jsonl/29701
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 138 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4387, 3180, 368, 341, 286, 1077, 2193, 284, 28487, 2648, 486, 931, 543, 286, 1077, 5206, 294, 3632, 284, 93631, 486, 931, 2099, 1676, 317, 286, 2060, 10714, 10297, 97549, 3467, 3180, 1507, 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_bitor() { assert!((Seal::Seal | Seal::FutureWrite | Seal::Write).len() == 3); assert!((Seal::Seal | Seal::FutureWrite | Seal::Write).contains(Seal::Seal)); assert!(!(Seal::Seal | Seal::FutureWrite | Seal::Write).contains(Seal::Shrink)); assert!(!(Seal::Seal | Seal::FutureWrite | Seal::Wr...
rust_cleaned_test_functions.jsonl/34331
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 1919, 368, 341, 197, 6948, 0, 1188, 1514, 278, 486, 1514, 278, 760, 52525, 486, 24206, 7985, 760, 52525, 486, 7985, 568, 2892, 368, 621, 220, 18, 317, 197, 6948, 0, 1188, 1514, 278, 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_sysconf_limited() { let open_max = sysconf(SysconfVar::OPEN_MAX); assert!(open_max.expect("sysconf failed").expect("OPEN_MAX is unlimited") > 0); }
rust_cleaned_test_functions.jsonl/9001
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20344, 6135, 907, 31511, 368, 341, 1066, 262, 1077, 1787, 6345, 284, 5708, 6135, 3759, 1047, 6135, 3962, 486, 30933, 6806, 317, 262, 2060, 10297, 2508, 6345, 25952, 445, 7791, 6135, 4641, 1827, 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
#[test] fn test_optmulti_missing() { let args = vec!["blah".to_string()]; match Options::new() .optmulti("t", "test", "testing", "TEST") .parse(&args) { Ok(ref m) => { assert!(!m.opt_present("test")); assert!(!m.opt_present("t")); } _ =...
rust_cleaned_test_functions.jsonl/52377
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 183 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 26268, 40447, 368, 341, 262, 1077, 2827, 284, 7486, 0, 1183, 70614, 3263, 983, 3904, 33800, 262, 2432, 14566, 486, 931, 741, 286, 659, 2912, 26268, 445, 83, 497, 330, 1944, 497, 330, 8840...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_f64_zeros() -> Result<()> { let array = Float64Array::from(vec![-0.0, 0.0]); let cmp = build_compare(&array, &array)?; assert_eq!(Ordering::Equal, (cmp)(0, 1)); assert_eq!(Ordering::Equal, (cmp)(1, 0)); Ok(()) }
rust_cleaned_test_functions.jsonl/7138
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 146 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 21, 19, 83761, 368, 1464, 5714, 71698, 341, 286, 1077, 1334, 284, 13001, 21, 19, 1857, 486, 1499, 25592, 0, 7609, 15, 13, 15, 11, 220, 15, 13, 15, 10149, 286, 1077, 26089, 284, 1936, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_edges_of_absent_node_is_empty_iterator() { let g: MatrixGraph<char, bool> = MatrixGraph::new(); assert_eq!(g.edges(node_index(0)).count(), 0); }
rust_cleaned_test_functions.jsonl/81971
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 88 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28026, 3575, 31170, 306, 5084, 6892, 15124, 13491, 368, 341, 286, 1077, 342, 25, 11631, 11212, 21919, 11, 1807, 29, 284, 11631, 11212, 486, 931, 543, 286, 2060, 10714, 10297, 70, 44354, 6958, 3560...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_ls_across() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; at.touch(&at.plus_as_string("test-across-1")); at.touch(&at.plus_as_string("test-across-2")); at.touch(&at.plus_as_string("test-across-3")); at.touch(&at.plus_as_string("test-across-4"));...
rust_cleaned_test_functions.jsonl/71197
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 535 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53174, 14718, 2128, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 1423, 262, 1077, 518, 284, 609, 22483, 67785, 18513, 280, 262, 518, 42129, 2099, 266, 60540, 11898, 3904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fr_negate() { { let mut a = Fr::zero(); a.negate(); assert!(a.is_zero()); } let mut rng = XorShiftRng::from_seed([0x5dbe6259, 0x8d313d76, 0x3237db17, 0xe5bc0654]); for _ in 0..1000 { let mut a = Fr::rand(&mut rng); let mut b = a...
rust_cleaned_test_functions.jsonl/66330
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41537, 28209, 349, 368, 341, 262, 341, 286, 1077, 5206, 264, 284, 2869, 486, 14154, 543, 286, 264, 79219, 349, 1428, 286, 2060, 10297, 64, 2079, 19359, 1423, 262, 555, 262, 1077, 5206, 28422, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_frame_hard_limit() { fn create_frame(filename: &str) -> Annotated<Frame> { Annotated::new(Frame { filename: Annotated::new(filename.into()), ..Default::default() }) } let mut frames = Annotated::new(vec![ create_frame("foo1.py"), ...
rust_cleaned_test_functions.jsonl/112695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 510 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8929, 77712, 14763, 368, 341, 262, 5168, 1855, 8929, 10961, 25, 609, 495, 8, 1464, 1527, 87029, 27, 4369, 29, 341, 286, 1527, 87029, 486, 931, 91008, 341, 310, 3899, 25, 1527, 87029, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_double() { match Variant::VLong(5).minus(Variant::VDouble(2.0)).unwrap() { Variant::VDouble(result) => assert_eq!(result, 3.0), _ => panic!("assertion failed"), } }
rust_cleaned_test_functions.jsonl/84574
{ "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, 24598, 368, 341, 394, 2432, 39292, 486, 53, 6583, 7, 20, 568, 38365, 12410, 15341, 486, 53, 7378, 7, 17, 13, 15, 4579, 15454, 368, 341, 503, 39292, 486, 53, 7378, 4456, 8, 589, 2060, 10714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_cast_as_real() { let mut ctx = EvalContext::new(Arc::new(EvalConfig::default_for_test())); let t = Time::parse_utc_datetime("2012-12-12 12:00:23", 0).unwrap(); #[cfg_attr(feature = "cargo-clippy", allow(inconsistent_digit_grouping))] let int_t = 2012_12_12_12_00_2...
rust_cleaned_test_functions.jsonl/2960
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3073 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 11898, 15266, 368, 341, 286, 1077, 5206, 5635, 284, 58239, 1972, 486, 931, 4346, 1287, 486, 931, 10722, 831, 2648, 486, 2258, 5478, 4452, 7392, 286, 1077, 259, 284, 4120, 486, 6400, 84259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_set_direction_in() { let (rx, rp) = crate::test::create_client(); rp.digital .set_direction(crate::digital::Gpio::DIO0_N, crate::digital::Direction::IN); assert_eq!("DIG:PIN:DIR IN,DIO0_N\r\n", rx.recv().unwrap()); }
rust_cleaned_test_functions.jsonl/15581
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 25438, 1243, 368, 341, 286, 1077, 320, 12651, 11, 33109, 8, 284, 17717, 486, 1944, 486, 3182, 8179, 1428, 286, 33109, 87446, 198, 310, 659, 746, 25438, 54907, 486, 57269, 486, 38, 11917, 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_solve() { assert_eq!(solve(vec![0,3,6], 10), 0); assert_eq!(solve(vec![1,3,2], 2020), 1); assert_eq!(solve(vec![2,1,3], 2020), 10); }
rust_cleaned_test_functions.jsonl/115670
{ "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, 86246, 368, 341, 6948, 10714, 10297, 59419, 25592, 20703, 15, 11, 18, 11, 21, 1125, 220, 16, 15, 701, 220, 15, 317, 6948, 10714, 10297, 59419, 25592, 20703, 16, 11, 18, 11, 17, 1125, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_position_elem() { assert!([].position_elem(&1i).is_none()); let v1 = vec![1i, 2, 3, 3, 2, 5]; assert_eq!(v1.as_slice().position_elem(&1), Some(0u)); assert_eq!(v1.as_slice().position_elem(&2), Some(1u)); assert_eq!(v1.as_slice().position_elem(&5), Some(5u...
rust_cleaned_test_functions.jsonl/31840
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 202 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9661, 28179, 368, 341, 286, 2060, 0, 2561, 936, 3487, 28179, 2099, 16, 72, 568, 285, 31488, 5231, 286, 1077, 348, 16, 284, 7486, 20703, 16, 72, 11, 220, 17, 11, 220, 18, 11, 220, 18, 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_encoding_fails_in_test_environment() { let mut exec = fasync::TestExecutor::new().expect("executor should build"); let result = exec.run_singlethreaded(test_encode_sbc()); assert!(result.is_err()); }
rust_cleaned_test_functions.jsonl/69381
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37613, 761, 6209, 1243, 4452, 51774, 368, 341, 286, 1077, 5206, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 80787, 1265, 1936, 797, 286, 1077, 1102, 284, 3883, 7634, 19487,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let is_wsl2 = kernel_config() .ok() .and_then(|cfg| { cfg.get("CONFIG_LOCALVERSION").and_then(|ver| { if let ConfigSetting::Value(s) = ver { Some(s == "\"-microsoft-standard\"") } else { ...
rust_cleaned_test_functions.jsonl/17536
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1092 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 368, 341, 262, 1077, 374, 1670, 3226, 17, 284, 10001, 5332, 741, 286, 659, 562, 741, 286, 659, 437, 68367, 22428, 14072, 91, 341, 310, 13286, 670, 445, 24652, 28399, 17636, 1827, 437, 6836...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_array() { let empty: [i32; 0] = []; assert_eq!(Ok(empty), from_str("()")); let empty_array = empty.to_vec(); assert_eq!(Ok(empty_array), from_str("[]")); assert_eq!(Ok([2, 3, 4i32]), from_str("(2,3,4,)")); assert_eq!(Ok([2, 3, 4i32].to_vec()), from_str("[2,3,4,]")); }
rust_cleaned_test_functions.jsonl/1661
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3858, 368, 341, 262, 1077, 4287, 25, 508, 72, 18, 17, 26, 220, 15, 60, 284, 5907, 262, 2060, 10714, 10297, 11578, 24216, 701, 504, 2895, 445, 368, 4010, 262, 1077, 4287, 3858, 284, 4287, 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_empty_does_not_intersect_with_full() { let e1: EnumSet<Foo> = EnumSet::empty(); let mut e2: EnumSet<Foo> = EnumSet::empty(); e2.add(A); e2.add(B); e2.add(C); assert!(!e1.intersects(e2)); }
rust_cleaned_test_functions.jsonl/9055
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15124, 96374, 7913, 72747, 6615, 16372, 368, 341, 286, 1077, 384, 16, 25, 14086, 1649, 30499, 2624, 29, 284, 14086, 1649, 486, 3194, 1428, 286, 1077, 5206, 384, 17, 25, 14086, 1649, 30499, 2624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_class_with_multiple_pymethods() { Python::with_gil(|py| { let cls = PyClassWithMultiplePyMethods::type_object(py); py_assert!(py, cls, "cls()() == 'call'"); py_assert!(py, cls, "cls().method() == 'method'"); py_assert!(py, cls, "cls.classmethod() == 'classmeth...
rust_cleaned_test_functions.jsonl/106909
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 260 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4790, 6615, 45233, 620, 1600, 1068, 82, 368, 341, 262, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 286, 1077, 12790, 284, 5355, 1957, 2354, 32089, 13828, 17856, 486, 1313, 5314, 46827, 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_keysend_dup_payment_hash() { // outbound regular payment fails as expected. // fails as expected. let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]); let...
rust_cleaned_test_functions.jsonl/94567
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1776 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 6681, 51932, 26696, 8950, 368, 341, 2394, 197, 197, 322, 414, 73795, 5792, 8160, 14525, 438, 3601, 624, 2394, 197, 197, 322, 414, 14525, 438, 3601, 624, 197, 10217, 26023, 1645, 18343, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_override_map_merge() { let a = Value::from(hashmap! { "a".to_owned() => hashmap! { "b".to_owned() => 2 }, }); let b = Value::from(hashmap! { "a".to_owned() => 3, }); let c = merge(a, b); if let Value::Map(c) = c { ...
rust_cleaned_test_functions.jsonl/73128
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48576, 5376, 20888, 368, 341, 286, 1077, 264, 284, 5162, 486, 1499, 27580, 2186, 0, 341, 310, 330, 64, 3263, 983, 51973, 368, 589, 92148, 0, 314, 330, 65, 3263, 983, 51973, 368, 589, 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...
2
#[test] fn test_is_not_simple() { let points = [[1, -1], [-1, 1], [-1, -1], [1, 1]]; assert!(!is_simple(&points)); }
rust_cleaned_test_functions.jsonl/60095
{ "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, 6892, 7913, 30015, 368, 341, 262, 1077, 3501, 284, 4318, 16, 11, 481, 16, 1125, 10055, 16, 11, 220, 16, 1125, 10055, 16, 11, 481, 16, 1125, 508, 16, 11, 220, 16, 13204, 262, 2060, 0, 3471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_skip_deku() { let test_data: Vec<u8> = [0x01, 0x02].to_vec(); let ret_read = samples::SkipDeku::try_from(test_data.as_ref()).unwrap(); assert_eq!( samples::SkipDeku { field_a: 0x01, field_b: None, field_c: 0x02, }, ret_read...
rust_cleaned_test_functions.jsonl/123230
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 233 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44830, 2259, 12133, 368, 341, 262, 1077, 1273, 1769, 25, 11312, 34837, 23, 29, 284, 508, 15, 87, 15, 16, 11, 220, 15, 87, 15, 17, 936, 983, 13251, 1428, 262, 1077, 2112, 6443, 284, 10469, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_peer_manager() { let peers = vec![ PeerId::random(), PeerId::random(), PeerId::random(), PeerId::random(), ]; let mut peer_manager = PeerManager::new(peers.clone()); let (network_reqs_tx, _) = solana_libra_channel::new_test(8); let sender = Sta...
rust_cleaned_test_functions.jsonl/67352
{ "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, 45159, 12144, 368, 341, 262, 1077, 25029, 284, 7486, 90515, 286, 45147, 764, 486, 11463, 3148, 286, 45147, 764, 486, 11463, 3148, 286, 45147, 764, 486, 11463, 3148, 286, 45147, 764, 486, 11463, 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...
4
#[test] fn test_rw_arc_no_poison_wr() { let arc = Arc::new(RwLock::new(1)); let arc2 = arc.clone(); let _: Result<(), _> = thread::spawn(move || { let _lock = arc2.write(); panic!(); }) .join(); let lock = arc.read(); assert_eq!(*lo...
rust_cleaned_test_functions.jsonl/15745
{ "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, 49566, 62914, 6536, 61814, 3335, 44074, 368, 341, 286, 1077, 15580, 284, 19689, 486, 931, 2785, 86, 11989, 486, 931, 7, 16, 1106, 286, 1077, 15580, 17, 284, 15580, 15997, 543, 286, 1077, 58536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_request_validate_origin() { let bytes = Bytes::from("{\"event_id\":\"9ec79c33ec9942ab8353589fcb2e04dc\",\"dsn\":\"https://e12d836b15bb49d7bbf99e64295d995b:@sentry.io/42\",\"origin\":\"http://localhost/\"}"); Envelope::parse_request(bytes, request_meta()).unwrap(); }
rust_cleaned_test_functions.jsonl/103618
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 7893, 42681, 34043, 368, 341, 286, 1077, 5820, 284, 30024, 486, 1499, 99141, 3087, 842, 23488, 24, 757, 22, 24, 66, 18, 18, 757, 24, 24, 19, 17, 370, 23, 18, 20, 18, 20, 23, 24, 69,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_h2() -> std::io::Result<()> { let openssl = ssl_acceptor()?; let mut srv = TestServer::new(move || { openssl .clone() .map_err(|e| println!("Openssl error: {}", e)) .and_then( HttpService::build() .h2(|_| fut...
rust_cleaned_test_functions.jsonl/102530
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 300 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 17, 368, 1464, 1460, 486, 815, 486, 2077, 71698, 341, 262, 1077, 80733, 284, 33537, 35728, 269, 94136, 262, 1077, 5206, 43578, 284, 3393, 5475, 486, 931, 34081, 1369, 341, 286, 80733, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_postprocessor_stop_and_skip() { let tmp_dir = TempDir::new().expect("failed to make tempdir"); let note_path = tmp_dir.path().clone().join(PathBuf::from("Note.md")); let mut exporter = Exporter::new( PathBuf::from("tests/testdata/input/postprocessors"), tmp_dir.path(...
rust_cleaned_test_functions.jsonl/116608
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6333, 29474, 19039, 8378, 44830, 368, 341, 262, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 1005, 17119, 445, 16091, 311, 1281, 2730, 3741, 797, 262, 1077, 5185, 2638, 284, 4174, 4334, 3875, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_precedence_for() { let strings: &[&str] = &["foo", "bar", "baz"]; let s = PrecedenceTemplate { strings }; assert_eq!(s.call().unwrap(), "0 ~ foo2bar1 ~ bar42 ~ baz6") }
rust_cleaned_test_functions.jsonl/123697
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 93 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10442, 1998, 763, 5478, 368, 341, 262, 1077, 9069, 25, 44590, 5, 495, 60, 284, 609, 1183, 7975, 497, 330, 2257, 497, 330, 42573, 6332, 262, 1077, 274, 284, 4968, 1998, 763, 7275, 314, 9069, 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_cmd_arg_missing_value() { cmd().write_stdin("$ cmd badarg").assert().failure().stderr( r#"<stdin>:1:7: error: command argument is not in required key=value format | 1 | $ cmd badarg | ^ "#, ); }
rust_cleaned_test_functions.jsonl/120315
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 118 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11684, 6057, 40447, 3142, 368, 341, 262, 5439, 1005, 4934, 15656, 258, 20912, 5439, 3873, 858, 1827, 2207, 1005, 28939, 1005, 36422, 1006, 286, 435, 2, 22476, 51602, 26818, 16, 25, 22, 25, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_poh_recorder_record_to_early() { let ledger_path = get_tmp_ledger_path!(); { let blocktree = Blocktree::open(&ledger_path).expect("Expected to be able to open database ledger"); let (genesis_block, _mint_keypair) = GenesisBlock::new(2); ...
rust_cleaned_test_functions.jsonl/113793
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 726 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 2267, 7080, 1358, 14192, 2346, 62, 22140, 368, 341, 286, 1077, 46933, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 341, 310, 1077, 2504, 9344, 4035, 394, 8362, 9344, 486, 2508, 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_factorial() { assert_eq!(factorial(2), 2); assert_eq!(factorial(3), 6); assert_eq!(factorial(4), 24); assert_eq!(factorial(5), 120); assert_eq!(factorial(6), 720); }
rust_cleaned_test_functions.jsonl/123051
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 132 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18588, 530, 368, 341, 286, 2060, 10714, 10297, 37591, 530, 7, 17, 701, 220, 17, 317, 286, 2060, 10714, 10297, 37591, 530, 7, 18, 701, 220, 21, 317, 286, 2060, 10714, 10297, 37591, 530, 7, 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_contains() { let z_range_1 = ZRange { min: 0, max: 3 }; let z_range_2 = ZRange { min: 2, max: 3 }; assert!(Z2::contains_value(z_range_1, z_range_2)); assert!(Z2::contains(ZRange { min: 2, max: 6 }, 3)); }
rust_cleaned_test_functions.jsonl/85856
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63598, 368, 341, 286, 1077, 1147, 9698, 62, 16, 284, 1863, 6046, 314, 1308, 25, 220, 15, 11, 1932, 25, 220, 18, 2605, 286, 1077, 1147, 9698, 62, 17, 284, 1863, 6046, 314, 1308, 25, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_set_storage_count_and_alive_bytes() { let accounts = AccountsDb::new_single_for_tests(); // make sure we have storage 0 let shared_key = solana_sdk::pubkey::new_rand(); let account = AccountSharedData::new(1, 1, AccountSharedData::default().owner()); let ...
rust_cleaned_test_functions.jsonl/7055
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 677 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 23310, 3180, 8378, 58850, 12524, 368, 341, 286, 1077, 9618, 284, 40655, 7994, 486, 931, 19487, 5478, 32509, 1428, 286, 442, 1281, 2704, 582, 614, 5819, 220, 15, 198, 286, 1077, 6094, 3097, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_validate_join_request_mic_when_ok() { let data = phy_join_request_payload(); let phy = PhyPayload::new(&data[..]); let key = AES128([1; 16]); assert!(phy.is_ok()); assert_eq!(phy.unwrap().validate_join_mic(&key), Ok(true)); }
rust_cleaned_test_functions.jsonl/81617
{ "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, 42681, 31017, 7893, 717, 292, 47636, 19817, 368, 341, 262, 1077, 821, 284, 36455, 31017, 7893, 32813, 543, 262, 1077, 36455, 284, 92582, 29683, 486, 931, 2099, 691, 95874, 2558, 262, 1077, 1376, 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_parse_valid() { let buf = b"12:Hello World!4:Bye."; let result = parse_message(buf); match result { IResult::Done(remainder, message) => { // Check the first message. assert_eq!(message, "Hello World!"); // And...
rust_cleaned_test_functions.jsonl/98711
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 354 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8337, 368, 341, 286, 1077, 6607, 284, 293, 1, 16, 17, 25, 9707, 4337, 0, 19, 25, 1359, 68, 58724, 286, 1077, 1102, 284, 4715, 6462, 10731, 317, 286, 2432, 1102, 341, 310, 358, 2077, 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...
2
#[test] fn test_upper_last_char() { assert_eq!(upper_last_char("hello"), Some('O')); assert_eq!(upper_last_char("HELLO"), Some('O')); assert_eq!(upper_last_char(""), None); }
rust_cleaned_test_functions.jsonl/114937
{ "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, 34445, 12195, 9232, 368, 341, 262, 2060, 10714, 10297, 13574, 12195, 9232, 445, 14990, 3975, 4329, 492, 46, 6336, 262, 2060, 10714, 10297, 13574, 12195, 9232, 445, 50712, 1593, 3975, 4329, 492, 46, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let data: &[u8] = &[0x12, 0x34, 0x56, 0x78, 0xab]; let result: Foo = from_bytes(data, PodType::TVM).unwrap(); assert_eq!(result.foo, 0x12); assert_eq!(result.bar.bar, 0xab785634); }
rust_cleaned_test_functions.jsonl/57363
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 136 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15126, 368, 341, 286, 1077, 821, 25, 44590, 84, 23, 60, 284, 44590, 15, 87, 16, 17, 11, 220, 15, 87, 18, 19, 11, 220, 15, 87, 20, 21, 11, 220, 15, 87, 22, 23, 11, 220, 15, 52616, 935, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_make_link_escapes() { assert_eq!( "<http://the-url&amp;hello=&lt;&gt;|the text &amp; &lt;&gt; stuff>", make_link("http://the-url&hello=<>", "the text & <> stuff") ); }
rust_cleaned_test_functions.jsonl/32323
{ "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, 28230, 7233, 92196, 9337, 368, 341, 286, 2060, 10714, 33673, 310, 4055, 1254, 1110, 1782, 25443, 27066, 26, 14990, 25353, 4832, 8009, 5178, 26, 91, 1782, 1467, 609, 1121, 26, 609, 4832, 8009, 5178...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_fragments() { let ao = Attr::default(); let an = Attr::default().bg(Color::BLUE); assert_eq!( merge_fragments(&[(ao, (0, 1)), (ao, (1, 2))], &[]), vec![(ao, (0, 1)), (ao, (1, 2))] ); assert_eq!( merge_fragments(&...
rust_cleaned_test_functions.jsonl/92167
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1525 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 761, 41956, 368, 341, 286, 1077, 14845, 284, 50943, 486, 2258, 543, 286, 1077, 458, 284, 50943, 486, 2258, 1005, 12220, 15028, 486, 64330, 626, 286, 2060, 10714, 33673, 310, 10880, 761, 419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vec3_round() { assert_eq!(Vec3::new(1.35, 0.0, 0.0).round().x(), 1.0); assert_eq!(Vec3::new(0.0, 1.5, 0.0).round().y(), 2.0); assert_eq!(Vec3::new(0.0, 0.0, -15.5).round().z(), -16.0); assert_eq!(Vec3::new(0.0, 0.0, 0.0).round().z(), 0.0); assert_eq!(Vec3::new(0.0, 21.1, 0.0)...
rust_cleaned_test_functions.jsonl/48604
{ "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, 13251, 18, 29896, 368, 341, 262, 2060, 10714, 10297, 10050, 18, 486, 931, 7, 16, 13, 18, 20, 11, 220, 15, 13, 15, 11, 220, 15, 13, 15, 568, 1049, 1005, 87, 1507, 220, 16, 13, 15, 317, 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_encode_command_success() { let dlc_pn_command = ParameterNegotiationParams { dlci: DLCI::try_from(5).unwrap(), credit_based_flow_handshake: CreditBasedFlowHandshake::SupportedRequest, priority: 8, max_frame_size: 260, initial_cr...
rust_cleaned_test_functions.jsonl/69349
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 460 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 10811, 18632, 368, 341, 286, 1077, 294, 17257, 620, 77, 10811, 284, 15168, 47800, 354, 7101, 4870, 341, 310, 27513, 5855, 25, 42919, 40, 486, 1539, 5673, 7, 20, 568, 15454, 3148, 310, 666...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generate_profile() { let trace_file = "/tmp/oci-ftrace-syscall-analyzer-test.log"; let mut file = File::create(&trace_file).unwrap(); write!( file, "NR {} \nNR {} \nNR {} \nNR {} \n", libc::SYS_accept, libc::SYS_execve, libc::SYS_openat, ...
rust_cleaned_test_functions.jsonl/121861
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 476 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 13789, 368, 341, 262, 1077, 11655, 2458, 284, 3521, 5173, 14, 2119, 2220, 15067, 1331, 1047, 6659, 18883, 27165, 16839, 1665, 876, 262, 1077, 5206, 1034, 284, 2887, 486, 3182, 2099, 15067, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_options_merge() { let mut dst = json!({ "uniqueAtDst": "DST", "person" : { "firstName": "John", "lastName": "Doe" }, "flat": [ "will", "be", "overridden" ], }); let src = json!({ "uniqueAtSrc": "SRC", "person" : ...
rust_cleaned_test_functions.jsonl/18283
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 485 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8743, 20888, 368, 341, 286, 1077, 5206, 10648, 284, 2951, 0, 2262, 310, 330, 9587, 1655, 54600, 788, 330, 35, 784, 756, 310, 330, 8987, 1, 549, 314, 330, 27987, 788, 330, 13079, 497, 330, 2915...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_04_badge() { let app = AppObject::new(); let v = LinesOfCode::new(11, 22, 33, 44, 55); let badges = app.to_string_as_shield_badges(&v, "http://website"); assert_eq!(badges,"[![Lines in Rust code](https://img.shields.io/badge/Lines_in_Rust-11-green.svg)](http://website)\n[![Lines ...
rust_cleaned_test_functions.jsonl/15178
{ "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, 62, 15, 19, 34199, 709, 368, 341, 262, 1077, 906, 284, 1845, 1190, 486, 931, 543, 262, 1077, 348, 284, 38233, 2124, 2078, 486, 931, 7, 16, 16, 11, 220, 17, 17, 11, 220, 18, 18, 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_inject() { let propagator = DatadogPropagator::default(); for (header_values, span_context) in inject_test_data() { let mut injector: HashMap<String, String> = HashMap::new(); propagator.inject_context( &Context::current...
rust_cleaned_test_functions.jsonl/107312
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 529 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 583, 368, 341, 310, 1077, 16992, 850, 284, 21631, 329, 538, 2008, 351, 850, 486, 2258, 543, 310, 369, 320, 2708, 9146, 11, 9390, 8467, 8, 304, 15551, 4452, 1769, 368, 341, 394, 1077, 520...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_possible_default_configurations() { let configurations = [ // Single-manager configurations ((1, 1), 1), ((1, 1), 2), ((1, 1), 5), ((2, 2), 3), ((3, 4), 2), ((7, 7), 1), ...
rust_cleaned_test_functions.jsonl/107279
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1283 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 71244, 9993, 5332, 21449, 368, 341, 1789, 286, 1077, 32383, 284, 2278, 310, 442, 11327, 44896, 32383, 198, 310, 1781, 16, 11, 220, 16, 701, 220, 16, 1326, 310, 1781, 16, 11, 220, 16, 701, 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...
2
#[test] fn test_binop_eq_and_off_by_one() { let checker = MutationsChecker::new("tests/integration.rs").unwrap(); let eq_msgs = &[ "REPLACE_WITH_TRUE", "REPLACE_WITH_FALSE", "NEGATE_EXPRESSION", "ADD_ONE_TO_LITERAL", "SUB_ONE_TO_LITERAL", ]; assert!(chec...
rust_cleaned_test_functions.jsonl/117863
{ "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, 21816, 453, 10714, 8378, 13651, 3710, 11667, 368, 341, 262, 1077, 40915, 284, 31228, 804, 35188, 486, 931, 445, 23841, 31114, 17376, 25638, 1827, 15454, 1428, 262, 1077, 8939, 20777, 284, 609, 9640,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_too_high_set_panic() { let mut c1 = XyY::new(0.2, 0.3, 0.9); c1.set_y(33333.0); }
rust_cleaned_test_functions.jsonl/67703
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 79 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 78, 22680, 2602, 620, 31270, 368, 341, 286, 1077, 5206, 272, 16, 284, 1599, 88, 56, 486, 931, 7, 15, 13, 17, 11, 220, 15, 13, 18, 11, 220, 15, 13, 24, 317, 286, 272, 16, 980, 4178,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_multi_stdin() { for &d in &["-d", "--delimiters"] { new_ucmd!() .args(&[d, "\t\n", "-", "-"]) .pipe_in_fixture("html_colors.txt") .succeeds() .stdout_is_fixture("html_colors.expected"); } }
rust_cleaned_test_functions.jsonl/75403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25133, 15656, 258, 368, 341, 262, 369, 609, 67, 304, 609, 1183, 12, 67, 497, 14482, 9588, 67645, 1341, 341, 286, 501, 68887, 2277, 0, 741, 310, 659, 2116, 2099, 58, 67, 11, 2917, 83, 1699, 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...
2
#[test] fn test_custom_signal_handler_single_instance() -> Result<()> { let engine = Engine::new(&Config::default()); let store = Store::new(&engine); let module = Module::new(&engine, WAT1)?; let instance = Instance::new(&store, &module, &make_externs(&store, &module))?; ...
rust_cleaned_test_functions.jsonl/19979
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15875, 21137, 10183, 19487, 11904, 368, 1464, 5714, 71698, 341, 286, 1077, 4712, 284, 8200, 486, 931, 2099, 2648, 486, 2258, 1423, 286, 1077, 3553, 284, 9129, 486, 931, 2099, 8512, 317, 286, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_find_roots_linear_ood() { let line = BoundedQuadratic::new(2., 3., 0., 1., -1.); let (x1, x2) = line.find_roots(); assert!(!x1.is_finite() && !x2.is_finite()); }
rust_cleaned_test_functions.jsonl/19865
{ "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, 21814, 26608, 2412, 40674, 62, 1386, 368, 341, 286, 1077, 1555, 284, 425, 13082, 2183, 88678, 486, 931, 7, 17, 2572, 220, 18, 2572, 220, 15, 2572, 220, 16, 2572, 481, 16, 58957, 286, 1077, 320...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_i2c_map_duplicate_device4() { assert_eq!( AdapterConfig::try_from("1:4,2:32:21,5:4:23").unwrap_err(), Error::ClientAddressDuplicate(4) ); }
rust_cleaned_test_functions.jsonl/59867
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5318, 17, 66, 5376, 70434, 9204, 19, 368, 341, 286, 2060, 10714, 33673, 310, 28807, 2648, 486, 1539, 5673, 445, 16, 25, 19, 11, 17, 25, 18, 17, 25, 17, 16, 11, 20, 25, 19, 25, 17, 18, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_deep_nesting_oneof() { fn build_and_roundtrip(depth: usize) -> Result<(), prost::DecodeError> { use crate::recursive_oneof::{a, A, C}; let mut a = Box::new(A { kind: Some(a::Kind::C(C {})), }); for _ in 0..depth { ...
rust_cleaned_test_functions.jsonl/8853
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 383 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 87044, 1089, 59855, 11667, 1055, 368, 341, 286, 5168, 1936, 8378, 29896, 32981, 53675, 25, 22301, 8, 1464, 5714, 68843, 35221, 486, 32564, 1454, 29, 341, 310, 990, 17717, 486, 49512, 11667, 1055, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_case_37() { let key = "62d424c07a7aa5005068b262251c0667a4e2e4b12f5df7f509564517887e370b"; let nonce = "425fabab1ce9e733ab2911b42074414e"; let expected_output = "3a5eb5552cdd267c05c1e4fe936ce8f0eaf7279ff328ed9a42d6d83f7b30416c"; hcha...
rust_cleaned_test_functions.jsonl/44699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 225 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19096, 62, 18, 22, 368, 341, 310, 1077, 1376, 284, 330, 21, 17, 67, 19, 17, 19, 66, 15, 22, 64, 22, 5305, 20, 15, 15, 20, 15, 21, 23, 65, 17, 21, 17, 17, 20, 16, 66, 15, 21, 21, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_custom_state() { let custom = Custom { hash: 5 }; let mut state = 0; custom.hash(&mut state); assert_eq!(state, 5); }
rust_cleaned_test_functions.jsonl/22793
{ "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, 15875, 4387, 368, 341, 286, 1077, 2526, 284, 8406, 314, 5175, 25, 220, 20, 2605, 286, 1077, 5206, 1584, 284, 220, 15, 280, 286, 2526, 15101, 2099, 6984, 1584, 317, 286, 2060, 10714, 10297, 2454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_become_node() { let container = [0u8; constants::MIN_ORDER_SIZE]; let block = get_reserved(&container); assert!(block.become_node(2, 3).is_ok()); assert_eq!(block.block_type(), BlockType::NodeValue); assert_eq!(block.name_index().unwrap(), 2); asse...
rust_cleaned_test_functions.jsonl/100158
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 349 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 51421, 5084, 368, 341, 286, 1077, 5476, 284, 508, 15, 84, 23, 26, 18021, 486, 16413, 26677, 4098, 935, 286, 1077, 2504, 284, 633, 74913, 2099, 3586, 317, 286, 2060, 10297, 4574, 948, 51421,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_packet_unmarshal() { let mut data = Bytes::from_static(&[ 0x81, 0xc9, 0x0, 0x7, 0x90, 0x2f, 0x9e, 0x2e, // ssrc=0x902f9e2e 0xbc, 0x5e, 0x9a, 0x40, // ssrc=0xbc5e9a40 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x46, 0xe1, // la...
rust_cleaned_test_functions.jsonl/86339
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1954 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21078, 4907, 27121, 368, 341, 286, 1077, 5206, 821, 284, 30024, 486, 1499, 25360, 2099, 9640, 3374, 310, 220, 15, 87, 23, 16, 11, 220, 15, 8148, 24, 11, 220, 15, 87, 15, 11, 220, 15, 87, 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_fail_on_nan() { assert_de_tokens_error::<NotNan<f64>>( &[Token::F64(f64::NAN)], "invalid value: floating point `NaN`, expected float (but not NaN)"); }
rust_cleaned_test_functions.jsonl/17056
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 111 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22121, 4470, 73936, 368, 341, 286, 2060, 2259, 28838, 4096, 27638, 2623, 45, 276, 63895, 21, 19, 97238, 310, 44590, 3323, 486, 37, 21, 19, 955, 21, 19, 486, 45, 1093, 30749, 310, 330, 11808, 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
#[test] fn test_from() { let g = ArgGroup::new("test") .arg("a1") .arg("a4") .args(&["a2", "a3"]) .required(true) .conflicts_with("c1") .conflicts_with_all(&["c2", "c3"]) .conflicts_with("c4") .requires("r1")...
rust_cleaned_test_functions.jsonl/47682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 448 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 368, 341, 286, 1077, 342, 284, 7638, 2808, 486, 931, 445, 1944, 1138, 310, 659, 858, 445, 64, 16, 1138, 310, 659, 858, 445, 64, 19, 1138, 310, 659, 2116, 2099, 1183, 64, 17, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_customize_debug() { let mut lock = Lock::new( LockType::Put, b"pk".to_vec(), 100.into(), 3, Option::from(b"short_value".to_vec()), 101.into(), 10, 127.into(), ) .use_async_comm...
rust_cleaned_test_functions.jsonl/71663
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1302 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40595, 15446, 368, 341, 286, 1077, 5206, 5296, 284, 15701, 486, 931, 1006, 310, 15701, 929, 486, 19103, 345, 310, 293, 1, 20819, 3263, 983, 13251, 3148, 310, 220, 16, 15, 15, 39860, 3148, 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_validate_ristretto() { let pod = PodRistrettoPoint(G.compress().to_bytes()); assert!(validate_ristretto(&pod)); let invalid_bytes = [ 120, 140, 152, 233, 41, 227, 203, 27, 87, 115, 25, 251, 219, 5, 84, 148, 117, 38, 84, 60, 87, 144, 161, 146, 42, ...
rust_cleaned_test_functions.jsonl/15617
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 217 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 1710, 380, 2122, 983, 368, 341, 286, 1077, 7509, 284, 16821, 49, 380, 2122, 983, 2609, 6699, 81686, 1005, 983, 12524, 1423, 286, 2060, 10297, 7067, 1710, 380, 2122, 983, 2099, 39073, 3237, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ring_sign_self_verify() { use ring::rand::SecureRandom; use ring::signature::KeyPair; let ring_rng = ring::rand::SystemRandom::new(); for _ in 0..ITERATIONS { let mut msg_bytes: [u8; 64] = [Default::default(); 64]; ring_rng.fill(&mut msg_...
rust_cleaned_test_functions.jsonl/81730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 653 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34683, 11172, 25637, 35638, 368, 341, 286, 990, 10058, 486, 11335, 486, 49813, 13999, 280, 286, 990, 10058, 486, 34140, 486, 1592, 12443, 401, 286, 1077, 10058, 66849, 284, 10058, 486, 11335, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_padding_okay() { let frame: Vec<u8> = vec![ 0x01, 0x03, 0x00, 0x63, 0x02, 0x00, 0x8a, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x39, 0x5c, 0xc7, 0x6e, 0x1a, 0xe9, 0x9f, 0xa0, 0xb1, 0x22, 0x79, 0xfe, 0xc3, 0xb9, 0xa9, 0x9e, 0x1d, 0x9a...
rust_cleaned_test_functions.jsonl/49816
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 602 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40726, 19817, 352, 368, 341, 286, 1077, 4034, 25, 11312, 34837, 23, 29, 284, 7486, 90515, 310, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 18, 11, 220, 15, 87, 15, 15, 11, 220, 15, 87, 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_bad_kvm_fd() { let badf_errno = libc::EBADF; let faulty_kvm = Kvm { kvm: unsafe { File::from_raw_fd(-1) }, }; assert_eq!( faulty_kvm.get_vcpu_mmap_size().unwrap_err().errno(), badf_errno ); assert_eq!(faulty_kv...
rust_cleaned_test_functions.jsonl/127393
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 595 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34199, 4698, 7338, 17676, 368, 341, 286, 1077, 3873, 69, 37363, 284, 42142, 486, 8264, 91263, 401, 286, 1077, 57571, 4698, 7338, 284, 730, 7338, 341, 310, 94748, 25, 19860, 314, 2887, 486, 1499, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_merge_twice() { let user_no_last_name = json!({ "user_id" : 123, "first_name" : "John", "address" : { "postcode": "abc123", "numbers": 5.0 } }); let user_no_address = json!({ ...
rust_cleaned_test_functions.jsonl/72459
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 729 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20888, 54178, 558, 368, 341, 286, 1077, 1196, 6536, 12195, 1269, 284, 2951, 0, 2262, 310, 330, 872, 842, 1, 549, 220, 16, 17, 18, 345, 310, 330, 3896, 1269, 1, 549, 330, 13079, 756, 310, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_simple_operator_lt_plaintext_parse() { let name1 = _random_string(10); let value1 = _random_string(10); let json = format!(r#"{{"~{}":{{"$lt":"{}"}}}}"#, name1, value1); let query = parse_from_json(&json).unwrap(); let expected = Operator::Lt( ...
rust_cleaned_test_functions.jsonl/11818
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 224 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 40594, 39164, 6317, 1641, 427, 21039, 368, 341, 286, 1077, 829, 16, 284, 716, 11463, 3904, 7, 16, 15, 317, 286, 1077, 897, 16, 284, 716, 11463, 3904, 7, 16, 15, 626, 286, 1077, 2951, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_csv_with_schema_inference_no_headers() { let file = File::open("test/data/uk_cities.csv").unwrap(); let builder = ReaderBuilder::new().infer_schema(None); let mut csv = builder.build(file).unwrap(); let batch = csv.next().unwrap().unwrap(); // csv field...
rust_cleaned_test_functions.jsonl/23954
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 569 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14020, 6615, 25371, 1243, 2202, 6536, 26719, 368, 341, 286, 1077, 1034, 284, 2887, 486, 2508, 445, 1944, 13167, 14, 3101, 666, 1361, 11219, 1827, 15454, 1428, 286, 1077, 7363, 284, 25166, 3297, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_statsd_client_as_timed_u64() { let client: Box<dyn Timed<u64>> = Box::new(StatsdClient::from_sink("prefix", NopMetricSink)); client.time("some.timer", 20).unwrap(); }
rust_cleaned_test_functions.jsonl/10614
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 98 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15381, 67, 8179, 11898, 29087, 291, 7300, 21, 19, 368, 341, 286, 1077, 2943, 25, 8261, 92846, 9354, 291, 34837, 21, 19, 2452, 284, 8261, 486, 931, 7, 16635, 67, 2959, 486, 1499, 51567, 445, 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_bf_ecb() { let pt = "5CD54CA83DEF57DA"; let ct = "B1B8CC0B250F09A0"; let key = "0131D9619DC1376E"; let iv = "0000000000000000"; cipher_test_nopad(super::Cipher::bf_ecb(), pt, ct, key, iv); }
rust_cleaned_test_functions.jsonl/110550
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 69, 36844, 65, 368, 341, 286, 1077, 10817, 284, 330, 20, 6484, 20, 19, 5049, 23, 18, 13649, 20, 22, 6352, 876, 286, 1077, 20251, 284, 330, 33, 16, 33, 23, 3706, 15, 33, 17, 20, 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_copy_memory_oob() { unsafe { let mut a = [1, 2, 3, 4]; let b = [1, 2, 3, 4, 5]; a.copy_memory(b); } }
rust_cleaned_test_functions.jsonl/75619
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 117 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16096, 19195, 14179, 674, 368, 341, 286, 19860, 341, 310, 1077, 5206, 264, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 310, 1077, 293, 284, 508, 16, 11, 220, 17, 11, 220, 18,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_barycentric() { let triangle = [[0.0, 0.0], [100.0, 0.0], [0.0, 50.0]]; let old_pos = [10.0, 20.0]; let b = to_barycentric(triangle, old_pos); let new_pos: Vec2d = from_barycentric(triangle, b); let eps = 0.00001; assert!((new_pos[0] - old_pos[0])....
rust_cleaned_test_functions.jsonl/85587
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 214 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 658, 1168, 2216, 368, 341, 286, 1077, 21495, 284, 4318, 15, 13, 15, 11, 220, 15, 13, 15, 1125, 508, 16, 15, 15, 13, 15, 11, 220, 15, 13, 15, 1125, 508, 15, 13, 15, 11, 220, 20, 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_pushd() { setup(); let d1 = cwd().unwrap(); { let _p = pushd("xshell-macros").unwrap(); let d2 = cwd().unwrap(); assert_eq!(d2, d1.join("xshell-macros")); { let _p = pushd("src").unwrap(); let d3 = cwd().unwrap(); a...
rust_cleaned_test_functions.jsonl/52767
{ "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, 14218, 67, 368, 341, 262, 6505, 1428, 262, 1077, 294, 16, 284, 46938, 1005, 15454, 543, 262, 341, 286, 1077, 716, 79, 284, 4484, 67, 445, 87, 21384, 1448, 580, 3630, 1827, 15454, 543, 286, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_buffer_write_wholly() { let mut ring = RingBuffer::new(vec![b'.'; 8]); ring.enqueue_many(2).copy_from_slice(b"xx"); ring.enqueue_many(2).copy_from_slice(b"xx"); assert_eq!(ring.len(), 4); ring.dequeue_many(4); assert_eq!(ring.len(), 0); le...
rust_cleaned_test_functions.jsonl/37274
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7776, 9165, 36225, 8618, 368, 341, 286, 1077, 5206, 10058, 284, 21525, 4095, 486, 931, 25592, 20703, 65, 6, 3159, 26, 220, 23, 2558, 286, 10058, 47468, 22101, 7, 17, 568, 8560, 5673, 26488, 1883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_now_monotonic_raw() { let early_time = raw_now(); let late_time = raw_now(); // The monotonic raw clocktime must be strictly monotonic increasing. assert!(late_time > early_time); }
rust_cleaned_test_functions.jsonl/64924
{ "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, 20813, 20737, 354, 14011, 16067, 368, 341, 286, 1077, 4124, 3009, 284, 7112, 20813, 543, 286, 1077, 3309, 3009, 284, 7112, 20813, 543, 286, 442, 576, 77216, 14011, 7112, 8866, 1678, 1969, 387, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_document_namespaced_name() { let implementation = get_implementation(); let document_node = implementation .create_document(Some(common::RDF_NS), Some("rdf:RDF"), None) .unwrap(); let document = as_document(&document_node).unwrap(); assert!(document.documen...
rust_cleaned_test_functions.jsonl/101356
{ "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, 8657, 26231, 9187, 68552, 1269, 368, 341, 262, 1077, 8129, 284, 633, 62, 14369, 543, 262, 1077, 2197, 5084, 284, 8129, 198, 286, 659, 3182, 26231, 65405, 57802, 486, 49, 5262, 33777, 701, 4329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_parse_linux() { let out = "\ default via 172.17.0.1 dev eth0 172.17.0.0/16 dev eth0 scope link src 172.17.0.16"; assert_eq!("eth0", parse_linux_ip_cmd(out)) }
rust_cleaned_test_functions.jsonl/5505
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 114 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 77463, 368, 341, 286, 1077, 700, 284, 93317, 286, 1638, 4566, 220, 16, 22, 17, 13, 16, 22, 13, 15, 13, 16, 3483, 8372, 15, 198, 286, 220, 16, 22, 17, 13, 16, 22, 13, 15, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reduce() { let relation_type = RelationType::new(vec![ ScalarType::Int64.nullable(true), ScalarType::Int64.nullable(true), ScalarType::Int64.nullable(false), ]); let col = |i| ScalarExpr::Column(i); let err = |e| ScalarExpr::lit...
rust_cleaned_test_functions.jsonl/109151
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2339 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 64596, 368, 341, 286, 1077, 12687, 1819, 284, 50024, 929, 486, 931, 25592, 90515, 310, 35176, 929, 486, 1072, 21, 19, 59266, 480, 3715, 1326, 310, 35176, 929, 486, 1072, 21, 19, 59266, 480, 3715...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_is_reducible_should_return_true_for_reducible_graph() { let graph = { let mut graph = Graph::new(); graph.insert_vertex(1).unwrap(); // loop header graph.insert_vertex(2).unwrap(); graph.insert_vertex(3).unwrap(); graph.insert_...
rust_cleaned_test_functions.jsonl/1495
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 320 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 1288, 78285, 43378, 12511, 16082, 5478, 1288, 78285, 14738, 368, 341, 286, 1077, 4771, 284, 341, 310, 1077, 5206, 4771, 284, 12165, 486, 931, 1428, 310, 4771, 7030, 26611, 7, 16, 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_span_to_places() { let src = r#"fn foo(`(z)`: i32){ let `(x)` = 1; let y = 1; `(x + y)`; `(x)` + y; `(x + )`y; print!("{} {}", x, `(y)`); let w = (0, 0); `(w)`.0; `(w.0)`; `(w.)`0; }"#; harness(src, |tcx, body_id, body, span...
rust_cleaned_test_functions.jsonl/10104
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 610 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 37382, 2346, 57446, 368, 341, 262, 1077, 2286, 284, 435, 55543, 8822, 15229, 5809, 7, 89, 8, 44622, 600, 18, 17, 1264, 414, 1077, 48651, 87, 46186, 284, 220, 16, 280, 414, 1077, 379, 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...
2