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_extract_table_prefix() { let cases = vec![ (vec![], None), (b"a\x80\x00\x00\x00\x00\x00\x00\x01".to_vec(), None), (b"t\x80\x00\x00\x00\x00\x00\x01".to_vec(), None), ( b"t\x80\x00\x00\x00\x00\x00\x00\x01".to_vec(), ...
rust_cleaned_test_functions.jsonl/3833
{ "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, 39123, 5237, 13974, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 4083, 0, 12995, 2240, 1326, 310, 320, 65, 56693, 3462, 23, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 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_parse_filename() { let mut tests = if cfg!(windows) { vec![ ("a\\b\\c\\000123.log", Some((FileType::Log, 123))), ("a\\b\\c\\LOCK", Some((FileType::Lock, 0))), ("a\\b\\c\\010666.sst", Some((FileType::Table, 10666))), ...
rust_cleaned_test_functions.jsonl/108916
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 13323, 368, 341, 286, 1077, 5206, 7032, 284, 421, 13286, 10297, 27077, 8, 341, 310, 7486, 90515, 394, 3489, 64, 3422, 65, 3422, 66, 3422, 15, 15, 15, 16, 17, 18, 1665, 497, 4329, 1188, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_send() { use crate::transmission; let api_host = &mockito::server_url(); let _m = mockito::mock( "POST", mockito::Matcher::Regex(r"/1/batch/(.*)$".to_string()), ) .with_status(200) .with_header("content-type", "application/...
rust_cleaned_test_functions.jsonl/97071
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 592 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13565, 368, 341, 286, 990, 17717, 486, 1458, 2728, 401, 286, 1077, 6330, 12848, 284, 609, 16712, 6357, 486, 4030, 2903, 543, 286, 1077, 716, 76, 284, 7860, 6357, 486, 16712, 1006, 310, 330, 2946...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_list_prefix() { let tmp_dir = TempDir::new().unwrap(); let mut sm = get_tmp_store_manager(&tmp_dir); let test_client_name = "test_client".to_owned(); let test_field = Value::Boolval(true); let mut client_data = HashMap::new(); client_data.insert(...
rust_cleaned_test_functions.jsonl/48849
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 475 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2019, 13974, 368, 341, 286, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 1005, 15454, 543, 286, 1077, 5206, 1525, 284, 633, 16125, 14809, 12144, 2099, 5173, 4334, 626, 286, 1077, 1273, 8179, 1269...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_int_is_zero() { let num: Int = 0; assert_eq!(num.is_zero(), true); let num: Int = 1; assert_eq!(num.is_zero(), false); }
rust_cleaned_test_functions.jsonl/48674
{ "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, 4042, 6892, 19359, 368, 341, 286, 1077, 1629, 25, 1333, 284, 220, 15, 280, 286, 2060, 10714, 10297, 2413, 2079, 19359, 1507, 830, 626, 286, 1077, 1629, 25, 1333, 284, 220, 16, 280, 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
#[test] fn test_expect_number_or_null() { assert_eq!(Ok(None), expect_number_or_null(value_null(0))); assert_eq!( Ok(Some(Number::PosInt(5))), expect_number_or_null(value_number(0, Number::PosInt(5))) ); assert_eq!( Err(Error::custom( ...
rust_cleaned_test_functions.jsonl/58155
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 600 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68918, 5500, 8734, 15162, 368, 341, 286, 2060, 10714, 10297, 11578, 26717, 701, 1720, 5500, 8734, 15162, 3679, 15162, 7, 15, 4945, 286, 2060, 10714, 33673, 310, 7622, 65405, 42999, 486, 4859, 1072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_simple() { use Token::*; let (tokens, maybe_error) = tokenize_string("add subtract end"); assert_eq!(tokens, vec![Add, Subtract, End]); assert!(maybe_error.is_none()); }
rust_cleaned_test_functions.jsonl/78236
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 110 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30015, 368, 341, 286, 990, 9660, 56162, 286, 1077, 320, 30566, 11, 7196, 4096, 8, 284, 77651, 3904, 445, 718, 32256, 835, 797, 286, 2060, 10714, 10297, 30566, 11, 7486, 20703, 2212, 11, 93210, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_parsing() { assert!(parse(::std::iter::empty()).is_err()); assert!(parse(vec!["51", "13"].into_iter()).is_err()); assert!(parse(vec!["1", "-1"].into_iter()).is_err()); assert!(parse(vec!["1", "1", "abcd", "foo"].into_iter()).is_err()); use rr::rdata::sshfp::Algorithm::*; ...
rust_cleaned_test_functions.jsonl/13719
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1944 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 28598, 368, 341, 262, 2060, 10297, 6400, 38732, 1834, 486, 2015, 486, 3194, 6011, 285, 9266, 1423, 262, 2060, 10297, 6400, 25592, 0, 1183, 20, 16, 497, 330, 16, 18, 5521, 18122, 11723, 6011...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_divide_zero() { let x = Complex::new(3.0, 4.0); let z: Complex = x.divide(&complex::ZERO); assert!(z == complex::NAN); }
rust_cleaned_test_functions.jsonl/43843
{ "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, 16237, 577, 19359, 368, 341, 286, 1077, 856, 284, 22096, 486, 931, 7, 18, 13, 15, 11, 220, 19, 13, 15, 317, 286, 1077, 1147, 25, 22096, 284, 856, 83155, 2099, 23247, 486, 73956, 317, 1789, 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
#[test] fn test_multiline_errors() { assert_eq!(from_str("{\n \"foo\":\n \"bar\""), Err(SyntaxError(EOFWhileParsingObject, 3u, 8u))); }
rust_cleaned_test_functions.jsonl/6558
{ "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, 26290, 26560, 20196, 368, 341, 286, 2060, 10714, 10297, 1499, 2895, 13976, 59, 77, 220, 7245, 7975, 11693, 59, 77, 7245, 2257, 2105, 4461, 310, 15495, 93549, 1454, 7, 23483, 7983, 68839, 1190, 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_strictz() { let zmachine = make_zmachine("tests/strictz/strictz.z3"); let output = run_zmachine(zmachine, &[&"N"]); assert_eq_with_diff(&output, &read_output("tests/strictz/strictz.out3")); }
rust_cleaned_test_functions.jsonl/62149
{ "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, 2895, 849, 89, 368, 341, 262, 1077, 1147, 32056, 284, 1281, 6415, 32056, 445, 23841, 14, 6627, 89, 14, 6627, 89, 3938, 18, 3071, 262, 1077, 2550, 284, 1598, 6415, 32056, 13174, 32056, 11, 44590,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ical_parsing() { let version_tag = VersionTag::from(String::from("test-tag")); let sync_status = SyncStatus::Synced(version_tag); let item_url: Url = "http://some.id/for/testing".parse().unwrap(); let item = parse(EXAMPLE_ICAL, item_url.clone(), sync_status.clone...
rust_cleaned_test_functions.jsonl/99770
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62, 938, 620, 28598, 368, 341, 286, 1077, 2319, 9372, 284, 6079, 5668, 486, 1499, 2242, 486, 1499, 445, 1944, 38204, 4010, 286, 1077, 12811, 4773, 284, 28937, 2522, 486, 12154, 291, 37770, 9372, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_as_string() { assert_eq!( from(b"foo test\0").as_string(), zeroize::Zeroizing::new(String::from("foo test")) ); }
rust_cleaned_test_functions.jsonl/78271
{ "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, 11898, 3904, 368, 341, 286, 2060, 10714, 33673, 310, 504, 1883, 1, 7975, 1273, 59, 15, 1827, 300, 3904, 3148, 310, 7168, 551, 486, 17999, 4849, 486, 931, 2242, 486, 1499, 445, 7975, 1273, 5455, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_circuit_duplicate_service_id() { let store = setup_admin_service_store(); let event_store = store.clone_boxed(); let (mesh, cm, pm, peer_connector) = setup_peer_connector(None); let orchestrator = setup_orchestrator(); let signature_verifier = S...
rust_cleaned_test_functions.jsonl/47870
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 878 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 42681, 666, 37268, 70434, 12267, 842, 368, 341, 286, 1077, 3553, 284, 6505, 12207, 12267, 14809, 543, 286, 1077, 1538, 14809, 284, 3553, 15997, 10194, 291, 1428, 286, 1077, 320, 23506, 11, 9961, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_internally_tagged_unit_enum_with_unknown_fields() { #[derive(Deserialize, PartialEq, Debug)] #[serde(tag = "t")] enum Data { A, } let data = Data::A; assert_de_tokens( &data, &[ Token::Map { len: None }, Token::Str("t"), ...
rust_cleaned_test_functions.jsonl/59177
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4042, 932, 745, 9372, 3556, 14832, 31054, 6615, 57507, 12132, 368, 341, 262, 11506, 27098, 7, 64465, 11, 55039, 11, 11091, 5563, 262, 11506, 47024, 19343, 284, 330, 83, 5422, 262, 7618, 2885, 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_tree_node_arrangement() { let mut tree = RBTree::new(); assert!(tree.root.is_none()); let rand_string_gen = || { rand::thread_rng() .sample_iter(&Alphanumeric) .take(20) .collect::<String>() }; ...
rust_cleaned_test_functions.jsonl/62000
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1806 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11663, 5084, 11210, 56633, 368, 341, 286, 1077, 5206, 4916, 284, 27974, 6533, 486, 931, 543, 286, 2060, 10297, 9344, 12576, 2079, 31488, 5231, 286, 1077, 10382, 3904, 16322, 284, 1369, 341, 310, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_inline_constant_alias_with_non_constant() { test( "var XXX = new Foo(); q(XXX); var y = XXX; bar(y); baz(y)", "var XXX = new Foo(); q(XXX); var y = XXX; bar(y); baz(y)", ); }
rust_cleaned_test_functions.jsonl/27658
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41871, 34967, 35947, 6615, 21637, 34967, 368, 341, 262, 1273, 1006, 286, 330, 947, 19975, 284, 501, 33428, 2129, 2804, 7, 30100, 1215, 762, 379, 284, 19975, 26, 3619, 7021, 1215, 50247, 7021, 1575...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dont_fold_non_literal_spread_get_elem() { fold_same("x = [...iter][0];"); fold_same("x = [0, 1, ...iter][2];"); fold_same("x = [0, 1, ...iter][0];"); }
rust_cleaned_test_functions.jsonl/122196
{ "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, 814, 544, 61187, 21637, 34100, 10123, 878, 3062, 28179, 368, 341, 262, 11555, 33574, 445, 87, 284, 16303, 2015, 1457, 15, 5265, 797, 262, 11555, 33574, 445, 87, 284, 508, 15, 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_newtypes_do_not_add_to_depth() { #[derive(Debug, Clone, FromValue, IntoValue, ProcessValue, Empty)] struct WrappedString(String); #[derive(Debug, Clone, FromValue, IntoValue, ProcessValue, Empty)] struct StructChild2 { inner: Annotated<WrappedString>, } #[derive...
rust_cleaned_test_functions.jsonl/112694
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 501 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 9242, 26309, 7913, 2891, 2346, 19061, 368, 341, 262, 11506, 27098, 42618, 11, 27913, 11, 5542, 1130, 11, 31645, 1130, 11, 8603, 1130, 11, 22228, 5563, 262, 2036, 94715, 703, 2242, 626, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_tokenize_operators() { let input = "+ = == ! != - / * < >"; let mut tokens = Lexer::new(input); let expected = vec![ Token::Plus, Token::Assign, Token::Eq, Token::Bang, Token::NotEq, Token::Minus, ...
rust_cleaned_test_functions.jsonl/80424
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 347 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 86508, 25634, 2973, 368, 341, 286, 1077, 1946, 284, 6630, 284, 621, 753, 961, 481, 608, 353, 366, 861, 876, 286, 1077, 5206, 11211, 284, 85082, 486, 931, 5384, 626, 286, 1077, 3601, 284, 7486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_reddit_cert() { Context::new( "reddit", "reddit.com", &[ include_bytes!("testdata/cert-reddit.0.der"), include_bytes!("testdata/cert-reddit.1.der"), ], ) .bench(100) }
rust_cleaned_test_functions.jsonl/800
{ "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, 1288, 20090, 37097, 368, 341, 262, 9608, 486, 931, 1006, 286, 330, 36933, 756, 286, 330, 36933, 905, 756, 286, 609, 9640, 310, 2924, 12524, 17223, 92425, 2899, 529, 5504, 20090, 13, 15, 75819, 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_perfect_game() { let mut game = Game::new(); roll_many(&mut game, 12, 10); assert_eq!(game.score(), 300); }
rust_cleaned_test_functions.jsonl/43699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 78 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5678, 3751, 18547, 368, 341, 286, 1077, 5206, 1809, 284, 4050, 486, 931, 1428, 286, 6502, 22101, 2099, 6984, 1809, 11, 220, 16, 17, 11, 220, 16, 15, 626, 286, 2060, 10714, 10297, 5804, 21540, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_wrapping_overflow() { assert_de_tokens_error::<Wrapping<u16>>( &[Token::U32(65_536)], "invalid value: integer `65536`, expected u16", ); }
rust_cleaned_test_functions.jsonl/129548
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 92 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44074, 3629, 79073, 368, 341, 262, 2060, 2259, 28838, 4096, 27638, 35214, 3629, 34837, 16, 21, 97238, 286, 44590, 3323, 486, 52, 18, 17, 7, 21, 20, 62, 20, 18, 21, 30749, 286, 330, 11808, 897,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_finalize_multiple_blocks_in_single_op() { let backend = Backend::<Block>::new_test(10, 10); let block0 = insert_header(&backend, 0, Default::default(), Default::default(), Default::default()); let block1 = insert_header(&backend, 1, block0, Default::default(), Default::default()); let b...
rust_cleaned_test_functions.jsonl/94588
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 250 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 70616, 45233, 25201, 1243, 19487, 10287, 368, 341, 197, 10217, 19163, 284, 55260, 27638, 4713, 6831, 931, 4452, 7, 16, 15, 11, 220, 16, 15, 626, 197, 10217, 2504, 15, 284, 5656, 8757, 2099, 2094...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_share_by_general_other() { use super::NonSharableFileError; let user = test_model::new_general_user(); let other = test_model::new_general_user(); let (file, _) = test_model::new_file(other.id().clone()); assert!(matches!( file.share_by(&user,...
rust_cleaned_test_functions.jsonl/5064
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 189 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 38272, 3710, 39177, 30456, 368, 341, 286, 990, 2256, 486, 8121, 42215, 480, 1703, 1454, 401, 286, 1077, 1196, 284, 1273, 5047, 486, 931, 39177, 3317, 543, 286, 1077, 1008, 284, 1273, 5047, 486, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eliminate_anagram_subsets() { let word = "good"; let inputs = ["dog", "goody"]; let outputs = vec![]; process_anagram_case(word, &inputs, &outputs); }
rust_cleaned_test_functions.jsonl/14776
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 84 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84655, 3277, 12008, 5745, 5228, 4917, 368, 341, 262, 1077, 3409, 284, 330, 18536, 3302, 262, 1077, 11127, 284, 4383, 18457, 497, 330, 3346, 1076, 31797, 262, 1077, 16275, 284, 7486, 0, 40901, 262,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_affine_clone() { let affine = Affine([[1., 2.], [3., 4.]], [5., 6.]); let affine_clone = affine.clone(); approx_eq!(f64, affine_clone.0[0][0], affine.0[0][0]); approx_eq!(f64, affine_clone.0[0][1], affine.0[0][1]); approx_eq!(f64, affine_clone.0[1][0], af...
rust_cleaned_test_functions.jsonl/102300
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 285 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48914, 482, 54742, 368, 341, 286, 1077, 68809, 284, 9748, 482, 27119, 16, 2572, 220, 17, 13, 1125, 508, 18, 2572, 220, 19, 13, 20492, 508, 20, 2572, 220, 21, 13, 2558, 286, 1077, 68809, 54742,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_load_did_you_mean() { let mut a = Assert::new(); a.module("categories", "colour = 1"); a.fail( "load('categories', 'color')", "Module has no symbol `color`, did you mean `colour`?", ); }
rust_cleaned_test_functions.jsonl/92439
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 108 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12411, 814, 307, 70456, 16933, 368, 341, 262, 1077, 5206, 264, 284, 5319, 486, 931, 543, 262, 264, 10076, 445, 15497, 497, 330, 47339, 284, 220, 16, 797, 262, 264, 26738, 1006, 286, 330, 1078, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_search_manga() { let mut core = Core::new().unwrap(); let connector = HttpsConnector::new(1, &core.handle()).unwrap(); let client = Client::configure() .connector(connector) .build(&core.handle()); let runner = client.search_manga(|f| f.filter("text", "orange"))...
rust_cleaned_test_functions.jsonl/47207
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 275 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10716, 717, 19372, 368, 341, 262, 1077, 5206, 6200, 284, 9518, 486, 931, 1005, 15454, 1428, 262, 1077, 26989, 284, 4823, 82, 35954, 486, 931, 7, 16, 11, 609, 2153, 10132, 6011, 15454, 543, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_iter_bounds() { let blockstore_path = get_tmp_ledger_path!(); let blockstore = Blockstore::open(&blockstore_path).unwrap(); blockstore .slot_meta_iterator(5) .unwrap() .for_each(|_| assert!(false)); drop(blockstore); ...
rust_cleaned_test_functions.jsonl/94031
{ "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, 11723, 36878, 368, 341, 286, 1077, 2504, 4314, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 2099, 4574, 4314, 2638, 568, 15454, 1428, 1789, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_variable_after_aggregate() -> Result<()> { let query = parse( r#" func average column -> s"AVG({column})" from employees group [title, emp_no] ( aggregate [emp_salary = average salary] ) group [title] ( aggrega...
rust_cleaned_test_functions.jsonl/90564
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1503 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14635, 19844, 20587, 14240, 368, 1464, 5714, 71698, 341, 286, 1077, 3239, 284, 4715, 1006, 310, 435, 2, 698, 286, 2915, 5461, 3250, 1464, 220, 274, 1, 8093, 38, 2306, 6229, 5410, 1837, 286, 504,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_thread_io_statistics() { let s1 = "testio123"; let s2 = "test45678"; let (tx, rx1) = write_two_string(s1.to_owned(), s2.to_owned()); // Wait for thread creation rx1.recv().unwrap(); let mut thread_info = ThreadInfoStatistics::new(); let ...
rust_cleaned_test_functions.jsonl/74385
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1076 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10814, 16939, 49569, 368, 341, 286, 1077, 274, 16, 284, 330, 1944, 815, 16, 17, 18, 876, 286, 1077, 274, 17, 284, 330, 1944, 19, 20, 21, 22, 23, 3302, 286, 1077, 320, 3998, 11, 19111, 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...
4
#[test] fn test_dirty_sample_binxml_with_incomplete_template() { // Contains an unparsable record test_full_sample(sample_binxml_with_incomplete_template(), 17, 1) }
rust_cleaned_test_functions.jsonl/64584
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 68 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 63642, 17491, 21816, 6455, 6615, 1243, 14737, 8693, 368, 341, 262, 442, 30811, 458, 21624, 1561, 480, 3255, 198, 262, 1273, 16372, 17491, 32968, 21816, 6455, 6615, 1243, 14737, 8693, 1507, 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
#[test] fn test_push_bytes() { fn test(slice: &[u8], tag: u16, expected_res: Result<&[u8]>) { let mut reader = BinReader::new(slice); let wire = reader.get_tag(tag).unwrap(); let res = reader.read_bytes(wire); match &expected_res { Ok(w) =>...
rust_cleaned_test_functions.jsonl/69743
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 650 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14218, 12524, 368, 341, 286, 5168, 1273, 75282, 25, 44590, 84, 23, 1125, 4772, 25, 575, 16, 21, 11, 3601, 4918, 25, 5714, 52244, 58, 84, 23, 60, 9231, 341, 310, 1077, 5206, 6604, 284, 29344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_continuation_reset() { let continuations = Continuations::new(); continuations.insert_remaining_packets(&PduId::GetElementAttributes, vec![vec![1 as u8]]); continuations.clear_all(); assert!(continuations.pop_packet(&PduId::GetElementAttributes).is_none()); }
rust_cleaned_test_functions.jsonl/21854
{ "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, 68948, 4002, 18983, 368, 341, 286, 1077, 16122, 804, 284, 20297, 37070, 486, 931, 543, 286, 16122, 804, 7030, 59244, 63569, 2099, 47, 1054, 764, 486, 1949, 1691, 10516, 11, 7486, 20703, 4083, 2070...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_expired_value() { let mut cache = Cache::new(); let key: &'static str = "key"; cache.insert(key, 1, Some(Duration::default())); assert_eq!(cache.get(&key), None); }
rust_cleaned_test_functions.jsonl/76883
{ "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, 3062, 80221, 3142, 368, 341, 262, 1077, 5206, 6500, 284, 19479, 486, 931, 543, 262, 1077, 1376, 25, 30136, 1978, 607, 284, 330, 792, 3302, 262, 6500, 7030, 4857, 11, 220, 16, 11, 4329, 64114, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_add_native_program_inherited_cap_while_replacing() { let (genesis_config, mint_keypair) = create_genesis_config(100_000); let bank = Bank::new(&genesis_config); let program_id = solana_sdk::pubkey::new_rand(); bank.add_native_program("mock_program", &program_id, ...
rust_cleaned_test_functions.jsonl/31346
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 343 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 44494, 25096, 1243, 48394, 16388, 86069, 1288, 47933, 368, 341, 286, 1077, 320, 77894, 5332, 11, 28337, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 16, 15, 15, 62, 15, 15, 15, 317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_http_request_upgrade() { let settings = WorkerSettings::<HttpApplication>::new(Vec::new(), KeepAlive::Os); let mut buf = BytesMut::from( "GET /test HTTP/1.1\r\n\ connection: upgrade\r\n\ upgrade: websocket\r\n\r\n\ some raw data"...
rust_cleaned_test_functions.jsonl/110403
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 459 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 25888, 7893, 67794, 368, 341, 286, 1077, 5003, 284, 33086, 6086, 27638, 2905, 4988, 6831, 931, 49923, 486, 931, 1507, 13655, 32637, 486, 28867, 317, 286, 1077, 5206, 6607, 284, 30024, 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_status_transtition() { let mut status = ContainerStatus::new(); let status_table: [Status; 4] = [ Status::CREATED, Status::RUNNING, Status::PAUSED, Status::STOPPED, ]; for s in status_table.iter() { let ...
rust_cleaned_test_functions.jsonl/35460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 239 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4773, 3547, 61194, 680, 368, 341, 286, 1077, 5206, 2639, 284, 9678, 2522, 486, 931, 543, 286, 1077, 2639, 5237, 25, 508, 2522, 26, 220, 19, 60, 284, 2278, 310, 8104, 486, 9427, 9005, 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...
2
#[test] fn test_vote_accounts_deserialize() { let mut rng = rand::thread_rng(); let vote_accounts_hash_map: HashMap<Pubkey, (u64, VoteAccount)> = new_rand_vote_accounts(&mut rng, 64).take(1024).collect(); let data = bincode::serialize(&vote_accounts_hash_map).unwrap(); ...
rust_cleaned_test_functions.jsonl/23436
{ "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, 54360, 55665, 15768, 9050, 368, 341, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 1077, 6910, 55665, 8950, 5376, 25, 10528, 21604, 392, 792, 11, 320, 84, 21, 19, 11, 34034, 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_field_does_not_exist() { let mut schema_builder = Schema::builder(); let title = schema_builder.add_text_field(TITLE, TEXT); let size = schema_builder.add_u64_field(SIZE, FAST); let schema = schema_builder.build(); let (index, _) = index("beer", title, sch...
rust_cleaned_test_functions.jsonl/31051
{ "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, 5013, 96374, 7913, 35906, 368, 341, 286, 1077, 5206, 10802, 28532, 284, 12539, 486, 17850, 543, 286, 1077, 2265, 284, 10802, 28532, 1364, 4326, 5013, 4140, 15286, 11, 15762, 317, 286, 1077, 1379, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_remove_node_and_edges() { let mut g = MatrixGraph::new(); let a = g.add_node('a'); let b = g.add_node('b'); let c = g.add_node('c'); g.add_edge(a, b, ()); g.add_edge(b, c, ()); g.add_edge(c, a, ()); // removing b should break the `...
rust_cleaned_test_functions.jsonl/81966
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 330 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 5084, 8378, 28026, 368, 341, 286, 1077, 5206, 342, 284, 11631, 11212, 486, 931, 543, 286, 1077, 264, 284, 342, 1364, 5084, 492, 64, 1157, 286, 1077, 293, 284, 342, 1364, 5084, 492, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mixed_arrays() { assert_eq!( HumanReadableParser::parse_type("bool[][3]").unwrap(), ParamType::FixedArray(Box::new(ParamType::Array(Box::new(ParamType::Bool))), 3) ); assert_eq!( HumanReadableParser::parse_type("bool[3][]").unwrap...
rust_cleaned_test_functions.jsonl/77866
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 211 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 717, 3286, 68983, 368, 341, 286, 2060, 10714, 33673, 310, 11097, 57938, 6570, 486, 6400, 1819, 445, 2641, 63449, 18, 44891, 15454, 3148, 310, 6991, 929, 486, 13520, 1857, 67758, 486, 931, 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_bound() { let mut m = MemoryBoundedBuffer::new(12); m.push(1, 4); m.push(2, 4); m.push(3, 5); assert_eq!( &m.iter_mut().collect::<Vec<(&mut i32, usize)>>()[..], &[(&mut 2, 4), (&mut 3, 5)] ); ...
rust_cleaned_test_functions.jsonl/77000
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 355 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19447, 368, 341, 310, 1077, 5206, 296, 284, 13850, 33, 13082, 4095, 486, 931, 7, 16, 17, 317, 310, 296, 2552, 7, 16, 11, 220, 19, 317, 310, 296, 2552, 7, 17, 11, 220, 19, 317, 310, 296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vote_against_for_propose() { let mut testkit: TestKit = TestKit::configuration_default(); let new_cfg = { let mut cfg = testkit.configuration_change_proposal(); cfg.set_service_config("dummy", "First cfg"); cfg.set_actual_from(Height(5)); cfg.stored_confi...
rust_cleaned_test_functions.jsonl/106414
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 397 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 54360, 62427, 267, 5478, 21663, 960, 368, 341, 262, 1077, 5206, 1273, 8226, 25, 3393, 7695, 284, 3393, 7695, 486, 21138, 9993, 1428, 262, 1077, 501, 18343, 284, 341, 286, 1077, 5206, 13286, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sccache_command() { match env_logger::try_init() { Ok(_) => {} Err(_) => {} } let tempdir = TempDir::new("sccache_system_test").unwrap(); let compilers = find_compilers(); if compilers.is_empty() { warn!("No compilers found, skipping test"); } else...
rust_cleaned_test_functions.jsonl/10296
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 483 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 638, 1777, 10811, 368, 341, 262, 2432, 6105, 27413, 486, 1539, 6137, 368, 341, 286, 7622, 48139, 589, 5613, 286, 15495, 48139, 589, 5613, 262, 456, 262, 1077, 2730, 3741, 284, 19944, 6184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_leader_bcast_beat() { let l = default_logger(); // heartbeat interval let hi = 1; let mut r = new_test_raft(1, vec![1, 2, 3], 10, hi, new_storage(), &l); r.become_candidate(); r.become_leader(); for i in 0..10 { r.append_entry(&mut [empty_entry(0, i as u64 + 1...
rust_cleaned_test_functions.jsonl/62292
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 366 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 79991, 880, 3829, 21263, 266, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 442, 52105, 9873, 198, 262, 1077, 15588, 284, 220, 16, 280, 262, 1077, 5206, 435, 284, 501, 4452, 62, 2944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_skipped() { let blockstore_path = get_tmp_ledger_path!(); let blockstore = Blockstore::open(&blockstore_path).unwrap(); let roots = vec![2, 4, 7, 12, 15]; blockstore.set_roots(&roots).unwrap(); for i in 0..20 { if i < 2 || roots.contains(&i...
rust_cleaned_test_functions.jsonl/7607
{ "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, 6892, 33811, 6450, 368, 341, 286, 1077, 2504, 4314, 2638, 284, 633, 16125, 38367, 1389, 2638, 0, 543, 286, 1077, 2504, 4314, 284, 8362, 4314, 486, 2508, 2099, 4574, 4314, 2638, 568, 15454, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_vaults_from_deposits() { let datadir = test_datadir(); let mut revaultd = dummy_revaultd(datadir.clone(), UserRole::ManagerStakeholder); let db_file = revaultd.db_file(); setup_db(&mut revaultd).unwrap(); let vaults = create_vaults(&revaultd); let ...
rust_cleaned_test_functions.jsonl/31168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 949 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2273, 945, 82, 5673, 2259, 966, 1199, 368, 341, 286, 1077, 3258, 41173, 284, 1273, 15353, 41173, 543, 286, 1077, 5206, 5772, 945, 67, 284, 17292, 38082, 945, 67, 44841, 41173, 15997, 1507, 95019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wrap_pad_24_byte_key_20_byte_data() { let pt = hex!("c37b7e6492584340bed12207808941155068f738").to_vec(); let key = hex!("5840df6e29b02af1ab493b705bf16ea1ae8338f4dcc176a8").to_vec(); let ct = aes_wrap_with_padding(&pt, &key); assert!(ct.is_ok(), "Test unexpectantl...
rust_cleaned_test_functions.jsonl/15912
{ "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, 38550, 30290, 62, 17, 19, 19737, 3097, 62, 17, 15, 19737, 1769, 368, 341, 286, 1077, 10817, 284, 12371, 17223, 66, 18, 22, 65, 22, 68, 21, 19, 24, 17, 20, 23, 19, 18, 19, 15, 2721, 16, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add_used() { let m = &GuestMemoryMmap::<()>::from_ranges(&[(GuestAddress(0), 0x10000)]).unwrap(); let vq = MockSplitQueue::new(m, 16); let mut q = vq.create_queue(m); assert_eq!(q.used_idx(Ordering::Acquire).unwrap(), Wrapping(0)); assert_eq!(u16::from_le...
rust_cleaned_test_functions.jsonl/94695
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 441 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 27803, 368, 341, 286, 1077, 296, 284, 609, 37804, 10642, 44, 2186, 27638, 368, 6831, 1499, 58748, 2099, 9697, 37804, 4286, 7, 15, 701, 220, 15, 87, 16, 15, 15, 15, 15, 7252, 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_block_doc_comment_1() { let comment = "/**\n * Test \n ** Test\n * Test\n*/"; let stripped = strip_doc_comment_decoration(comment); assert_eq!(stripped, " Test \n* Test\n Test"); }
rust_cleaned_test_functions.jsonl/23088
{ "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, 7113, 18869, 17638, 62, 16, 368, 341, 286, 1077, 3980, 284, 3521, 334, 59, 77, 353, 3393, 1124, 77, 3070, 220, 3393, 1699, 353, 256, 3393, 1699, 1812, 876, 286, 1077, 36679, 284, 13316, 18869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_missing_name() { cmd().write_stdin("$ ").assert().failure().stderr(concat!( r#"<stdin>:1:1: error: command line is missing command name | 1 | $ "#, // separated to preserve trailing spaces r#" | ^ "#, )); }
rust_cleaned_test_functions.jsonl/120314
{ "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, 11684, 40447, 1269, 368, 341, 262, 5439, 1005, 4934, 15656, 258, 20912, 256, 27510, 2207, 1005, 28939, 1005, 36422, 96360, 33673, 286, 435, 2, 22476, 51602, 26818, 16, 25, 16, 25, 1465, 25, 3210, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_handle_time() { use tikv_util::config::ReadableDuration; /// Asserted that the snapshot can be retrieved in 500ms. const SNAPSHOT_DURATION_MS: i64 = 500; /// Asserted that the delay caused by OS scheduling other tasks is smaller than 200ms. /// This is m...
rust_cleaned_test_functions.jsonl/40865
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 5162 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10630, 3009, 368, 341, 286, 990, 86172, 85, 18974, 486, 1676, 486, 57938, 12945, 401, 286, 1048, 5319, 291, 429, 279, 16295, 646, 387, 30403, 304, 220, 20, 15, 15, 1011, 624, 286, 733, 17924, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mixed_languages() { let analyzer = Analyzer::new(AnalyzerConfig::<Vec<u8>>::default()); let traditional = "ABB SáféRing CCCV Базовый\u{9}с реле SEG\u{00a0}WIC1, ТТ–W2+доп.катушка отключ 220 VAC+контакт сраб.реле 1НО+вывод слева+испытательные втулки. 生而自由"; let analyzed ...
rust_cleaned_test_functions.jsonl/125058
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1305 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 3286, 77576, 368, 341, 286, 1077, 54660, 284, 78705, 486, 931, 7, 54911, 2648, 27638, 10050, 34837, 23, 77595, 2258, 5231, 286, 1077, 8606, 284, 330, 44322, 328, 1953, 58858, 43466, 91474, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_big_endian_deserialize_from_seed() { let mut config = config(); config.big_endian(); let data: Vec<_> = (10..100).collect(); let bytes = config.serialize(&data).expect("Config::serialize failed"); let mut seed_data: Vec<_> = (0..10).collect(); { let seed = Exten...
rust_cleaned_test_functions.jsonl/23836
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36386, 87193, 15768, 9050, 5673, 33809, 368, 341, 262, 1077, 5206, 2193, 284, 2193, 543, 262, 2193, 57678, 87193, 1428, 262, 1077, 821, 25, 11312, 32399, 29, 284, 320, 16, 15, 496, 16, 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_get_cb() { let mutex_map: Mutex<HashMap<u32, Box<dyn FnMut(u32) + Send>>> = Default::default(); assert!(get_cb(2123, &mutex_map).is_none()); let closure: Box<dyn FnMut(u32) + Send> = Box::new(move |_| {}); mutex_map.lock().unwrap().insert(2123, closure); ...
rust_cleaned_test_functions.jsonl/50407
{ "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, 3062, 16450, 368, 341, 286, 1077, 30863, 5376, 25, 66215, 95020, 34837, 18, 17, 11, 8261, 92846, 50182, 51440, 8154, 18, 17, 8, 488, 11000, 20154, 284, 7899, 486, 2258, 543, 286, 2060, 10297, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_emit_popq_reg() { assert_emit!(0x58; emit_popq_reg(RAX)); assert_emit!(0x5c; emit_popq_reg(RSP)); assert_emit!(0x41, 0x58; emit_popq_reg(R8)); assert_emit!(0x41, 0x5F; emit_popq_reg(R15)); }
rust_cleaned_test_functions.jsonl/85415
{ "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, 69082, 17061, 80, 4920, 368, 341, 286, 2060, 69082, 10297, 15, 87, 20, 23, 26, 16691, 17061, 80, 4920, 2785, 2954, 1106, 286, 2060, 69082, 10297, 15, 87, 20, 66, 26, 16691, 17061, 80, 4920, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_period_add() { let cases = vec![ (2, 222, 201808), (0, 222, 0), (196802, 14, 196904), (6901, 13, 207002), (7001, 13, 197102), (200212, 9223372036854775807, 200211), (9223372036854775807, 0, 27201459511), ...
rust_cleaned_test_functions.jsonl/36257
{ "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, 20818, 2891, 368, 341, 286, 1077, 5048, 284, 7486, 90515, 310, 320, 17, 11, 220, 17, 17, 17, 11, 220, 17, 15, 16, 23, 15, 23, 1326, 310, 320, 15, 11, 220, 17, 17, 17, 11, 220, 15, 1326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_instant_range() { let schemaReplicant = prepopulated_typed_schemaReplicant(MinkowskiValueType::Instant); let causetq = r#"[:find ?e :where [?e :foo/bar ?t] [(> ?t #inst "2017-06-16T00:56:41.257Z")]]"#; let SQLCausetQ { alle...
rust_cleaned_test_functions.jsonl/90729
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 373 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 4706, 9698, 368, 341, 262, 1077, 10802, 18327, 35237, 284, 855, 8374, 7757, 528, 32501, 25371, 18327, 35237, 3189, 766, 28284, 60897, 486, 30340, 317, 262, 1077, 2162, 18187, 80, 284, 435, 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_covariance_is_symmetric() { let data_a = &testing::load_data("nist/lottery.txt")[0..200]; let data_b = &testing::load_data("nist/lew.txt")[0..200]; assert_almost_eq!(data_a.covariance(data_b), data_b.covariance(data_a), 1e-10); assert_almost_eq!(data_a.population_...
rust_cleaned_test_functions.jsonl/55248
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 193 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 50028, 36905, 6892, 26825, 15903, 368, 341, 286, 1077, 821, 4306, 284, 609, 8840, 486, 1078, 1769, 445, 64759, 14, 9184, 17615, 3909, 17135, 15, 496, 17, 15, 15, 935, 286, 1077, 821, 880, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_illegal_timestamp() { let signer = ValidatorSigner::random(None); let block_store = build_empty_tree(); let genesis = block_store.root(); let block_with_illegal_timestamp = Block::<Vec<usize>>::new_proposal( vec![], 0, genesis.timestamp_usecs(), ...
rust_cleaned_test_functions.jsonl/50988
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 216 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26743, 6428, 23073, 368, 341, 262, 1077, 70039, 284, 32566, 7264, 261, 486, 11463, 26717, 317, 262, 1077, 2504, 14809, 284, 1936, 15124, 11663, 543, 262, 1077, 59366, 284, 2504, 14809, 12576, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_reset_untracked_in_subdir() { let (_td, repo) = repo_init().unwrap(); let root = repo.path().parent().unwrap(); let repo_path = root.as_os_str().to_str().unwrap(); { fs::create_dir(&root.join("foo")).unwrap(); File::create(&root.join("foo/...
rust_cleaned_test_functions.jsonl/82913
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 371 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18983, 4907, 58381, 1243, 5228, 3741, 368, 341, 286, 1077, 5453, 1296, 11, 15867, 8, 284, 15867, 6137, 1005, 15454, 543, 286, 1077, 3704, 284, 15867, 3875, 1005, 3765, 1005, 15454, 543, 286, 1077,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_split_off_empty() { let orig = "Hello, world!"; let mut split = String::from(orig); let empty: String = split.split_off(orig.len()); assert!(empty.is_empty()); }
rust_cleaned_test_functions.jsonl/3168
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 82 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 13651, 15124, 368, 341, 262, 1077, 2713, 284, 330, 9707, 11, 1879, 26782, 262, 1077, 5206, 6718, 284, 923, 486, 1499, 54837, 317, 262, 1077, 4287, 25, 923, 284, 6718, 5289, 13651, 54837, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_with_existing_lifetime_name_conflict() { check_assist( introduce_named_lifetime, r#"impl<'a, 'b> Cursor<'a, 'b, '_<|>>"#, r#"impl<'a, 'b, 'c> Cursor<'a, 'b, 'c>"#, ); }
rust_cleaned_test_functions.jsonl/109555
{ "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, 6615, 62630, 98827, 1269, 16059, 21242, 368, 341, 286, 1779, 12083, 380, 1006, 310, 19131, 71834, 98827, 345, 310, 435, 55543, 6383, 18291, 64, 11, 364, 65, 29, 28067, 18291, 64, 11, 364, 65, 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_pub_comp() { let mut data = bm(&[0b01110000, 0b00000010, 0, 10]); match decode(&mut data) { Ok(Some(Packet::Pubcomp(a))) => assert_eq!(a.get(), 10), other => panic!("Failed decode: {:?}", other), }; }
rust_cleaned_test_functions.jsonl/95622
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34014, 18177, 368, 341, 262, 1077, 5206, 821, 284, 34868, 2099, 58, 15, 65, 15, 16, 16, 16, 15, 15, 15, 15, 11, 220, 15, 65, 15, 15, 15, 15, 15, 15, 16, 15, 11, 220, 15, 11, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_set_reputation() { let mut pdb = get_db(); let random_peer = PeerId::random(); pdb.connect_ingoing(&random_peer); let mut rep = Rep::min_value(); pdb.set_reputation(&random_peer, rep); assert_eq!(pdb.reputation(&random_peer), rep); rep = ...
rust_cleaned_test_functions.jsonl/55881
{ "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, 2602, 1288, 13320, 368, 341, 286, 1077, 5206, 47984, 284, 633, 8685, 543, 286, 1077, 4194, 45159, 284, 45147, 764, 486, 11463, 543, 286, 47984, 10800, 62, 27908, 287, 2099, 11463, 45159, 626, 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_start_mining() { new_test_ext().execute_with(|| { set_block_1(); assert_ok!(PhalaStakePool::create(Origin::signed(1))); // Cannot start mining wihtout a bound worker assert_noop!( PhalaStakePool::start_mining(Origin::signed(1), 0, worker_pubkey(1), 0), Error::<Test>:...
rust_cleaned_test_functions.jsonl/60460
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 649 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4906, 717, 5740, 368, 341, 298, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 571, 8196, 7113, 62, 16, 543, 571, 6948, 19817, 10297, 3357, 6053, 623, 726, 10551, 486, 3182, 7, 13298, 486, 221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_state() { let encoded = [ 120u8, 156, 243, 72, 205, 201, 201, 215, 81, 168, 202, 201, 76, 82, 4, 0, 27, 101, 4, 19, ]; let mut out = vec![0; 50]; let mut state = InflateState::new_boxed(DataFormat::Zlib); let res = inflate(&mut stat...
rust_cleaned_test_functions.jsonl/102165
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 991 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4387, 368, 341, 286, 1077, 20498, 284, 2278, 310, 220, 16, 17, 15, 84, 23, 11, 220, 16, 20, 21, 11, 220, 17, 19, 18, 11, 220, 22, 17, 11, 220, 17, 15, 20, 11, 220, 17, 15, 16, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_query_captures_with_text_conditions() { allocations::record(|| { let language = get_language("javascript"); let query = Query::new( language, r#" ((identifier) @constant (#match? @constant "^[A-Z]{2,}$")) ((identi...
rust_cleaned_test_functions.jsonl/25185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 844 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5738, 666, 2689, 1413, 6615, 4326, 54099, 368, 341, 262, 69642, 486, 8548, 79453, 341, 286, 1077, 4128, 284, 633, 29021, 445, 14073, 797, 286, 1077, 3239, 284, 11361, 486, 931, 1006, 310, 4128, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_same_file_stem() { let file = PathBuf::from("randomtemp"); let file_ext = PathBuf::from("randomtemp.exe"); let no_file: Option<&PathBuf> = None; assert_eq!(is_same_file_stem(Some(&file), Some(&file_ext)), true); assert_eq!(is_same_file_stem(Some(&file)...
rust_cleaned_test_functions.jsonl/18999
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 192 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6892, 33574, 2458, 1261, 336, 368, 341, 286, 1077, 1034, 284, 7933, 15064, 486, 1499, 445, 11463, 3888, 797, 286, 1077, 1034, 9927, 284, 7933, 15064, 486, 1499, 445, 11463, 3888, 19399, 797, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mvi_l() { let mut state = State8080::empty_state(); state.memory = vec![0x2e, 0xf4]; state.l = 0; emulate_8080_op(&mut state); assert_eq!(state.l, 0xf4); }
rust_cleaned_test_functions.jsonl/7762
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 122 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 9971, 907, 368, 341, 286, 1077, 5206, 1584, 284, 3234, 23, 15, 23, 15, 486, 3194, 4387, 543, 286, 1584, 36611, 284, 7486, 20703, 15, 87, 17, 68, 11, 220, 15, 5848, 19, 935, 286, 1584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_getkeypair() -> Result<(), Box<dyn std::error::Error>> { let mut cmd = Command::cargo_bin(BIN_NAME)?; cmd.arg("getkeypair") .arg("tests/samples/tmp.json") .arg("ghost frost pool buzz rival mad naive rare shell tooth smart praise"); cmd.assert() .success() ...
rust_cleaned_test_functions.jsonl/118318
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 243 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 792, 12670, 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, 455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_btf_type_func_var() { let endianness = Endianness::default(); // NOTE: There was no data in /sys/kernell/btf/vmlinux for this type let data: &[u8] = &[ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0...
rust_cleaned_test_functions.jsonl/98499
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 312 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6443, 880, 8935, 1819, 9596, 4612, 368, 341, 286, 1077, 835, 72, 82033, 284, 3972, 72, 82033, 486, 2258, 543, 286, 442, 16743, 25, 2619, 572, 902, 821, 304, 608, 7791, 14109, 932, 613, 3470, 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...
2
#[test] fn test_nested_for() { let alpha = vec!["a", "b", "c"]; let numbers = vec!["one", "two"]; let s = NestedForTemplate { seqs: vec![&alpha, &numbers], }; assert_eq!(s.render().unwrap(), "1\n 0a1b2c2\n 0one1two"); }
rust_cleaned_test_functions.jsonl/24290
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 131 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 66279, 5478, 368, 341, 262, 1077, 8287, 284, 7486, 0, 1183, 64, 497, 330, 65, 497, 330, 66, 6332, 262, 1077, 5109, 284, 7486, 0, 1183, 603, 497, 330, 19789, 6332, 262, 1077, 274, 284, 71742, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_split_merge_qr() { let mut rng = rand::thread_rng(); let random_bytes: Vec<u8> = (0..4000).map(|_| rand::random::<u8>()).collect(); for _ in 0..1_000 { let len = rng.gen_range(100, 4000); let ver = rng.gen_range(10, 20); let da...
rust_cleaned_test_functions.jsonl/81036
{ "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, 17052, 20888, 8976, 81, 368, 341, 1789, 286, 1077, 5206, 28422, 284, 10382, 486, 4528, 66849, 543, 286, 1077, 4194, 12524, 25, 11312, 34837, 23, 29, 284, 320, 15, 496, 19, 15, 15, 15, 568, 218...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_get_nth_address_in_network4() { assert_eq!( get_nth_address_in_network4(1, 24, &Ipv4Addr::new(10, 0, 0, 0)), Ipv4Addr::new(10, 0, 0, 1) ); assert_eq!( get_nth_address_in_network4(255, 24, &Ipv4Addr::new(10, 0, 0, 0)), Ipv4Addr::new(10, 0, 0, 255) )...
rust_cleaned_test_functions.jsonl/105528
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 353 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3062, 78342, 6744, 1243, 20966, 19, 368, 341, 262, 2060, 10714, 33673, 286, 633, 78342, 6744, 1243, 20966, 19, 7, 16, 11, 220, 17, 19, 11, 609, 80656, 19, 13986, 486, 931, 7, 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_range_included_set() { let mut set = BTreeSet::<i64>::new(); set.extend(&[1, 2, 6]); assert_eq!(range_included(RangeInclusive::new(0, 0), &set), false); assert_eq!(range_included(RangeInclusive::new(1, 1), &set), true); assert_eq!(range_included(RangeIncl...
rust_cleaned_test_functions.jsonl/120761
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 565 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9698, 1243, 10181, 2602, 368, 341, 286, 1077, 5206, 738, 284, 425, 6533, 1649, 27638, 72, 21, 19, 6831, 931, 543, 286, 738, 15831, 2099, 58, 16, 11, 220, 17, 11, 220, 21, 10149, 286, 2060, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_min_commit_ts() { let engine = TestEngineBuilder::new().build().unwrap(); let (k, v) = (b"k", b"v"); // Shortcuts let ts = TimeStamp::compose; let uncommitted = super::TxnStatus::uncommitted; must_prewrite_put_for_large_txn(&engine, k, v, k, ts(...
rust_cleaned_test_functions.jsonl/61087
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 622 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7260, 36346, 25023, 368, 341, 286, 1077, 4712, 284, 3393, 4571, 3297, 486, 931, 1005, 5834, 1005, 15454, 1428, 286, 1077, 320, 74, 11, 348, 8, 284, 320, 65, 62911, 497, 293, 1, 85, 3071, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vertex_attr_array() { let attrs = vertex_attr_array![0 => Float32x2, 3 => Uint16x4]; assert_eq!(attrs.len(), 2); assert_eq!(attrs[0].offset, 0); assert_eq!(attrs[0].shader_location, 0); assert_eq!(attrs[1].offset, std::mem::size_of::<(f32, f32)>() as u64); assert_eq!...
rust_cleaned_test_functions.jsonl/39476
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 173 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26611, 10422, 3858, 368, 341, 262, 1077, 16204, 284, 11936, 10422, 3858, 20703, 15, 589, 13001, 18, 17, 87, 17, 11, 220, 18, 589, 27883, 16, 21, 87, 19, 935, 1066, 262, 2060, 10714, 10297, 204...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_split() { let mut input0 = Number::Regular(10); assert!(input0.split()); assert_eq!(input0, Number::new("[5,5]")); let mut input1 = Number::Regular(11); assert!(input1.split()); assert_eq!(input1, Number::new("[5,6]")); let mut input2 = N...
rust_cleaned_test_functions.jsonl/100421
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 208 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 368, 341, 286, 1077, 5206, 1946, 15, 284, 5624, 486, 30404, 7, 16, 15, 317, 286, 2060, 10297, 1355, 15, 5289, 1423, 286, 2060, 10714, 10297, 1355, 15, 11, 5624, 486, 931, 10937, 20, 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_feature_gate() { let cfg = CdcConfig { min_ts_interval: ReadableDuration(Duration::from_secs(60)), ..Default::default() }; let mut suite = mock_endpoint(&cfg, None); suite.add_region(1, 100); let quota = crate::channel::MemoryQuota...
rust_cleaned_test_functions.jsonl/29098
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2664 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17069, 54798, 368, 341, 286, 1077, 13286, 284, 356, 7628, 2648, 341, 310, 1308, 25023, 20541, 25, 4457, 480, 12945, 64114, 486, 1499, 68718, 7, 21, 15, 6965, 310, 5241, 3675, 486, 2258, 741, 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...
6
#[test] fn test_truncated_middle_of_length_delimited() { // 03 is length 3 let bytes = decode_hex("0a 03 10"); let r = TestTruncated::parse_from_bytes(&bytes); assert!(r.is_err()); }
rust_cleaned_test_functions.jsonl/2721
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 94 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3547, 38007, 62580, 3575, 5118, 18029, 31511, 368, 341, 1066, 262, 442, 220, 15, 18, 374, 3084, 220, 18, 198, 262, 1077, 5820, 284, 16895, 32655, 445, 15, 64, 220, 15, 18, 220, 16, 15, 797, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_distinct_all_fixed_colors() { let colors = [Color::red(), Color::olive(), Color::yellow()]; let mut sim = SimulatedAnnealing::with_rng( &colors, SimulationParameters { initial_temperature: 3.0, cooling_rate: 0.95, ...
rust_cleaned_test_functions.jsonl/24386
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 425 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16031, 7800, 5705, 37839, 33670, 368, 341, 286, 1077, 7987, 284, 508, 1636, 486, 1151, 1507, 3478, 486, 337, 533, 1507, 3478, 486, 27869, 368, 4821, 286, 1077, 5206, 1643, 284, 4467, 7757, 77939, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_wallet_deploy() { let client = TestClient::new(); let version = client.request_json("version", Value::Null).unwrap(); println!("result: {}", version.to_string()); let keys = client.request_json("crypto.ed25519.keypair", json!({})).unwrap(); let abi: Value = serde_json::from...
rust_cleaned_test_functions.jsonl/69934
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1170 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62308, 91890, 368, 341, 262, 1077, 2943, 284, 3393, 2959, 486, 931, 543, 262, 1077, 2319, 284, 2943, 8223, 9455, 445, 4366, 497, 5162, 486, 3280, 568, 15454, 543, 262, 13751, 17223, 1382, 25, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fuse_fold() { let xs = [0, 1, 2]; let it = xs.iter(); // `FusedIterator` let i = it.fuse().fold(0, |i, &x| { assert_eq!(x, xs[i]); i + 1 }); assert_eq!(i, xs.len()); let it = xs.iter(); // `FusedIterator` let i = it.fuse().rfold(xs.len(), |i, &x| { ...
rust_cleaned_test_functions.jsonl/54177
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 331 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 761, 810, 61187, 368, 341, 262, 1077, 11943, 284, 508, 15, 11, 220, 16, 11, 220, 17, 935, 262, 1077, 432, 284, 11943, 19471, 2129, 442, 1565, 37, 2591, 11951, 3989, 262, 1077, 600, 284, 432, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_context_reset() { let mut ctx = Context::new(Flag::VITERBI | Flag::MARGINALS, 2, 0); ctx.reset(Reset::STATE); ctx.reset(Reset::TRANS); ctx.reset(Reset::STATE | Reset::TRANS); }
rust_cleaned_test_functions.jsonl/45715
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 119 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8467, 18983, 368, 341, 286, 1077, 5206, 5635, 284, 9608, 486, 931, 7, 12135, 486, 53, 24733, 8598, 760, 22666, 486, 44, 7581, 29446, 50, 11, 220, 17, 11, 220, 15, 317, 286, 5635, 13857, 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_invert_changes_inner() { let user_1 = String::from("test user"); let user_2 = String::from("prev user"); let source = change_msg::ChangeSource::Undo(String::from("test event")); let obj_1 = String::from("obj_1"); let obj_2 = String::from("obj_2"); ...
rust_cleaned_test_functions.jsonl/21384
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1830 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1243, 1621, 47526, 34345, 368, 341, 286, 1077, 1196, 62, 16, 284, 923, 486, 1499, 445, 1944, 1196, 797, 286, 1077, 1196, 62, 17, 284, 923, 486, 1499, 445, 9883, 1196, 797, 286, 1077, 2530, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_symlink_dangling_directory() { let (at, mut ucmd) = at_and_ucmd!(); let dir = "test_symlink_dangling_dir"; let link = "test_symlink_dangling_dir_link"; ucmd.args(&["-s", dir, link]).succeeds().no_stderr(); assert!(!at.dir_exists(dir)); assert!(at.is_symlink(link)); a...
rust_cleaned_test_functions.jsonl/4880
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 169 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 58530, 44243, 814, 90104, 14846, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 262, 1077, 5419, 284, 330, 1944, 58530, 44243, 814, 90104, 4334, 876,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_network_key_rotation_recovery() { let num_nodes = 4; let (mut env, op_tool, backend, mut storage) = launch_swarm_with_op_tool_and_backend(num_nodes, 0); // Rotate the network key in storage manually and perform a key rotation using the op_tool. let rotated_netw...
rust_cleaned_test_functions.jsonl/64968
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 703 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 20966, 3097, 44813, 91475, 368, 341, 262, 1077, 1629, 14896, 284, 220, 19, 280, 262, 1077, 320, 6984, 6105, 11, 1179, 22785, 11, 19163, 11, 5206, 5819, 8, 4035, 286, 7050, 32581, 2178, 6615, 102...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mutable_freeze() { let mut buf = MutableBuffer::new(1); buf.write("aaaa bbbb cccc dddd".as_bytes()) .expect("write should be OK"); assert_eq!(19, buf.len()); assert_eq!(64, buf.capacity()); assert_eq!("aaaa bbbb cccc dddd".as_bytes(), buf.data(...
rust_cleaned_test_functions.jsonl/47256
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 258 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 5922, 8905, 2986, 368, 341, 286, 1077, 5206, 6607, 284, 31143, 4095, 486, 931, 7, 16, 317, 286, 6607, 3836, 445, 28458, 293, 53151, 272, 37054, 294, 40360, 3263, 300, 12524, 2398, 310, 659,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_install_override_commit_hash() { let dir = tempfile::tempdir().unwrap(); let status = command(&dir).arg("init").status().unwrap(); assert!(status.success()); assert!(dir.path().join(".protovend.yml").exists()); let status = command(&dir) .arg("add") .arg("h...
rust_cleaned_test_functions.jsonl/11211
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1235 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34245, 48576, 36346, 8950, 368, 341, 262, 1077, 5419, 284, 54819, 486, 3888, 3741, 1005, 15454, 1428, 262, 1077, 2639, 284, 3210, 2099, 3741, 568, 858, 445, 2327, 1827, 2829, 1005, 15454, 1428, 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_timestamps() { [ ( b"\xc1\x1a\x51\x4b\x67\xb0".as_ref(), DateTime::parse_from_rfc3339("2013-03-21T20:04:00+00:00").unwrap(), ), ( b"\xc1\xfb\x41\xd4\x52\xd9\xec\x20\x00\x00".as_ref(), DateTime::parse_from_rfc3339("2013-0...
rust_cleaned_test_functions.jsonl/62587
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 337 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23073, 82, 368, 341, 262, 2278, 286, 2399, 310, 293, 11934, 8148, 16, 3462, 16, 64, 3462, 20, 16, 3462, 19, 65, 3462, 21, 22, 47759, 15, 3263, 300, 7793, 3148, 310, 6520, 486, 6400, 5673, 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_rpc_get_max_slots() { let rpc = RpcHandler::start(); rpc.max_slots.retransmit.store(42, Ordering::Relaxed); rpc.max_slots.shred_insert.store(43, Ordering::Relaxed); let request = create_test_request("getMaxRetransmitSlot", None); let result: Slot = parse_...
rust_cleaned_test_functions.jsonl/6323
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 257 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 60799, 3062, 6345, 54161, 368, 341, 286, 1077, 35596, 284, 79961, 3050, 486, 2468, 543, 286, 35596, 6678, 54161, 1327, 1458, 1763, 16114, 7, 19, 17, 11, 68621, 486, 6740, 51451, 317, 286, 35596, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_hex_dynamic_suffix_length() { let (at, mut ucmd) = at_and_ucmd!(); // instead of letters as file suffixes. // enough to force `split` to dynamically increase the length of // the filename for the very last chunk. ucmd.args(&["-x", "-b", "1", "two...
rust_cleaned_test_functions.jsonl/25868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 266 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32655, 45992, 37151, 5118, 368, 341, 262, 1077, 320, 266, 11, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 543, 1066, 262, 442, 4518, 315, 11931, 438, 1034, 20525, 288, 624, 9401, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_mobi_metadata() { let mut reader = book::u8_reader(book::full_book()); assert!(MobiMetadata::from_reader(&mut reader).is_ok()); }
rust_cleaned_test_functions.jsonl/65769
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 76 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 18337, 22220, 368, 341, 286, 1077, 5206, 6604, 284, 2311, 486, 84, 23, 22306, 33130, 486, 8878, 26421, 1423, 286, 2060, 10297, 44, 18337, 14610, 486, 1499, 22306, 2099, 6984, 6604, 568, 285, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_marshal_parse() { // Test various combinations of parsing and serializing keys. // Since we need to test dynamic parsing (the // parse_private_key_der_any_curve and parse_public_key_der_any_curve // it. fn test< ...
rust_cleaned_test_functions.jsonl/51190
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2356 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 28423, 21039, 368, 341, 286, 442, 3393, 5257, 27459, 315, 22314, 323, 6146, 4849, 6894, 624, 1789, 286, 442, 8704, 582, 1184, 311, 1273, 8741, 22314, 320, 1782, 198, 286, 442, 4715, 26249, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_syntax_violation_callback() { use url::SyntaxViolation::*; let violation = Cell::new(None); let url = Url::options() .syntax_violation_callback(Some(&|v| violation.set(Some(v)))) .parse("http:////mozilla.org:42").unwrap(); assert_eq!(url.port(), Some(42)); le...
rust_cleaned_test_functions.jsonl/63969
{ "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, 78894, 2273, 24903, 367, 12519, 368, 341, 262, 990, 2515, 486, 33890, 74971, 56162, 262, 1077, 19940, 284, 13972, 486, 931, 26717, 317, 262, 1077, 2515, 284, 22840, 486, 2875, 741, 286, 659, 56193...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_compaction() { assert!(RGB::new(0xff, 0xff, 0xff).is_compactable()); assert!(RGB::new(0xee, 0xee, 0xee).is_compactable()); assert!(RGB::new(0x00, 0x00, 0x00).is_compactable()); assert!(!RGB::new(0xf7, 0xf7, 0xf7).is_compactable()); assert!(!RGB::new(0xff, 0xf7, 0xff).is_compa...
rust_cleaned_test_functions.jsonl/13099
{ "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, 18177, 1311, 368, 341, 262, 2060, 10297, 18184, 486, 931, 7, 15, 9020, 11, 220, 15, 9020, 11, 220, 15, 9020, 568, 285, 18177, 66660, 1423, 262, 2060, 10297, 18184, 486, 931, 7, 15, 50138, 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_contract_protocol_list() { use std::collections::HashSet; use super::contract_protocol_list; { let mut versions = HashSet::<Version>::new(); assert_eq!(String::from(""), contract_protocol_list(&versions)); versions.insert(1); ...
rust_cleaned_test_functions.jsonl/15616
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 912 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 51499, 34880, 2019, 368, 341, 286, 990, 1460, 486, 51137, 486, 44601, 280, 286, 990, 2256, 486, 20257, 34880, 2019, 401, 286, 341, 310, 1077, 5206, 10795, 284, 18931, 27638, 5637, 6831, 931, 543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1