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_comparators() { let scanner = Scanner::new(); let source = "< <= > >= ! != = ==".to_owned(); assert_eq!( Ok(vec![ Token { t: TokenType::Less, line: 1, lexeme: "<".to_owned(), ...
rust_cleaned_test_functions.jsonl/92088
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1409 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2965, 1732, 2973, 368, 341, 286, 1077, 20775, 284, 17170, 486, 931, 543, 286, 1077, 2530, 284, 4055, 2651, 861, 2604, 753, 961, 284, 284, 35226, 983, 51973, 543, 286, 2060, 10714, 33673, 310, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_masking() { let matrix: Array2<f64> = generate::random((10, 5)) * 10.0; let masked_matrix = ndarray_mask(matrix.view(), &[true, true, false, true, false]); close_l2( &masked_matrix.slice(s![.., 2]), &matrix.slice(s![.., 3]), 1e-12, ...
rust_cleaned_test_functions.jsonl/61615
{ "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, 9999, 287, 368, 341, 286, 1077, 6172, 25, 2910, 17, 63895, 21, 19, 29, 284, 6923, 486, 11463, 1188, 16, 15, 11, 220, 20, 593, 353, 220, 16, 15, 13, 15, 280, 286, 1077, 42148, 10193, 284, 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_extract_basic() { figment::Jail::expect_with(|jail| { jail.create_file( "foundry.toml", r#" [default] src = "mysrc" out = "myout" verbosity = 3 evm_version = 'berli...
rust_cleaned_test_functions.jsonl/42703
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 924 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39123, 34729, 368, 341, 286, 4144, 478, 486, 41, 604, 486, 17119, 6615, 22428, 73, 604, 91, 341, 310, 17540, 2520, 2458, 1006, 394, 330, 15105, 884, 73494, 75, 756, 394, 435, 2, 698, 394, 508,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_word_token() { let mut lexer = Lexer::new("iNseRt"); assert_eq!(lexer.next_lexem(), Some(Token::Word("insert".to_string()))); }
rust_cleaned_test_functions.jsonl/98874
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13533, 6458, 368, 341, 262, 1077, 5206, 53259, 284, 85082, 486, 931, 445, 72, 45, 325, 49, 83, 3071, 262, 2060, 10714, 10297, 38815, 4529, 74547, 336, 1507, 4329, 38584, 486, 10879, 445, 4208, 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
#[test] fn test_consistency_into_cbytes() { assert_eq!(Consistency::Any.as_bytes(), &[0, 0]); assert_eq!(Consistency::One.as_bytes(), &[0, 1]); assert_eq!(Consistency::Two.as_bytes(), &[0, 2]); assert_eq!(Consistency::Three.as_bytes(), &[0, 3]); assert_eq!(Consistency::Qu...
rust_cleaned_test_functions.jsonl/97970
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 384 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31971, 47094, 45514, 666, 9651, 368, 341, 286, 2060, 10714, 10297, 15220, 47094, 486, 8610, 5357, 12524, 1507, 44590, 15, 11, 220, 15, 2558, 286, 2060, 10714, 10297, 15220, 47094, 486, 3966, 5357, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_with_meta_string_value() -> Result<(), Box<dyn std::error::Error>> { let (_, (key, value)) = parse("##fileformat=VCFv4.3")?; assert_eq!(key, "fileformat"); assert_eq!(value, Value::String(String::from("VCFv4.3"))); let (_, (key, value)) = parse("##fileDate=...
rust_cleaned_test_functions.jsonl/45132
{ "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, 21039, 6615, 13381, 3904, 3142, 368, 1464, 5714, 68843, 8261, 92846, 1460, 486, 841, 486, 1454, 2452, 341, 286, 1077, 39464, 320, 792, 11, 897, 593, 284, 4715, 445, 565, 1192, 2243, 28, 53, 9650...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fq_root_of_unity() { assert_eq!(FqParameters::TWO_ADICITY, 1); assert_eq!( Fq::multiplicative_generator().pow([ 0x9e10460b6c3e7ea3, 0xcbc0b548b438e546, 0xdc2822db40c0ac2e, 0x183227397098d014, ]), Fq::two_adic_root_of...
rust_cleaned_test_functions.jsonl/3552
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 80, 12993, 3575, 62, 2439, 368, 341, 262, 2060, 10714, 10297, 37, 80, 9706, 486, 51, 22681, 22510, 1317, 3333, 11, 220, 16, 317, 262, 2060, 10714, 33673, 286, 434, 80, 486, 77976, 65266, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_crate_version_status() { let reg = Crate::Registry(RegistryCrate { name: "lazy_static".into(), version: "0.1.0".into(), }); let yanked = Crate::Registry(RegistryCrate { name: "structopt".into(), version: "0.3.6".into(), ...
rust_cleaned_test_functions.jsonl/12515
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 504 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 7698, 9438, 4773, 368, 341, 286, 1077, 1217, 284, 68390, 486, 15603, 7, 15603, 34, 7698, 341, 310, 829, 25, 330, 49013, 25360, 3263, 18122, 3148, 310, 2319, 25, 330, 15, 13, 16, 13, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_open_new_pager() -> Result<(), Error> { let mut pager = open_test_pager()?; let header = pager.read_header()?; assert_eq!(header, Header::default()); Ok(()) }
rust_cleaned_test_functions.jsonl/127404
{ "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, 11311, 5921, 620, 1409, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 5206, 52588, 284, 1787, 4452, 620, 1409, 94136, 286, 1077, 4247, 284, 52588, 4125, 8757, 94136, 286, 2060, 10714, 10297, 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 ]
3
#[test] fn test_compile_shift_left_wrap_e() { let compiled = bitwise::compile_shift_left_wrap("E".to_string()); assert_eq!(compiled.len(), 1); assert_eq!(compiled[0], 0b10000111); }
rust_cleaned_test_functions.jsonl/100610
{ "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, 74170, 22230, 9579, 38550, 2204, 368, 341, 262, 1077, 19697, 284, 97970, 486, 20433, 22230, 9579, 38550, 445, 36, 3263, 983, 3904, 5231, 262, 2060, 10714, 10297, 50845, 19406, 1507, 220, 16, 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
#[test] fn test_from_affine_shear_y() { let shear_y_with_x = 3; let matrix = Matrix3x3::from_affine_shear_y(shear_y_with_x); let expected = Vector3::new(1, 1 + shear_y_with_x, 1); let result = matrix * Vector3::new(1, 1, 1); assert_eq!(result, expected); }
rust_cleaned_test_functions.jsonl/129046
{ "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, 5673, 48914, 482, 643, 86060, 4178, 368, 341, 286, 1077, 64244, 4178, 6615, 3212, 284, 220, 18, 280, 286, 1077, 6172, 284, 11631, 18, 87, 18, 486, 1499, 48914, 482, 643, 86060, 4178, 1141, 86060...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { figment::Jail::expect_with(|jail| { jail.create_file("Rocket.toml", r#" [global.limits] forms = "1mib" stream = "50kb" file = "100kb" "#)?; let config = Config::from(Config...
rust_cleaned_test_functions.jsonl/22119
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 759 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10442, 1998, 763, 368, 341, 286, 4144, 478, 486, 41, 604, 486, 17119, 6615, 22428, 73, 604, 91, 341, 310, 17540, 2520, 2458, 445, 80017, 73494, 75, 497, 435, 2, 698, 394, 508, 9752, 918, 22866...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_components_iter() { macro_rules! t( (s: $path:expr, $exp:expr) => ( { let path = Path::new($path); let comps = path.components().to_owned_vec(); let exp: &[&str] = $exp; let exps =...
rust_cleaned_test_functions.jsonl/120981
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23258, 11723, 368, 341, 286, 18072, 21407, 0, 259, 1006, 310, 320, 82, 25, 400, 2343, 96011, 11, 400, 4580, 96011, 8, 589, 2399, 394, 341, 503, 1077, 1815, 284, 7933, 486, 931, 699, 2343, 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_parse_host() { assert_eq!( parse_java_args(&vec![ "-H".to_string(), "tcp://1.2.3.4:5678".to_string(), "HelloWorld".to_string(), ]).host, Host::Tcp("1.2.3.4:5678".to_string()) ); assert_eq!( parse_java_args(&vec![ ...
rust_cleaned_test_functions.jsonl/107286
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 672 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 12848, 368, 341, 262, 2060, 10714, 33673, 286, 4715, 77323, 8384, 2099, 4083, 90515, 310, 6523, 39, 3263, 983, 3904, 3148, 310, 330, 27161, 1110, 16, 13, 17, 13, 18, 13, 19, 25, 20, 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_visitor() { fn parse<'a>(tf: &'a ArenaCommonFactory<'a>) -> Rc<CsvFileContext<'a>> { let mut _lexer = CSVLexer::new_with_token_factory(InputStream::new("h1,h2\nd1,d2\nd3\n".into()), tf); let token_source = CommonTokenStream::new(_lexer); ...
rust_cleaned_test_functions.jsonl/113694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 372 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 81364, 368, 341, 286, 5168, 4715, 18291, 64, 2235, 8935, 25, 30136, 64, 27047, 10839, 4153, 18291, 64, 9231, 1464, 81463, 20373, 3492, 1703, 1972, 18291, 64, 2452, 341, 310, 1077, 5206, 716, 38815...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cstr_mut_write_null() { let mut s = String::from("abc\0xxx"); let mut cstr_mut = unsafe { CStrMut::new(s.as_mut_ptr(), s.len()) }; cstr_mut.write(1, |buf| buf[0] = 0); }
rust_cleaned_test_functions.jsonl/42135
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 116 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 666, 495, 29523, 9165, 15162, 368, 341, 286, 1077, 5206, 274, 284, 923, 486, 1499, 445, 13683, 59, 15, 24048, 797, 286, 1077, 5206, 272, 495, 29523, 284, 19860, 314, 356, 2580, 51440, 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_mod_() { let mut vm = ShrekVM::new(Vec::new()); vm.push(13); vm.push(3); mod_(&mut vm).unwrap(); assert_eq!(1, vm.peek().unwrap()); // Two values added above should be popped. assert_eq!(1, vm.count()); }
rust_cleaned_test_functions.jsonl/71702
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 150 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7480, 62, 368, 341, 286, 1077, 5206, 10995, 284, 1417, 41861, 11187, 486, 931, 49923, 486, 931, 5231, 286, 10995, 2552, 7, 16, 18, 317, 286, 10995, 2552, 7, 18, 626, 286, 1463, 62, 2099, 6984,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_die_matches() { let d = Die::new(4); assert!(d.matches_value(4, false)); assert!(d.matches_value(4, true)); assert!(!d.matches_value(5, false)); assert!(!d.matches_value(5, true)); }
rust_cleaned_test_functions.jsonl/103087
{ "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, 61588, 38344, 368, 341, 286, 1077, 294, 284, 8408, 486, 931, 7, 19, 317, 286, 2060, 10297, 67, 36480, 3142, 7, 19, 11, 895, 1106, 286, 2060, 10297, 67, 36480, 3142, 7, 19, 11, 830, 1106, 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_drain_sorted_collect() { let mut heap = BinaryHeap::from(vec![2, 4, 6, 2, 1, 8, 10, 3, 5, 7, 0, 9, 1]); let it = heap.drain_sorted(); let sorted = it.collect::<Vec<_>>(); assert_eq!(sorted, vec![10, 9, 8, 7, 6, 5, 4, 3, 2, 2, 1, 1, 0]); }
rust_cleaned_test_functions.jsonl/62354
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26680, 466, 41277, 68140, 368, 341, 262, 1077, 5206, 17364, 284, 17718, 27909, 486, 1499, 25592, 20703, 17, 11, 220, 19, 11, 220, 21, 11, 220, 17, 11, 220, 16, 11, 220, 23, 11, 220, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_enum_schema() { let schema = r#"{"type": "enum", "name": "Suit", "symbols": ["diamonds", "spades", "jokers", "clubs", "hearts"], "default": "jokers"}"#; let expected = SchemaPiece::Enum { doc: None, symbols: vec![ "diamonds".to_owned(), ...
rust_cleaned_test_functions.jsonl/23007
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 436 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31054, 25371, 368, 341, 286, 1077, 10802, 284, 435, 55543, 4913, 1313, 788, 330, 9018, 497, 330, 606, 788, 330, 62898, 497, 330, 67426, 788, 4383, 88576, 82, 497, 330, 2154, 3452, 497, 330, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_low_high() { // Initially low let mut debouncer: SmallPinDebouncer = SmallPinDebouncer::new(8, PinState::Low); assert!(debouncer.is_low()); assert!(!debouncer.is_high()); // Depressed updates don't change the situation debouncer.update(PinState...
rust_cleaned_test_functions.jsonl/2181
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 515 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 23767, 22680, 368, 341, 286, 442, 58556, 3347, 198, 286, 1077, 5206, 4222, 79745, 25, 14994, 19861, 1912, 65, 79745, 284, 14994, 19861, 1912, 65, 79745, 486, 931, 7, 23, 11, 17471, 1397, 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_watch() { let r = flags_from_vec(svec!["deno", "test", "--watch"]); assert_eq!( r.unwrap(), Flags { subcommand: DenoSubcommand::Test { no_run: false, doc: false, fail_fast: None, filter: None, allow_none: false, ...
rust_cleaned_test_functions.jsonl/2032
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 274 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58562, 368, 341, 262, 1077, 435, 284, 8042, 5673, 13251, 1141, 4083, 0, 1183, 5183, 78, 497, 330, 1944, 497, 14482, 14321, 15049, 262, 2060, 10714, 33673, 414, 435, 55395, 3148, 414, 33205, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_whitespace_error() { let whitespace_error_style = "bold yellow red ul"; let config = integration_test_utils::make_config_from_args(&[ "--whitespace-error-style", whitespace_error_style, ]); let output = integration_test_utils::run_delta(DIF...
rust_cleaned_test_functions.jsonl/70107
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 359 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86175, 4096, 368, 341, 286, 1077, 36372, 4096, 15117, 284, 330, 14824, 13753, 2518, 8557, 876, 286, 1077, 2193, 284, 17590, 4452, 17309, 486, 6927, 5332, 5673, 8384, 2099, 9640, 310, 14482, 1312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_pubkey_combine() { let pk1 = PublicKey::parse(&[4, 126, 60, 36, 91, 73, 177, 194, 111, 11, 3, 99, 246, 204, 86, 122, 109, 85, 28, 43, 169, 243, 35, 76, 152, 90, 76, 241, 17, 108, 232, 215, 115, 15, 19, 23, 164, 151, 43, 28, 44, 59, 141, 167, 134, 112, 105, 251, 15, 193, 183, 224, 238, 154, 2...
rust_cleaned_test_functions.jsonl/129817
{ "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, 34014, 792, 72374, 368, 341, 262, 1077, 22458, 16, 284, 70280, 486, 6400, 2099, 58, 19, 11, 220, 16, 17, 21, 11, 220, 21, 15, 11, 220, 18, 21, 11, 220, 24, 16, 11, 220, 22, 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_isaac64_true_values_32() { let seed = [1,0,0,0, 0,0,0,0, 23,0,0,0, 0,0,0,0, 200,1,0,0, 0,0,0,0, 210,30,0,0, 0,0,0,0]; let mut rng = Isaac64Rng::from_seed(seed); let mut results = [0u32; 12]; for i in results.iter_mut() { *i = rng.next_u32(); } ...
rust_cleaned_test_functions.jsonl/5535
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 423 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 64705, 21, 19, 16082, 9146, 62, 18, 17, 368, 341, 286, 1077, 10320, 284, 508, 16, 11, 15, 11, 15, 11, 15, 11, 220, 15, 11, 15, 11, 15, 11, 15, 11, 220, 17, 18, 11, 15, 11, 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_write_wakeup_threshold() { let old_threshold = read_wakeup_threshold().unwrap(); match write_wakeup_threshold(1024) { Ok(_) => (), Err(err) => match err { ProcError::PermissionDenied(_) => { return;...
rust_cleaned_test_functions.jsonl/68833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9165, 1670, 62744, 21858, 368, 341, 286, 1077, 2310, 21858, 284, 1349, 1670, 62744, 21858, 1005, 15454, 1428, 286, 2432, 3270, 1670, 62744, 21858, 7, 16, 15, 17, 19, 8, 341, 310, 7622, 48139, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_transaction_tryte_offset_constants() { assert_eq!(SIGNATURE_FRAGMENTS.0 / 3, SIGNATURE_FRAGMENTS.2); assert_eq!(EXTRA_DATA_DIGEST.0 / 3, EXTRA_DATA_DIGEST.2); assert_eq!(ADDRESS.0 / 3, ADDRESS.2); assert_eq!(VALUE.0 / 3, VALUE.2); assert_eq!(ISSUANCE_TIMES...
rust_cleaned_test_functions.jsonl/77254
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 651 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28884, 53283, 665, 6917, 55642, 368, 341, 286, 2060, 10714, 10297, 54072, 14870, 14220, 1890, 28763, 13, 15, 608, 220, 18, 11, 43172, 14870, 14220, 1890, 28763, 13, 17, 317, 286, 2060, 10714, 1029...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_insert() { let mut m = VecMap::new(); assert_eq!(m.insert(1, 2), None); assert_eq!(m.insert(1, 3), Some(2)); assert_eq!(m.insert(1, 4), Some(3)); }
rust_cleaned_test_functions.jsonl/53266
{ "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, 17678, 368, 341, 286, 1077, 5206, 296, 284, 11312, 2227, 486, 931, 543, 286, 2060, 10714, 10297, 76, 7030, 7, 16, 11, 220, 17, 701, 2240, 317, 286, 2060, 10714, 10297, 76, 7030, 7, 16, 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_parse_cfi_instruction_def_cfa_expression() { let expected_rest = [1, 2, 3, 4]; let expected_expr = [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]; let length = Label::new(); let start = Label::new(); let end = Label::new(); let section = Section::with_endian(En...
rust_cleaned_test_functions.jsonl/9332
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 507 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 666, 9983, 54923, 7844, 666, 3632, 28068, 368, 341, 286, 1077, 3601, 32231, 284, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 935, 286, 1077, 3601, 21915, 284, 508, 16, 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_option_env_expand() { check( r#" #[rustc_builtin_macro] macro_rules! option_env {() => {}} fn main() { option_env!("TEST_ENV_VAR"); } "#, expect![[r##" #[rustc_builtin_macro] macro_rules! option_env {() => {}} fn main() { std::option::Option::None:: < &str>; } "##]], );...
rust_cleaned_test_functions.jsonl/59813
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9672, 15879, 67875, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 13353, 35788, 66, 73829, 58810, 921, 32606, 21407, 0, 2999, 15879, 314, 368, 589, 4687, 630, 8822, 1887, 368, 314, 2999, 15879, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_exclude_not_with_all() { let output = cargo_hack() .args(&["hack", "check", "--exclude", "member1"]) .current_dir(test_dir("tests/fixtures/virtual")) .output() .unwrap(); output .assert_failure() .assert_stderr_contains("--exclude can only...
rust_cleaned_test_functions.jsonl/25301
{ "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, 88668, 7913, 6615, 5705, 368, 341, 262, 1077, 2550, 284, 25652, 1523, 473, 741, 286, 659, 2116, 2099, 1183, 65972, 497, 330, 2028, 497, 14482, 32413, 497, 330, 9597, 16, 14108, 286, 659, 3231, 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_auth_verify_check_mozilla_profile() { // A successful response let profile = r#"{ "sub": "ad|Mozilla-LDAP|asayers", "https://sso.mozilla.com/claim/groups": [ "everyone", "hris_dept_firefox", "hris_individual_contributor", "...
rust_cleaned_test_functions.jsonl/25639
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 552 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14014, 35638, 7200, 717, 27342, 13789, 368, 341, 262, 442, 362, 6849, 2033, 198, 262, 1077, 5526, 284, 220, 435, 55543, 515, 286, 330, 1966, 788, 330, 329, 91, 40030, 8125, 35, 2537, 91, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_emoji() { let route = Route::GetEmoji { emoji_id: EMOJI_ID, guild_id: GUILD_ID, }; assert_eq!( route.to_string(), format!( "guilds/{guild_id}/emojis/{emoji_id}", emoji_id = EMOJI_ID, ...
rust_cleaned_test_functions.jsonl/119885
{ "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, 3062, 62, 37523, 368, 341, 286, 1077, 6021, 284, 9572, 486, 1949, 92731, 341, 310, 42365, 842, 25, 468, 10531, 45064, 3450, 345, 310, 26411, 842, 25, 479, 18023, 3450, 345, 286, 2605, 286, 2060,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_width() { let width = ColumnWidth::Width(64.0); let builder = ColumnBuilder::new(); let column = builder.width(width).build(); assert_eq!(column.width, width); }
rust_cleaned_test_functions.jsonl/73871
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 96 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7927, 368, 341, 286, 1077, 2374, 284, 9332, 3327, 486, 3327, 7, 21, 19, 13, 15, 626, 286, 1077, 7363, 284, 9332, 3297, 486, 931, 543, 286, 1077, 3250, 284, 7363, 5441, 16425, 568, 5834, 1428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_adjacently_a_de() { let s = "(type:\"VariantA\",content:(foo:1,bar:2,different:Foo,),)"; let e = EnumStructAdjacently::VariantA { foo: 1, bar: 2, different: Inner::Foo, }; test_de(s, e); }
rust_cleaned_test_functions.jsonl/110479
{ "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, 42559, 580, 4402, 4306, 2259, 368, 341, 262, 1077, 274, 284, 11993, 1313, 75035, 20746, 32, 16215, 1796, 3269, 7975, 25, 16, 11, 2257, 25, 17, 11991, 18277, 25, 40923, 59564, 24023, 262, 1077, 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_create_epb() { let mut t: Turbine<TestSlot> = Turbine::new(1024); let _e1 = t.ep_new(); }
rust_cleaned_test_functions.jsonl/65706
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 72 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 12476, 65, 368, 341, 286, 1077, 5206, 259, 25, 8705, 46561, 71273, 19877, 29, 284, 8705, 46561, 486, 931, 7, 16, 15, 17, 19, 317, 286, 1077, 716, 68, 16, 284, 259, 33376, 5921, 543, 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
#[test] fn test_traditional_to_simplified() { let simplified = "欧洲"; let traditional = "歐洲"; assert_eq!(simplified, traditional_to_simplified(traditional)); let traditional = "人人生而自由﹐在尊嚴和權利上一律平等。他們賦有理性和良心﹐並應以兄弟關係的精神互相對待。"; let simplified = "人人生而自由﹐在尊严和权利上一律平等。他们赋有理性和良心﹐并应以兄弟关系的精神互相对待。"; assert_eq!(...
rust_cleaned_test_functions.jsonl/64482
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 292 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 329, 3005, 2346, 643, 73837, 368, 341, 197, 10217, 43799, 284, 330, 104123, 876, 197, 10217, 8606, 284, 330, 112311, 100075, 876, 197, 6948, 10714, 10297, 82, 73837, 11, 8606, 2346, 643, 738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_content_sha1hex_hash() { let value: ContentSha1Hex = convert_bser_value("e820c2c600a36f05ba905cf1bf32c4834e804e22".into()); assert_eq!( value, ContentSha1Hex::Hash("e820c2c600a36f05ba905cf1bf32c4834e804e22".into()) ); }
rust_cleaned_test_functions.jsonl/25480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7495, 48836, 16, 17308, 8950, 368, 341, 286, 1077, 897, 25, 8883, 62316, 16, 20335, 4035, 310, 5508, 880, 799, 3142, 445, 68, 23, 17, 15, 66, 17, 66, 21, 15, 15, 64, 18, 21, 69, 15, 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_cell_centroid_distance_m() { let edge = H3Edge::new(0x149283080ddbffff); assert!(edge.exact_length_m() < edge.cell_centroid_distance_m()); assert!((2.0 * edge.exact_length_m()) > edge.cell_centroid_distance_m()); }
rust_cleaned_test_functions.jsonl/95178
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 124 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16648, 32591, 1577, 19464, 717, 368, 341, 286, 1077, 6821, 284, 472, 18, 11656, 486, 931, 7, 15, 87, 16, 19, 24, 17, 23, 18, 15, 23, 15, 89723, 7238, 317, 286, 2060, 10297, 7186, 2223, 531, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bed_from_contig() { let contig = Contig::new( "chrXI".to_owned(), 334412, 334916 - 334412, ReqStrand::Reverse, ); let record = Record::from(contig); assert_eq!(record.chrom(), String::from("chrXI")); assert...
rust_cleaned_test_functions.jsonl/3949
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 298 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 89079, 5673, 10260, 343, 368, 341, 286, 1077, 683, 343, 284, 2093, 343, 486, 931, 1006, 310, 330, 16789, 83114, 3263, 983, 51973, 3148, 310, 220, 18, 18, 19, 19, 16, 17, 345, 310, 220, 18, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_translate_date_by_days_back_() { let context = build_context(Moment(Paris.ymd(2017, 04, 25).and_hms(9, 10, 11))); fn offset(i: &Interval<Paris>, _: &Context<Paris>) -> Option<Interval<Paris>> { Some(*i + PeriodComp::days(100)) } let walker = DayOfMont...
rust_cleaned_test_functions.jsonl/114682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 512 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66381, 4164, 3710, 28353, 3895, 62, 368, 341, 286, 1077, 2266, 284, 1936, 8467, 3189, 12913, 7, 59604, 13, 1600, 67, 7, 17, 15, 16, 22, 11, 220, 15, 19, 11, 220, 17, 20, 568, 437, 1523, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mul() { let mut v = [0, 0, 0]; mul(&mut v, &[1, 1, 1], &[1, 1, 1]); assert!(v[0] == 1); assert!(v[1] == 1); assert!(v[2] == 1); }
rust_cleaned_test_functions.jsonl/77191
{ "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, 24944, 368, 341, 262, 1077, 5206, 348, 284, 508, 15, 11, 220, 15, 11, 220, 15, 935, 262, 15602, 2099, 6984, 348, 11, 44590, 16, 11, 220, 16, 11, 220, 16, 1125, 44590, 16, 11, 220, 16, 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_grid() { let mut grid = create_grid(0.5, -2.0, 2.0, -2.0, 2.0); grid.add_particle(1, -0.5, -0.5); grid.add_particle(2, -0.2, -0.2); grid.add_particle(3, 1.0, 1.0); grid.add_particle(4, 1.5, 1.5); let neighbours = grid.get_neighbours(-0.4, -0.4); ...
rust_cleaned_test_functions.jsonl/12423
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 381 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15604, 368, 341, 286, 1077, 5206, 5827, 284, 1855, 15604, 7, 15, 13, 20, 11, 481, 17, 13, 15, 11, 220, 17, 13, 15, 11, 481, 17, 13, 15, 11, 220, 17, 13, 15, 317, 286, 5827, 1364, 70203, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cfi_entries_iter() { let expected_instrs1: Vec<_> = (0..4).map(|_| constants::DW_CFA_nop.0).collect(); let expected_instrs2: Vec<_> = (0..8).map(|_| constants::DW_CFA_nop.0).collect(); let expected_instrs3: Vec<_> = (0..12).map(|_| constants::DW_CFA_nop.0).collect(); ...
rust_cleaned_test_functions.jsonl/9311
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2406 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 9983, 26092, 11723, 368, 341, 286, 1077, 3601, 62574, 82, 16, 25, 11312, 32399, 29, 284, 320, 15, 496, 19, 568, 2186, 22428, 35395, 18021, 486, 54219, 920, 3627, 1089, 453, 13, 15, 568, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_dyn_value_display() { let val1 = OwnedDynValue::new(big_struct_1()); let val2 = OwnedDynValue::new(big_struct_2()); let val1_flat = unindent( "\ {ints: {2: -30, 1: 20, 0: -10, 3: 40}, \ uints: {2: 50, 1: 40, 0: 30, 3: 60}, \ ...
rust_cleaned_test_functions.jsonl/114237
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2466 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 69213, 3142, 14825, 368, 341, 286, 1077, 1044, 16, 284, 85093, 95709, 1130, 486, 931, 75616, 15126, 62, 16, 1423, 286, 1077, 1044, 17, 284, 85093, 95709, 1130, 486, 931, 75616, 15126, 62, 17, 52...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_string_to_sign() { let time = parse_date_time("20150830T123600Z").unwrap(); let creq = test_canonical_request("get-vanilla-query-order-key-case"); let expected_sts = test_sts("get-vanilla-query-order-key-case"); let encoded = sha256_hex_string(creq.as_bytes()); ...
rust_cleaned_test_functions.jsonl/83740
{ "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, 3904, 2346, 11172, 368, 341, 286, 1077, 882, 284, 4715, 4164, 3009, 445, 17, 15, 16, 20, 15, 23, 18, 15, 51, 16, 17, 18, 21, 15, 15, 57, 1827, 15454, 543, 286, 1077, 1884, 80, 284, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_recognizer_1() { let mut router = Router::<usize>::build(); router.path("/name", 10).0.set_id(0); router.path("/name/{val}", 11).0.set_id(1); router.path("/name/{val}/index.html", 12).0.set_id(2); router.path("/file/{file}.{ext}", 13).0.set_id(3); ...
rust_cleaned_test_functions.jsonl/79576
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7080, 3934, 3135, 62, 16, 368, 341, 286, 1077, 5206, 9273, 284, 10554, 27638, 51878, 6831, 5834, 543, 286, 9273, 3875, 4283, 606, 497, 220, 16, 15, 568, 15, 980, 842, 7, 15, 317, 286, 9273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_outbound_connection_closed() { ::libra_logger::try_init_for_testing(); let mut rt = Runtime::new().unwrap(); let (mut ds_requests_tx, _ds_notifs_rx, _peer_mgr_notifs_tx, mut peer_mgr_reqs_rx) = start_direct_send_actor(rt.handle().clone()); let peer_id = PeerId::random()...
rust_cleaned_test_functions.jsonl/13366
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2153 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6068, 10891, 15866, 44697, 368, 341, 262, 3504, 2740, 956, 27413, 486, 1539, 6137, 5478, 70962, 543, 262, 1077, 5206, 16677, 284, 10954, 486, 931, 1005, 15454, 1428, 262, 1077, 320, 6984, 11472, 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_command_line_cd() { let tmp = tempfile::tempdir().unwrap(); fs::create_dir(tmp.path().join("assets")).unwrap(); fs::create_dir(tmp.path().join("assets").join("1")).unwrap(); fs::create_dir(tmp.path().join("assets").join("2")).unwrap(); File::create(tmp.pa...
rust_cleaned_test_functions.jsonl/95929
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 351 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10811, 6528, 43074, 368, 341, 286, 1077, 4174, 284, 54819, 486, 3888, 3741, 1005, 15454, 1428, 286, 8619, 486, 3182, 4334, 10368, 3875, 1005, 5987, 445, 5160, 15197, 15454, 543, 286, 8619, 486, 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...
1
#[test] fn test_snip_query_dialogues() { let querier = new_valid_db("snip_query_dialogues.db"); let snips = vec!["I wanna die"]; let dialogues = querier.query_dialogues(None, None, None, Some(snips)); assert_eq!(1, dialogues.len()); let snips = vec!["I wanna die", "Me t...
rust_cleaned_test_functions.jsonl/107706
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 207 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28022, 573, 5738, 24331, 1137, 368, 341, 286, 1077, 29134, 1268, 284, 501, 8337, 8685, 445, 9613, 573, 5738, 24331, 1137, 7076, 3071, 286, 1077, 4131, 3077, 284, 7486, 0, 1183, 40, 32733, 2746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_keygen_2018() { let count_msgs = 5; let params = Params::new("test".as_bytes()); let (sk, vk) = keygen_2018(count_msgs, &params); assert_eq!(sk.y.len(), count_msgs+1); assert_eq!(vk.Y_tilde.len(), count_msgs+1); }
rust_cleaned_test_functions.jsonl/62858
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 148 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 4370, 62, 17, 15, 16, 23, 368, 341, 286, 1077, 1760, 20777, 284, 220, 20, 280, 286, 1077, 3628, 284, 34352, 486, 931, 445, 1944, 3263, 300, 12524, 1423, 286, 1077, 320, 4886, 11, 34283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_persist_cfg() { let dir = TempDir::new("test_persist_cfg").unwrap(); let path_buf = dir.path().join(LAST_CONFIG_FILE); let file = path_buf.as_path().to_str().unwrap(); let (s1, s2) = ("/xxx/wal_dir".to_owned(), "/yyy/wal_dir".to_owned()); let mut tikv_cfg...
rust_cleaned_test_functions.jsonl/29167
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 519 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 4975, 18343, 368, 341, 286, 1077, 5419, 284, 19944, 6184, 486, 931, 445, 1944, 620, 4975, 18343, 1827, 15454, 543, 286, 1077, 1815, 10363, 284, 5419, 3875, 1005, 5987, 4957, 6349, 12568, 8087...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sanitize_with_max_table_loaded_keys() { assert!(Message { header: MessageHeader { num_required_signatures: 1, ..MessageHeader::default() }, account_keys: vec![Pubkey::new_unique()], address_table_lookups: vec...
rust_cleaned_test_functions.jsonl/94116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 344 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 58652, 6615, 6345, 5237, 49205, 12631, 368, 341, 286, 2060, 10297, 2052, 341, 310, 4247, 25, 4856, 4047, 341, 394, 1629, 18743, 11172, 2789, 25, 220, 16, 345, 394, 5241, 2052, 4047, 486, 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_g1_subgroup_check() { use crate::bls12_381::ClearH; let mut rng = rand_xorshift::XorShiftRng::from_seed([ 0x59, 0x62, 0xbe, 0x5d, 0x76, 0x3d, 0x31, 0x8d, 0x17, 0xdb, 0x37, 0x32, 0x54, 0x06, 0xbc, 0xe5, ]); for _ in 0..32 { let ...
rust_cleaned_test_functions.jsonl/18690
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 422 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 16, 5228, 4074, 7200, 368, 341, 286, 990, 17717, 486, 2024, 82, 16, 17, 62, 18, 23, 16, 486, 14008, 39, 280, 286, 1077, 5206, 28422, 284, 10382, 76462, 13418, 486, 55, 269, 24841, 49, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_config_serializer_bookmarks_serializer_deserialize_ok() { let toml_file: tempfile::NamedTempFile = create_good_toml_bookmarks(); toml_file.as_file().sync_all().unwrap(); toml_file.as_file().seek(SeekFrom::Start(0)).unwrap(); // Parse let hosts = deserializ...
rust_cleaned_test_functions.jsonl/16005
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1289 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5332, 67441, 26421, 15544, 67441, 15768, 9050, 19817, 368, 341, 286, 1077, 311, 1014, 2458, 25, 54819, 486, 15810, 12151, 1703, 284, 1855, 44781, 528, 316, 75, 26421, 15544, 543, 286, 311, 1014, 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_auth_header() { let response = auth_header(AuthHeader { authorization: String::from("my bearer token"), roles: vec![String::from("admin")], subject: String::from("1234-1234-1234-1234"), token: String::from("my bearer token"), us...
rust_cleaned_test_functions.jsonl/53099
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 228 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14014, 8757, 368, 341, 286, 1077, 2033, 284, 4166, 8757, 37640, 4047, 341, 310, 23715, 25, 923, 486, 1499, 445, 2408, 69771, 3950, 4461, 310, 12783, 25, 7486, 20703, 703, 486, 1499, 445, 2882, 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_erase_front() { let mut buffer = Buffer::allocate(5); buffer.push(1); buffer.push(2); buffer.push(3); buffer.erase_front(2); assert_eq!(&buffer[..], [3]); }
rust_cleaned_test_functions.jsonl/87215
{ "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, 85516, 22926, 368, 341, 286, 1077, 5206, 4147, 284, 10312, 486, 31191, 7, 20, 317, 286, 4147, 2552, 7, 16, 317, 286, 4147, 2552, 7, 17, 317, 286, 4147, 2552, 7, 18, 317, 286, 4147, 25391, 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
#[test] fn test_simple_operator_empty_not_parse() { let json = r#"{"$not":{}}"#; let query = parse_from_json(json).unwrap(); let expected = Operator::Not(Box::new(Operator::And(vec![]))); assert_eq!(query, expected); }
rust_cleaned_test_functions.jsonl/11811
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 121 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 40594, 15124, 7913, 21039, 368, 341, 286, 1077, 2951, 284, 435, 55543, 4913, 3, 1921, 788, 90, 23386, 2, 401, 286, 1077, 3239, 284, 4715, 5673, 9455, 9304, 568, 15454, 1428, 286, 1077, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_f32() { let a = PrimitiveArray::from(vec![1.23, 2.34, 3.45, 4.56]); assert_eq!(4, a.len()); }
rust_cleaned_test_functions.jsonl/32610
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 761, 18, 17, 368, 341, 286, 1077, 264, 284, 51460, 1857, 486, 1499, 25592, 20703, 16, 13, 17, 18, 11, 220, 17, 13, 18, 19, 11, 220, 18, 13, 19, 20, 11, 220, 19, 13, 20, 21, 2558, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 config = ScatterConfig::new(); let ron = ron::ser::to_string(&config).unwrap(); let de: ScatterConfig = ron::de::from_str(&ron).unwrap(); assert_eq!(config, de); }
rust_cleaned_test_functions.jsonl/123202
{ "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, 75861, 2259, 368, 341, 286, 1077, 2193, 284, 94359, 2648, 486, 931, 1428, 286, 1077, 435, 263, 284, 435, 263, 486, 799, 486, 983, 3904, 2099, 1676, 568, 15454, 543, 286, 1077, 409, 25, 94359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_is_prime() { assert!(!is_prime(0)); assert!(!is_prime(1)); assert!(is_prime(2)); assert!(is_prime(3)); assert!(!is_prime(4)); assert!(is_prime(5)); assert!(!is_prime(6)); assert!(is_prime(7)); ...
rust_cleaned_test_functions.jsonl/36588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 517 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 38217, 368, 341, 310, 2060, 0, 3471, 285, 38217, 7, 15, 1106, 310, 2060, 0, 3471, 285, 38217, 7, 16, 1106, 310, 2060, 10297, 285, 38217, 7, 17, 1106, 310, 2060, 10297, 285, 38217, 7, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_component_failure() -> () { let system = KompactConfig::default().build().expect("KompactSystem"); { // limit scope let cc = system.create(|| CrasherComponent::new(true)); let f = system.start_notify(&cc); let res = f.wait_timeou...
rust_cleaned_test_functions.jsonl/36832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 755 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23406, 43618, 368, 1464, 1719, 341, 286, 1077, 1849, 284, 730, 14435, 531, 2648, 486, 2258, 1005, 5834, 1005, 17119, 445, 42, 14435, 531, 2320, 3071, 286, 341, 310, 442, 3930, 6891, 198, 310, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
#[test] fn test_try_compile_instruction() { let key0 = Pubkey::new_unique(); let key1 = Pubkey::new_unique(); let key2 = Pubkey::new_unique(); let program_id = Pubkey::new_unique(); let valid_instruction = Instruction { program_id, accounts: vec![...
rust_cleaned_test_functions.jsonl/119825
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1569 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 74170, 54923, 368, 341, 286, 1077, 1376, 15, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 1376, 16, 284, 22611, 792, 486, 931, 21218, 543, 286, 1077, 1376, 17, 284, 22611, 792, 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_load_file() { let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR")); d.push("tests/test.xlsx"); let file_path = d.to_str().unwrap(); println!("file_path:{} ", file_path); let excel_connector = Excel_Connector::new(); let range = excel_connector.l...
rust_cleaned_test_functions.jsonl/9070
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 642 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 2458, 368, 341, 286, 1077, 5206, 294, 284, 7933, 15064, 486, 1499, 16978, 17223, 34, 7581, 46, 25143, 91120, 8291, 4010, 286, 294, 2552, 445, 23841, 12697, 46838, 3071, 286, 1077, 1034, 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...
4
#[test] fn test_scalar_legendre() { use fff::LegendreSymbol::*; use fff::SqrtField; assert_eq!(QuadraticResidue, Scalar::one().legendre()); assert_eq!(Zero, Scalar::zero().legendre()); let e = ScalarRepr::new([ 0x0dbc5349cd5664da, 0x8ac5b6296e3ae...
rust_cleaned_test_functions.jsonl/56394
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 478 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41652, 76612, 265, 368, 341, 286, 990, 282, 542, 486, 39675, 265, 15090, 56162, 286, 990, 282, 542, 486, 50, 8140, 1877, 401, 286, 2060, 10714, 10297, 2183, 88678, 1061, 60607, 11, 35176, 486, 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_euclidean_matrix_metric_bad_dim() { let m = matrix![3.0, 4.0]; let m2 = matrix![1.0, 2.0, 3.0]; MatrixMetric::metric(&Euclidean, &m, &m2); }
rust_cleaned_test_functions.jsonl/6898
{ "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, 2204, 84, 50078, 10193, 41294, 34199, 10791, 368, 341, 286, 1077, 296, 284, 6172, 20703, 18, 13, 15, 11, 220, 19, 13, 15, 935, 286, 1077, 296, 17, 284, 6172, 20703, 16, 13, 15, 11, 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_max_profit() { assert_eq!(max_profit(vec![1, 3, 2, 8, 4, 9], 2), 8); assert_eq!(max_profit(vec![1, 3, 7, 5, 10, 3], 3), 6); }
rust_cleaned_test_functions.jsonl/9592
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 85 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6345, 72042, 368, 341, 262, 2060, 10714, 10297, 2810, 72042, 25592, 20703, 16, 11, 220, 18, 11, 220, 17, 11, 220, 23, 11, 220, 19, 11, 220, 24, 1125, 220, 17, 701, 220, 23, 317, 262, 2060, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_only_one_arm_succeeds() { let schema = prepopulated_schema(); let known = Known::for_schema(&schema); let query = r#" [:find ?x :where (or [?x :foo/nope "John"] [?x :foo/parent "Ámbar"] [?x :foo/nope...
rust_cleaned_test_functions.jsonl/44225
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18410, 11667, 34680, 643, 29264, 82, 368, 341, 286, 1077, 10802, 284, 855, 8374, 7757, 25371, 543, 286, 1077, 3881, 284, 48286, 486, 1958, 25371, 2099, 17349, 317, 286, 1077, 3239, 284, 435, 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_not_enough_cash_for_quota() { let keypair = KeyPair::gen_keypair(); let t = Transaction { action: Action::Create, value: U256::from(43), data: vec![], gas: U256::from(100_000), gas_price: U256::one(), nonce: ...
rust_cleaned_test_functions.jsonl/123290
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 598 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7913, 6205, 1384, 64363, 5478, 97093, 368, 341, 286, 1077, 1376, 12670, 284, 5309, 12443, 486, 4370, 3097, 12670, 543, 286, 1077, 259, 284, 17869, 341, 310, 1917, 25, 5586, 486, 4021, 345, 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_mut() { let mut string = "Niko Matsakis".to_string(); let niko_len = len().curry_mut(&mut string); let mut niko_len = hide_mut(niko_len); assert_eq!(niko_len.call(), "Niko Matsakis".len()); // can be called twice assert_eq!(niko_len.call(), "Niko...
rust_cleaned_test_functions.jsonl/87493
{ "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, 29523, 368, 341, 286, 1077, 5206, 914, 284, 330, 45, 23630, 67179, 75777, 3263, 983, 3904, 543, 286, 1077, 308, 23630, 6043, 284, 2422, 1005, 2352, 884, 29523, 2099, 6984, 914, 317, 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_fmt() { let sample = Sample::new(String::from("sample0"), IndexMap::new()); assert_eq!(sample.to_string(), "##SAMPLE=<ID=sample0>"); let mut fields = IndexMap::new(); fields.insert(String::from("Assay"), String::from("WholeGenome")); let sample = Sample::...
rust_cleaned_test_functions.jsonl/125328
{ "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, 38128, 368, 341, 286, 1077, 6077, 284, 19143, 486, 931, 2242, 486, 1499, 445, 13611, 15, 3975, 8008, 2227, 486, 931, 1423, 286, 2060, 10714, 10297, 13611, 2389, 3904, 1507, 330, 565, 82725, 38698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stash_reader_with_value_length_one_over_length() -> Result<(), Error> { let mut types: HashMap<String, Value> = HashMap::new(); types.insert("integer".to_string(), Value::Intval(42)); let mut store_bytes = write_tmp_store("test", types)?; // Change value length t...
rust_cleaned_test_functions.jsonl/48858
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 190 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1261, 988, 22306, 6615, 3142, 5118, 11667, 15431, 5118, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 5206, 4494, 25, 10528, 3464, 11, 5162, 29, 284, 10528, 486, 931, 543, 286, 4494, 7030, 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_build_user_pb_buf() -> anyhow::Result<()> { // UserInfo { let user_info = test_user_info(); let p = user_info.to_pb()?; let mut buf = vec![]; common_protos::prost::Message::encode(&p, &mut buf)?; println!("{:?}", buf); } // UserStag...
rust_cleaned_test_functions.jsonl/111891
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20801, 3317, 31409, 10363, 368, 1464, 88964, 486, 2077, 71698, 341, 14808, 262, 442, 47757, 198, 262, 341, 286, 1077, 1196, 3109, 284, 1273, 3317, 3109, 543, 286, 1077, 281, 284, 1196, 3109, 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...
5
#[test] fn test_scan_with_configured_iface() { let mut exec = fuchsia_async::Executor::new().expect("failed to create an executor"); // Create a configured ClientIfaceContainer. let test_values = test_setup(&mut exec); let (mut iface_manager, _next_sme_req) = create_...
rust_cleaned_test_functions.jsonl/62682
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 358 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28857, 6615, 5332, 3073, 67666, 368, 341, 286, 1077, 5206, 3883, 284, 282, 73391, 28346, 486, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 3071, 286, 442, 4230, 264, 19755, 842...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_repeating_xor() { use set1::challenge2::xor; use rustc_serialize::hex::ToHex; let plain_text_hex = "4275726e696e672027656d2c20696620796f752061696e277420717569636b20616e64206e696d626c650a4920676f206372617a79207768656e2049206865617220612063796d62616c"; let key = "494345494...
rust_cleaned_test_functions.jsonl/33302
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 64877, 76462, 368, 972, 262, 990, 738, 16, 486, 57365, 17, 486, 71311, 463, 41819, 23071, 66, 88686, 486, 17308, 486, 1249, 20335, 463, 4474, 10217, 14396, 4326, 32655, 284, 330, 19, 17, 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_element_mutation() { run_with_various_layouts(|arr: Array2<i32>| { let mut expected = arr.clone(); expected[(1, 1)] = 2; let mut arr_cow = CowArray::<i32, Ix2>::from(arr.view()); arr_cow[(1, 1)] = 2; assert!(arr_cow.is_owned())...
rust_cleaned_test_functions.jsonl/92652
{ "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, 7894, 717, 22705, 368, 341, 286, 1598, 6615, 4612, 1223, 14466, 82, 22428, 1118, 25, 2910, 17, 21897, 18, 17, 69844, 341, 310, 1077, 5206, 3601, 284, 2890, 15997, 543, 310, 3601, 9697, 16, 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_match_with() { let res = expression(Span::new(r"match (X) {y -> z}")); assert!(res.is_ok()); assert!(matches!(res.unwrap().1, Expr::Match(e, _v) if *e == Expr::Ref("X"))); }
rust_cleaned_test_functions.jsonl/32930
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 101 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10708, 6615, 368, 341, 262, 1077, 592, 284, 7493, 3759, 848, 486, 931, 2601, 1, 6347, 320, 55, 8, 314, 88, 1464, 1147, 92, 14929, 262, 2060, 10297, 416, 2079, 19817, 1423, 262, 2060, 10297, 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...
2
#[test] fn test_solve_congruences() { let buses = vec![ BusTiming { id: 17, index: 0 }, BusTiming { id: 13, index: 2 }, BusTiming { id: 19, index: 3 }, ]; let solution = solve_congruences(&buses); assert_eq!(solution, 3417); let buses...
rust_cleaned_test_functions.jsonl/114126
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 800 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86246, 3382, 901, 84, 2380, 368, 341, 286, 1077, 33380, 284, 7486, 90515, 310, 18598, 62805, 314, 877, 25, 220, 16, 22, 11, 1922, 25, 220, 15, 1153, 310, 18598, 62805, 314, 877, 25, 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_import_refs_reimport() { let settings = testutils::user_settings(); let test_workspace = testutils::init_repo(&settings, true); let repo = &test_workspace.repo; let git_repo = repo.store().git_repo().unwrap(); let commit1 = empty_git_commit(&git_repo, "refs/heads/main", &[])...
rust_cleaned_test_functions.jsonl/96054
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1475 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18434, 60638, 1288, 474, 368, 341, 262, 1077, 5003, 284, 1273, 6031, 486, 872, 10853, 543, 262, 1077, 1273, 75560, 284, 1273, 6031, 486, 2327, 37784, 2099, 6511, 11, 830, 317, 262, 1077, 15867, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_undo_group() { let mut buf = Buffer::new(); buf.insert(0, &['a', 'b', 'c', 'd', 'e', 'f', 'g']); buf.start_undo_group(); buf.remove(0, 1); buf.remove(0, 1); buf.remove(0, 1); buf.end_undo_group(); assert_eq!(buf.undo(), true); ...
rust_cleaned_test_functions.jsonl/61891
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 200 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 98940, 6288, 368, 341, 286, 1077, 5206, 6607, 284, 10312, 486, 931, 543, 286, 6607, 7030, 7, 15, 11, 609, 677, 64, 516, 364, 65, 516, 364, 66, 516, 364, 67, 516, 364, 68, 516, 364, 69, 516...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_move_storage() { TestExternalities::new_empty().execute_with(|| { OldStorageValue::put(3); OldStorageMap::insert(1, 2); OldStorageMap::insert(3, 4); move_storage_from_pallet(b"foo_map", b"my_old_pallet", b"my_new_pallet"); assert_eq!(OldStorageValue::get(), Some(3)); assert...
rust_cleaned_test_functions.jsonl/68268
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 361 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17134, 23310, 368, 341, 197, 73866, 25913, 1361, 486, 931, 15124, 1005, 10257, 6615, 79453, 341, 298, 197, 18284, 5793, 1130, 486, 628, 7, 18, 317, 298, 197, 18284, 5793, 2227, 486, 4208, 7, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_hungarian() { let mut v1 = vec![ Point{x: 1., y: 2.}, Point{x: 1.5, y: 3.5}, Point{x: 10., y: -2.} ]; let mut v2 = vec![ Point{x: 1.5, y: 3.5}, Point{x: 1., y: 2.}, Point{x: 10.1, y: -4.}, ]; apply_hungarian(&mut v1, &mut v2, &|p1, p2| -p1.distance(p2)); assert_eq!...
rust_cleaned_test_functions.jsonl/3568
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 290 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 2185, 8821, 368, 341, 197, 10217, 5206, 348, 16, 284, 7486, 90515, 298, 50298, 45340, 25, 220, 16, 2572, 379, 25, 220, 17, 13, 1583, 298, 50298, 45340, 25, 220, 16, 13, 20, 11, 379, 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_time_with_timezone() { assert!(parse_time(b"20:").is_err()); assert!(parse_time(b"20p42p16").is_err()); assert!(parse_time(b"pppp").is_err()); }
rust_cleaned_test_functions.jsonl/58594
{ "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, 3009, 6615, 53193, 368, 341, 262, 2060, 10297, 6400, 3009, 1883, 1, 17, 15, 25, 1827, 285, 9266, 1423, 262, 2060, 10297, 6400, 3009, 1883, 1, 17, 15, 79, 19, 17, 79, 16, 21, 1827, 285, 9266,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_check_agent_can_execute_single_agent() { let mut context = get_context(accounts(1)); testing_env!(context.build()); let mut contract = Contract::new(); // Move forward time and blocks to get more accurate bps testing_env!(context .is_view(fals...
rust_cleaned_test_functions.jsonl/6279
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1071 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7200, 25730, 27421, 44329, 19487, 25730, 368, 341, 286, 1077, 5206, 2266, 284, 633, 8467, 91868, 7, 16, 1106, 286, 7497, 15879, 10297, 2147, 13239, 1423, 286, 1077, 5206, 5116, 284, 19185, 486, 93...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cmp_2() { let mut state = State8080::empty_state(); state.memory = vec![0xbb]; state.a = 0x02; state.e = 0x05; state.cc.cy = 0x00; state.cc.z = 0x01; emulate_8080_op(&mut state); assert_eq!(state.a, 0x02); assert_eq!(state.e...
rust_cleaned_test_functions.jsonl/7807
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 237 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 35193, 62, 17, 368, 341, 286, 1077, 5206, 1584, 284, 3234, 23, 15, 23, 15, 486, 3194, 4387, 543, 286, 1584, 36611, 284, 7486, 20703, 15, 48939, 935, 286, 1584, 5849, 284, 220, 15, 87, 15, 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_from_str_for_record_6() { let actual = "sq0\t8\t13\t.\t0\t+".parse::<Record<6>>(); let mut standard_fields = StandardFields::new("sq0", 8, 13); standard_fields.strand = Some(Strand::Forward); let expected = Ok(Record::new(standard_fields, OptionalFields::default...
rust_cleaned_test_functions.jsonl/36915
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 2895, 5478, 14192, 62, 21, 368, 341, 286, 1077, 5042, 284, 330, 28343, 15, 4955, 23, 4955, 16, 18, 4955, 7110, 83, 15, 4955, 41449, 6400, 27638, 6471, 27, 21, 79279, 286, 1077, 5206, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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() { let mut map = HashMap::new(); map.insert("name".to_owned(), "Dave".to_owned()); let func = HashMap::<String, Box<EvalFunc>>::new(); let result = Query::parse("Hello %name%!".to_owned()) .unwrap() .eval(&map, &func) .u...
rust_cleaned_test_functions.jsonl/19215
{ "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, 14007, 368, 1476, 286, 1077, 5206, 2415, 284, 10528, 486, 931, 543, 286, 2415, 7030, 445, 606, 3263, 983, 51973, 1507, 330, 55730, 3263, 983, 51973, 5231, 286, 1077, 2915, 284, 10528, 27638, 703, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_p2p_peers_max_connection_management() { // prerequisities let log = create_logger(Level::Debug); let tokio_runtime = create_test_tokio_runtime(); let actor_system = create_test_actor_system(log.clone()); let network_channel = NetworkChannel::ac...
rust_cleaned_test_functions.jsonl/104039
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2161 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 17, 79, 36367, 388, 6345, 15866, 45363, 368, 341, 286, 442, 43901, 9202, 1361, 198, 286, 1077, 1487, 284, 1855, 27413, 30263, 486, 7939, 317, 286, 1077, 9628, 815, 33232, 284, 1855, 4452, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_curve_rotate() { let mut canvas = Canvas::new(700, 700); canvas.fill((128, 128, 128, 255)); let spline = Spline::CENTRIPETAL; let points = vec![ (0.0, 150.0), (200.0, 200.0), (300.0, 100.0), (400.0, 50.0), (500.0, 100.0), (60.0, 200...
rust_cleaned_test_functions.jsonl/28638
{ "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, 43407, 60834, 368, 341, 262, 1077, 5206, 10041, 284, 25698, 486, 931, 7, 22, 15, 15, 11, 220, 22, 15, 15, 317, 262, 10041, 12467, 1188, 16, 17, 23, 11, 220, 16, 17, 23, 11, 220, 16, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rem_carry_decimal() { let d = DecimalDigit(0_u8); let rem = d.rem_carry(DecimalDigit(23), DecimalDigit(21)); assert_eq!(rem, DecimalDigit(7)); let d = DecimalDigit(7_356_u16); let rem = d.rem_carry(DecimalDigit(6_543), DecimalDigit(4_878)); as...
rust_cleaned_test_functions.jsonl/26400
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 402 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19194, 666, 11433, 74429, 741, 262, 341, 286, 1077, 294, 284, 26728, 36420, 7, 15, 7300, 23, 317, 286, 1077, 1299, 284, 294, 24072, 666, 11433, 7, 11269, 36420, 7, 17, 18, 701, 26728, 36420, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serialize() { let expect = "{\"code\":-32700,\"message\":\"Parse error. Invalid JSON\",\"data\":\"hello world\"}"; let pe = Error::parse_error("hello world"); let pe_json = serde_json::to_string(&pe).expect("could not write JSON"); assert_eq!(pe_json, ...
rust_cleaned_test_functions.jsonl/130314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 251 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 368, 341, 286, 1077, 1720, 4035, 310, 54734, 1851, 11693, 12, 18, 17, 22, 15, 15, 52318, 1994, 23488, 14463, 1465, 13, 13882, 4718, 34333, 691, 23488, 14990, 1879, 2105, 26259, 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_past() { let candles = RandomCandles::default(); let src: Vec<ValueType> = candles.take(300).map(|x| x.close).collect(); (1..255).for_each(|length| { let mut ma = TestingMethod::new(length, &src[0]).unwrap(); src.iter().enumerate().for_each(|(i, x)| { assert_eq_float(src[i.satu...
rust_cleaned_test_functions.jsonl/70120
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 93019, 368, 341, 197, 10217, 51205, 284, 10612, 34, 20125, 486, 2258, 1428, 197, 10217, 2286, 25, 11312, 48325, 929, 29, 284, 51205, 40161, 7, 18, 15, 15, 568, 2186, 22428, 87, 91, 856, 4653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serialize_panic_segment_too_long_ipv4() { // Test that a segment length which overflows u16 is rejected because it // can't fit in the length field in the IPv4 pseudo-header. Buf::new(&mut [0; (1 << 16) - HDR_PREFIX_LEN][..], ..) .encapsulate(new_builder(TEST_...
rust_cleaned_test_functions.jsonl/32087
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 195 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 88686, 620, 31270, 28061, 2346, 78, 17799, 49378, 19, 368, 341, 286, 442, 3393, 429, 264, 10238, 3084, 892, 916, 38140, 575, 16, 21, 374, 17551, 1576, 432, 198, 286, 442, 646, 944, 4946, 304, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sqrt() { { assert_eq!(Scalar::zero().sqrt().unwrap(), Scalar::zero()); } let mut square = Scalar(blst::blst_fr { l: [ 0x46cd85a5f273077e, 0x1d30c47dd68fc735, 0x77f656f60beca0eb, 0x494...
rust_cleaned_test_functions.jsonl/54660
{ "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, 92199, 368, 341, 286, 341, 310, 2060, 10714, 10297, 20639, 486, 14154, 1005, 26888, 1005, 15454, 1507, 35176, 486, 14154, 1423, 286, 555, 286, 1077, 5206, 9334, 284, 35176, 29811, 267, 486, 2024, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_invalid_cbtc_conversion() { INVALID_TEST_AMOUNTS .iter() .for_each(|amounts| test_from_cbtc(amounts.centi_bit, BitcoinAmount(amounts.satoshi))); }
rust_cleaned_test_functions.jsonl/131274
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 142 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 16450, 10413, 64132, 368, 341, 394, 32269, 11641, 59993, 50, 198, 503, 659, 2015, 741, 503, 659, 1958, 32046, 22428, 6045, 82, 91, 1273, 5673, 16450, 10413, 33989, 82, 520, 22396, 13996, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_error_on_bad_parameters() { let store = MockHashStore::new(); assert!(TestAccumulator::get_proof(&store, 0, 0).is_err()); assert!(TestAccumulator::get_proof(&store, 100, 101).is_err()); }
rust_cleaned_test_functions.jsonl/52438
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 91 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4096, 4470, 34199, 18263, 368, 341, 262, 1077, 3553, 284, 14563, 6370, 6093, 486, 931, 543, 262, 2060, 10297, 2271, 14603, 372, 10511, 486, 455, 86757, 2099, 4314, 11, 220, 15, 11, 220, 15, 568,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resource_block_with_clashing_declarations() { let p = Polar::new(); p.register_constant(sym!("Org"), term!("unimportant")) .unwrap(); expect_error( &p, r#"resource Org{ roles = ["egg","egg"]; "egg" if "egg";...
rust_cleaned_test_functions.jsonl/31747
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 580 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17962, 7113, 6615, 6794, 19049, 2259, 49121, 368, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 9929, 34967, 62512, 17223, 42437, 3975, 4647, 17223, 359, 15333, 5455, 310, 659, 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_requested_attrs_constructed_correctly() { let _setup = SetupDefaults::init(); let request = ProofRequestData::create() .set_nonce().unwrap() .set_requested_attributes(REQUESTED_ATTRS.into()).unwrap(); assert_eq!(request.requested_attributes, _expe...
rust_cleaned_test_functions.jsonl/65273
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 152 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 72709, 39578, 64803, 291, 31550, 398, 368, 341, 286, 1077, 716, 15188, 284, 18626, 16273, 486, 2327, 1428, 286, 1077, 1681, 284, 36991, 1900, 1043, 486, 3182, 741, 310, 659, 746, 48508, 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_from_arg_matches_time() { let argv = vec!["lsd", "--timesort"]; let matches = app::build().get_matches_from_safe(argv).unwrap(); assert_eq!( Some(SortColumn::Time), SortColumn::from_arg_matches(&matches) ); }
rust_cleaned_test_functions.jsonl/54291
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 149 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 6057, 38344, 3009, 368, 341, 286, 1077, 10213, 284, 7486, 0, 1183, 4730, 67, 497, 14482, 15136, 371, 6332, 286, 1077, 9071, 284, 906, 486, 5834, 1005, 455, 38344, 5673, 34067, 15329, 568, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_default_slack_propagated() -> Result<()> { test_parse_and_merge(TestSet { manifest_yml: r###"sentry: {}"###.into(), env_yml: "{}".into(), default_channel: "CDEFTEAM8".into(), crd_expected: r###"--- sentry: slack: CDEFTEAM8 silent: false...
rust_cleaned_test_functions.jsonl/90979
{ "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, 9993, 11886, 473, 21663, 351, 657, 368, 1464, 5714, 71698, 341, 286, 1273, 21039, 8378, 20888, 31159, 1649, 341, 310, 14455, 4178, 1014, 25, 435, 14374, 1, 82, 4085, 25, 4687, 1, 14374, 13, 1812...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1