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_empty_block() { let (pub_key, secret_key) = gen_keypair(); let content = Block::new( blockchain::SCHEMA_MAJOR_VERSION, ValidatorId::zero(), Height(200), 1, &hash(&[1]), &hash(&[2]), &hash(&[3]), ); let precommits = Vec::ne...
rust_cleaned_test_functions.jsonl/118860
{ "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, 15124, 7113, 368, 341, 262, 1077, 320, 9585, 3097, 11, 6234, 3097, 8, 284, 4081, 3097, 12670, 1428, 262, 1077, 2213, 284, 8362, 486, 931, 1006, 286, 17944, 486, 3540, 35839, 52045, 10678, 345, 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_mem_reader_fake_stream() { let mut reader = MemReaderFakeStream::new(vec!(0, 1, 2, 3, 4, 5, 6, 7)); let mut buf = vec![]; assert_eq!(reader.read(buf.as_mut_slice()), Ok(0)); assert_eq!(reader.tell(), Ok(0)); let mut buf = vec![0]; ...
rust_cleaned_test_functions.jsonl/115237
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 529 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12976, 22306, 56881, 12673, 368, 341, 286, 1077, 5206, 6604, 284, 13550, 5062, 52317, 3027, 486, 931, 25592, 10297, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_nlerp_quarter() { let q = Quaternion::from([-0.5, 0.5, 0.5, 0.5]); let r = Quaternion::from([0.5, 0.5, 0.5, 0.5]); let expected = Quaternion::from([ -1.0 / 13f64.sqrt(), 2.0 / 13f64.sqrt(), 2.0 / 13f64.sqrt(), 2.0 / 13f64.s...
rust_cleaned_test_functions.jsonl/15350
{ "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, 1089, 1536, 79, 11280, 5295, 368, 341, 286, 1077, 2804, 284, 24801, 486, 1499, 41197, 15, 13, 20, 11, 220, 15, 13, 20, 11, 220, 15, 13, 20, 11, 220, 15, 13, 20, 2558, 286, 1077, 435, 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_gather_order() { let r = Registry::new(); let counter_a = Counter::new("test_a_counter", "test help").unwrap(); let counter_b = Counter::new("test_b_counter", "test help").unwrap(); let counter_2 = Counter::new("test_2_counter", "test help").unwrap(); r.r...
rust_cleaned_test_functions.jsonl/132417
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1297 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1889, 1856, 7869, 368, 341, 286, 1077, 435, 284, 32112, 486, 931, 1428, 286, 1077, 5546, 4306, 284, 19735, 486, 931, 445, 1944, 4306, 15730, 497, 330, 1944, 1492, 1827, 15454, 543, 286, 1077, 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...
1
#[test] fn test_negation() { let a = Fp([ 0x5360bb5978678032, 0x7dd275ae799e128e, 0x5c5b5071ce4f4dcf, 0xcdb21f93078dbb3e, 0xc32365c5e73f474a, 0x115a2a5489babe5b, ]); let b = Fp([ 0x669e44a687982a79, 0xa0d98a5037b5ed71, 0xad5822f...
rust_cleaned_test_functions.jsonl/70424
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 311 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28209, 367, 368, 341, 262, 1077, 264, 284, 434, 79, 8956, 286, 220, 15, 87, 20, 18, 21, 15, 6066, 20, 24, 22, 23, 21, 22, 23, 15, 18, 17, 345, 286, 220, 15, 87, 22, 631, 17, 22, 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_vec_list_get_next_index() { let mut list = VecList::new(); let index = list.push_back(0); assert_eq!(list.get_next_index(index), None); list.push_back(1); assert_eq!(list.get_next_index(index).unwrap().index, 1); }
rust_cleaned_test_functions.jsonl/11526
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 137 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13251, 2019, 3062, 11257, 3560, 368, 341, 286, 1077, 5206, 1140, 284, 11312, 852, 486, 931, 1428, 286, 1077, 1922, 284, 1140, 2552, 3895, 7, 15, 317, 286, 2060, 10714, 10297, 1607, 670, 11257, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_text_encoder() { let counter_opts = Opts::new("test_counter", "test help") .const_label("a", "1") .const_label("b", "2"); let counter = Counter::with_opts(counter_opts).unwrap(); counter.inc(); let mf = counter.collect(); let mut w...
rust_cleaned_test_functions.jsonl/52442
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 589 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4326, 39068, 368, 341, 286, 1077, 5546, 32354, 284, 506, 12754, 486, 931, 445, 1944, 15730, 497, 330, 1944, 1492, 1138, 310, 659, 1024, 6106, 445, 64, 497, 330, 16, 1138, 310, 659, 1024, 6106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_type_expression_function_with_params() { let mut p = Parser::new(r#"(A: int, B: uint) => int"#); let parsed = p.parse_type_expression(); let loc = Locator::new(&p.source[..]); assert_eq!( parsed, TypeExpression { base: BaseNode { ...
rust_cleaned_test_functions.jsonl/67830
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2556 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21039, 1819, 28068, 9174, 6615, 6745, 368, 341, 262, 1077, 5206, 281, 284, 21102, 486, 931, 2601, 2, 29209, 32, 25, 526, 11, 425, 25, 2622, 8, 589, 526, 57676, 317, 262, 1077, 15676, 284, 281,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_ruleset_duplicates() { let ruleset = Ruleset::new(); ruleset .add_rule(Rule::GlobalTag(Tag::new( "key1".to_string(), "value".to_string(), ))) .unwrap(); ruleset .add_rule(Rule::GlobalTag(Tag::new( "key1".to_string(...
rust_cleaned_test_functions.jsonl/124450
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21407, 295, 75051, 368, 341, 262, 1077, 5601, 295, 284, 22847, 295, 486, 931, 1428, 262, 5601, 295, 198, 286, 659, 718, 21124, 2785, 1111, 486, 11646, 5668, 69161, 486, 931, 1006, 310, 330, 792,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_evil_date() { let service = DateService::new(); // Make sure that `check_date` doesn't try to spawn a task service.0.update(); service.set_date(|_| service.0.reset()); }
rust_cleaned_test_functions.jsonl/36163
{ "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, 43713, 321, 4164, 368, 341, 286, 1077, 2473, 284, 2631, 1860, 486, 931, 543, 286, 442, 7405, 2704, 429, 1565, 2028, 4164, 63, 3171, 944, 1430, 311, 18042, 264, 3383, 198, 286, 2473, 13, 15, 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
#[test] fn test_cache() { let mut c: Lru<u64, u64> = Lru::new(14); for i in 0..10000 { c.insert(i, i); } }
rust_cleaned_test_functions.jsonl/14488
{ "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, 11529, 368, 341, 262, 1077, 5206, 272, 25, 444, 2672, 34837, 21, 19, 11, 575, 21, 19, 29, 284, 444, 2672, 486, 931, 7, 16, 19, 317, 262, 369, 600, 304, 220, 15, 496, 16, 15, 15, 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 ]
2
#[test] fn test_report_attempts_to_successful_install_fails_then_succeeds() { block_on(async { let response = json!({"response":{ "server": "prod", "protocol": "3.0", "app": [{ "appid": "{00000000-0000-0000-0000-000000000001}", ...
rust_cleaned_test_functions.jsonl/59708
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1500 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14813, 79490, 2346, 92951, 34245, 761, 6209, 68367, 643, 29264, 82, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 2033, 284, 2951, 0, 16864, 2322, 12602, 1060, 330, 4030, 788, 330, 19748, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_and_subexpression() { let add_sub_expr = ArithmeticExpression::Add( Box::new(ArithmeticExpression::Value(1)), Box::new(ArithmeticExpression::Sub( Box::new(ArithmeticExpression::Value(2)), Box::new(ArithmeticExpression::Value(3))...
rust_cleaned_test_functions.jsonl/57258
{ "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, 2891, 8378, 5228, 28099, 368, 341, 286, 1077, 912, 5228, 21915, 284, 92984, 9595, 486, 2212, 1006, 310, 8261, 486, 931, 4346, 81, 25922, 9595, 486, 1130, 7, 16, 6965, 310, 8261, 486, 931, 4346, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_serde_ciphertext() { let ElGamalKeypair { public, secret: _ } = ElGamalKeypair::new_rand(); let amount: u64 = 77; let ciphertext = public.encrypt(amount); let encoded = bincode::serialize(&ciphertext).unwrap(); let decoded: ElGamalCiphertext = bincode::de...
rust_cleaned_test_functions.jsonl/36654
{ "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, 75861, 450, 666, 45043, 368, 341, 286, 1077, 3984, 78884, 278, 6608, 1082, 1310, 314, 584, 11, 6234, 25, 716, 335, 284, 3984, 78884, 278, 6608, 1082, 1310, 486, 931, 33864, 543, 286, 1077, 3311,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_conditions() { assert!(are_selections_equal( r#" fragment Left on User { ...CommonFragment @include(if: $conditional1) @skip(if: $conditional3) } fragment Right on User { ...CommonFragment @includ...
rust_cleaned_test_functions.jsonl/6187
{ "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, 54099, 368, 341, 262, 2060, 10297, 546, 23672, 82, 11478, 1006, 286, 435, 2, 698, 394, 12289, 13727, 389, 2657, 341, 503, 2503, 10839, 9488, 569, 997, 33333, 25, 400, 45368, 16, 8, 569, 20599, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_url() { assert_eq!(split_url("/foo.js"), (Some(""), "foo", Some("js"))); assert_eq!(split_url("foo.js"), (None, "foo", Some("js"))); assert_eq!(split_url("foo"), (None, "foo", None)); assert_eq!(split_url("/foo"), (Some(""), "foo", None)); assert_eq!( split_url(...
rust_cleaned_test_functions.jsonl/32393
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 249 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 2903, 368, 341, 262, 2060, 10714, 10297, 6960, 2903, 4283, 7975, 2857, 3975, 320, 8373, 86076, 330, 7975, 497, 4329, 445, 2519, 17621, 262, 2060, 10714, 10297, 6960, 2903, 445, 7975, 2857, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_embed_complete() { let value = Embed { author: Some(EmbedAuthor { icon_url: Some("https://example.com/1.png".to_owned()), name: Some("test".to_owned()), proxy_icon_url: Some("https://example.com".to_owned()), url...
rust_cleaned_test_functions.jsonl/134730
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4279 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24007, 27675, 368, 341, 286, 1077, 897, 284, 37068, 341, 310, 3150, 25, 4329, 7, 25486, 7133, 341, 394, 4603, 2903, 25, 4329, 445, 2428, 1110, 8687, 905, 14, 16, 3508, 3263, 983, 51973, 14702, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_proposal_by_proxy() { let l = default_logger(); let mut tests = vec![ Network::new(vec![None, None, None], &l), Network::new(vec![None, None, NOP_STEPPER], &l), ]; for (j, tt) in tests.iter_mut().enumerate() { // promote 0 the leader tt.send(vec![n...
rust_cleaned_test_functions.jsonl/19104
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 481 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21663, 32556, 3710, 29712, 368, 341, 262, 1077, 326, 284, 1638, 27413, 543, 262, 1077, 5206, 7032, 284, 7486, 90515, 286, 8141, 486, 931, 25592, 20703, 4064, 11, 2240, 11, 2240, 1125, 609, 75, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_raw_idents() { Python::with_gil(|py| { let raw_idents_type = py.get_type::<r#RawIdents>(); py_run!( py, raw_idents_type, r#" instance = raw_idents_type(type=None, subtype=5, subsubtype="foo") assert instance.type is...
rust_cleaned_test_functions.jsonl/95164
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 500 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 842, 805, 368, 341, 262, 13027, 486, 4197, 1889, 321, 22428, 3288, 91, 341, 286, 1077, 7112, 842, 805, 1819, 284, 4510, 670, 1819, 27638, 81, 2, 20015, 764, 805, 3913, 286, 4510, 14007, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mutex() { let wrapper = Wrapper { inner: Mutex::new(Inner), }; assert_eq!(wrapper.method(3), 3); assert_eq!(wrapper.method2(3), 3); }
rust_cleaned_test_functions.jsonl/43058
{ "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, 14204, 368, 341, 262, 1077, 13261, 284, 35488, 341, 286, 9179, 25, 66215, 486, 931, 7, 31597, 1326, 262, 3634, 262, 2060, 10714, 10297, 21364, 12908, 7, 18, 701, 220, 18, 317, 262, 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
#[test] fn test_filter_cpuid_1vcpu_ht_off() { let mut kvm_cpuid = CpuId::new(11); { let entries = kvm_cpuid.mut_entries_slice(); entries[0].function = 0x1; } { let entries = kvm_cpuid.mut_entries_slice(); entries[1].function = 0x4; ...
rust_cleaned_test_functions.jsonl/110144
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 4254 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8727, 39811, 2423, 62, 16, 85, 16475, 49086, 13651, 368, 341, 286, 1077, 5206, 94748, 39811, 2423, 284, 356, 5584, 764, 486, 931, 7, 16, 16, 317, 286, 341, 310, 1077, 10695, 284, 94748, 39811, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_neg() { assert_eq!(-_1_0i + _0_1i, _neg1_1i); assert_eq!((-_0_1i) * _0_1i, _1_0i); for &c in all_consts.iter() { assert_eq!(-(-c), c); } }
rust_cleaned_test_functions.jsonl/105714
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 163 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28209, 368, 341, 310, 2060, 10714, 0, 4080, 62, 16, 62, 15, 72, 488, 716, 15, 62, 16, 72, 11, 716, 28775, 16, 62, 16, 72, 317, 310, 2060, 10714, 0, 54934, 62, 15, 62, 16, 72, 8, 353, 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...
2
#[test] fn test_top_score_collector_collect() { let mut collector = TopScoreCollector::new(10); collector.collect(DocumentMatch::new_scored(0, 1.0f32)); collector.collect(DocumentMatch::new_scored(1, 0.5f32)); collector.collect(DocumentMatch::new_scored(2, 2.0f32)); coll...
rust_cleaned_test_functions.jsonl/96805
{ "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, 10426, 10405, 10211, 27669, 68140, 368, 341, 286, 1077, 5206, 31953, 284, 6909, 10570, 53694, 486, 931, 7, 16, 15, 626, 286, 31953, 29124, 60880, 8331, 486, 931, 10405, 67, 7, 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...
1
#[test] fn test_update_data_set_values_and_post() { init!("false"); let (agent_did, agent_vk) = create_and_store_my_did(Some(MY2_SEED)).unwrap(); let (my_did, my_vk) = create_and_store_my_did(Some(MY1_SEED)).unwrap(); let (agency_did, agency_vk) = create_and_store_my_did(Some(MY3...
rust_cleaned_test_functions.jsonl/38975
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 393 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8882, 1769, 2602, 9146, 8378, 6333, 368, 341, 286, 2930, 17223, 3849, 797, 286, 1077, 320, 8092, 814, 307, 11, 8315, 89852, 8, 284, 1855, 8378, 14809, 35686, 814, 307, 65405, 3189, 56, 17, 3620,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_components() { let gliffn = "test_data/TT2020Base.ufo/glyphs/gershayim.glif"; let mut glif: glifparser::Glif<()> = glifparser::glif::read_from_filename(gliffn).unwrap(); glif.filename = Some(gliffn.into()); let sanity = glif.filename_is_sane(); assert!(sanity.is_ok(...
rust_cleaned_test_functions.jsonl/64035
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 448 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 23258, 368, 341, 262, 1077, 2770, 3092, 77, 284, 330, 1944, 1769, 14, 14903, 17, 15, 17, 15, 3978, 11634, 824, 4846, 9525, 82, 4846, 54990, 352, 318, 19787, 333, 876, 9401, 262, 1077, 5206, 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...
4
#[test] fn test_try_rfold_moves_iter() { let v: VecDeque<_> = [10, 20, 30, 40, 100, 60, 70, 80, 90].iter().collect(); let mut iter = v.into_iter(); assert_eq!(iter.try_rfold(0_i8, |acc, &x| acc.checked_add(x)), None); assert_eq!(iter.next_back(), Some(&70)); }
rust_cleaned_test_functions.jsonl/73751
{ "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, 53283, 1710, 19961, 45390, 11723, 368, 341, 262, 1077, 348, 25, 11312, 73891, 32399, 29, 284, 508, 16, 15, 11, 220, 17, 15, 11, 220, 18, 15, 11, 220, 19, 15, 11, 220, 16, 15, 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_mul() { let a = Vec3::new(3.0, 4.0, 1.0) * 2.0; assert_eq!(a.x, 6.0); assert_eq!(a.y, 8.0); assert_eq!(a.z, 2.0); let b = 2.0f64 * Vec3::new(3.0, 4.0, 1.0); assert_eq!(b.x, 6.0); assert_eq!(b.y, 8.0); ...
rust_cleaned_test_functions.jsonl/29319
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 252 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 24944, 368, 341, 310, 1077, 264, 284, 11312, 18, 486, 931, 7, 18, 13, 15, 11, 220, 19, 13, 15, 11, 220, 16, 13, 15, 8, 353, 220, 17, 13, 15, 280, 310, 2060, 10714, 10297, 64, 1993, 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_find_state_3() { /* /----+ 0 <--+ | | | | v | | +-> 1 -> 3 4 5 | | | | | v | | +-- 2 <----+-+ */ let graph = TestGraph::new(0, &[(0, 1), (0, 4), (1, 2), (1, 3), (2, 1), (3, 0), (4, 2), (5, 2)]); le...
rust_cleaned_test_functions.jsonl/83571
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 419 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21814, 4387, 62, 18, 368, 341, 262, 9049, 688, 608, 381, 16930, 286, 220, 15, 70386, 10, 9248, 286, 760, 262, 760, 9248, 286, 348, 262, 760, 9248, 262, 488, 405, 220, 16, 1464, 220, 18, 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_completed_without_date_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_COMPLETED_WIT...
rust_cleaned_test_functions.jsonl/99772
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 232 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 49068, 39904, 4164, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_to_si_should_truncate_output() { new_ucmd!() .args(&["--to=si"]) .pipe_in_fixture("gnutest_si_input.txt") .succeeds() .stdout_is_fixture("gnutest_si_result.txt"); }
rust_cleaned_test_functions.jsonl/46013
{ "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, 2346, 40983, 43378, 3547, 26900, 7645, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 313, 983, 28, 6321, 14108, 286, 659, 13768, 1243, 74409, 445, 4905, 332, 477, 40983, 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_register() { run_test(|url, client| { let response = client .post(&format!("{}/biome/register", url)) .json(&UsernamePassword { username: "test_register@gmail.com".to_string(), hashed_password: "Admin2193...
rust_cleaned_test_functions.jsonl/32285
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 335 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14000, 368, 341, 286, 1598, 4452, 22428, 1085, 11, 2943, 91, 341, 310, 1077, 2033, 284, 2943, 198, 394, 659, 2203, 2099, 2243, 88928, 4472, 8221, 635, 37837, 497, 2515, 1171, 394, 659, 2236, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_vget_lane_u64() { unsafe { let v: [u64; 1] = [1]; let r = vget_lane_u64(transmute(v), 0); assert_eq!(r, 1); } }
rust_cleaned_test_functions.jsonl/33019
{ "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, 2273, 455, 60302, 7300, 21, 19, 368, 341, 286, 19860, 341, 310, 1077, 348, 25, 508, 84, 21, 19, 26, 220, 16, 60, 284, 508, 16, 935, 310, 1077, 435, 284, 348, 455, 60302, 7300, 21, 19, 3308...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_lower() { // Test non-binary string case let cases = vec![ ( Datum::Bytes(b"HELLO".to_vec()), Datum::Bytes(b"hello".to_vec()), ), (Datum::Bytes(b"123".to_vec()), Datum::Bytes(b"123".to_vec())), ( ...
rust_cleaned_test_functions.jsonl/9097
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1801 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 30425, 368, 341, 286, 442, 3393, 2477, 94839, 914, 1142, 198, 286, 1077, 5048, 284, 7486, 90515, 310, 2399, 394, 68459, 486, 7078, 1883, 1, 50712, 1593, 3263, 983, 13251, 14702, 394, 68459, 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...
3
#[test] fn test_number_type_from_error() { assert_eq!( NumberType::from("xyz").unwrap_err(), NumberTypeError::NumberOfChunks("xyz".to_string()) ); assert_eq!( NumberType::from("l/xyz").unwrap_err(), NumberTypeError::NumberOfChunks("xyz".to_...
rust_cleaned_test_functions.jsonl/16013
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 838 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5500, 1819, 5673, 4096, 368, 341, 286, 2060, 10714, 33673, 310, 5624, 929, 486, 1499, 445, 28854, 1827, 15454, 9266, 3148, 310, 5624, 80076, 486, 40619, 89681, 445, 28854, 3263, 983, 3904, 2398, 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_primitive_array_gt_eq() { cmp_i64!( gt_eq, &[8, 8, 8, 8, 8, 8, 8, 8, 8, 8], &[6, 7, 8, 9, 10, 6, 7, 8, 9, 10], vec![true, true, true, false, false, true, true, true, false, false] ); }
rust_cleaned_test_functions.jsonl/38881
{ "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, 84087, 3858, 37479, 10714, 368, 341, 286, 26089, 5318, 21, 19, 33673, 310, 25161, 10714, 345, 310, 44590, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, 11, 220, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_single_lock_manager() { let lock_mgr = start_lock_manager(); // Timeout assert!(!lock_mgr.has_waiter()); let (waiter, lock_info, f) = new_test_waiter(10.into(), 20.into(), 20); lock_mgr.wait_for( waiter.start_ts, waiter.cb, ...
rust_cleaned_test_functions.jsonl/12320
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2517 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19487, 9818, 12144, 368, 341, 286, 1077, 5296, 42438, 284, 1191, 9818, 12144, 1428, 286, 442, 39380, 198, 286, 2060, 0, 3471, 1023, 42438, 6858, 18760, 261, 1423, 286, 1077, 320, 11489, 261, 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...
7
#[test] fn test_insufficient_funds() { let (genesis_config, mint_keypair) = create_genesis_config(11_000); let bank = Bank::new_for_tests(&genesis_config); let pubkey = solana_sdk::pubkey::new_rand(); bank.transfer(1_000, &mint_keypair, &pubkey).unwrap(); assert_eq!(bank....
rust_cleaned_test_functions.jsonl/28860
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 415 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34386, 26683, 761, 42950, 368, 341, 286, 1077, 320, 77894, 5332, 11, 28337, 3097, 12670, 8, 284, 1855, 16322, 13774, 5332, 7, 16, 16, 62, 15, 15, 15, 317, 286, 1077, 6073, 284, 8547, 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_compare_larger_equal_lists() { use std::iter::repeat; let v: Vec<char> = repeat('x').take(1000).collect(); assert_eq!(Comparison::Equal, sublist(&v, &v)); }
rust_cleaned_test_functions.jsonl/68276
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 83 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 32235, 907, 41776, 11478, 37288, 368, 341, 262, 990, 1460, 486, 2015, 486, 30624, 401, 262, 1077, 348, 25, 11312, 21919, 29, 284, 13153, 492, 87, 1823, 22769, 7, 16, 15, 15, 15, 568, 17384, 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
#[test] fn test_all_items() { check( r#" macro_rules! m { ($($i:item)*) => ($($i )*) } m! { extern crate a; mod b; mod c {} use d; const E: i32 = 0; static F: i32 = 0; impl G {} struct H; enum I { Foo } trait J {} fn h() {} extern {} type T = u8; }...
rust_cleaned_test_functions.jsonl/85232
{ "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, 5705, 12134, 368, 341, 262, 1779, 1006, 286, 435, 2, 698, 32606, 21407, 0, 296, 314, 1711, 699, 72, 78852, 8, 3764, 589, 1711, 699, 72, 873, 3764, 456, 76, 0, 341, 262, 15637, 17717, 264, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_build_url_mget() { let url_builder = ElasticsearchUrlBuilder::new("http://server".to_string(), "INDEX_NAME".to_string()); assert_that(&url_builder.mget()).is_equal_to("http://server/INDEX_NAME/_doc/_mget".to_string()); }
rust_cleaned_test_functions.jsonl/35094
{ "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, 20801, 2903, 717, 455, 368, 341, 220, 1077, 2515, 28532, 284, 58887, 2864, 3297, 486, 931, 445, 1254, 1110, 4030, 3263, 983, 3904, 1507, 330, 44331, 4708, 3263, 983, 3904, 5231, 220, 2060, 70197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_channel_config() { assert!(serde_yaml::from_str::<ChannelConfig>("{}").is_err()); assert_eq!( serde_yaml::from_str::<ChannelConfig>(r#" name: x type: GR channel: y "#).unwrap(), ChannelConfig { ...
rust_cleaned_test_functions.jsonl/6413
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1075 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14571, 5332, 368, 341, 286, 2060, 10297, 47024, 64380, 486, 1499, 2895, 27638, 9629, 2648, 13211, 6257, 1827, 285, 9266, 5231, 286, 2060, 10714, 33673, 310, 61570, 64380, 486, 1499, 2895, 27638, 962...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_index_delete_ns() -> Result<()> { let data_directory = tempdir().unwrap(); let index = Index::at(data_directory.path()).unwrap(); let namespace_name = "some_namespace".parse().unwrap(); index.create_ns(&namespace_name)?; index.delete_ns(&namespace_name)?...
rust_cleaned_test_functions.jsonl/44411
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 174 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3560, 11353, 34728, 368, 1464, 5714, 71698, 341, 286, 1077, 821, 14846, 284, 2730, 3741, 1005, 15454, 1428, 286, 1077, 1922, 284, 8008, 486, 266, 2592, 14846, 3875, 6011, 15454, 543, 286, 1077, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_from_glib_container() { unsafe { let test_a: GString = FromGlibContainer::from_glib_container_num( ffi::g_strdup("hello_world".as_ptr() as *const i8), 5, ); assert_eq!("hello", test_a.as_str()); let test_b: ...
rust_cleaned_test_functions.jsonl/58212
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 516 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5673, 1889, 2740, 15847, 368, 341, 286, 19860, 341, 310, 1077, 1273, 4306, 25, 479, 703, 284, 5542, 38, 2740, 4502, 486, 1499, 1889, 2740, 15847, 4273, 1006, 394, 76956, 486, 70, 45901, 445, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mine() { let mut chain = Chain::new(); let (t0, t0_s) = Transaction::debug_make_register(format!("SN1337BIKE")); let (t1, t1_s) = Transaction::debug_make_transfer(&t0, &t0_s); let (t2, _) = Transaction::debug_make_transfer(&t1, &t1_s); // First block ...
rust_cleaned_test_functions.jsonl/102224
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 720 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 717, 482, 368, 341, 286, 1077, 5206, 8781, 284, 28525, 486, 931, 1428, 286, 1077, 320, 83, 15, 11, 259, 15, 643, 8, 284, 17869, 486, 8349, 28230, 14000, 20698, 17223, 18966, 16, 18, 18, 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_split_evenly() { let colors = vec![ &RED, &BLUE, &YELLOW, &WHITE, &BLACK, &MAGENTA, &CYAN, &BLUE, &RED, ]; let drawing_area = create_mocked_drawing_area(902, 900, |m| { for col in 0..3 { for row in 0..3 { let col...
rust_cleaned_test_functions.jsonl/81493
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 904 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 17052, 68347, 398, 368, 341, 286, 1077, 7987, 284, 7486, 90515, 310, 609, 6504, 11, 609, 64330, 11, 609, 97029, 11, 609, 56999, 11, 609, 62849, 11, 609, 44, 1890, 72321, 11, 609, 34525, 1093, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_response_cookies() { use crate::httpmessage::HttpMessage; let req = crate::test::TestRequest::default() .header(COOKIE, "cookie1=value1") .header(COOKIE, "cookie2=value2") .finish(); let cookies = req.cookies().unwrap(); let r...
rust_cleaned_test_functions.jsonl/18832
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 640 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9655, 94158, 368, 341, 286, 990, 17717, 486, 1254, 1994, 486, 2905, 2052, 401, 286, 1077, 4232, 284, 17717, 486, 1944, 486, 2271, 1900, 486, 2258, 741, 310, 659, 2708, 3025, 46, 23588, 11, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_eval_binary_function_vector_scalar() { #[rpn_fn(nullable)] fn foo(v1: Option<&Real>, v2: Option<&Real>) -> Result<Option<Real>> { Ok(Some(*v1.unwrap() - *v2.unwrap())) } let mut columns = LazyBatchColumnVec::from(vec![{ let mut col...
rust_cleaned_test_functions.jsonl/92666
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 766 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 21296, 31761, 9174, 12247, 41652, 368, 341, 394, 11506, 81, 19958, 15246, 34885, 5563, 286, 5168, 15229, 3747, 16, 25, 6959, 52244, 12768, 8066, 348, 17, 25, 6959, 52244, 12768, 9231, 1464, 5714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_mount_cgroups() { let stdout_fd = std::io::stdout().as_raw_fd(); let mount = oci::Mount { destination: "/cgroups".to_string(), r#type: "cgroup".to_string(), source: "/cgroups".to_string(), options: vec!["shared".to_string()], ...
rust_cleaned_test_functions.jsonl/42575
{ "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, 57593, 666, 16753, 368, 341, 286, 1077, 20075, 17676, 284, 1460, 486, 815, 486, 36358, 1005, 300, 16067, 17676, 543, 286, 1077, 6470, 284, 93975, 486, 16284, 341, 310, 9106, 25, 3521, 66, 16753, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_outamemory() { let mut array = ArrayVecFormatter::<1>::new(); array.push_byte(b'x').unwrap(); assert_eq!( array.push_byte(b'x'), Err(Error::from(ErrorCode::OutOfMemory)) ); assert_eq!( array.push_str(b"x"), Err(Error::from(ErrorCode::OutOfMemor...
rust_cleaned_test_functions.jsonl/95662
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 165 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6068, 309, 4731, 368, 341, 262, 1077, 5206, 1334, 284, 2910, 10050, 14183, 27638, 16, 6831, 931, 543, 262, 1334, 2552, 19737, 1883, 6, 87, 1823, 15454, 543, 262, 2060, 10714, 33673, 286, 1334, 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_bad_hyphen() { // See: https://github.com/chyh1990/yaml-rust/issues/23 let s = "{-"; assert!(YamlLoader::load_from_str(&s).is_err()); }
rust_cleaned_test_functions.jsonl/1208
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 95 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34199, 1523, 88, 14769, 368, 341, 286, 442, 3496, 25, 3703, 1110, 5204, 905, 21284, 73801, 16, 24, 24, 15, 26491, 9467, 3795, 590, 38745, 14, 17, 18, 198, 286, 1077, 274, 284, 13868, 12, 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
#[test] fn test_request() { use helix::*; let req = GetStreamsRequest::builder().build(); let data = br#" { "data": [ { "id": "26007494656", "user_id": "23161357", "user_name": "LIRIK", "user_login": "lirik", "game_id": "4...
rust_cleaned_test_functions.jsonl/44002
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1004 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 7893, 368, 341, 262, 990, 11338, 941, 56162, 262, 1077, 4232, 284, 2126, 73576, 1900, 486, 17850, 1005, 5834, 1428, 1066, 262, 1077, 821, 284, 1411, 2, 698, 515, 262, 330, 691, 788, 2278, 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_invalid_projection() -> Result<()> { let schema = Arc::new(Schema::new(vec![ Field::new("a", DataType::Int32, false), Field::new("b", DataType::Int32, false), Field::new("c", DataType::Int32, false), ])); let batch = RecordBatch::try_n...
rust_cleaned_test_functions.jsonl/20928
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 522 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 31433, 72738, 368, 1464, 5714, 71698, 341, 286, 1077, 10802, 284, 19689, 486, 931, 3759, 3416, 486, 931, 25592, 90515, 310, 8601, 486, 931, 445, 64, 497, 33172, 486, 1072, 18, 17, 11, 895, 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...
4
#[test] fn test_remove_requests() { let (mut request_manager, validators) = generate_request_manager_and_validators(0, 2); let validator_0 = vec![validators[0].clone()]; let validator_1 = vec![validators[1].clone()]; // Add version requests to request manager request_ma...
rust_cleaned_test_functions.jsonl/42116
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 437 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 18193, 37216, 368, 341, 286, 1077, 320, 6984, 1681, 12144, 11, 38588, 8, 284, 6923, 7893, 12144, 8378, 8337, 2973, 7, 15, 11, 220, 17, 626, 286, 1077, 22935, 62, 15, 284, 7486, 20703, 59424, 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_latin1_byte_compatible_up_to() { let buffer = b"a\x81\xB6\xF6\xF0\x82\xB4"; assert_eq!( BIG5.new_decoder_without_bom_handling() .latin1_byte_compatible_up_to(buffer) .unwrap(), 1 ); assert_eq!( EU...
rust_cleaned_test_functions.jsonl/90286
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 5548 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 907, 14768, 16, 19737, 2965, 37079, 8237, 2346, 368, 341, 286, 1077, 4147, 284, 293, 56693, 3462, 23, 16, 3462, 33, 21, 3462, 37, 21, 3462, 37, 15, 3462, 23, 17, 3462, 33, 19, 876, 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_ply_read_write() { let tmp_dir = TempDir::new("test_ply_read_write").unwrap(); let file_path_test = tmp_dir.path().join("out.ply"); let file_path_gt = "src/test_data/xyz_f32_rgb_u8_intensity_f32.ply"; { let mut ply_writer = PlyNodeWrite...
rust_cleaned_test_functions.jsonl/85538
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1049 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 620, 398, 6443, 9165, 368, 341, 286, 1077, 4174, 4334, 284, 19944, 6184, 486, 931, 445, 1944, 620, 398, 6443, 9165, 1827, 15454, 543, 286, 1077, 1034, 2638, 4452, 284, 4174, 4334, 3875, 1005, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_four_of_a_kind_cascade() { test(&["3S 3H 2S 3D 3C", "3S 3H 4S 3D 3C"], &["3S 3H 4S 3D 3C"]) }
rust_cleaned_test_functions.jsonl/49919
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 77 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 56142, 3575, 4306, 33162, 666, 19977, 368, 341, 1066, 262, 1273, 2099, 1183, 18, 50, 220, 18, 39, 220, 17, 50, 220, 18, 35, 220, 18, 34, 497, 330, 18, 50, 220, 18, 39, 220, 19, 50, 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_bounded() { let (tx, rx) = super::bounded::<u64>(10); tx.try_send(1).unwrap(); for i in 2..11 { tx.clone().send(i).unwrap(); } assert_eq!(tx.try_send(11), Err(TrySendError::Full(11))); assert_eq!(rx.try_recv(), Ok(1)); for i in...
rust_cleaned_test_functions.jsonl/43344
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1020 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 880, 13082, 368, 341, 286, 1077, 320, 3998, 11, 19111, 8, 284, 2256, 486, 65686, 27638, 84, 21, 19, 2235, 16, 15, 317, 286, 9854, 48779, 13565, 7, 16, 568, 15454, 543, 286, 369, 600, 304, 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...
4
#[test] fn test_to_querystring() { macro_rules! qs_test { (| $r:ident | $b:block, $expected:expr) => {{ let $r = StatusesRequest::new(); let $r = $b; let qs = $r .to_querystring() .expect("Failed to seria...
rust_cleaned_test_functions.jsonl/6373
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2806 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2346, 5738, 917, 368, 341, 286, 18072, 21407, 0, 32421, 4452, 341, 310, 320, 91, 400, 81, 25, 1713, 760, 400, 65, 57628, 11, 400, 7325, 96011, 8, 589, 80505, 394, 1077, 400, 81, 284, 8104, 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_reformat_tabs() { let input = indoc! {r#" datasource pg { provider\t=\t"postgresql" url = "postgresql://" } "#}; let expected = expect![[r#" datasource pg { provider = "postgresql" url = "postgresql://" } ...
rust_cleaned_test_functions.jsonl/73217
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 226 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 2243, 57953, 368, 341, 262, 1077, 1946, 284, 1257, 509, 0, 314, 81, 2, 698, 286, 69156, 17495, 341, 688, 9109, 4955, 34433, 83, 1, 88470, 698, 688, 2515, 284, 330, 88470, 1110, 698, 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_datetime_format_alignment() { let datetime = Utc.ymd(2007, 01, 02); // Item::Literal let percent = datetime.format("%%"); assert_eq!(" %", format!("{:>3}", percent)); assert_eq!("% ", format!("{:<3}", percent)); assert_eq!(" % ", format!("{:^3}"...
rust_cleaned_test_functions.jsonl/89868
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 555 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 28943, 8955, 51006, 368, 341, 286, 1077, 8874, 284, 547, 10413, 13, 1600, 67, 7, 17, 15, 15, 22, 11, 220, 15, 16, 11, 220, 15, 17, 626, 286, 442, 5739, 486, 17350, 198, 286, 1077, 3266, 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_backup() { let mut t = make_parser(); assert_eq!(t.next().and_then(|n| Some(n.typ)), Some(ItemType::ItemText)); let i = t.next().unwrap(); let s = i.to_string(); t.backup(i); assert_eq!(t.next().and_then(|n| Some(n.to_string())), Some(s)); ...
rust_cleaned_test_functions.jsonl/8625
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 44710, 368, 341, 286, 1077, 5206, 259, 284, 1281, 18517, 543, 286, 2060, 10714, 10297, 83, 4529, 1005, 437, 68367, 22428, 77, 91, 4329, 1445, 49286, 5731, 4329, 29771, 929, 486, 1234, 1178, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_note_on_midi_conversion() { let event = NoteEvent::NoteOn { timing: TIMING, channel: 1, note: 2, velocity: 0.6929134, }; assert_eq!( NoteEvent::from_midi(TIMING, event.as_midi().unwrap()).unwrap(), ...
rust_cleaned_test_functions.jsonl/115671
{ "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, 27207, 4470, 717, 12278, 64132, 368, 341, 286, 1077, 1538, 284, 7036, 1556, 486, 9112, 1925, 341, 310, 18405, 25, 17742, 1718, 345, 310, 5496, 25, 220, 16, 345, 310, 5185, 25, 220, 17, 345, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_set_tss_address() { let kvm = Kvm::new().unwrap(); let vm = kvm.create_vm().unwrap(); assert!(vm.set_tss_address(0xfffb_d000).is_ok()); }
rust_cleaned_test_functions.jsonl/86833
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 100 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2602, 528, 778, 6744, 368, 341, 286, 1077, 94748, 284, 730, 7338, 486, 931, 1005, 15454, 543, 286, 1077, 10995, 284, 94748, 2520, 39008, 1005, 15454, 543, 286, 2060, 10297, 7338, 980, 528, 778, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
#[test] fn test_bigint_value() { let seven = BigInt { base: 10, powers: vec![7], }; assert_eq!(seven.value(), 7); let twenty_seven = BigInt { base: 10, powers: vec![2, 7], }; assert_eq!(twenty_seven.value(), 27); ...
rust_cleaned_test_functions.jsonl/48672
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 277 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36386, 396, 3142, 368, 341, 286, 1077, 8094, 284, 62608, 341, 310, 2331, 25, 220, 16, 15, 345, 310, 13430, 25, 7486, 20703, 22, 1259, 286, 3634, 286, 2060, 10714, 10297, 80185, 2824, 1507, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_animation_system() { let (mut w, mut d) = t::init_world(); let player = t::add_player(&mut w); let packet = AnimationServerbound::new(Hand::Main); t::receive_packet(&player, &w, packet); let mut event_reader = t::reader::<PlayerAnimationEvent>(&w); ...
rust_cleaned_test_functions.jsonl/99802
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 305 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 48487, 17687, 368, 341, 286, 1077, 320, 6984, 289, 11, 5206, 294, 8, 284, 259, 486, 2327, 31792, 1428, 286, 1077, 2781, 284, 259, 486, 718, 15524, 2099, 6984, 289, 626, 286, 1077, 10151, 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_cast_dict_to_dict_bad_index_value_utf8() { use DataType::*; // Same test as test_cast_dict_to_dict_bad_index_value but use let keys_builder = PrimitiveBuilder::<Int32Type>::new(10); let values_builder = StringBuilder::new(10); let mut builder = S...
rust_cleaned_test_functions.jsonl/29632
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 518 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5303, 5243, 2346, 5243, 34199, 3560, 3142, 39453, 23, 368, 341, 286, 990, 33172, 56162, 286, 442, 25739, 1273, 438, 1273, 5303, 5243, 2346, 5243, 34199, 3560, 3142, 714, 990, 198, 23459, 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...
2
#[test] fn test_repr_emit() { let repr = Repr{ next_header: Protocol::Tcp, frag_offset: 0, more_frags: true, ident: 12345 }; let mut bytes = [0u8; 8]; let mut header = Header::new_unchecked(&mut bytes); repr.emit(&mut header); assert_eq!(header.into_inner(), &BYTES_HEADER...
rust_cleaned_test_functions.jsonl/22426
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 296 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 68535, 69082, 368, 341, 286, 1077, 30636, 284, 1032, 649, 90, 1790, 8757, 25, 24572, 486, 77536, 11, 8343, 6917, 25, 220, 15, 11, 803, 41537, 2032, 25, 830, 11, 3524, 25, 220, 16, 17, 18, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_encode_i32() { assert_eq!(encode_i32(0), 0b0000_0000_0000_0000_0000_0000_0000_0000); assert_eq!(encode_i32(-1), 0b0000_0000_0000_0000_0000_0000_0000_0001); assert_eq!(encode_i32(2), 0b0000_0000_0000_0000_0000_0000_0000_0100); assert_eq!(encode_i32(16384), 0b0000_0...
rust_cleaned_test_functions.jsonl/47632
{ "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, 11224, 5318, 18, 17, 368, 341, 286, 2060, 10714, 10297, 6180, 5318, 18, 17, 7, 15, 701, 220, 15, 65, 15, 15, 15, 15, 62, 15, 15, 15, 15, 62, 15, 15, 15, 15, 62, 15, 15, 15, 15, 62, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_convert_nested_member_expression() { let b = ast::BaseNode::default(); let pkg = ast::Package { base: b.clone(), path: "path".to_string(), package: "main".to_string(), files: vec![ast::File { base: b.clone(), ...
rust_cleaned_test_functions.jsonl/30456
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1937 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 34910, 66279, 19388, 28068, 368, 341, 286, 1077, 293, 284, 11763, 486, 3978, 1955, 486, 2258, 543, 286, 1077, 24793, 284, 11763, 486, 13100, 341, 310, 2331, 25, 293, 15997, 3148, 310, 1815, 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_update_rooted() { let cs = ClusterSlots::default(); let mut epoch_slot = EpochSlots::default(); epoch_slot.fill(&[0], 0); cs.update_internal(0, vec![epoch_slot], DEFAULT_SLOTS_PER_EPOCH); assert!(cs.lookup(0).is_none()); }
rust_cleaned_test_functions.jsonl/53447
{ "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, 8882, 12993, 291, 368, 341, 1789, 286, 1077, 10532, 284, 35380, 51647, 486, 2258, 543, 286, 1077, 5206, 16342, 27563, 284, 87379, 51647, 486, 2258, 543, 286, 16342, 27563, 12467, 2099, 58, 15, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_qvariantmap() { let mut map = QVariantMap::default(); let key1 = QString::from("a"); let val1 = QString::from("abc"); assert!(map.is_empty()); map.insert(key1.clone(), val1.clone().into()); assert_eq!(map.len(), 1); assert_eq!(map[key1.cl...
rust_cleaned_test_functions.jsonl/56768
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 467 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8976, 15969, 2186, 368, 341, 286, 1077, 5206, 2415, 284, 40066, 2227, 486, 2258, 1428, 286, 1077, 1376, 16, 284, 7879, 486, 1499, 445, 64, 797, 286, 1077, 1044, 16, 284, 7879, 486, 1499, 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...
1
#[test] fn test_big_p() { if get_effective_gid() != 0 { new_ucmd!() .arg("-RP") .arg("bin") .arg("/proc/self/cwd") .fails() .stderr_is( "chgrp: changing group of '/proc/self/cwd': Operation not permitted (os error 1)\n", ...
rust_cleaned_test_functions.jsonl/53693
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 203 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 36386, 620, 368, 341, 262, 421, 633, 27125, 533, 72893, 368, 961, 220, 15, 341, 286, 501, 68887, 2277, 0, 741, 310, 659, 858, 13645, 21657, 1138, 310, 659, 858, 445, 6863, 1138, 310, 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...
2
#[test] fn test_penalty_one_pixel() { let left_image = vec![vec![0u32; 1]; 1]; let right_image = vec![vec![0u32; 1]; 1]; let disparity_map = vec![vec![0usize; 1]; 1]; let diffusion_graph = DiffusionGraph::initialize(left_image, right_image, 1, 1.); assert_eq!(0., diffusio...
rust_cleaned_test_functions.jsonl/70572
{ "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, 82286, 11667, 29760, 368, 341, 286, 1077, 2115, 4954, 284, 7486, 20703, 4083, 20703, 15, 84, 18, 17, 26, 220, 16, 5265, 220, 16, 935, 286, 1077, 1290, 4954, 284, 7486, 20703, 4083, 20703, 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_attr_type_range() -> Result<(), Error> { let tests = vec![ ATTR_PRIORITY, ATTR_ERROR_CODE, ATTR_USE_CANDIDATE, ATTR_EVEN_PORT, ATTR_REQUESTED_ADDRESS_FAMILY, ]; for a in tests { assert!(!(a.optional() || !a.required()), "should be requi...
rust_cleaned_test_functions.jsonl/108724
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 259 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 10422, 1819, 9698, 368, 1464, 5714, 68843, 4600, 29, 341, 262, 1077, 7032, 284, 7486, 90515, 286, 37918, 42694, 345, 286, 37918, 5414, 10020, 345, 286, 37918, 22295, 920, 3976, 915, 2336, 345, 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...
5
#[test] fn test_select_command() -> Result<()> { let output_filename = "/tmp/fzf-integration-test"; let config = config::load("tests/frankenline.yml")?; let config = config::model::Config { fzf_command: Some(vec!["tee".to_string(), output_filename.to_string()]), ....
rust_cleaned_test_functions.jsonl/89767
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 922 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 13051, 10811, 368, 1464, 5714, 71698, 341, 286, 1077, 2550, 13323, 284, 3521, 5173, 6663, 69394, 20052, 17376, 16839, 876, 286, 1077, 2193, 284, 2193, 486, 1078, 445, 23841, 80870, 89289, 1056, 3393...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_various_store_indices() { match env_logger::try_init() { Ok(_) => println!("Initializing env logger"), Err(e) => println!("env logger already initialized: {:?}", e), }; let chain_dir = ".grin_idx_1"; clean_output_dir(chain_dir); let keychain = ExtKeychain::from_random_seed().unwrap(); ...
rust_cleaned_test_functions.jsonl/84112
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 783 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 4612, 1223, 14809, 18333, 368, 341, 47706, 6105, 27413, 486, 1539, 6137, 368, 341, 197, 197, 11578, 48139, 589, 13751, 17223, 76775, 6105, 5925, 4461, 197, 197, 7747, 2026, 8, 589, 13751, 17223, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
#[test] fn test_collisions_normalize() { assert!(unranked_route_collisions(&["/hello/", "/hello"])); assert!(unranked_route_collisions(&["//hello/", "/hello"])); assert!(unranked_route_collisions(&["//hello/", "/hello//"])); assert!(unranked_route_collisions(&["/<a>", "/hello//"]...
rust_cleaned_test_functions.jsonl/26084
{ "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, 43597, 6805, 80807, 368, 341, 286, 2060, 10297, 359, 13129, 291, 28109, 43597, 6805, 2099, 1183, 14, 14990, 28105, 3521, 14990, 74446, 286, 2060, 10297, 359, 13129, 291, 28109, 43597, 6805, 2099, 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_revert_messages() { let tma = TestApi::default(); let mut wallet = Wallet::new(MemKeyStore::new()); let a = mock_block(1, 1); let tipset = Tipset::new(vec![a.clone()]).unwrap(); let b = mock_block_with_parents(tipset, 1, 1); let sender = wallet.g...
rust_cleaned_test_functions.jsonl/8491
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1728 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 1288, 1621, 23428, 368, 341, 286, 1077, 259, 1728, 284, 3393, 6563, 486, 2258, 543, 286, 1077, 5206, 15085, 284, 36483, 486, 931, 3189, 336, 1592, 6093, 486, 931, 5231, 286, 1077, 264, 284, 7860...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_joe() { // Based on discussions at https://github.com/facebookexperimental/starlark-rust/issues/22 let code = r#" def animal(id): return { "kind": "giraffe", "name": "giraffe-%s" % id, "feeding": [ { "name": "feeder", ...
rust_cleaned_test_functions.jsonl/92454
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 447 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 5374, 4644, 368, 341, 262, 442, 20205, 389, 20333, 518, 3703, 1110, 5204, 905, 75988, 86703, 79264, 75, 838, 3795, 590, 38745, 14, 17, 17, 198, 262, 1077, 2038, 284, 435, 2, 698, 750, 9864, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_err_ldabsb_nomem() { test_interpreter_and_jit_asm!( " ldabsb 0x33 exit", [], (), { |_vm, res: Result| { matches!(res.unwrap_err(), EbpfError::AccessViolation(pc, access_type, vm_addr, len, name) ...
rust_cleaned_test_functions.jsonl/58974
{ "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, 9266, 50573, 3435, 65, 53475, 336, 368, 341, 262, 1273, 15318, 28637, 8378, 5374, 275, 67529, 33673, 286, 6228, 286, 26129, 3435, 65, 220, 15, 87, 18, 18, 198, 286, 4869, 756, 286, 10239, 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_slice_array_dyn() { let mut arr = Array3::<f64>::zeros((5, 2, 5)); let info = &SliceInfo::<_, IxDyn>::new([ SliceOrIndex::from(1..), SliceOrIndex::from(1), SliceOrIndex::from(..).step_by(2), ]) .unwrap(); arr.slice(info); arr.slice_mut(info); a...
rust_cleaned_test_functions.jsonl/103424
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 194 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 26488, 3858, 69213, 368, 341, 262, 1077, 5206, 2890, 284, 2910, 18, 27638, 69, 21, 19, 6831, 35716, 1188, 20, 11, 220, 17, 11, 220, 20, 1106, 262, 1077, 3546, 284, 609, 33236, 1731, 27638, 687...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_json_extract() { let mut test_cases = vec![ // no path expression ("null", vec![], None), // Index ( "[true, 2017]", vec![PathExpression { legs: vec![PathLeg::Index(0)], ...
rust_cleaned_test_functions.jsonl/56126
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 2513 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 9455, 39123, 368, 341, 286, 1077, 5206, 1273, 41427, 284, 7486, 90515, 310, 442, 902, 1815, 7493, 198, 310, 3489, 2921, 497, 7486, 0, 12995, 2240, 1326, 310, 442, 8008, 198, 310, 2399, 394, 1054...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_report_check_interval_mono_transition() { block_on(async { let mut mock_time = MockTimeSource::new_from_now(); let mut state_machine = StateMachineBuilder::new_stub() .policy_engine(StubPolicyEngine::new(mock_time.clone())) .metrics...
rust_cleaned_test_functions.jsonl/59701
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 1112 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 14813, 7200, 20541, 60080, 53593, 368, 341, 286, 2504, 4470, 18285, 341, 310, 1077, 5206, 7860, 3009, 284, 14563, 1462, 3608, 486, 931, 5673, 20813, 543, 310, 1077, 5206, 1584, 38695, 284, 3234, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_add() { let x: Complex = Complex::new(3.0, 4.0); let y: Complex = Complex::new(5.0, 6.0); let z: Complex = x.add(&y); assert_that(8.0, is(close_to(z.get_real(), 1.0e-5))); assert_that(10.0, is(close_to(z.get_imaginary(), 1.0e-5))); }
rust_cleaned_test_functions.jsonl/43831
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 164 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2891, 368, 341, 286, 1077, 856, 25, 22096, 284, 22096, 486, 931, 7, 18, 13, 15, 11, 220, 19, 13, 15, 317, 286, 1077, 379, 25, 22096, 284, 22096, 486, 931, 7, 20, 13, 15, 11, 220, 21, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_bytes1() { let s = to_chars("bytes1"); let cur = &mut 0; expect_next_token(&s, cur, Token::Bytes1); }
rust_cleaned_test_functions.jsonl/21038
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 80 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 12524, 16, 368, 341, 286, 1077, 274, 284, 311, 37418, 445, 9651, 16, 797, 286, 1077, 2847, 284, 609, 6984, 220, 15, 280, 286, 1720, 11257, 6458, 2099, 82, 11, 2847, 11, 9660, 486, 7078, 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_deletion() { let x = b"AGCTCGATCTGATCGATCT"; let y = b"AGCTCGATCGATCGATC"; let emission_params = TestEmissionParams { x: x, y: y }; let gap_params = TestGapParams; let mut pair_hmm = PairHMM::new(); let p = pair_hmm.prob_related(&gap_params, &emi...
rust_cleaned_test_functions.jsonl/110503
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 230 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 2259, 52625, 368, 341, 286, 1077, 856, 284, 293, 1, 1890, 1162, 8798, 828, 1162, 38, 828, 8798, 828, 1162, 876, 286, 1077, 379, 284, 293, 1, 1890, 1162, 8798, 828, 8798, 828, 8798, 828, 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_rng_seeded() { let mut ra: MyRng = SeedableRng::from_seed((ReseedWithDefault, 2)); let mut rb: MyRng = SeedableRng::from_seed((ReseedWithDefault, 2)); assert!(order::equals(ra.gen_ascii_chars().take(100), rb.gen_ascii_chars().take(100))); ...
rust_cleaned_test_functions.jsonl/132550
{ "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, 66849, 3453, 29935, 368, 341, 286, 1077, 5206, 15122, 25, 3017, 49, 968, 284, 35822, 480, 49, 968, 486, 1499, 33809, 1188, 1061, 12051, 2354, 3675, 11, 220, 17, 1106, 286, 1077, 5206, 18717, 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_claim_on_remote_revoked_sizeable_push_msat() { // to_remote output is encumbered by a P2WPKH let chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]); let nodes = create_network(2...
rust_cleaned_test_functions.jsonl/16901
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 654 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 84969, 4470, 36425, 38082, 10823, 2368, 480, 14218, 21416, 266, 368, 341, 1572, 197, 322, 311, 36425, 2550, 374, 3209, 890, 291, 553, 264, 393, 17, 54, 22242, 39, 271, 10217, 26023, 1645, 18343, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_library_load() { // This test is not yet implemented for Windows let check_path = match std::env::consts::OS { "linux" => Some("test_resources/library/linux/test_op.so"), // TODO: The test op needs to be recompiled for macos. _ => ...
rust_cleaned_test_functions.jsonl/69012
{ "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, 39461, 12411, 368, 341, 286, 442, 1096, 1273, 374, 537, 3602, 11537, 369, 5515, 198, 286, 1077, 1779, 2638, 284, 2432, 1460, 486, 3160, 486, 95773, 486, 3126, 341, 310, 330, 14210, 1, 589, 4329,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
#[test] fn test_sanitize_with_invalid_ix_program_id() { assert!(Message { header: MessageHeader { num_required_signatures: 1, ..MessageHeader::default() }, account_keys: vec![Pubkey::new_unique()], address_table_lookups: vec...
rust_cleaned_test_functions.jsonl/94118
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 429 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 643, 58652, 6615, 31433, 62686, 25096, 842, 368, 341, 286, 2060, 10297, 2052, 341, 310, 4247, 25, 4856, 4047, 341, 394, 1629, 18743, 11172, 2789, 25, 220, 16, 345, 394, 5241, 2052, 4047, 486, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_no_commit_working_copy() { let test_env = TestEnvironment::default(); test_env.jj_cmd_success(test_env.env_root(), &["init", "repo", "--git"]); let repo_path = test_env.env_root().join("repo"); std::fs::write(repo_path.join("file"), "initial").unwrap(); let stdout = test_en...
rust_cleaned_test_functions.jsonl/77487
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 450 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 6536, 36346, 81101, 16096, 368, 341, 262, 1077, 1273, 15879, 284, 3393, 12723, 486, 2258, 543, 262, 1273, 15879, 1169, 73, 11684, 18632, 8623, 15879, 9265, 12993, 1507, 609, 1183, 2327, 497, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_create_empty() { let dir = tempfile::tempdir().unwrap(); let rocksfs = RocksFs::new(dir.path()).unwrap(); assert_eq!(rocksfs.number_of_keys().unwrap(), 0); }
rust_cleaned_test_functions.jsonl/3263
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 97 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 8657, 15124, 368, 341, 286, 1077, 5419, 284, 54819, 486, 3888, 3741, 1005, 15454, 1428, 286, 1077, 23035, 3848, 284, 68031, 48300, 486, 931, 14161, 3875, 6011, 15454, 543, 286, 2060, 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
#[test] fn test_mutual_close_with_data_1() { let mut s = socket_established(); s.send_slice(b"abcdef").unwrap(); s.close(); assert_eq!(s.state, State::FinWait1); recv!(s, [TcpRepr { control: TcpControl::Fin, seq_number: LOCAL_SEQ + 1, a...
rust_cleaned_test_functions.jsonl/1759
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 370 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 29523, 928, 12704, 6615, 1769, 62, 16, 368, 341, 286, 1077, 5206, 274, 284, 7575, 18583, 5102, 291, 543, 286, 274, 5219, 26488, 1883, 1, 41202, 1827, 15454, 543, 286, 274, 4653, 543, 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_get_one() { let req = Request::new(Method::Get) .with_path_segs(&["foo"]) .with_query("index=0"); let comments = test_ok(&api(), req); check_type(&comments, "application", "json"); check_content(&comments, DEFAULT_ONE_JSON); }
rust_cleaned_test_functions.jsonl/125375
{ "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, 3062, 11667, 368, 341, 262, 1077, 4232, 284, 6145, 486, 931, 35419, 486, 1949, 340, 286, 659, 4197, 2638, 3453, 5857, 2099, 1183, 7975, 14108, 286, 659, 4197, 5738, 445, 1252, 28, 15, 797, 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_stop_after_drop_sync_actor() { let started = Arc::new(AtomicBool::new(false)); let stopping = Arc::new(AtomicBool::new(false)); let stopped = Arc::new(AtomicBool::new(false)); let started1 = Arc::clone(&started); let stopping1 = Arc::clone(&stopping); let stopped1 = Arc:...
rust_cleaned_test_functions.jsonl/38340
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 602 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 19039, 19844, 29584, 23008, 54818, 368, 341, 262, 1077, 3855, 284, 19689, 486, 931, 7, 65857, 11233, 486, 931, 3576, 1106, 262, 1077, 22535, 284, 19689, 486, 931, 7, 65857, 11233, 486, 931, 3576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_scalar_repr_conversion() { let a = ScalarRepr::from(1); let b = ScalarRepr([1, 0, 0, 0]); assert_eq!(a, b); let a = Scalar::from(1); let b = Scalar::from_repr(ScalarRepr::from(1)).unwrap(); assert_eq!(a, b); assert_eq!(Scalar::from(1).into...
rust_cleaned_test_functions.jsonl/56411
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 299 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 41652, 68535, 64132, 368, 341, 286, 1077, 264, 284, 35176, 693, 649, 486, 1499, 7, 16, 317, 286, 1077, 293, 284, 35176, 693, 649, 2561, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 2558, 286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_key_manager_persistence() { let (tmp, manager) = new_tmp_key_manager(None, None, None, None); let manager = manager.unwrap().unwrap(); // Create a file and a datakey. manager.new_file("foo").unwrap(); let (files, keys) = { let dicts = manager...
rust_cleaned_test_functions.jsonl/32266
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 345 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3097, 12144, 620, 8026, 368, 341, 286, 1077, 320, 5173, 11, 6645, 8, 284, 501, 16125, 3097, 12144, 26717, 11, 2240, 11, 2240, 11, 2240, 317, 286, 1077, 6645, 284, 6645, 55395, 1005, 15454, 1428,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
#[test] fn test_resolving_one_dep() { let mut reg = registry(vec!(pkg("foo"), pkg("bar"))); let res = resolve(pkg_id("root"), vec![dep("foo")], &mut reg); assert_that(&res.unwrap(), contains(names(["root", "foo"])).exactly()); }
rust_cleaned_test_functions.jsonl/34730
{ "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, 4918, 19648, 11667, 49258, 368, 341, 262, 1077, 5206, 1217, 284, 19424, 25592, 10297, 30069, 445, 7975, 3975, 24793, 445, 2257, 17621, 262, 1077, 592, 284, 8830, 68780, 842, 445, 2888, 3975, 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...
1
#[test] fn test_raw_id_from_trigger() -> Result<(), ()> { let mut debug = DebugInfoRegistry::new(); let mut trigger_id = TriggerId::FIRST_REGULAR; let reactor_0 = ReactorId::new(0); let first_trigger = trigger_id; debug.record_reactor(reactor_0, ReactorDebugInfo::test_nam...
rust_cleaned_test_functions.jsonl/21934
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 683 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 16067, 842, 5673, 32925, 368, 1464, 5714, 68843, 1719, 29, 341, 286, 1077, 5206, 7390, 284, 11091, 1731, 15603, 486, 931, 543, 286, 1077, 5206, 8183, 842, 284, 30291, 764, 486, 67792, 8064, 7081, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
#[test] fn test_bytewise_word_boundary_split_should_preserve_empty_lines() { new_ucmd!() .args(&["-s", "-b"]) .pipe_in("\n") .succeeds() .stdout_is("\n"); new_ucmd!() .args(&["-w1", "-s", "-b"]) .pipe_in("0\n1\n\n2\n\n\n") .succeeds() .std...
rust_cleaned_test_functions.jsonl/23301
{ "file_path": "/home/dung/Code/Cross_test_gen (Copy)/clean_data_rust/data/rust_cleaned_test_functions.jsonl", "token_count": 220 }
[ 262, 11506, 1944, 921, 262, 5168, 1273, 3710, 83, 24350, 13533, 54004, 17052, 43378, 32116, 5852, 15124, 18323, 368, 341, 262, 501, 68887, 2277, 0, 741, 286, 659, 2116, 2099, 1183, 12, 82, 497, 6523, 65, 14108, 286, 659, 13768, 1243, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1