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_insert_equals() { let mut cl = Cmdline::new(100); assert_eq!(cl.insert("a=", "b"), Err(Error::HasEquals)); assert_eq!(cl.insert("a", "b="), Err(Error::HasEquals)); assert_eq!(cl.insert("a=", "b "), Err(Error::HasEquals)); assert_eq!(cl.insert("=a", "b"), E...
rust_cleaned_test_functions.jsonl/29215
{ "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, 17678, 61664, 368, 341, 286, 1077, 5206, 1185, 284, 40210, 1056, 486, 931, 7, 16, 15, 15, 317, 286, 2060, 10714, 10297, 564, 7030, 445, 64, 21369, 330, 65, 3975, 15495, 37396, 486, 10281, 4315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_guild_channel_guild_id() { assert_eq!( GuildChannel::Category(guild_category()).guild_id(), Some(GuildId(321)) ); assert_eq!( GuildChannel::Text(guild_text()).guild_id(), Some(GuildId(321)) ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/54433
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 310 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 1498, 14571, 1889, 1498, 842, 368, 341, 286, 2060, 10714, 33673, 310, 32492, 9629, 486, 6746, 92103, 11847, 6011, 57877, 842, 3148, 310, 4329, 6699, 1498, 764, 7, 18, 17, 16, 1171, 286, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_fuel_required() { assert_eq!(fuel_required(12), 2); assert_eq!(fuel_required(14), 2); assert_eq!(fuel_required(1969), 654); assert_eq!(fuel_required(100_756), 33_583); }
rust_cleaned_test_functions.jsonl/37466
{ "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, 761, 4000, 18743, 368, 341, 286, 2060, 10714, 10297, 63375, 18743, 7, 16, 17, 701, 220, 17, 317, 286, 2060, 10714, 10297, 63375, 18743, 7, 16, 19, 701, 220, 17, 317, 286, 2060, 10714, 10297, 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_rw() { let e: Element = Element::parse(File::open("tests/data/rw.xml").unwrap()).unwrap(); let mut buf = Vec::new(); e.write(&mut buf); let e2 = Element::parse(Cursor::new(buf)).unwrap(); assert_eq!(e, e2); }
rust_cleaned_test_functions.jsonl/15711
{ "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, 49566, 368, 1476, 262, 1077, 384, 25, 8543, 284, 8543, 486, 6400, 19821, 486, 2508, 445, 23841, 13167, 7382, 86, 9028, 1827, 15454, 6011, 15454, 1428, 262, 1077, 5206, 6607, 284, 11312, 486, 931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mov_reg_memindex() { assert_emit!(0x48, 0x89, 0x54, 0x88, 0x0c; emit_mov_reg_memindex(MachineMode::Ptr, RDX, RAX, RCX, 4, 12)); assert_emit!(0x89, 0x54, 0x88, 0x0c; emit_mov_reg_memindex(MachineMode::Int32, RDX, RAX, RCX, 4, 12)); assert_emit!(0x88...
rust_cleaned_test_functions.jsonl/85480
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 323 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55798, 4920, 12976, 1252, 368, 341, 286, 2060, 69082, 10297, 15, 87, 19, 23, 11, 220, 15, 87, 23, 24, 11, 220, 15, 87, 20, 19, 11, 220, 15, 87, 23, 23, 11, 220, 15, 87, 15, 66, 280, 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_column_writer_small_write_batch_size() { for i in vec![1, 2, 5, 10, 11, 1023] { let props = WriterProperties::builder().set_write_batch_size(i).build(); column_roundtrip_random::<Int32Type>( "test_col_writer_rnd_5", props, ...
rust_cleaned_test_functions.jsonl/30537
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 287 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8744, 28908, 31966, 9165, 14534, 2368, 368, 341, 286, 369, 600, 304, 7486, 20703, 16, 11, 220, 17, 11, 220, 20, 11, 220, 16, 15, 11, 220, 16, 16, 11, 220, 16, 15, 17, 18, 60, 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_cli_deploy() { solana_logger::setup(); let mut pathbuf = PathBuf::from(env!("CARGO_MANIFEST_DIR")); pathbuf.push("tests"); pathbuf.push("fixtures"); pathbuf.push("noop"); pathbuf.set_extension("so"); // Success case let mut config ...
rust_cleaned_test_functions.jsonl/30955
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 852 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 47147, 91890, 368, 341, 286, 2048, 3362, 27413, 486, 15188, 543, 286, 1077, 5206, 1815, 5909, 284, 7933, 15064, 486, 1499, 16978, 17223, 34, 7581, 46, 25143, 91120, 8291, 4010, 286, 1815, 5909, 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_parse_url() { let re = ResourceDef::new("/user/{id}/test"); let url = Uri::try_from("/user/2345/test").unwrap(); let mut path = Path::new(Url::new(url)); assert!(re.match_path(&mut path)); assert_eq!(path.get("id").unwrap(), "2345"); let url = Ur...
rust_cleaned_test_functions.jsonl/12756
{ "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, 21039, 2903, 368, 341, 286, 1077, 312, 284, 11765, 2620, 486, 931, 4283, 872, 9388, 307, 4472, 1944, 3071, 286, 1077, 2515, 284, 17226, 486, 1539, 5673, 4283, 872, 14, 17, 18, 19, 20, 12697, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_raw_string() { let r = Registry::new(); let mut sw = StringWriter::new(); let mut ctx = Context::null(); let mut hlps = HashMap::new(); { let mut rc = RenderContext::new(&mut ctx, &mut hlps, &mut sw); let raw_string = RawString("<h1>hello world</h1>".to_string...
rust_cleaned_test_functions.jsonl/21861
{ "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, 16067, 3904, 368, 341, 262, 1077, 435, 284, 32112, 486, 931, 543, 262, 1077, 5206, 2021, 284, 84787, 486, 931, 543, 262, 1077, 5206, 5635, 284, 9608, 486, 2921, 543, 262, 1077, 5206, 49586, 1690...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_query() { use crate::*; let string = "2020-01-01 02:02:02 +0800"; let timestamp = OffsetDateTime::parse(string, "%Y-%m-%d %H:%M:%S %z").unwrap(); let query = Query::select().expr(Expr::val(timestamp)).to_owned(); let formatted = "2020-01-01 02:02:0...
rust_cleaned_test_functions.jsonl/12494
{ "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, 3009, 5738, 368, 341, 286, 990, 17717, 79304, 286, 1077, 914, 284, 330, 17, 15, 17, 15, 12, 15, 16, 12, 15, 16, 220, 15, 17, 25, 15, 17, 25, 15, 17, 488, 15, 23, 15, 15, 876, 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_arc_cyclic_two_refs() { struct TwoRefs { inner1: Weak<TwoRefs>, inner2: Weak<TwoRefs>, } let two_refs = Arc::new_cyclic(|inner| { assert_eq!(inner.strong_count(), 0); assert!(inner.upgrade().is_none()); let inner1 = inner.clone(); let ...
rust_cleaned_test_functions.jsonl/42737
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 385 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 62914, 666, 65304, 23241, 60638, 368, 341, 262, 2036, 9043, 82807, 341, 286, 9179, 16, 25, 41164, 3125, 1126, 82807, 12520, 286, 9179, 17, 25, 41164, 3125, 1126, 82807, 12520, 262, 456, 262, 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_mat_times_identity_equals_mat() { test_cases().iter().for_each(|test| { let a_mat_times_identity = test.a_mat * Matrix2x2::identity(); let b_mat_times_identity = test.b_mat * Matrix2x2::identity(); assert_eq!(a_mat_times_identity, test.a_mat); ...
rust_cleaned_test_functions.jsonl/128956
{ "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, 16610, 22353, 46244, 61664, 16610, 368, 341, 286, 1273, 41427, 1005, 2015, 1005, 1958, 32046, 22428, 1944, 91, 341, 310, 1077, 264, 16610, 22353, 46244, 284, 1273, 5849, 16610, 353, 11631, 17, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_multiply_with_monic_monomial() { // 9 + 2x + 75x^2 + 128x^3 let orig = UnivarPolynomial(FieldElementVector::from(vec![ FieldElement::from(9u64), FieldElement::from(2u64), FieldElement::from(75u64), FieldElement::from(128u64), ...
rust_cleaned_test_functions.jsonl/51319
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1413 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 93054, 6615, 717, 14011, 717, 14274, 530, 368, 341, 286, 442, 220, 24, 488, 220, 17, 87, 488, 220, 22, 20, 87, 61, 17, 488, 220, 16, 17, 23, 87, 61, 18, 198, 286, 1077, 2713, 284, 1230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_where_predicates() { fn assert_bound(text: &str, bound: Option<TypeBound>) { assert_eq!(text, bound.unwrap().syntax().text().to_string()); } let file = SourceFile::parse( r#" fn foo() where T: Clone + Copy + Debug + 'static, 'a: 'b + 'c, Iterator::Item: 'a +...
rust_cleaned_test_functions.jsonl/101453
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 860 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36814, 12830, 24821, 368, 341, 262, 5168, 2060, 19447, 7235, 25, 609, 495, 11, 6822, 25, 6959, 35506, 19568, 9231, 341, 286, 2060, 10714, 10297, 1318, 11, 6822, 55395, 1005, 56193, 1005, 1318, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_generate_enum_is_from_record_variant() { check_assist( generate_enum_is_method, r#" enum Variant { Undefined, Minor { foo: i32 }$0, Major, }"#, r#"enum Variant { Undefined, Minor { foo: i32 }, Major, } impl Variant { /// Re...
rust_cleaned_test_functions.jsonl/117715
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 264 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48851, 31054, 6892, 5673, 14192, 46112, 368, 341, 286, 1779, 12083, 380, 1006, 310, 6923, 31054, 6892, 9032, 345, 310, 435, 2, 698, 9018, 39292, 341, 262, 62370, 345, 262, 29793, 314, 15229, 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_method_attr_filtering() { check_ref_completion( "method_attr_filtering", r" struct A {} impl A { #[inline] fn the_method(&self) { let x = 1; let y = 2; ...
rust_cleaned_test_functions.jsonl/53647
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 304 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9032, 10422, 8727, 287, 368, 341, 286, 1779, 7793, 60164, 1006, 310, 330, 4393, 10422, 8727, 287, 756, 310, 435, 698, 310, 2036, 362, 5613, 310, 11605, 362, 341, 394, 11506, 5057, 921, 394, 5168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_encoder_single_peer() { let packet_size: u16 = 1280; let data_size: usize = packet_size as usize * MAX_SYMBOLS_IN_BLOCK as usize; let data = gen_data(data_size); let encoder = match BlockEncoder::new(0, packet_size, data.clone(), None) { Ok(succ) => succ, E...
rust_cleaned_test_functions.jsonl/96423
{ "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, 7113, 39068, 19487, 45159, 368, 341, 262, 1077, 10151, 2368, 25, 575, 16, 21, 284, 220, 16, 17, 23, 15, 280, 262, 1077, 821, 2368, 25, 22301, 284, 10151, 2368, 438, 22301, 353, 8334, 23598, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_conformance() { let mut s1 = super::Strobe128::new(b"Conformance Test Protocol"); let mut s2 = strobe_rs::Strobe::new(b"Conformance Test Protocol".to_vec(), SecParam::B128); let msg = vec![99; 1024]; s1.meta_ad(b"ms", false); s1.meta_ad(b"g", t...
rust_cleaned_test_functions.jsonl/90686
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 684 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3382, 11795, 368, 341, 286, 1077, 5206, 274, 16, 284, 2256, 486, 623, 32836, 16, 17, 23, 486, 931, 1883, 1, 1109, 11795, 3393, 24572, 797, 286, 1077, 5206, 274, 17, 284, 30411, 1371, 47115, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_closure_on_error() { assert_eq!( eval_ok("{ undefined } onPanic: { |p| p description }").string_as_str(), "Unbound variable: undefined" ); }
rust_cleaned_test_functions.jsonl/15571
{ "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, 72823, 4470, 4096, 368, 341, 262, 2060, 10714, 33673, 286, 5603, 19817, 13976, 5614, 335, 389, 47, 31270, 25, 314, 760, 79, 91, 281, 4008, 335, 1827, 917, 11898, 2895, 3148, 286, 330, 1806, 1089...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_addition() { let five: Expression = Money::dollar(5).into(); let sum = &five + &five; let bank = Bank::new(); let reduced = bank.reduce(sum, Dollar.into()); assert_eq!(Money::dollar(10), reduced); }
rust_cleaned_test_functions.jsonl/115303
{ "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, 2891, 680, 368, 341, 286, 1077, 4236, 25, 16378, 284, 17633, 486, 67, 21295, 7, 20, 568, 18122, 543, 286, 1077, 2629, 284, 609, 52670, 488, 609, 52670, 280, 286, 1077, 6073, 284, 8547, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_service_payload() { let mut pld = BlePayload::new(); pld.add_service_payload([1, 2], &[2]); assert_eq!(pld.as_ref(), &[4, 0x16, 1, 2, 2]) }
rust_cleaned_test_functions.jsonl/46340
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 106 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 12267, 32813, 368, 341, 286, 1077, 5206, 281, 507, 284, 38185, 29683, 486, 931, 543, 286, 281, 507, 1364, 12267, 32813, 2561, 16, 11, 220, 17, 1125, 44590, 17, 2558, 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_tweak_screen_shot_markdown() { assert_eq!( tweak_screen_shot_markdown( "![Screen Shot 2020-04-17 at 23.47.53.png](quiver-image-url/2D544807186FF31F6EC294FBB17E3359.png =758x438)" ), "![](quiver-image-url/2D544807186FF31F6EC294FBB17E3359.png =758x438)" ...
rust_cleaned_test_functions.jsonl/105869
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 172 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 528, 13150, 17649, 81226, 18924, 2923, 368, 341, 262, 2060, 10714, 33673, 286, 51043, 17649, 81226, 18924, 2923, 1006, 310, 330, 20703, 7971, 32347, 220, 17, 15, 17, 15, 12, 15, 19, 12, 16, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_left_double() { assert_condition_false!("9.1# < 2.1"); assert_condition_false!("9.1# < 9.1"); assert_condition!("9.1# < 19.1"); assert_condition_false!("9.1# < 2"); assert_condition_false!("9.1# < 9"); assert_condition!("9....
rust_cleaned_test_functions.jsonl/22662
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 301 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9579, 24598, 368, 341, 310, 2060, 27656, 36015, 17223, 24, 13, 16, 2, 366, 220, 17, 13, 16, 797, 310, 2060, 27656, 36015, 17223, 24, 13, 16, 2, 366, 220, 24, 13, 16, 797, 310, 2060, 27656, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_timestamp() { let config: TestConfig = toml::from_str(TOML_TIMESTAMP_FORMAT).unwrap(); config.encoding.validate().unwrap(); let mut event = Event::from("Demo"); let timestamp = event .as_mut_log() .get(&event::log_schema().timestamp_key()) ...
rust_cleaned_test_functions.jsonl/30795
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 609 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23073, 368, 341, 286, 1077, 2193, 25, 3393, 2648, 284, 311, 1014, 486, 1499, 2895, 4140, 1898, 43, 47854, 14960, 568, 15454, 543, 286, 2193, 65118, 19520, 1005, 15454, 543, 286, 1077, 5206, 1538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_hardcoded_enum_deserialization() { // We are testing separately also hardcoded snapshot deserialization for enums // as these have a different behavior in terms of serialization/deserialization. #[rustfmt::skip] let v1_hardcoded_snapshot: &[u8] = &[ 0x00, 0x00, 0...
rust_cleaned_test_functions.jsonl/11256
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 819 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 77712, 65530, 31054, 15768, 50563, 368, 341, 262, 442, 1205, 525, 7497, 25156, 1083, 92959, 16295, 939, 50563, 369, 70717, 198, 262, 442, 438, 1493, 614, 264, 2155, 7709, 304, 3793, 315, 47443, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_rot13_all() { let plain = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; let encrypted = encrypt_rot13(plain); assert_eq!(encrypted, "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM"); let decrypted = decrypt_rot13(&encrypted); assert_eq!(...
rust_cleaned_test_functions.jsonl/8403
{ "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, 38256, 16, 18, 5705, 368, 341, 286, 1077, 14396, 284, 330, 67512, 75902, 876, 286, 1077, 24455, 284, 29625, 38256, 16, 18, 7, 20772, 626, 286, 2060, 10714, 10297, 36444, 11, 330, 62813, 64467, 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_behaviour_disconnect_one() { // use the dummy protocols handler. let handler_proto = DummyProtocolsHandler { keep_alive: KeepAlive::Yes, }; let mut swarm1 = new_test_swarm::<_, ()>(handler_proto.clone()); let mut swarm2 = new_test_swa...
rust_cleaned_test_functions.jsonl/32741
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1771 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 43241, 8897, 67972, 11667, 368, 341, 1789, 286, 442, 990, 279, 17292, 31785, 7013, 624, 286, 1077, 7013, 37689, 284, 50567, 12423, 22018, 3050, 341, 310, 2506, 58850, 25, 13655, 32637, 486, 9454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
#[test] fn test_new_master_req_handler() { let backend = Arc::new(Mutex::new(MockMasterReqHandler {})); let mut handler = MasterReqHandler::new(backend).unwrap(); assert!(handler.get_tx_raw_fd() >= 0); assert!(handler.as_raw_fd() >= 0); handler.check_state().unwrap(); ...
rust_cleaned_test_functions.jsonl/77507
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 229 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5921, 24582, 17644, 10183, 368, 341, 286, 1077, 19163, 284, 19689, 486, 931, 3189, 9371, 486, 931, 66436, 18041, 27234, 3050, 99007, 286, 1077, 5206, 7013, 284, 10824, 27234, 3050, 486, 931, 7, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_modulo_and_remainder() { let mut p = Polar::new(); qeval(&mut p, "1 mod 1 == 0"); qeval(&mut p, "1 rem 1 == 0"); qeval(&mut p, "1 mod -1 == 0"); qeval(&mut p, "1 rem -1 == 0"); qeval(&mut p, "0 mod 1 == 0"); qeval(&mut p, "0 rem 1 == 0"); qeval(&mut p, "0 mod -1 =...
rust_cleaned_test_functions.jsonl/97639
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 638 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7480, 8763, 8378, 86607, 1107, 368, 341, 262, 1077, 5206, 281, 284, 55896, 486, 931, 543, 262, 2804, 14170, 2099, 6984, 281, 11, 330, 16, 1463, 220, 16, 621, 220, 15, 797, 262, 2804, 14170, 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...
3
#[test] fn test_convert_pipe_expression() { let b = ast::BaseNode::default(); let pkg = parse_package( "f = (piped=<-, a) => a + piped 3 |> f(a: 2)", ); let want = Package { loc: b.location.clone(), package: "main".to_string(), ...
rust_cleaned_test_functions.jsonl/132524
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 3293 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 41862, 28068, 368, 341, 286, 1077, 293, 284, 11763, 486, 3978, 1955, 486, 2258, 543, 286, 1077, 24793, 284, 4715, 26328, 1006, 310, 330, 69, 284, 320, 79, 31721, 38698, 36519, 264, 8, 589...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_make_merge_desc_no_release_branch() { let desc = make_merge_desc( (String::from("Yay, I made a change (#99)"), String::from("")), "abcdef", 99, "other_branch", "source_branch", "release/", ); assert_...
rust_cleaned_test_functions.jsonl/93153
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 245 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 20888, 10986, 6536, 24577, 28031, 368, 341, 286, 1077, 6560, 284, 1281, 20888, 10986, 1006, 310, 320, 703, 486, 1499, 445, 56, 352, 11, 358, 1865, 264, 2297, 29083, 24, 24, 8, 3975, 923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_active_scan_scheduling() { let exec = fasync::TestExecutor::new().expect("failed to create an executor"); let mut m = MockObjects::new(&exec); let mut me = m.make_mlme(); me.make_client_station(); let scan_req = fidl_mlme::ScanRequest { scan_t...
rust_cleaned_test_functions.jsonl/32102
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1145 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12930, 28857, 643, 44356, 368, 341, 286, 1077, 3883, 284, 282, 7692, 486, 2271, 25255, 486, 931, 1005, 17119, 445, 16091, 311, 1855, 458, 31558, 797, 286, 1077, 5206, 296, 284, 14563, 11543, 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_parse_create_keys_response() { let _setup = SetupMocks::init(); let builder = create_keys(); let (for_did, for_verkey) = builder.parse_response(&CREATE_KEYS_RESPONSE.to_vec()).unwrap(); assert_eq!(for_did, "U5LXs4U7P9msh647kToezy"); assert_eq!(for_verke...
rust_cleaned_test_functions.jsonl/18562
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 196 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 8657, 12631, 9655, 368, 341, 286, 1077, 716, 15188, 284, 18626, 72577, 486, 2327, 1428, 286, 1077, 7363, 284, 1855, 12631, 1428, 286, 1077, 320, 1958, 814, 307, 11, 369, 26042, 792, 8, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_as_bool() { // Verifies is_truthy as well assert_eq!(is_truthy(SYMBOL_TRUE.symbol), true); assert_eq!(is_truthy(SYMBOL_FALSE.symbol), false); assert_eq!(is_truthy(SYMBOL_NONE.symbol), false); assert_eq!(is_truthy(VALUE_ERR), false); assert_eq!(is_truthy(f64::to_bits(1.0)), true); a...
rust_cleaned_test_functions.jsonl/109919
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 242 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11898, 22159, 368, 341, 197, 197, 322, 6250, 9606, 374, 49186, 88, 438, 1632, 198, 197, 6948, 10714, 10297, 285, 49186, 88, 3759, 56, 19480, 14044, 39209, 701, 830, 317, 197, 6948, 10714, 10297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lazy_query_3() { // query checks if schema of scanning is not changed by aggregation let _ = scan_foods_csv() .groupby(vec![col("calories")]) .agg(vec![col("fats_g").max()]) .collect() .unwrap(); }
rust_cleaned_test_functions.jsonl/14664
{ "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, 49646, 5738, 62, 18, 368, 341, 286, 442, 3239, 12341, 421, 10802, 315, 35101, 374, 537, 5497, 553, 51629, 198, 286, 1077, 716, 284, 8569, 761, 9065, 14020, 741, 310, 659, 4074, 1694, 25592, 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_file_completions() { let input = BashCompletionInput::from("democli src/li"); let completions = input.complete_file(); assert_eq!(vec!["src/lib.rs"], completions); }
rust_cleaned_test_functions.jsonl/103208
{ "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, 2458, 2965, 10819, 908, 368, 341, 286, 1077, 1946, 284, 38530, 33190, 2505, 486, 1499, 445, 27431, 509, 742, 2286, 88381, 3071, 286, 1077, 3459, 908, 284, 1946, 42928, 2458, 1428, 286, 2060, 10714...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_getenv_big() { let mut s = "".to_string(); let mut i = 0; while i < 100 { s.push_str("aaaaaaaaaa"); i += 1; } let n = make_rand_name(); setenv(&n, &s); debug!("{}", s.clone()); assert_eq!(getenv(&n), Some(s))...
rust_cleaned_test_functions.jsonl/72105
{ "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, 3062, 3160, 36386, 368, 341, 286, 1077, 5206, 274, 284, 44907, 983, 3904, 543, 286, 1077, 5206, 600, 284, 220, 15, 280, 286, 1393, 600, 366, 220, 16, 15, 15, 341, 310, 274, 2552, 2895, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_args() { exec! { "echo", args: ["Hello world!"], log: true, stdout: b"Hello world!\n", stderr: [] }; }
rust_cleaned_test_functions.jsonl/72682
{ "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, 8384, 368, 341, 262, 3883, 0, 341, 286, 330, 3047, 756, 286, 2827, 25, 4383, 9707, 1879, 0, 8097, 286, 1487, 25, 830, 3554, 286, 20075, 25, 293, 1, 9707, 1879, 14771, 77, 756, 286, 26436, 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
#[test] fn test_used_in_match_expr() { check_assist( inline_local_variable, " fn foo() { let a<|> = 1 > 0; match a {} }", " fn foo() { <|>match 1 > 0 {} }", ); }
rust_cleaned_test_functions.jsonl/60334
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 143 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 27803, 1243, 10708, 21915, 368, 341, 286, 1779, 12083, 380, 1006, 310, 7381, 13564, 14635, 345, 310, 6228, 8822, 15229, 368, 341, 262, 1077, 264, 27, 91, 29, 284, 220, 16, 861, 220, 15, 280, 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_into_string_w() { let d: String = DurationString::try_from(String::from("1w")).unwrap().into(); assert_eq!(d, "1w"); }
rust_cleaned_test_functions.jsonl/97557
{ "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, 45514, 3904, 1670, 368, 341, 286, 1077, 294, 25, 923, 284, 21045, 703, 486, 1539, 5673, 2242, 486, 1499, 445, 16, 86, 15197, 15454, 1005, 18122, 543, 286, 2060, 10714, 10297, 67, 11, 330, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_attachment_type() { assert!(matches!( AttachmentType::from(Path::new("./dogs/corgis/kona.png")), AttachmentType::Path(_) )); assert!(matches!( AttachmentType::from(Path::new("./cats/copycat.png")), AttachmentType::Path(_) ...
rust_cleaned_test_functions.jsonl/5092
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 325 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 40868, 1819, 368, 341, 286, 2060, 10297, 19914, 33673, 310, 55748, 929, 486, 1499, 33030, 486, 931, 13988, 80034, 2899, 1775, 285, 14109, 6721, 3508, 30154, 310, 55748, 929, 486, 1820, 2490, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_find_lifetimes_type_alias() { check( r#" type Foo<'a, T> where T: 'a$0 = &'a T; "#, expect![[r#" 'a LifetimeParam FileId(0) 9..11 9..11 FileId(0) 25..27 FileId(0) 31..33 "#]], ); }
rust_cleaned_test_functions.jsonl/60666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 201 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 907, 333, 6889, 1819, 35947, 368, 341, 286, 1779, 1006, 310, 435, 2, 698, 1313, 33428, 18291, 64, 11, 350, 29, 1380, 350, 25, 364, 64, 3, 15, 284, 30136, 64, 350, 280, 57676, 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_equivalence() { for code in [EX1, EX2, EX3] { let tree = get_tree(code); for order in [Order::Pre, Order::Post] { generate_traversals(&tree, order); } } }
rust_cleaned_test_functions.jsonl/126935
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 140 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41443, 88790, 368, 341, 286, 369, 2038, 304, 508, 3257, 16, 11, 4063, 17, 11, 4063, 18, 60, 341, 310, 1077, 4916, 284, 633, 11663, 15842, 317, 310, 369, 1973, 304, 508, 4431, 486, 4703, 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...
3
#[test] fn test_get_runtime_properties_missing_element() { let root = Element::from_reader(ONLY_ROOT_NODE.as_bytes()).unwrap(); assert!(Unreal4ContextRuntimeProperties::from_xml(&root).is_none()); }
rust_cleaned_test_functions.jsonl/28091
{ "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, 3062, 33232, 25158, 40447, 7894, 368, 341, 262, 1077, 3704, 284, 8543, 486, 1499, 22306, 7, 31092, 16197, 19218, 5357, 12524, 6011, 15454, 543, 262, 2060, 10297, 1806, 7951, 19, 1972, 15123, 7903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_core_graphics_font() { let font0 = SystemSource::new() .select_by_postscript_name(TEST_FONT_POSTSCRIPT_NAME) .unwrap() .load() .unwrap(); let core_text_font = font0.native_font(); let core_graphics_font = core_text_font...
rust_cleaned_test_functions.jsonl/98159
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 244 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 15467, 84385, 17451, 368, 341, 286, 1077, 3301, 15, 284, 739, 3608, 486, 931, 741, 310, 659, 1742, 3710, 6333, 2282, 1269, 50320, 39532, 20506, 24787, 4708, 340, 310, 659, 15454, 741, 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_hoge() { let shape_ref: &[usize] = &[2, 5, 5, 14]; let tensor = Tensor::new(shape_ref); println!("{}", tensor); }
rust_cleaned_test_functions.jsonl/51228
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 90 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1523, 40532, 368, 341, 286, 1077, 6083, 7793, 25, 44590, 51878, 60, 284, 44590, 17, 11, 220, 20, 11, 220, 20, 11, 220, 16, 19, 4821, 286, 1077, 15626, 284, 26036, 486, 931, 25933, 7793, 626, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fail() { // certain bytes causes failure. `zero` is a list of byte indices to // zero out that should cause failure. fn test_zero<I: IpAddr>(src: I, dst: I, succeeds: bool, zero: &[usize], err: ParseError) { let mut buf...
rust_cleaned_test_functions.jsonl/78660
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 954 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 22121, 368, 341, 1789, 286, 442, 3654, 5820, 11137, 7901, 13, 1565, 14154, 63, 374, 264, 1140, 315, 4922, 14937, 311, 198, 286, 442, 7168, 700, 429, 1265, 5240, 7901, 624, 286, 5168, 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...
3
#[test] fn test_lines_with_endings() { fn lines(s: &str) -> Vec<&str> { LinesWithEndings::from(s).collect() } assert!(lines("").is_empty()); assert_eq!(lines("f"), vec!["f"]); assert_eq!(lines("foo"), vec!["foo"]); assert_eq!(lines("foo\n"), vec!["foo...
rust_cleaned_test_functions.jsonl/18637
{ "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, 18323, 6615, 6213, 819, 368, 341, 286, 5168, 5128, 1141, 25, 609, 495, 8, 1464, 11312, 52244, 495, 29, 341, 310, 38233, 2354, 3727, 819, 486, 1499, 1141, 568, 17384, 741, 286, 555, 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_highlights_a_sql_query_within_go() -> Result<(), Error> { let src = r#"package main const MySqlQuery = ` SELECT * FROM my_table ` "#; let document = index_language("go", src)?; insta::assert_snapshot!(dump_document(&document, src)); Ok(()) }
rust_cleaned_test_functions.jsonl/84247
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 133 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 22680, 13826, 4306, 18063, 5738, 72385, 25515, 368, 1464, 5714, 68843, 4600, 29, 341, 286, 1077, 2286, 284, 435, 55543, 1722, 1887, 271, 1024, 25725, 2859, 284, 22074, 4858, 353, 4295, 847, 5237, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_multiple_rules() { assert_eq!( parse_str_to_rules("pass in proto tcp; drop out proto udp;"), Ok(vec![ filter::Rule { action: filter::Action::Pass, direction: filter::Direction::Incoming, q...
rust_cleaned_test_functions.jsonl/29476
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 948 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 45233, 21407, 368, 341, 286, 2060, 10714, 33673, 310, 4715, 2895, 2346, 21407, 445, 6385, 304, 18433, 28051, 26, 5943, 700, 18433, 49219, 26, 4461, 310, 7622, 25592, 90515, 394, 4051, 486, 11337, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_unknown_attribute_integer_value() { let schemaReplicant = SchemaReplicant::default(); let negative = r#"[:find ?x :where [?x _ -1]]"#; let zero = r#"[:find ?x :where [?x _ 0]]"#; let one = r#"[:find ?x :where [?x _ 1]]"#; let two = r#"[:find ?x :where [?x _ 2]]"#; // Ca...
rust_cleaned_test_functions.jsonl/90699
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 631 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 57507, 16791, 31725, 3142, 368, 341, 262, 1077, 10802, 18327, 35237, 284, 12539, 18327, 35237, 486, 2258, 1428, 262, 1077, 8225, 284, 435, 55543, 3447, 3903, 937, 87, 549, 2870, 508, 30, 87, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_branch_diff() { let block_manager = BlockManager::new(); let a = create_block("A", NULL_BLOCK_IDENTIFIER, 0); let b = create_block("B", "A", 1); let c = create_block("C", "A", 1); let d = create_block("D", "C", 2); let e = create_block("E", "D", 3...
rust_cleaned_test_functions.jsonl/10254
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 744 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28031, 15850, 368, 341, 286, 1077, 2504, 12144, 284, 8362, 2043, 486, 931, 1428, 286, 1077, 264, 284, 1855, 7113, 445, 32, 497, 1770, 18756, 49554, 11, 220, 15, 317, 286, 1077, 293, 284, 1855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_imports() { use crate::{func, imports}; fn foo(_ctx: &mut Ctx, a: i32) -> i32 { a } let _import_object = imports! { "env" => { "foo" => func!(foo), }, }; }
rust_cleaned_test_functions.jsonl/61387
{ "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, 18434, 82, 368, 341, 286, 990, 17717, 22964, 2830, 11, 15202, 2315, 286, 5168, 15229, 2490, 3773, 25, 609, 6984, 356, 3998, 11, 264, 25, 600, 18, 17, 8, 1464, 600, 18, 17, 341, 310, 264, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_stc64() { let mut prng = Stc64::new(); for _ in 0..6 { println!("{}", prng.next_long()); } assert_ne!(prng.next_long(), prng.next_long()); }
rust_cleaned_test_functions.jsonl/54528
{ "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, 1261, 66, 21, 19, 368, 341, 286, 1077, 5206, 548, 968, 284, 794, 66, 21, 19, 486, 931, 543, 286, 369, 716, 304, 220, 15, 496, 21, 341, 310, 13751, 79878, 548, 968, 4529, 17799, 1423, 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 ]
2
#[test] fn test_make() { let bound = Bound { max: 5, min: 0 }; let preset = FRESH; let effects = []; let factory = ProjectorFactory::build(&bound, &preset, &effects); for number in 0..5 { let dye = factory.make(number); println!("[{}]: {}", number,...
rust_cleaned_test_functions.jsonl/37068
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 184 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28230, 368, 341, 286, 1077, 6822, 284, 37176, 314, 1932, 25, 220, 20, 11, 1308, 25, 220, 15, 2605, 286, 1077, 42921, 284, 434, 21221, 280, 286, 1077, 6239, 284, 5907, 286, 1077, 8633, 284, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_small(){ let mut data = parse(EXEMPLE2); let result = parse(RESULT2); let mut count = 0; step(&mut data,&mut count); step(&mut data,&mut count); assert_eq!(data,result); }
rust_cleaned_test_functions.jsonl/43114
{ "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, 31966, 3032, 286, 1077, 5206, 821, 284, 4715, 25409, 2716, 9515, 17, 317, 286, 1077, 1102, 284, 4715, 7, 14098, 17, 317, 286, 1077, 5206, 1760, 284, 220, 15, 280, 286, 3019, 2099, 6984, 821, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_checked() { let a = PrimitiveArray::from([Some(11111i128), Some(11100i128), None, Some(22200i128)]) .to(DataType::Decimal(5, 2)); let b = PrimitiveArray::from([Some(22222i128), Some(22200i128), None, Some(11100i128)]) .to(DataType::Decimal(5, 2)); ...
rust_cleaned_test_functions.jsonl/6878
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 328 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 56456, 368, 341, 286, 1077, 264, 284, 51460, 1857, 486, 1499, 2561, 8373, 7, 16, 16, 16, 16, 16, 72, 16, 17, 23, 701, 4329, 7, 16, 16, 16, 15, 15, 72, 16, 17, 23, 701, 2240, 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_try_into_message_components_with_too_many_keys() { const TOO_MANY_KEYS: usize = 257; for key_flags in [ KeyFlags::WRITABLE | KeyFlags::SIGNER, KeyFlags::SIGNER, // skip writable_non_signer_keys because it isn't used for creating header values ...
rust_cleaned_test_functions.jsonl/52067
{ "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, 53283, 45514, 6462, 23258, 6615, 2346, 78, 22101, 12631, 368, 341, 286, 733, 92576, 97374, 51251, 25, 22301, 284, 220, 17, 20, 22, 401, 286, 369, 1376, 14130, 304, 2278, 310, 5309, 9195, 486, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_c_str_null_terminated() { assert!(!c_str_null_terminated(b"foobar")); assert!(!c_str_null_terminated(b"")); assert!(c_str_null_terminated(b"\0")); assert!(c_str_null_terminated(b"hallo\0")); }
rust_cleaned_test_functions.jsonl/117737
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 135 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 2895, 15162, 62, 68659, 368, 341, 286, 2060, 0, 3471, 66, 2895, 15162, 62, 68659, 1883, 1, 50267, 4010, 286, 2060, 0, 3471, 66, 2895, 15162, 62, 68659, 1883, 1, 4010, 286, 2060, 10297, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_field_range() { assert_eq!(Single(0).to_index_pair(10), None); assert_eq!(Single(1).to_index_pair(10), Some((0, 1))); assert_eq!(Single(10).to_index_pair(10), Some((9, 10))); assert_eq!(Single(11).to_index_pair(10), None); assert_eq!(Single(-1).to_in...
rust_cleaned_test_functions.jsonl/82618
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1396 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 5013, 9698, 368, 341, 286, 2060, 10714, 10297, 10888, 7, 15, 568, 983, 3560, 14445, 7, 16, 15, 701, 2240, 317, 286, 2060, 10714, 10297, 10888, 7, 16, 568, 983, 3560, 14445, 7, 16, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_image() { let result = parser(vec![ DeltaOp { insert: Value::String(String::from("asd\n")), attributes: None, }, DeltaOp { insert: json!({ "savvy_image": "path/to/image" ...
rust_cleaned_test_functions.jsonl/33075
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 506 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4954, 368, 341, 286, 1077, 1102, 284, 6729, 25592, 90515, 310, 24957, 7125, 341, 394, 5656, 25, 5162, 486, 703, 2242, 486, 1499, 445, 79102, 1699, 30154, 394, 8201, 25, 2240, 345, 310, 1153, 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_rate_limiter_bandwidth() { // rate limiter with limit of 1000 bytes/s let mut l = RateLimiter::new(1000, 0, 1000, 0, 0, 0).unwrap(); // limiter should not be blocked assert!(!l.is_blocked()); // raw FD for this disabled should be valid assert!(l.a...
rust_cleaned_test_functions.jsonl/15889
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 541 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9246, 907, 17700, 45344, 3098, 368, 341, 286, 442, 4379, 4568, 2015, 448, 3930, 315, 220, 16, 15, 15, 15, 5820, 2687, 198, 286, 1077, 5206, 326, 284, 19775, 43, 17700, 486, 931, 7, 16, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_special_groupby_schemas() -> Result<()> { let df = df![ "a" => [1, 2, 3, 4, 5], "b" => [1, 2, 3, 4, 5], ]?; let out = df .clone() .lazy() .groupby_rolling( [], RollingGroupOptions { index_column: "a".int...
rust_cleaned_test_functions.jsonl/5217
{ "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, 41629, 6288, 1694, 643, 31126, 368, 1464, 5714, 71698, 341, 262, 1077, 6764, 284, 6764, 90515, 286, 330, 64, 1, 589, 508, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 1259, 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...
8
#[test] fn test_encode_packet_with_options() { let mut packet = PacketUdp::new(); packet.header.set_version(1); packet.header.set_type(MessageType::Confirmable); packet.header.code = MessageClass::Request(RequestType::Get); packet.header.message_id = 33950; packet...
rust_cleaned_test_functions.jsonl/92790
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 443 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 11224, 21078, 6615, 8743, 368, 341, 286, 1077, 5206, 10151, 284, 28889, 52, 9796, 486, 931, 543, 286, 10151, 17093, 980, 9438, 7, 16, 317, 286, 10151, 17093, 980, 1819, 29359, 929, 486, 16728, 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_collect_accounts() { let keypair0 = Keypair::new(); let keypair1 = Keypair::new(); let pubkey = Pubkey::new_rand(); let instructions = vec![CompiledInstruction::new(0, &(), vec![0, 1])]; let tx0 = Transaction::new_with_compiled_instructions( &...
rust_cleaned_test_functions.jsonl/118952
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1091 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68140, 55665, 368, 341, 286, 1077, 1376, 12670, 15, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 1376, 12670, 16, 284, 6569, 1082, 1310, 486, 931, 543, 286, 1077, 95116, 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...
1
#[test] fn test_all_workspace() { let p = project() .file( "Cargo.toml", r#" [project] name = "foo" version = "0.1.0" [dependencies] bar = { path = "bar" } [workspace] "#, ) .fil...
rust_cleaned_test_functions.jsonl/95370
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 376 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5705, 75560, 368, 341, 262, 1077, 281, 284, 2390, 741, 286, 659, 1192, 1006, 310, 330, 98228, 73494, 75, 756, 310, 435, 2, 698, 310, 508, 4987, 921, 310, 829, 284, 330, 7975, 698, 310, 2319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_password_callback() { let mut password_queried = false; let key = include_bytes!("../test/rsa-encrypted.pem"); Rsa::private_key_from_pem_callback(key, |password| { password_queried = true; password[..6].copy_from_slice(b"mypass"); ...
rust_cleaned_test_functions.jsonl/6925
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 218 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 10122, 12519, 368, 341, 286, 1077, 5206, 3552, 11280, 261, 1122, 284, 895, 280, 286, 1077, 1376, 284, 2924, 12524, 17223, 1244, 1944, 14, 60869, 12, 36444, 49373, 797, 286, 431, 9081, 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_fn_signature_with_docs() { let info = call_info( r#" /// Adds one to the number given. /// /// # Examples /// /// ``` /// let five = 5; /// /// assert_eq!(6, my_crate::add_one(5)); /// ``` pub fn add_one(x: i32) -> i32 { x + 1 } pub fn do() { add_one(<|> }"#, ...
rust_cleaned_test_functions.jsonl/55355
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 416 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15246, 39859, 6615, 49692, 368, 341, 286, 1077, 3546, 284, 1618, 3109, 1006, 310, 435, 2, 698, 2575, 24475, 825, 311, 279, 1372, 2661, 624, 15374, 2575, 671, 25311, 198, 15374, 2575, 41233, 2575, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_sigmoid_activation() { fn f(x: f32) -> f32 { 1.0 / (1.0 + x.exp()) } let activation = Activation::Sigmoid; assert_eq!( activation.calculate_value(&array![[0.0]]).unwrap(), &array![[f(0.0)]] ); assert_eq!( ...
rust_cleaned_test_functions.jsonl/65369
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 491 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 52111, 52404, 368, 341, 286, 5168, 282, 2075, 25, 282, 18, 17, 8, 1464, 282, 18, 17, 341, 310, 220, 16, 13, 15, 608, 320, 16, 13, 15, 488, 856, 13754, 2398, 286, 456, 286, 1077, 15099...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_file_and_writer() { let file_spec_bar = FileSpec::default() .directory(self::test_utils::dir()) .suppress_timestamp() .discriminant("bar"); let file_spec_foo = file_spec_bar.clone().discriminant("foo"); let w = FileLogWriter::builder(file_spec_bar.clon...
rust_cleaned_test_functions.jsonl/105185
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 707 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9993, 2458, 8378, 28908, 368, 341, 262, 1077, 1034, 13594, 14388, 284, 2887, 8327, 486, 2258, 741, 286, 659, 23037, 1193, 486, 1944, 17309, 486, 3741, 2398, 286, 659, 96960, 23073, 741, 286, 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_update_fulfill_htlc_bolt2_incorrect_htlc_id() { //BOLT 2 Requirement: A receiving node: if the id does not correspond to an HTLC in its current commitment transaction MUST fail the channel. let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let no...
rust_cleaned_test_functions.jsonl/16934
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 747 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 761, 86516, 49086, 17257, 880, 6181, 17, 1243, 19928, 49086, 17257, 842, 368, 341, 197, 322, 33, 35320, 220, 17, 75938, 25, 362, 12308, 2436, 25, 743, 279, 877, 1558, 537, 7866, 311, 458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_retain() { let vs = [ 1i32, 2, 3, 4 ]; let mut v = Soa2::new(); v.push_all(&vs, &vs); v.retain(|(&x, _)| x % 2i32 == 0); assert_eq!(v.as_slices(), (&[2, 4][..], &[2, 4][..])); }
rust_cleaned_test_functions.jsonl/121402
{ "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, 21695, 466, 368, 341, 262, 1077, 6165, 284, 508, 220, 16, 72, 18, 17, 11, 220, 17, 11, 220, 18, 11, 220, 19, 9747, 262, 1077, 5206, 348, 284, 2055, 64, 17, 486, 931, 543, 262, 348, 2552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vector_1() { let m = &[0x86, 0xd0, 0x99, 0x74, 0x84, 0x0b, 0xde, 0xd2, 0xa5, 0xca]; let k = Key([ 0x42, 0x90, 0xbc, 0xb1, 0x54, 0x17, 0x35, 0x31, 0xf3, 0x14, 0xaf, 0x57, 0xf3, 0xbe, 0x3b, 0x50, 0x06, 0xda, 0x37, 0x1e, 0xce, 0x27, 0x2a, 0xfa, 0x1b,...
rust_cleaned_test_functions.jsonl/71680
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 585 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12247, 62, 16, 368, 341, 1789, 286, 1077, 296, 284, 44590, 15, 87, 23, 21, 11, 220, 15, 9703, 15, 11, 220, 15, 87, 24, 24, 11, 220, 15, 87, 22, 19, 11, 220, 15, 87, 23, 19, 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_reexported_enum_name_conversion() { let _ = Affinity::Downstream; let _ = RectHeightStyle::IncludeLineSpacingBottom; let _ = RectWidthStyle::Max; let _ = TextAlign::End; let _ = TextDirection::LTR; }
rust_cleaned_test_functions.jsonl/64496
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 99 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 1533, 291, 31054, 1269, 64132, 368, 341, 262, 1077, 716, 284, 9748, 13489, 486, 4454, 4027, 280, 262, 1077, 716, 284, 11920, 3640, 2323, 486, 22283, 2460, 27026, 11279, 280, 262, 1077, 716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mktemp_quiet() { let scene = TestScenario::new(util_name!()); scene .ucmd() .arg("-p") .arg("/definitely/not/exist/I/promise") .arg("-q") .fails() .no_stdout() .no_stderr(); scene .ucmd() .arg("-d") .arg...
rust_cleaned_test_functions.jsonl/38030
{ "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, 64861, 3888, 11280, 3891, 368, 341, 262, 1077, 6109, 284, 3393, 54031, 486, 931, 67811, 1269, 0, 5231, 262, 6109, 198, 286, 659, 1754, 2277, 741, 286, 659, 858, 13645, 79, 1138, 286, 659, 858, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_accounts_db_cache_clean() { let (accounts_db, keys, slots, _) = setup_accounts_db_cache_clean(10, None); accounts_db.flush_accounts_cache(true, None); assert_eq!(accounts_db.accounts_cache.num_slots(), 0); let mut uncleaned_roots = accounts_db ...
rust_cleaned_test_functions.jsonl/1420
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 663 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 55665, 8685, 11529, 19573, 368, 341, 286, 1077, 320, 26206, 8685, 11, 6894, 11, 15711, 11, 27439, 284, 6505, 55665, 8685, 11529, 19573, 7, 16, 15, 11, 2240, 626, 1789, 286, 9618, 8685, 23038, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_nipopow_lowest_common_ancestor_diverging_autolykos_v1() { let popow_algos = NipopowAlgos::default(); for size in [10, 100, 200] { let stream = block_stream(None); let chain_0: Vec<_> = stream.take(size).collect(); let branch_point = chain_0[siz...
rust_cleaned_test_functions.jsonl/133992
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 427 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 79382, 363, 23767, 477, 21107, 62, 66878, 16237, 95296, 32808, 5730, 56678, 2273, 16, 368, 341, 286, 1077, 2420, 363, 8418, 34073, 284, 451, 79382, 363, 2101, 34073, 486, 2258, 543, 286, 369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_unclosed_string() { let mut reader = Lexer::from_str("\"abc"); assert_err(&mut reader, ParseError::UnclosedString, 1, 1); }
rust_cleaned_test_functions.jsonl/101133
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 74 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 76576, 9259, 3904, 368, 341, 286, 1077, 5206, 6604, 284, 85082, 486, 1499, 2895, 38915, 13683, 797, 286, 2060, 9266, 2099, 6984, 6604, 11, 14775, 1454, 486, 63718, 9259, 703, 11, 220, 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
#[test] fn test_try_from_put_vsock() { let (mut sender, receiver) = UnixStream::pair().unwrap(); let mut connection = HttpConnection::new(receiver); let body = "{ \ \"vsock_id\": \"string\", \ \"guest_cid\": 0, \ \"uds_path\": \"string\" \ }"; ...
rust_cleaned_test_functions.jsonl/106589
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 295 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 53283, 5673, 15557, 2273, 13199, 368, 341, 286, 1077, 320, 6984, 4646, 11, 13964, 8, 284, 46995, 3027, 486, 12670, 1005, 15454, 543, 286, 1077, 5206, 3633, 284, 4823, 4526, 486, 931, 78126, 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_stdin_larger_than_128_bytes() { let (_, mut ucmd) = at_and_ucmd!(); let result = ucmd.arg("larger_than_2056_bytes.txt").run(); let mut stdout_splitted = result.stdout.split(" "); let cksum: i64 = stdout_splitted.next().unwrap().parse().unwrap(); let bytes_cnt: i64 = stdout...
rust_cleaned_test_functions.jsonl/69427
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 198 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15656, 258, 907, 41776, 51613, 62, 16, 17, 23, 12524, 368, 341, 262, 1077, 39464, 5206, 575, 8710, 8, 284, 518, 8378, 68887, 2277, 0, 1428, 262, 1077, 1102, 284, 575, 8710, 21186, 445, 26897, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_cancel_works() { new_test_ext().execute_with(|| { let creator_initial_balance = 100; let payment_amount = 40; let expected_incentive_amount = payment_amount / INCENTIVE_PERCENTAGE as u128; // should be able to create a payment with available balance assert_ok!(Payment::pay( Origin...
rust_cleaned_test_functions.jsonl/111983
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 669 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28895, 11498, 82, 368, 341, 8638, 4452, 9927, 1005, 10257, 6615, 79453, 341, 197, 10217, 19919, 15809, 29396, 284, 220, 16, 15, 15, 280, 197, 10217, 8160, 13471, 284, 220, 19, 15, 280, 197, 1021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_example_4() { let input: &str = "a\na\na\na"; let valid: usize = get_unique_chars(&input).len(); assert_eq!(valid, 1); }
rust_cleaned_test_functions.jsonl/120246
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 89 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 39304, 62, 19, 368, 341, 286, 1077, 1946, 25, 609, 495, 284, 330, 64, 1699, 64, 1699, 64, 1699, 64, 876, 286, 1077, 2697, 25, 22301, 284, 633, 21218, 37418, 2099, 1355, 568, 2892, 543, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_optopt_missing() { let args = vec!["blah".to_string()]; match Options::new() .optopt("t", "test", "testing", "TEST") .parse(&args) { Ok(ref m) => { assert!(!m.opt_present("test")); assert!(!m.opt_present("t")); } _ => pa...
rust_cleaned_test_functions.jsonl/52359
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 185 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15032, 2912, 40447, 368, 341, 262, 1077, 2827, 284, 7486, 0, 1183, 70614, 3263, 983, 3904, 33800, 262, 2432, 14566, 486, 931, 741, 286, 659, 2912, 2912, 445, 83, 497, 330, 1944, 497, 330, 8840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_real_as_uint() { test_none_with_ctx_and_extra(cast_real_as_uint); // in_union let cs = vec![ (-10.0, 0u64), (i64::MIN as f64, 0), (10.0, 10u64), (i64::MAX as f64, (1u64 << 63)), ]; for (input, ...
rust_cleaned_test_functions.jsonl/101765
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1480 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 15266, 11898, 15807, 368, 341, 286, 1273, 31488, 6615, 15147, 8378, 31858, 1337, 559, 15266, 11898, 15807, 626, 286, 442, 304, 51621, 198, 286, 1077, 10532, 284, 7486, 90515, 3374, 310, 10293, 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_colors() { let salmon = rgb(250, 128, 114); assert_eq!(salmon.to_css(), "rgb(250, 128, 114)"); }
rust_cleaned_test_functions.jsonl/69876
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 73 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 33670, 368, 341, 286, 1077, 40320, 284, 17993, 7, 17, 20, 15, 11, 220, 16, 17, 23, 11, 220, 16, 16, 19, 626, 286, 2060, 10714, 10297, 19222, 1645, 2389, 25924, 1507, 330, 16509, 7, 17, 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
#[test] fn test_interval_bidirectional() { let anchor = Interval::starting_at(Moment(Local.ymd(2017, 04, 25).and_hms(9, 10, 11)), Grain::Second); let mut bidirectional = BidirectionalWalker::new() .forward_with(anchor, |prev| prev + PeriodC...
rust_cleaned_test_functions.jsonl/56547
{ "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, 20541, 62509, 44670, 368, 341, 286, 1077, 17105, 284, 40584, 486, 39289, 3752, 3189, 12913, 42718, 13, 1600, 67, 7, 17, 15, 16, 22, 11, 220, 15, 19, 11, 220, 17, 20, 568, 437, 1523, 1011, 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_resource_block_resource_relations_can_only_appear_after_on() { let p = Polar::new(); p.register_constant(sym!("Repo"), term!("unimportant")) .unwrap(); expect_error( &p, r#"resource Repo { roles = ["owner"]; ...
rust_cleaned_test_functions.jsonl/31744
{ "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, 17962, 7113, 17962, 94221, 27421, 18410, 21093, 8015, 19844, 4470, 368, 341, 286, 1077, 281, 284, 55896, 486, 931, 543, 286, 281, 9929, 34967, 62512, 17223, 25243, 3975, 4647, 17223, 359, 15333, 545...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_elapsed_compute() { let metrics = ExecutionPlanMetricsSet::new(); assert!(metrics.clone_inner().elapsed_compute().is_none()); let partition = 1; let elapsed_compute = MetricBuilder::new(&metrics).elapsed_compute(partition); elapsed_compute.add_duration(Du...
rust_cleaned_test_functions.jsonl/28183
{ "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, 73737, 57028, 368, 341, 286, 1077, 16734, 284, 30928, 20485, 27328, 1649, 486, 931, 543, 286, 2060, 10297, 43262, 15997, 34345, 1005, 53118, 57028, 1005, 285, 31488, 5231, 286, 1077, 16658, 284, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_log_exec_zero() { let l = Log::<Operation>::default(); let o = [Operation::Read]; let mut f = |op: Operation, i: usize| { assert_eq!(op, Operation::Read); assert_eq!(i, 1); }; let mut g = |_op: Operation, _i: usize| { as...
rust_cleaned_test_functions.jsonl/101056
{ "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, 5224, 18430, 19359, 368, 341, 286, 1077, 326, 284, 2835, 27638, 8432, 6831, 2258, 543, 286, 1077, 297, 284, 508, 8432, 486, 4418, 935, 286, 1077, 5206, 282, 284, 760, 453, 25, 16730, 11, 600, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_dual_vec_log() { let res = DualVec64::<2>::new(1.2, StaticVec::new_vec([1.0, 1.0])).log(4.2); assert!((res.re - 0.127045866345188).abs() < 1e-12); assert!((res.eps[0] - 0.580685888982970).abs() < 1e-12); assert!((res.eps[1] - 0.580685888982970).abs() < 1e-12); }
rust_cleaned_test_functions.jsonl/28598
{ "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, 96772, 13251, 5224, 368, 341, 262, 1077, 592, 284, 33659, 10050, 21, 19, 27638, 17, 6831, 931, 7, 16, 13, 17, 11, 23105, 10050, 486, 931, 13251, 2561, 16, 13, 15, 11, 220, 16, 13, 15, 54697,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mm_shuffle() { assert_eq!(_MM_SHUFFLE!(0, 1, 1, 3), 0b00_01_01_11); assert_eq!(_MM_SHUFFLE!(3, 1, 1, 0), 0b11_01_01_00); assert_eq!(_MM_SHUFFLE!(1, 2, 2, 1), 0b01_10_10_01); }
rust_cleaned_test_functions.jsonl/41665
{ "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, 35599, 73484, 368, 341, 197, 6948, 10714, 0, 2490, 8035, 6834, 8825, 867, 10297, 15, 11, 220, 16, 11, 220, 16, 11, 220, 18, 701, 220, 15, 65, 15, 15, 62, 15, 16, 62, 15, 16, 62, 16, 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_rsplitn_char_iterator() { let data = "\nMäry häd ä little lämb\nLittle lämb\n"; let mut split: Vec<&str> = data.rsplitn(4, ' ').collect(); split.reverse(); assert_eq!(split, ["\nMäry häd ä", "little", "lämb\nLittle", "lämb\n"]); let mut split: Vec<&str> = data.rsplitn(4, |c...
rust_cleaned_test_functions.jsonl/17656
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 380 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1710, 6960, 77, 9232, 13491, 368, 341, 262, 1077, 821, 284, 2917, 77, 44, 2305, 884, 305, 30875, 12709, 2632, 30005, 3096, 1699, 38103, 30005, 3096, 1699, 3302, 262, 1077, 5206, 6718, 25, 11312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 vec = Vec3::new(0.0, 1.0, 2.0); assert_eq!(vec * 5.0, Vec3::new(0.0, 5.0, 10.0)); assert_eq!(5.0 * vec, Vec3::new(0.0, 5.0, 10.0)); }
rust_cleaned_test_functions.jsonl/39248
{ "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, 24944, 368, 341, 286, 1077, 7486, 284, 11312, 18, 486, 931, 7, 15, 13, 15, 11, 220, 16, 13, 15, 11, 220, 17, 13, 15, 317, 286, 2060, 10714, 10297, 4083, 353, 220, 20, 13, 15, 11, 11312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_subsystem_interior_null() { let log = OsLog::new("com.example.oslog\0test", "category"); log.with_level(Level::Debug, "Hi"); }
rust_cleaned_test_functions.jsonl/102884
{ "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, 5228, 8948, 15318, 2462, 15162, 368, 341, 286, 1077, 1487, 284, 15433, 2201, 486, 931, 445, 874, 7724, 9291, 839, 59, 15, 1944, 497, 330, 5471, 797, 286, 1487, 18164, 8274, 30263, 486, 7939, 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
#[test] fn test_pr_merge_ignore_space_change() { let git = TempGit::new(); let github = MockGithub::new(); let contents_base = " if (true) { do_something(); } "; let contents_master = " try { if (true) { do_something(); } } catch ( ... ) { aha(); } "; let conten...
rust_cleaned_test_functions.jsonl/30544
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1087 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5294, 20888, 58493, 14663, 15947, 368, 341, 262, 1077, 16345, 284, 19944, 46562, 486, 931, 543, 262, 1077, 31004, 284, 14563, 78717, 486, 931, 1428, 262, 1077, 8794, 7651, 284, 6228, 333, 320, 186...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ttl_expired() { // Receive an IP packet with an expired TTL. Check to make sure that we // respond with the appropriate ICMP message. test_receive_ip_packet::<Ipv4, _, _, _, _>( |builder| { builder.ipv4_builder().forward(true); }, ...
rust_cleaned_test_functions.jsonl/65671
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 697 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 87157, 80221, 368, 341, 286, 442, 37422, 458, 6790, 10151, 448, 458, 26391, 78532, 13, 4248, 311, 1281, 2704, 429, 582, 198, 286, 442, 5889, 448, 279, 8311, 83988, 1943, 624, 286, 1273, 38557, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_noff() -> Result<()> { let guard = fixture().prepare( "local", r#" origin <<EOF git checkout master git merge feature --no-ff git branch -D feature EOF "#, )?; let git = Git::try_from(Repository::open(guard....
rust_cleaned_test_functions.jsonl/97314
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 291 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1089, 1847, 368, 1464, 5714, 71698, 341, 262, 1077, 7616, 284, 12507, 1005, 13609, 1006, 286, 330, 2438, 756, 286, 435, 2, 698, 286, 6238, 1115, 23483, 198, 310, 16345, 27264, 7341, 198, 310, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
#[test] fn test_good_country_code() { match lookup("DEU") { None => panic!("was expecting a country"), Some(country) => { assert_eq!(country.short_code, "DE"); assert_eq!(country.country_code, 276); } } }
rust_cleaned_test_functions.jsonl/43781
{ "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, 44781, 28106, 4136, 368, 341, 286, 2432, 18615, 445, 1150, 52, 899, 341, 310, 2240, 589, 21975, 17223, 16123, 22331, 264, 3146, 4461, 310, 4329, 55764, 8, 589, 341, 394, 2060, 10714, 10297, 11141,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_cvttsd2si() { assert_emit!(0xf2, 0x0f, 0x2c, 0xc8; cvttsd2si(0, RCX, XMM0)); assert_emit!(0xf2, 0x44, 0x0f, 0x2c, 0xfb; cvttsd2si(0, R15, XMM3)); assert_emit!(0xf2, 0x41, 0x0f, 0x2c, 0xe0; cvttsd2si(0, RSP, XMM8)); assert_emit!(0xf2, 0x48, 0x0f, 0x2c, 0xc8; cvtts...
rust_cleaned_test_functions.jsonl/85501
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 336 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 666, 9708, 2576, 67, 17, 6321, 368, 341, 286, 2060, 69082, 10297, 15, 5848, 17, 11, 220, 15, 87, 15, 69, 11, 220, 15, 87, 17, 66, 11, 220, 15, 8148, 23, 26, 5544, 83, 2576, 67, 17, 6321,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deprecation_strategy() { let input = " #[derive(GraphQLQuery)] #[graphql( schema_path = \"x\", query_path = \"x\", deprecated = \"foo\", )] struct MyQuery; "; let parsed = syn::parse_str(input).un...
rust_cleaned_test_functions.jsonl/21432
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 273 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 2259, 69593, 49308, 368, 341, 286, 1077, 1946, 284, 6228, 286, 11506, 27098, 63779, 3588, 2859, 5563, 286, 11506, 38294, 1006, 310, 10802, 2638, 284, 7245, 87, 83515, 310, 3239, 2638, 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...
2