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
func TestValidReadmodelHasNoValidationErrors(t *testing.T) { const emlYAML = `Solution: Identity & Access Contexts: - Name: Identity & Access Streams: - Stream: User Commands: - Command: Name: RegisterUser Parameters: - Name: userId Type: string IsRequired: true ...
explode_data.jsonl/46923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 513 }
[ 2830, 3393, 4088, 4418, 2528, 10281, 2753, 13799, 13877, 1155, 353, 8840, 836, 8, 341, 4777, 976, 75, 56, 31102, 284, 1565, 36842, 25, 26540, 609, 9549, 198, 1972, 82, 510, 12, 3988, 25, 26540, 609, 9549, 198, 220, 94522, 510, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPodUpdate(t *testing.T) { c, _ := newTestClient(t) podAddAndUpdateTest(t, c, func(obj interface{}) { // first argument (old pod) is not used right now c.handlePodUpdate(&api_v1.Pod{}, obj) }) }
explode_data.jsonl/56845
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 23527, 4289, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 501, 2271, 2959, 1155, 340, 3223, 347, 2212, 56365, 2271, 1155, 11, 272, 11, 2915, 6779, 3749, 28875, 341, 197, 197, 322, 1156, 5693, 320, 813, 7509, 8, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateRootHTTPRoute(t *testing.T) { testCases := []struct { name string route *networking.HTTPRoute valid bool }{ { name: "simple", route: &networking.HTTPRoute{ Delegate: &networking.Delegate{ Name: "test", Namespace: "test", }, }, valid: true, }, { name:...
explode_data.jsonl/56366
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2217 }
[ 2830, 3393, 17926, 8439, 9230, 4899, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 7000, 2133, 353, 17511, 287, 27358, 4899, 198, 197, 56322, 1807, 198, 197, 59403, 197, 197, 515, 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...
2
func TestStateEnterProposeNoPrivValidator(t *testing.T) { cs, _ := randState(1) cs.SetPrivValidator(nil) height, round := cs.Height, cs.Round // Listen for propose timeout event timeoutCh := subscribe(cs.eventBus, types.EventQueryTimeoutPropose) startTestRound(cs, height, round) // if we're not a validator, E...
explode_data.jsonl/81642
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 1397, 6269, 2008, 960, 2753, 32124, 14256, 1155, 353, 8840, 836, 8, 341, 71899, 11, 716, 1669, 10382, 1397, 7, 16, 340, 71899, 4202, 32124, 14256, 27907, 340, 30500, 11, 4778, 1669, 10532, 17743, 11, 10532, 37646, 271, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestCreateEmptyWarmIndexIfNotExists(t *testing.T) { ctrl := xtest.NewController(t) defer ctrl.Finish() var ( nsID = ident.StringID("warm") nsOpts = namespace.NewOptions() blockStart = xtime.Now().Truncate(nsOpts.IndexOptions().BlockSize()) ) ns, nsCloser := newTestNamespaceWithIDOpts(t, nsID...
explode_data.jsonl/35388
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 564 }
[ 2830, 3393, 4021, 3522, 95275, 1552, 2679, 2623, 15575, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 856, 1944, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 2405, 2399, 197, 84041, 915, 981, 284, 3524, 6431, 915, 445, 82597, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExtJSONReader(t *testing.T) { t.Run("ReadDocument", func(t *testing.T) { t.Run("EmbeddedDocument", func(t *testing.T) { ejvr := &extJSONValueReader{ stack: []ejvrState{ {mode: mTopLevel}, {mode: mElement, vType: bsontype.Boolean}, }, frame: 1, } ejvr.stack[1].mode = mArray ...
explode_data.jsonl/44882
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 474 }
[ 2830, 3393, 6756, 5370, 5062, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4418, 7524, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 16708, 445, 83466, 7524, 497, 2915, 1155, 353, 8840, 836, 8, 341, 298, 7727, 73, 18920, 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...
3
func TestTCPReadWriteAllocs(t *testing.T) { switch runtime.GOOS { case "plan9": // The implementation of asynchronous cancelable // I/O on Plan 9 allocates memory. // See net/fd_io_plan9.go. t.Skipf("not supported on %s", runtime.GOOS) case "nacl": // NaCl needs to allocate pseudo file descriptor // stuf...
explode_data.jsonl/18975
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 670 }
[ 2830, 3393, 49896, 58610, 25154, 82, 1155, 353, 8840, 836, 8, 341, 8961, 15592, 97574, 3126, 341, 2722, 330, 10393, 24, 4660, 197, 197, 322, 576, 8129, 315, 39007, 9121, 480, 198, 197, 197, 322, 358, 17532, 389, 9680, 220, 24, 5574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpper(t *testing.T) { t.Parallel() pair := CurrencyItem("btcusd") actual := pair.Upper() expected := CurrencyItem("BTCUSD") if actual != expected { t.Errorf("Test failed. Upper(): %s was not equal to expected value: %s", actual, expected) } }
explode_data.jsonl/55825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 14251, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1310, 1669, 28453, 1234, 445, 92634, 355, 67, 1138, 88814, 1669, 6716, 5255, 6922, 741, 42400, 1669, 28453, 1234, 445, 59118, 26749, 1138, 743, 5042, 961, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_TableBorder_UpdateBorder(t *testing.T) { config := ReadConfiguration(t) client, ctx := PrepareTest(t, config) remoteDataFolder := remoteBaseTestDataFolder + "/DocumentElements/Tables" localFile := "DocumentElements/Tables/TablesGet.docx" remoteFileName := "TestUpdateBorder.docx" Uploa...
explode_data.jsonl/16260
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 679 }
[ 2830, 3393, 42544, 10691, 47393, 10691, 1155, 353, 8840, 836, 8, 341, 262, 2193, 1669, 4457, 7688, 1155, 340, 262, 2943, 11, 5635, 1669, 31166, 2271, 1155, 11, 2193, 340, 262, 8699, 1043, 13682, 1669, 8699, 3978, 83920, 13682, 488, 3521...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestBatchMetricProcessor_Shutdown(t *testing.T) { cfg := Config{ ProcessorSettings: config.NewProcessorSettings(config.NewComponentID(typeStr)), Timeout: 3 * time.Second, SendBatchSize: 1000, } requestCount := 5 metricsPerRequest := 10 sink := new(consumertest.MetricsSink) creationSet :=...
explode_data.jsonl/25029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 337 }
[ 2830, 3393, 21074, 54310, 22946, 36578, 18452, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 5532, 515, 197, 197, 22946, 6086, 25, 2193, 7121, 22946, 6086, 8754, 7121, 2189, 915, 5808, 2580, 6965, 197, 197, 7636, 25, 1843, 220, 18, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestUp45Func(t *testing.T) { require := require.New(t) var up45F = NewFunc([]Dot{ { X: 0.0 * DecimalUnit, Y: 0.0 * DecimalUnit, }, { X: 10.0 * DecimalUnit, Y: 10.0 * DecimalUnit, }, { X: 20.0 * DecimalUnit, Y: 20.0 * DecimalUnit, }, { X: math.MaxUint32 * DecimalUnit, Y: 21....
explode_data.jsonl/19343
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 2324, 19, 20, 9626, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 2405, 705, 19, 20, 37, 284, 1532, 9626, 10556, 34207, 515, 197, 197, 515, 298, 22123, 25, 220, 15, 13, 15, 353, 26728, 4562, 345, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestParserSingleAPPCALL(t *testing.T) { // expectedToAddress := "AM8pnu1yK7ViMt7Sw2nPpbtPQXTwjjkykn" p := smartcontract.NewParserWithScript("51143acefb110cba488ae0d809f5837b0ac9c895405e52c10c6d696e74546f6b656e73546f67b17f078543788c588ce9e75544e325a050f8c1b7") //the order of your method signature has the be ex...
explode_data.jsonl/28983
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 6570, 10888, 2537, 4872, 3919, 1155, 353, 8840, 836, 8, 341, 197, 322, 3601, 1249, 4286, 1669, 330, 1402, 23, 79, 8933, 16, 88, 42, 22, 35544, 71172, 22, 13218, 17, 86749, 79, 12755, 47, 48, 9036, 86, 38811, 7891, 19095,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestFileUploadProgressPinning(t *testing.T) { f := &file{} f.pieceSize = 2 f.contracts = make(map[types.FileContractID]fileContract) f.contracts[types.FileContractID{}] = fileContract{ ID: types.FileContractID{}, IP: modules.NetAddress(""), Pieces: make([]pieceData, 4), } rsc, _ := NewRSCode(1,...
explode_data.jsonl/68229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 1703, 13844, 9496, 47, 19770, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 609, 1192, 16094, 1166, 97242, 1695, 284, 220, 17, 198, 1166, 2862, 36188, 284, 1281, 9147, 58, 9242, 8576, 14067, 915, 60, 1192, 14067, 340, 1166, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestHandleBucketsView(t *testing.T) { t.Parallel() cases := []struct { it string listBucketsFunc func() ([]minio.BucketInfo, error) expectedStatusCode int expectedBodyContains string }{ { it: "renders a list of buckets", listBucketsFunc: func() ([]minio.BucketInfo, erro...
explode_data.jsonl/78520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 755 }
[ 2830, 3393, 6999, 33, 38551, 851, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 2264, 1669, 3056, 1235, 341, 197, 23374, 4293, 914, 198, 197, 14440, 33, 38551, 9626, 414, 2915, 368, 34923, 1065, 815, 1785, 11152, 1731, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAccDataSourceKeyVaultCertificateIssuer_basic(t *testing.T) { data := acceptance.BuildTestData(t, "data.azurerm_key_vault_certificate_issuer", "test") r := KeyVaultCertificateIssuerDataSource{} data.DataSourceTest(t, []acceptance.TestStep{ { Config: r.basic(data), Check: acceptance.ComposeTestCheckF...
explode_data.jsonl/73138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 337 }
[ 2830, 3393, 14603, 17173, 1592, 79177, 33202, 98902, 34729, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 25505, 25212, 83920, 1155, 11, 330, 691, 13, 1370, 324, 4195, 3097, 2273, 945, 63047, 62, 66817, 497, 330, 1944, 1138, 7000, 1669, 530...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRLP(t *testing.T) { t.Parallel() tm := new(testMatcher) tm.walk(t, rlpTestDir, func(t *testing.T, name string, test *RLPTest) { if err := tm.checkFailure(t, test.Run()); err != nil { t.Error(err) } }) }
explode_data.jsonl/59660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 4728, 47, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3244, 76, 1669, 501, 8623, 37554, 340, 3244, 76, 51394, 1155, 11, 435, 13545, 2271, 6184, 11, 2915, 1155, 353, 8840, 836, 11, 829, 914, 11, 1273, 353, 4728,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestSampleConfig(t *testing.T) { m := MongoDB{} if m.SampleConfig() != sampleConfig { t.Errorf("unexpected SampleConfig, expected %s, got %s\n", sampleConfig, m.SampleConfig()) } }
explode_data.jsonl/53063
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 17571, 2648, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 45328, 16094, 743, 296, 76266, 2648, 368, 961, 6077, 2648, 341, 197, 3244, 13080, 445, 53859, 19143, 2648, 11, 3601, 1018, 82, 11, 2684, 1018, 82, 1699, 497, 6077, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestRegexValidateKo(t *testing.T) { testData := []testRegex{ {exp: "[A-Z]+", isValid: false, data: "1234"}, {exp: "^[0-9]{4,6}$", isValid: false, data: "123456789"}, {exp: "^\\w+$", isValid: false, data: "whate ver24"}, {exp: `^\w+$`, isValid: false, data: " iamg ood"}, {exp: "[^A-Z]+", isValid: false,...
explode_data.jsonl/11236
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 32464, 17926, 42, 78, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1669, 3056, 1944, 32464, 515, 197, 197, 90, 4580, 25, 10545, 32, 11171, 7574, 497, 26171, 25, 895, 11, 821, 25, 330, 16, 17, 18, 19, 7115, 197, 197, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestSBSExistingWriter(t *testing.T) { test(t, users("alice", "bob"), inPrivateTlf("alice,bob,bob@twitter"), as(alice, mkfile("alice.txt", "hello bob"), ), as(bob, mkfile("bob.txt", "hello alice"), read("alice.txt", "hello bob"), ), as(alice, read("bob.txt", "hello alice"), ), addNew...
explode_data.jsonl/41329
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 443 }
[ 2830, 3393, 50, 7347, 53067, 6492, 1155, 353, 8840, 836, 8, 341, 18185, 1155, 345, 197, 90896, 445, 63195, 497, 330, 47086, 4461, 197, 17430, 16787, 51, 11008, 445, 63195, 8402, 674, 8402, 674, 31, 14679, 4461, 197, 60451, 17643, 558, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCaptivePreviousLedgerCheck(t *testing.T) { metaChan := make(chan metaResult, 200) h := 3 for i := 192; i <= 300; i++ { meta := buildLedgerCloseMeta(testLedgerHeader{ sequence: uint32(i), hash: fmt.Sprintf("%02x00000000000000000000000000000000000000000000000000000000000000", ...
explode_data.jsonl/7337
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 935 }
[ 2830, 3393, 34, 27781, 21291, 60850, 1389, 3973, 1155, 353, 8840, 836, 8, 341, 84004, 46019, 1669, 1281, 35190, 8823, 2077, 11, 220, 17, 15, 15, 692, 9598, 1669, 220, 18, 198, 2023, 600, 1669, 220, 16, 24, 17, 26, 600, 2651, 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
func TestArgon2idVersionLessThanSupported(t *testing.T) { ok, err := CheckPassword("password", "$argon2id$v=18$m=65536,t=3,p=2$BpLnfgDsc2WD8F2q$o/vzA4myCqZZ36bUGsDY//8mKUYNZZaR0t4MFFSs+iM") assert.EqualError(t, err, "Argon2id versions less than v19 are not supported (hash is version 18)") assert.False(t, ok) }
explode_data.jsonl/40192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 2735, 263, 17, 307, 5637, 27451, 26067, 34636, 1155, 353, 8840, 836, 8, 341, 59268, 11, 1848, 1669, 4248, 4876, 445, 3833, 497, 5201, 70821, 17, 307, 65020, 28, 16, 23, 53516, 28, 21, 20, 20, 18, 21, 13960, 28, 18, 723...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPathSource(t *testing.T) { dir := tempDir() defer os.RemoveAll(dir) certPEM, keyPEM := makePEM("localhost", time.Minute) saveCert(dir, "localhost", certPEM, keyPEM) testSource(t, PathSource{CertPath: dir}, makeCertPool(certPEM), 0) }
explode_data.jsonl/24944
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 1820, 3608, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 2730, 6184, 741, 16867, 2643, 84427, 14161, 340, 1444, 529, 1740, 44, 11, 1376, 1740, 44, 1669, 1281, 1740, 44, 445, 8301, 497, 882, 75770, 340, 49230, 36934, 14161, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransportDisableKeepAlives(t *testing.T) { st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { io.WriteString(w, "hi") }, optOnlyServer, ) defer st.Close() connClosed := make(chan struct{}) // closed on tls.Conn.Close tr := &Transport{ t1: &http.Transport{ DisableKeepAli...
explode_data.jsonl/16111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 27560, 25479, 19434, 2101, 1886, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 501, 5475, 58699, 1155, 345, 197, 29244, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 53112, 44747, 3622, 11, 330, 6023, 1138, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHasMethod(t *testing.T) { var test = &KOS chk1 := KDbug.HasMethod(test, "IsLinux") chk2 := KDbug.HasMethod(test, "Hello") if !chk1 || chk2 { t.Error("HasMethod fail") return } }
explode_data.jsonl/74244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 10281, 3523, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 284, 609, 42, 3126, 271, 23049, 74, 16, 1669, 62990, 2313, 16152, 3523, 8623, 11, 330, 3872, 46324, 1138, 23049, 74, 17, 1669, 62990, 2313, 16152, 3523, 8623, 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...
3
func TestPermissionsExport_rejectsUnlicensed(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() actual, _ := th.RunCommandWithOutput(t, "permissions", "export") assert.Contains(t, actual, utils.T("cli.license.critical")) }
explode_data.jsonl/35304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 23851, 16894, 1288, 583, 82, 1806, 71711, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 88814, 11, 716, 1669, 270, 16708, 4062, 2354, 5097, 1155, 11, 330, 29900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestPointBls12377G1Serialize(t *testing.T) { bls12377G1 := BLS12377G1() ss := bls12377G1.Scalar.Random(testRng()) g := bls12377G1.Point.Generator() ppt := g.Mul(ss) require.Equal(t, ppt.ToAffineCompressed(), []byte{0xa0, 0xd0, 0xae, 0xea, 0xaa, 0xf1, 0xf6, 0x0, 0x59, 0x39, 0x33, 0x3c, 0x60, 0x16, 0xaf, 0x68,...
explode_data.jsonl/15784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1047 }
[ 2830, 3393, 2609, 33, 4730, 16, 17, 18, 22, 22, 38, 16, 15680, 1155, 353, 8840, 836, 8, 341, 96421, 82, 16, 17, 18, 22, 22, 38, 16, 1669, 425, 7268, 16, 17, 18, 22, 22, 38, 16, 741, 34472, 1669, 1501, 82, 16, 17, 18, 22, 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...
2
func TestSubCmdCertsCreateFilesWithFlags(t *testing.T) { subCmds := getCertsSubCommands(phaseTestK8sVersion) var tests = []struct { subCmds []string expectedFiles []string }{ { subCmds: []string{"all"}, expectedFiles: []string{ kubeadmconstants.CACertName, kubeadmconstants.CAKeyName, kube...
explode_data.jsonl/74289
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1078 }
[ 2830, 3393, 3136, 15613, 34, 15546, 4021, 10809, 2354, 9195, 1155, 353, 8840, 836, 8, 1476, 28624, 15613, 82, 1669, 43099, 15546, 3136, 30479, 97085, 2271, 42, 23, 82, 5637, 692, 2405, 7032, 284, 3056, 1235, 341, 197, 28624, 15613, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestOnEpochTickEnd(t *testing.T) { ctx := context.Background() v := vm.NewVMWithSingletons(ctx, t) addrs := vm.CreateAccounts(ctx, t, v, 1, big.Mul(big.NewInt(10_000), big.NewInt(1e18)), 93837778) // create a miner params := power.CreateMinerParams{Owner: addrs[0], Worker: addrs[0], SealProofType: abi.Regist...
explode_data.jsonl/68420
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1071 }
[ 2830, 3393, 1925, 44338, 22213, 3727, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 5195, 1669, 10995, 7121, 11187, 2354, 25915, 82, 7502, 11, 259, 340, 12718, 5428, 1669, 10995, 7251, 41369, 7502, 11, 259, 11, 348, 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
func TestMax(t *testing.T) { assert.Equal(t, 2, Max(1, 2)) assert.Equal(t, 2, Max(2, 1)) assert.Equal(t, 0, Max(-1, 0)) assert.Equal(t, -1, Max(-1, -2)) }
explode_data.jsonl/43861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 5974, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 220, 17, 11, 7487, 7, 16, 11, 220, 17, 1171, 6948, 12808, 1155, 11, 220, 17, 11, 7487, 7, 17, 11, 220, 16, 1171, 6948, 12808, 1155, 11, 220, 15, 11, 7487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_Auto_JSON(t *testing.T) { r := require.New(t) app := buffalo.New(buffalo.Options{}) app.GET("/cars", func(c buffalo.Context) error { return c.Render(200, render.Auto(c, []string{"Honda", "Toyota", "Ford", "Chevy"})) }) w := willie.New(app) res := w.JSON("/cars").Get() r.Equal(`["Honda","Toyota","F...
explode_data.jsonl/2620
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 1566, 1535, 25356, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 692, 28236, 1669, 81355, 7121, 39729, 12529, 22179, 37790, 28236, 17410, 4283, 50708, 497, 2915, 1337, 81355, 9328, 8, 1465, 341, 197, 853, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAcceptNewlyObservedReadyPods_scenarios(t *testing.T) { scenarios := []struct { name string // any pods which are previously accepted acceptedPods []string // the current pods which will be in the store; pod name -> ready currentPods map[string]bool // whether or not the scenario should result in a...
explode_data.jsonl/6339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1201 }
[ 2830, 3393, 16646, 3564, 398, 66111, 2771, 19202, 23527, 82, 13171, 60494, 1155, 353, 8840, 836, 8, 341, 29928, 60494, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 197, 322, 894, 54587, 892, 525, 8597, 11666, 198, 197, 197, 54574, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetMongoDBDefinition(t *testing.T) { expectedUrl := viper.GetString("ledger.state.mongoDBConfig.mongoDBAddress") testutil.SetupCoreYAMLConfig() mongoDBDef := GetMongoDBDefinition() assert.Equal(t, expectedUrl, mongoDBDef.URL) assert.Equal(t, "", mongoDBDef.Username) assert.Equal(t, "", mongoDBDef.Passwo...
explode_data.jsonl/19891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 1949, 54998, 3506, 10398, 1155, 353, 8840, 836, 8, 341, 42400, 2864, 1669, 95132, 21166, 445, 50704, 3467, 88484, 3506, 2648, 88484, 3506, 4286, 5130, 18185, 1314, 39820, 5386, 56, 31102, 2648, 741, 2109, 6363, 3506, 2620, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIsDir(t *testing.T) { prepares := map[pb.Data_DataType]bool{ TDirectory: true, THAMTShard: true, TFile: false, TMetadata: false, TRaw: false, TSymlink: false, } for typ, v := range prepares { fsn := NewFSNode(typ) if fsn.IsDir() != v { t.Fatalf("type %v, IsDir() should be %v...
explode_data.jsonl/42605
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 3872, 6184, 1155, 353, 8840, 836, 8, 341, 40346, 79, 5403, 1669, 2415, 11407, 65, 3336, 17817, 929, 96436, 515, 197, 10261, 9310, 25, 830, 345, 197, 197, 3617, 1402, 51, 2016, 567, 25, 830, 345, 197, 10261, 1703, 25, 414...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestResultsJoin(t *testing.T) { assert.Equal(t, []byte{0x01}, resultsJoin([][]byte{{0x01}})) assert.Equal(t, []byte{0x01, 0x02}, resultsJoin([][]byte{{0x01}, {0x02}})) assert.Equal(t, []byte{0x01, 0x02, 0x03}, resultsJoin([][]byte{{0x01}, {0x02}, {0x03}})) }
explode_data.jsonl/16993
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 9801, 12292, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 3056, 3782, 90, 15, 87, 15, 16, 2137, 3059, 12292, 10556, 1294, 3782, 2979, 15, 87, 15, 16, 3417, 1171, 6948, 12808, 1155, 11, 3056, 3782, 90, 15, 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...
1
func TestDroneQueenImpl_DeclareDuts(t *testing.T) { t.Parallel() t.Run("happy path", func(t *testing.T) { t.Parallel() ctx := gaetesting.TestingContextWithAppID("go-test") datastore.GetTestable(ctx).Consistent(true) var d DroneQueenImpl duts := []string{"ion", "nelo"} _, err := d.DeclareDuts(ctx, &api.Dec...
explode_data.jsonl/36000
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1398 }
[ 2830, 3393, 8847, 603, 52006, 9673, 24597, 67554, 35, 6128, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3244, 16708, 445, 56521, 1815, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 20985, 1669, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestTracesReceiver_error(t *testing.T) { zcore, logObserver := observer.New(zapcore.ErrorLevel) logger := zap.New(zcore) expectedErr := errors.New("handler error") c := kafkaTracesConsumer{ nextConsumer: consumertest.NewNop(), logger: logger, consumerGroup: &testConsumerGroup{err: expectedErr}, ...
explode_data.jsonl/79393
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 1282, 2434, 25436, 4096, 1155, 353, 8840, 836, 8, 341, 20832, 2153, 11, 1487, 17151, 1669, 22067, 7121, 13174, 391, 2153, 6141, 4449, 340, 17060, 1669, 32978, 7121, 13174, 2153, 692, 42400, 7747, 1669, 5975, 7121, 445, 17905, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidatorSet_VerifyCommit_CheckAllSignatures(t *testing.T) { var ( chainID = "test_chain_id" h = int64(3) blockID = makeBlockIDRandom() ) ctx, cancel := context.WithCancel(context.Background()) defer cancel() voteSet, valSet, vals := randVoteSet(ctx, t, h, 0, tmproto.PrecommitType, 4, 10) c...
explode_data.jsonl/36941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 14256, 1649, 2334, 261, 1437, 33441, 28188, 2403, 7264, 2789, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 8819, 915, 284, 330, 1944, 30583, 842, 698, 197, 9598, 981, 284, 526, 21, 19, 7, 18, 340, 197, 47996, 915,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestCreateWalletLoadWallet(t *testing.T) { rand.Seed(time.Now().UnixNano()) userID := rand.Int() addr := test.RandServerAddress(t) err := createWallet(addr, userID) require.NoError(t, err) err = createWallet(addr, userID) require.NotNil(t, err) assert.True(t, errors.Is(err, lbrynet.ErrWalletExists)) er...
explode_data.jsonl/1640
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 4021, 38259, 5879, 38259, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 9730, 13244, 1005, 55832, 83819, 2398, 19060, 915, 1669, 10382, 7371, 741, 53183, 1669, 1273, 2013, 437, 5475, 4286, 1155, 692, 9859, 1669, 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
func TestDatabase_HookFromLibrary(t *testing.T) { // setup types want := &Hook{ ID: sql.NullInt64{Int64: 1, Valid: true}, RepoID: sql.NullInt64{Int64: 1, Valid: true}, BuildID: sql.NullInt64{Int64: 1, Valid: true}, Number: sql.NullInt32{Int32: 1, Valid: true}, SourceID: sql.NullString{String...
explode_data.jsonl/15588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 622 }
[ 2830, 3393, 5988, 2039, 1941, 3830, 16915, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 4494, 198, 50780, 1669, 609, 31679, 515, 197, 29580, 25, 286, 5704, 23979, 1072, 21, 19, 90, 1072, 21, 19, 25, 220, 16, 11, 7818, 25, 830, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSwarmGetIPAddress(t *testing.T) { testCases := []struct { service swarm.Service expected string networks map[string]*docker.NetworkResource }{ { service: swarmService(withEndpointSpec(modeDNSSR)), expected: "", networks: map[string]*docker.NetworkResource{}, }, { service: swarmServi...
explode_data.jsonl/26367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 630 }
[ 2830, 3393, 13218, 2178, 1949, 87976, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 52934, 220, 60841, 13860, 198, 197, 42400, 914, 198, 197, 9038, 2349, 82, 2415, 14032, 8465, 28648, 30149, 4783, 198, 197, 594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCompactionInvalidBounds(t *testing.T) { db, err := Open("", testingRandomized(&Options{ FS: vfs.NewMem(), })) require.NoError(t, err) defer db.Close() require.NoError(t, db.Compact([]byte("a"), []byte("b"))) require.Error(t, db.Compact([]byte("a"), []byte("a"))) require.Error(t, db.Compact([]byte("b")...
explode_data.jsonl/51423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 13552, 1311, 7928, 11394, 1155, 353, 8840, 836, 8, 341, 20939, 11, 1848, 1669, 5264, 19814, 7497, 13999, 1506, 2099, 3798, 515, 197, 197, 8485, 25, 92941, 7121, 18816, 3148, 197, 44194, 17957, 35699, 1155, 11, 1848, 340, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCountBundles(t *testing.T) { tds := []spiffeid.TrustDomain{ serverTrustDomain, spiffeid.RequireTrustDomainFromString("td1.org"), spiffeid.RequireTrustDomainFromString("td2.org"), spiffeid.RequireTrustDomainFromString("td3.org"), } for _, tt := range []struct { name string count int32...
explode_data.jsonl/45891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1532 }
[ 2830, 3393, 2507, 33, 49204, 1155, 353, 8840, 836, 8, 341, 76373, 82, 1669, 3056, 2154, 43414, 307, 8240, 590, 13636, 515, 197, 41057, 45548, 13636, 345, 197, 41378, 43414, 307, 81288, 45548, 13636, 44491, 445, 1296, 16, 2659, 4461, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func Test_kClosest(t *testing.T) { type args struct { points [][]int k int } tests := []struct { name string args args want [][]int }{ { name: "test 1", args: args{ points: [][]int{{1, 3}, {-2, 2}}, k: 1, }, want: [][]int{{-2, 2}}, }, { name: "test 2", args: args{...
explode_data.jsonl/14577
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 4698, 7925, 267, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 67499, 52931, 396, 198, 197, 16463, 414, 526, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransport(t *testing.T) { const body = "sup" st := newServerTester(t, func(w http.ResponseWriter, r *http.Request) { io.WriteString(w, body) }, optOnlyServer) defer st.Close() tr := &Transport{TLSClientConfig: tlsConfigInsecure} defer tr.CloseIdleConnections() req, err := http.NewRequest("GET", st.t...
explode_data.jsonl/16047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 570 }
[ 2830, 3393, 27560, 1155, 353, 8840, 836, 8, 341, 4777, 2487, 284, 330, 12776, 698, 18388, 1669, 501, 5475, 58699, 1155, 11, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 53112, 44747, 3622, 11, 2487, 340, 197, 2137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTSTypeOnlyImport(t *testing.T) { expectPrintedTS(t, "import type foo from 'bar'; x", "x;\n") expectPrintedTS(t, "import type foo from 'bar'\nx", "x;\n") expectPrintedTS(t, "import type * as foo from 'bar'; x", "x;\n") expectPrintedTS(t, "import type * as foo from 'bar'\nx", "x;\n") expectPrintedTS(t, "imp...
explode_data.jsonl/82334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 711 }
[ 2830, 3393, 51, 784, 499, 7308, 11511, 1155, 353, 8840, 836, 8, 341, 24952, 8994, 291, 9951, 1155, 11, 330, 474, 943, 15229, 504, 364, 2257, 6967, 856, 497, 330, 87, 17882, 77, 1138, 24952, 8994, 291, 9951, 1155, 11, 330, 474, 943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetDeployments(t *testing.T) { labeller := NewLabeller(true, nil) tests := []struct { description string deps []*appsv1.Deployment expected []*resource.Deployment shouldErr bool }{ { description: "multiple deployments in same namespace", deps: []*appsv1.Deployment{ { Obj...
explode_data.jsonl/65252
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2345 }
[ 2830, 3393, 1949, 69464, 1368, 1155, 353, 8840, 836, 8, 341, 8810, 370, 7073, 1669, 1532, 29046, 7073, 3715, 11, 2092, 340, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 58351, 1690, 286, 29838, 676, 3492, 16, 34848, 39130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestBlockStoreProvider(t *testing.T) { env := newTestEnv(t, NewConf(testPath(), 0)) defer env.Cleanup() provider := env.provider stores := []blkstorage.BlockStore{} numStores := 10 for i := 0; i < numStores; i++ { store, _ := provider.OpenBlockStore(constructLedgerid(i)) defer store.Shutdown() stores ...
explode_data.jsonl/60141
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 4713, 6093, 5179, 1155, 353, 8840, 836, 8, 341, 57538, 1669, 501, 2271, 14359, 1155, 11, 1532, 15578, 8623, 1820, 1507, 220, 15, 1171, 16867, 6105, 727, 60639, 2822, 197, 19979, 1669, 6105, 28306, 198, 18388, 4589, 1669, 305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestNfsSuite(t *testing.T) { if installer.SkipTestSuite(installer.NFSTestSuite) { t.Skip() } s := new(NfsSuite) defer func(s *NfsSuite) { HandlePanics(recover(), s, s.T) }(s) suite.Run(t, s) }
explode_data.jsonl/70839
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 45, 3848, 28000, 1155, 353, 8840, 836, 8, 341, 743, 43052, 57776, 2271, 28000, 35687, 13956, 2067, 37, 784, 477, 28000, 8, 341, 197, 3244, 57776, 741, 197, 630, 1903, 1669, 501, 8204, 3848, 28000, 340, 16867, 2915, 1141, 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
func TestAddFeedShouldShowErrorMessageWhenFeedIsEmpty(t *testing.T) { expected := command.MissingFeedInformation conf := config.Config{"redis", test.ValidRedisConnection} test.InitializeRedis(conf) actual := Add(conf, test.EmptyFeed) test.AssertFailure(t, expected, actual) }
explode_data.jsonl/75096
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 2212, 28916, 14996, 7812, 21349, 4498, 28916, 91307, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 3210, 1321, 13577, 28916, 14873, 198, 67850, 1669, 2193, 10753, 4913, 21748, 497, 1273, 47156, 48137, 4526, 532, 18185, 45829, 48137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestSummaryDataPoint_CopyTo(t *testing.T) { ms := NewSummaryDataPoint() NewSummaryDataPoint().CopyTo(ms) assert.True(t, ms.IsNil()) generateTestSummaryDataPoint().CopyTo(ms) assert.EqualValues(t, generateTestSummaryDataPoint(), ms) }
explode_data.jsonl/19574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 19237, 1043, 2609, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 19237, 1043, 2609, 741, 197, 3564, 19237, 1043, 2609, 1005, 12106, 1249, 35680, 340, 6948, 32443, 1155, 11, 9829, 4506, 19064, 2398, 3174, 13220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestMemoryStoreConcurrentAccess(t *testing.T) { tests.TestStoreConcurrentAccess(t, memory.NewStoreWithOptions(limiter.StoreOptions{ Prefix: "limiter:memory:concurrent", CleanUpInterval: 1 * time.Nanosecond, })) }
explode_data.jsonl/1376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 10642, 6093, 1109, 3231, 6054, 1155, 353, 8840, 836, 8, 341, 78216, 8787, 6093, 1109, 3231, 6054, 1155, 11, 4938, 7121, 6093, 74238, 2333, 17700, 38047, 3798, 515, 197, 10025, 5060, 25, 688, 330, 4659, 2015, 25, 17269, 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
func TestPathPrependAsnToFullPathAttr(t *testing.T) { assert := assert.New(t) origin := bgp.NewPathAttributeOrigin(0) asns := make([]uint16, 255) for i, _ := range asns { asns[i] = 65000 + uint16(i) } aspathParam := []bgp.AsPathParamInterface{ bgp.NewAsPathParam(bgp.BGP_ASPATH_ATTR_TYPE_SEQ, asns), bgp.Ne...
explode_data.jsonl/57491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 573 }
[ 2830, 3393, 1820, 4703, 3740, 2121, 77, 1249, 73220, 13371, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 197, 8611, 1669, 8951, 79, 7121, 1820, 3907, 13298, 7, 15, 692, 60451, 4412, 1669, 1281, 10556, 2496, 16, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLogEventsJson(t *testing.T) { for _, event := range []*auditinternal.Event{ { AuditID: types.UID(uuid.NewRandom().String()), }, { ResponseStatus: &metav1.Status{ Code: 200, }, RequestURI: "/apis/rbac.authorization.k8s.io/v1/roles", SourceIPs: []string{ "127.0.0.1", }, Reques...
explode_data.jsonl/47780
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 755 }
[ 2830, 3393, 2201, 7900, 5014, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1538, 1669, 2088, 29838, 48545, 10481, 6904, 515, 197, 197, 515, 298, 22985, 33887, 915, 25, 4494, 5255, 915, 41458, 7121, 13999, 1005, 703, 14702, 197, 197, 1583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestExecute(t *testing.T) { var loggers logs.Loggers = &logs.GenericLoggers{} err := loggers.Check() assert.NotNil(t, err) err = Execute(context.Background(), loggers, "", "", "", "ls") assert.NotNil(t, err) loggers, err = logs.CreateStdLogger("Test") require.Nil(t, err) if platform.IsWindows() { err =...
explode_data.jsonl/18467
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 17174, 1155, 353, 8840, 836, 8, 341, 2405, 1487, 10637, 18422, 5247, 10637, 284, 609, 22081, 4341, 2201, 10637, 16094, 9859, 1669, 1487, 10637, 10600, 741, 6948, 93882, 1155, 11, 1848, 692, 9859, 284, 20848, 5378, 19047, 1507,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestLinkFormat_Encode(t *testing.T) { format := linkFormat{} ctx := fake.NewContext() data, err := format.Encode(ctx, makeLink(t)) require.NoError(t, err) re := `{"From":"[^"]+","To":"[^"]+",` + `"PrepareSignature":{},"CommitSignature":{},"ChangeSet":{}}` require.Regexp(t, re, string(data)) data, err =...
explode_data.jsonl/4473
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 552 }
[ 2830, 3393, 3939, 4061, 93529, 534, 1155, 353, 8840, 836, 8, 341, 59416, 1669, 2656, 4061, 31483, 20985, 1669, 12418, 7121, 1972, 2822, 8924, 11, 1848, 1669, 3561, 50217, 7502, 11, 1281, 3939, 1155, 1171, 17957, 35699, 1155, 11, 1848, 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
func TestTcpMetrics(t *testing.T) { if err := replaceRouteRule(tcpDbRule); err != nil { t.Fatalf("Could not update reviews routing rule: %v", err) } defer func() { if err := deleteRoutingConfig(tcpDbRule); err != nil { t.Fatalf("Could not delete reviews routing rule: %v", err) } }() allowRuleSync() if e...
explode_data.jsonl/81434
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 514 }
[ 2830, 3393, 77536, 27328, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 8290, 4899, 11337, 98203, 7994, 11337, 1215, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 12895, 537, 2647, 8379, 29058, 5912, 25, 1018, 85, 497, 1848, 340, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestDedupSeriesIterator(t *testing.T) { // The deltas between timestamps should be at least 10000 to not be affected // by the initial penalty of 5000, that will cause the second iterator to seek // ahead this far at least once. cases := []struct { a, b, exp []sample }{ { // Generally prefer the first ser...
explode_data.jsonl/63514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 803 }
[ 2830, 3393, 35, 291, 454, 25544, 11951, 1155, 353, 8840, 836, 8, 341, 197, 322, 576, 90587, 1948, 48781, 1265, 387, 518, 3245, 220, 16, 15, 15, 15, 15, 311, 537, 387, 11495, 198, 197, 322, 553, 279, 2856, 16346, 315, 220, 20, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestHandlerSetDurationIntervalConfigError(t *testing.T) { config := mockConfig{ doSetDurationInterval: func(min, max int) error { return errors.New("error") }, } response := doSetDurationIntervalRequest(handlerForConfig(config), strings.NewReader("12,34")) checkStatusCode(t, response, http.StatusBadRe...
explode_data.jsonl/48338
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 3050, 1649, 12945, 10256, 2648, 1454, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 7860, 2648, 515, 197, 19935, 1649, 12945, 10256, 25, 2915, 14146, 11, 1932, 526, 8, 1465, 341, 298, 853, 5975, 7121, 445, 841, 1138, 197, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEc2Instance_LoadDetails_InstanceDetailsIsNull(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ec2Instance, mockEC2ApiHelper := getMockInstance(ctrl) mockEC2ApiHelper.EXPECT().GetInstanceDetails(&instanceID).Return(nil, nil) err := ec2Instance.LoadDetails(mockEC2ApiHelper) assert.No...
explode_data.jsonl/751
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 50730, 17, 2523, 19553, 7799, 70849, 7799, 98593, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 17, 2523, 11, 7860, 7498, 17, 6563, 5511, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestApiTest_Recorder(t *testing.T) { getUser := apitest.NewMock(). Get("http://localhost:8080"). RespondWith(). Status(http.StatusOK). Body("1"). Times(1). End() reporter := &RecorderCaptor{} messageRequest := apitest.MessageRequest{ Source: "Source", Target: "Target", Header: "Heade...
explode_data.jsonl/54810
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 516 }
[ 2830, 3393, 6563, 2271, 62, 47023, 1155, 353, 8840, 836, 8, 341, 10366, 1474, 1669, 1443, 97105, 7121, 11571, 25829, 197, 37654, 445, 1254, 1110, 8301, 25, 23, 15, 23, 15, 38609, 197, 197, 65354, 2354, 25829, 197, 58321, 19886, 52989, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNodeKeyMarshal(t *testing.T) { var k1, k2 NodeKey for i := range k1 { k1[i] = byte(i) } testKey(t, "nodekey:", k1, &k2) }
explode_data.jsonl/48389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 1955, 1592, 55438, 1155, 353, 8840, 836, 8, 341, 2405, 595, 16, 11, 595, 17, 6018, 1592, 198, 2023, 600, 1669, 2088, 595, 16, 341, 197, 16463, 16, 989, 60, 284, 4922, 1956, 340, 197, 532, 18185, 1592, 1155, 11, 330, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestEdgeutilFaceClipping(t *testing.T) { // Start with a few simple cases. // An edge that is entirely contained within one cube face: testClipToPaddedFace(t, Point{r3.Vector{1, -0.5, -0.5}}, Point{r3.Vector{1, 0.5, 0.5}}) testClipToPaddedFace(t, Point{r3.Vector{1, 0.5, 0.5}}, Point{r3.Vector{1, -0.5, -0.5}}) ...
explode_data.jsonl/74800
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 841 }
[ 2830, 3393, 11656, 1314, 16281, 5066, 5654, 1155, 353, 8840, 836, 8, 341, 197, 322, 5145, 448, 264, 2421, 4285, 5048, 624, 197, 322, 1527, 6821, 429, 374, 11368, 12985, 2878, 825, 23739, 3579, 510, 18185, 20935, 1249, 47, 16828, 16281, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestExist(t *testing.T) { hash := createHash() defer hash.Close() if err := hash.Put("hello", uint32(21)); err != nil { t.Errorf("Failed to put key/value pair into hash: %v", err) } if err := hash.Update("hello", uint32(42), UpdateNoExist); !errors.Is(err, ErrKeyExist) { t.Error("Updating existing key d...
explode_data.jsonl/21668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 25613, 1155, 353, 8840, 836, 8, 341, 50333, 1669, 1855, 6370, 741, 16867, 5175, 10421, 2822, 743, 1848, 1669, 5175, 39825, 445, 14990, 497, 2622, 18, 17, 7, 17, 16, 5905, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 9408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestCRIAttachPortForward(t *testing.T) { tst := makeVirtletCRITester(t) tst.rec.AddFilter("Attach") tst.rec.AddFilter("PortForward") defer tst.teardown() sandboxes := criapi.GetSandboxes(1) containers := criapi.GetContainersConfig(sandboxes) tst.pullImage(cirrosImg()) tst.runPodSandbox(sandboxes[0]) tst...
explode_data.jsonl/15669
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 34, 4305, 30485, 7084, 25925, 1155, 353, 8840, 836, 8, 341, 3244, 267, 1669, 1281, 53, 2106, 1149, 8973, 952, 5191, 1155, 340, 3244, 267, 11199, 1904, 5632, 445, 30485, 1138, 3244, 267, 11199, 1904, 5632, 445, 7084, 25925, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestApplyUpdates(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() t.Run("TestApplyUpdates", func(t *testing.T) { siaFile := newTestFile() testApply(t, siaFile, ApplyUpdates) }) t.Run("TestTurtleDexFileApplyUpdates", func(t *testing.T) { siaFile := newTestFile() testApply(t, siaFile,...
explode_data.jsonl/14693
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 28497, 37091, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 2822, 3244, 16708, 445, 2271, 28497, 37091, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 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
func TestPostConstruct(t *testing.T) { context.Verbose = true ctx, err := context.Create( &beanClient{testing: t}, &beanServer{}, /** enum all interfaces in context, to make sure that all of them are initialized */ &struct { ClientService `inject` ServerService `inject` }{}, ) require.NoErro...
explode_data.jsonl/69679
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 4133, 28468, 1155, 353, 8840, 836, 8, 1476, 28413, 42505, 8297, 284, 830, 271, 20985, 11, 1848, 1669, 2266, 7251, 1006, 197, 197, 5, 17479, 2959, 90, 8840, 25, 259, 1583, 197, 197, 5, 17479, 5475, 38837, 197, 197, 1747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRSManagerNotReady(t *testing.T) { client := clientset.NewForConfigOrDie(&restclient.Config{Host: "", ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) fakePodControl := controller.FakePodControl{} manager := NewReplicaSetController(client, controller.NoResyncPeriodFunc,...
explode_data.jsonl/10055
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 367 }
[ 2830, 3393, 11451, 2043, 2623, 19202, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 2943, 746, 7121, 2461, 2648, 2195, 18175, 2099, 3927, 2972, 10753, 90, 9296, 25, 7342, 8883, 2648, 25, 2732, 2972, 12614, 2648, 90, 2808, 5637, 25, 1273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResolverCollections(t *testing.T) { fileNames := []string{ "collections.yml", } ymlMaps := []map[interface{}]interface{}{} for _, f := range fileNames { ymlMaps = append(ymlMaps, readTestFixtures(t, f)) } envKeyPairs := map[string]string{ "SPINNAKER_AWS_ENABLED": "true", "DEFAULT_DNS_NAME": ...
explode_data.jsonl/4149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 433 }
[ 2830, 3393, 18190, 52730, 1155, 353, 8840, 836, 8, 1476, 17661, 7980, 1669, 3056, 917, 515, 197, 197, 1, 51137, 33936, 756, 197, 630, 14522, 1014, 36562, 1669, 3056, 2186, 58, 4970, 78134, 4970, 6257, 16094, 2023, 8358, 282, 1669, 2088,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestOpen(t *testing.T) { defer func() { if r := recover(); r == nil { t.Error("Expected Open to panic") } }() b := &godoc_vfs.VFS{} if _, err := b.Open(""); err != nil { t.Error(err) } }
explode_data.jsonl/67567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 5002, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 743, 435, 1669, 11731, 2129, 435, 621, 2092, 341, 298, 3244, 6141, 445, 18896, 5264, 311, 21975, 1138, 197, 197, 532, 197, 69826, 2233, 1669, 609, 39711, 509,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestCORSBuilderMiddleware(t *testing.T) { handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {}) cm := NewCORSBuilder(). AllowOrigins("http://example.com", "http://app.example.com"). AllowHeaderPrefix("leg-"). AllowHeaders("X-Custom-Header").Middleware(handler) req, err := http.New...
explode_data.jsonl/51785
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 34, 9821, 3297, 24684, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 1758, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 4687, 692, 98316, 1669, 1532, 34, 9821, 3297, 25829, 197, 197, 18605, 62726, 1330, 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
func TestWrapf(t *testing.T) { inner := errors.New("detailed error message") err := NewInvalidParamsError(inner) wrappedErr := Wrapf(err, "context about %s error", "params") assert.Error(t, wrappedErr) assert.Equal(t, "context about params error: detailed error message", wrappedErr.Error()) assert.True(t, IsInval...
explode_data.jsonl/27151
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 26787, 69, 1155, 353, 8840, 836, 8, 341, 197, 4382, 1669, 5975, 7121, 445, 67, 10111, 1465, 1943, 1138, 9859, 1669, 1532, 7928, 4870, 1454, 68603, 340, 6692, 56289, 7747, 1669, 42187, 69, 3964, 11, 330, 2147, 911, 1018, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReconciler_DeploymentLimit_HealthAccounting(t *testing.T) { job := mock.Job() job.TaskGroups[0].Update = noCanaryUpdate cases := []struct { healthy int }{ { healthy: 0, }, { healthy: 1, }, { healthy: 2, }, { healthy: 3, }, { healthy: 4, }, } for _, c := range cases ...
explode_data.jsonl/67268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1043 }
[ 2830, 3393, 693, 40446, 5769, 90680, 39130, 16527, 62, 14542, 7365, 287, 1155, 353, 8840, 836, 8, 341, 68577, 1669, 7860, 45293, 741, 68577, 28258, 22173, 58, 15, 936, 4289, 284, 902, 6713, 658, 4289, 271, 1444, 2264, 1669, 3056, 1235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestCreateUser(t *testing.T) { th := Setup().InitBasic() defer TearDown() Client := th.Client user := model.User{Email: GenerateTestEmail(), Nickname: "Corey Hulen", Password: "hello1", Username: GenerateTestUsername(), Roles: model.ROLE_SYSTEM_ADMIN.Id + " " + model.ROLE_SYSTEM_USER.Id} ruser, resp := Clie...
explode_data.jsonl/49490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 612 }
[ 2830, 3393, 4021, 1474, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 76982, 4454, 741, 71724, 1669, 270, 11716, 271, 19060, 1669, 1614, 7344, 90, 4781, 25, 19813, 2271, 4781, 1507, 14991, 606, 25, 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...
5
func TestNewSignature(t *testing.T) { testRawTx := []byte{1, 0, 0, 0, 1, 172, 198, 251, 158, 194, 195, 136, 77, 58, 18, 168, 158, 112, 120, 200, 56, 83, 217, 183, 145, 34, 129, 206, 251, 20, 186, 192, 10, 39, 55, 211, 58, 0, 0, 0, 0, 25, 118, 169, 20, 146, 3, 228, 122, 22, 247, 153, 222, 208, 53, 50, 227, 228, 82, 96,...
explode_data.jsonl/67120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 576 }
[ 2830, 3393, 3564, 25088, 1155, 353, 8840, 836, 8, 341, 18185, 20015, 31584, 1669, 3056, 3782, 90, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 16, 11, 220, 16, 22, 17, 11, 220, 16, 24, 23, 11, 220, 17, 20, 16, 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...
3
func TestIsEnabled(t *testing.T) { for _, envVar := range []string{noTelemetryEnvVar, doNotTrackEnvVar} { t.Run(fmt.Sprintf("disabled_by_%s", envVar), func(t *testing.T) { t.Setenv(envVar, "true") conf := &Conf{} conf.SetDefaults() require.False(t, isEnabled(conf)) }) } t.Run("disabled_by_conf", f...
explode_data.jsonl/56420
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 3872, 5462, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 6105, 3962, 1669, 2088, 3056, 917, 90, 2152, 6639, 35958, 14359, 3962, 11, 653, 2623, 15667, 14359, 3962, 92, 341, 197, 3244, 16708, 28197, 17305, 445, 11978, 3710, 18695...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInvokeNOKWritesToESCC(t *testing.T) { t.Run("1.2Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithV12Capabilities(t) defer cleanup() testInvokeNOKWritesToESCC(t, l, v) }) t.Run("1.3Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithV13Capabili...
explode_data.jsonl/47807
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 17604, 45, 3925, 93638, 1249, 1570, 3706, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 16, 13, 17, 63746, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 8810, 11, 348, 11, 21290, 1669, 6505, 60850, 1389, 3036, 14256, 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
func TestBody(t *testing.T) { m1, _ := testArtifacts() // test multiple range h, b := m1.Body(1222, "text/plain") if !strings.Contains(string(b), "m dolor sit") { t.Errorf("expected %d, got %d", 240, len(b)) } if !strings.HasPrefix(h.Get(headers.NameContentType), "multipart/byteranges") { t.Errorf("expected ...
explode_data.jsonl/78454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 436 }
[ 2830, 3393, 5444, 1155, 353, 8840, 836, 8, 1476, 2109, 16, 11, 716, 1669, 1273, 9286, 26401, 741, 197, 322, 1273, 5248, 2088, 198, 9598, 11, 293, 1669, 296, 16, 20934, 7, 16, 17, 17, 17, 11, 330, 1318, 36971, 1138, 743, 753, 18594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestInitGenesis(t *testing.T) { ctx, _, keeper := keep.CreateTestInput(t, false, 1000) pool := keeper.GetPool(ctx) pool.BondedTokens = sdk.NewDec(2) params := keeper.GetParams(ctx) validators := make([]Validator, 2) var delegations []Delegation // initialize the validators validators[0].OperatorAddr = s...
explode_data.jsonl/9751
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 681 }
[ 2830, 3393, 3803, 84652, 1155, 353, 8840, 836, 8, 341, 20985, 11, 8358, 53416, 1669, 2506, 7251, 2271, 2505, 1155, 11, 895, 11, 220, 16, 15, 15, 15, 692, 85273, 1669, 53416, 2234, 10551, 7502, 340, 85273, 1785, 2111, 291, 29300, 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
func TestCheckAccessToKubernetes(t *testing.T) { clusterNoLabels := &types.KubernetesCluster{ Name: "no-labels", } clusterWithLabels := &types.KubernetesCluster{ Name: "no-labels", StaticLabels: map[string]string{"foo": "bar"}, DynamicLabels: map[string]types.CommandLabelV2{"baz": {Result: "qux"}},...
explode_data.jsonl/40086
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2264 }
[ 2830, 3393, 3973, 6054, 1249, 42, 29827, 1155, 353, 8840, 836, 8, 341, 197, 18855, 2753, 23674, 1669, 609, 9242, 11352, 29827, 28678, 515, 197, 21297, 25, 330, 2152, 6942, 82, 756, 197, 532, 197, 18855, 2354, 23674, 1669, 609, 9242, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestMoreThan256Range(t *testing.T) { bufSize := 270 readerSize := 300 buf := make([]byte, bufSize) r := NewFakeReader(0, readerSize) n, err := r.Read(buf) if err != nil { t.Errorf("[TestMoreThan256Range] Read(buf) should not return an error, got %s", err) } if n != bufSize { t.Errorf("[TestMoreThan2...
explode_data.jsonl/48668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 7661, 26067, 17, 20, 21, 6046, 1155, 353, 8840, 836, 8, 341, 26398, 1695, 1669, 220, 17, 22, 15, 198, 61477, 1695, 1669, 220, 18, 15, 15, 271, 26398, 1669, 1281, 10556, 3782, 11, 6607, 1695, 340, 7000, 1669, 1532, 52317,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestProbeTLDs(t *testing.T) { tests := []testCaseProbe{ { name: "two backends different data", servers: []types.BackendServer{ dummy.NewDummyClient("client1", []string{"backend1", "backend2"}, 1), dummy.NewDummyClient("client2", []string{"backend3", "backend4"}, 1), }, clientResponses: map[s...
explode_data.jsonl/64871
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 688 }
[ 2830, 3393, 81426, 51, 12335, 82, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 66194, 81426, 515, 197, 197, 515, 298, 11609, 25, 330, 19789, 1182, 1412, 2155, 821, 756, 298, 1903, 18729, 25, 3056, 9242, 8864, 408, 5475, 515, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestZonesID(t *testing.T) { zone := firstZone(t) zoneID := zone.ID() if zoneID != "0" { t.Fatalf("Unexpected zone id: %q", zoneID) } }
explode_data.jsonl/75409
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 57, 3154, 915, 1155, 353, 8840, 836, 8, 341, 197, 8684, 1669, 1156, 15363, 1155, 692, 197, 8684, 915, 1669, 10143, 9910, 741, 743, 10143, 915, 961, 330, 15, 1, 341, 197, 3244, 30762, 445, 29430, 10143, 877, 25, 1018, 80,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestSenMultipleNotifications(t *testing.T) { ctx := context.Background() cfg := initTest() cfg.Ios.Enabled = true cfg.Ios.KeyPath = "../certificate/certificate-valid.pem" err := notify.InitAPNSClient(cfg) assert.Nil(t, err) cfg.Android.Enabled = true cfg.Android.APIKey = os.Getenv("ANDROID_API_KEY") an...
explode_data.jsonl/67621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 19617, 32089, 34736, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 50286, 1669, 2930, 2271, 2822, 50286, 2447, 436, 13690, 284, 830, 198, 50286, 2447, 436, 9610, 1820, 284, 7005, 63586, 2899, 20962, 84810, 49373...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPubmaticTimeout(t *testing.T) { server := httptest.NewServer( http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { <-time.After(2 * time.Millisecond) }), ) defer server.Close() conf := *adapters.DefaultHTTPAdapterConfig an := NewPubmaticLegacyAdapter(&conf, server.URL) ctx, cancel := ...
explode_data.jsonl/77912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 29162, 37244, 7636, 1155, 353, 8840, 836, 8, 1476, 41057, 1669, 54320, 70334, 7121, 5475, 1006, 197, 28080, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 197, 45342, 1678, 36892, 7, 17, 353, 882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCommandHandler(t *testing.T) { bus := NewCommandHandler() if bus == nil { t.Fatal("there should be a bus") } ctx := context.WithValue(context.Background(), "testkey", "testval") t.Log("handle with no handler") cmd := &mocks.Command{ID: eh.NewUUID(), Content: "command1"} err := bus.HandleCommand(ctx,...
explode_data.jsonl/6724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 4062, 3050, 1155, 353, 8840, 836, 8, 341, 92530, 1669, 1532, 4062, 3050, 741, 743, 5828, 621, 2092, 341, 197, 3244, 26133, 445, 18532, 1265, 387, 264, 5828, 1138, 197, 630, 20985, 1669, 2266, 26124, 1130, 5378, 19047, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestManifestGenerateFlagsSetValues(t *testing.T) { g := NewWithT(t) m, _, err := generateManifest("default", "-s values.global.proxy.image=myproxy -s values.global.proxy.includeIPRanges=172.30.0.0/16,172.21.0.0/16", liveCharts) if err != nil { t.Fatal(err) } objs, err := parseObjectSetFromManifest(m) if er...
explode_data.jsonl/47908
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 38495, 31115, 9195, 1649, 6227, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 2354, 51, 1155, 340, 2109, 11, 8358, 1848, 1669, 6923, 38495, 445, 2258, 497, 6523, 82, 2750, 21932, 41103, 7352, 80470, 22803, 481, 82, 2750, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestString(t *testing.T) { // 打印 string.Printf() // 比较 string.Compare() // 指定去重 string.Compare() // 字符串分割 string.Split() // 字符串比较 string.EqualFold() // 包含 string.Contains() string.ContainsAny() string.ContainsRune() }
explode_data.jsonl/44840
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 703, 1155, 353, 8840, 836, 8, 341, 197, 322, 46750, 241, 99540, 198, 11357, 19367, 2822, 197, 322, 6567, 107, 242, 99260, 198, 11357, 32377, 2822, 197, 322, 6567, 234, 229, 22382, 85336, 29258, 198, 11357, 32377, 2822, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSend(t *testing.T) { for _, tt := range testCases { w := httptest.NewRecorder() jw := Wrap(w) if tt.in.data != dataNil { jw.Data(tt.in.data) } if tt.in.code != 0 { jw.Status(tt.in.code) } if tt.in.message != "" { jw.Message(tt.in.message) } jw.Send() var body *caseOut json.U...
explode_data.jsonl/3982
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 11505, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 1273, 37302, 341, 197, 6692, 1669, 54320, 70334, 7121, 47023, 741, 197, 12428, 86, 1669, 42187, 3622, 692, 197, 743, 17853, 1858, 2196, 961, 821, 19064, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestAgent_WarnCheck(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), "") defer a.Shutdown() chk := &structs.HealthCheck{Name: "test", CheckID: "test"} chkType := &structs.CheckType{TTL: 15 * time.Second} if err := a.AddCheck(chk, chkType, false, ""); err != nil { t.Fatalf("err: %v", err) } req,...
explode_data.jsonl/33619
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 16810, 2763, 1885, 3973, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 23049, 74, 1669, 609, 1235, 82, 74980, 3973, 63121, 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...
5
func TestKeyValModeLit(t *testing.T) { gopClTest(t, ` a := [...]float64{1, 3: 3.4, 5} b := []float64{2: 1.2, 3, 6: 4.5} `, `package main func main() { a := [...]float64{1, 3: 3.4, 5} b := []float64{2: 1.2, 3, 6: 4.5} } `) }
explode_data.jsonl/73634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 1592, 2208, 3636, 68954, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 64, 1669, 48179, 3649, 21, 19, 90, 16, 11, 220, 18, 25, 220, 18, 13, 19, 11, 220, 20, 532, 65, 1669, 3056, 3649, 21, 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
func TestBittrexLiveWebsocket(t *testing.T) { enableTestLog() // Skip this test during automated testing. if os.Getenv("GORACE") != "" { t.Skip("Skipping Bittrex websocket test") } killSwitch := makeKillSwitch() bittrex := newTestBittrexExchange() bittrex.connectWs() defer bittrex.sr.Close() testDuratio...
explode_data.jsonl/1403
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 33, 1442, 37539, 20324, 5981, 9556, 1155, 353, 8840, 836, 8, 341, 197, 12552, 2271, 2201, 2822, 197, 322, 25784, 419, 1273, 2337, 27498, 7497, 624, 743, 2643, 64883, 445, 61787, 5576, 899, 961, 1591, 341, 197, 3244, 57776, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestGetJoinEUIPrefixes(t *testing.T) { for _, tc := range []struct { Name string JoinEUIPrefixes []types.EUI64Prefix Response *ttnpb.JoinEUIPrefixes }{ { Name: "Defined JoinEUIPrefixes Set 1", JoinEUIPrefixes: []types.EUI64Prefix{ {EUI64: types.EUI64{0xff, 0x42, 0xff, 0xff, 0x...
explode_data.jsonl/4716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1509 }
[ 2830, 3393, 1949, 12292, 36, 2275, 14335, 288, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 21297, 310, 914, 198, 197, 197, 12292, 36, 2275, 14335, 288, 3056, 9242, 5142, 2275, 21, 19, 14335, 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...
2
func TestPinUpdate(t *testing.T) { ctx := context.Background() dstore := dssync.MutexWrap(ds.NewMapDatastore()) bstore := blockstore.NewBlockstore(dstore) bserv := bs.New(bstore, offline.Exchange(bstore)) dserv := mdag.NewDAGService(bserv) p := NewPinner(dstore, dserv, dserv) n1, c1 := randNode() n2, c2 := ra...
explode_data.jsonl/31307
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 19861, 4289, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 2698, 4314, 1669, 294, 778, 1721, 99014, 26787, 33783, 7121, 2227, 1043, 4314, 2398, 2233, 4314, 1669, 2504, 4314, 7121, 4713, 4314, 1500, 4314, 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...
4
func TestGetUserAudits(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() user := th.BasicUser audits, _, err := th.Client.GetUserAudits(user.Id, 0, 100, "") for _, audit := range audits { require.Equal(t, user.Id, audit.UserId, "user id should match audit user id") } require.NoError(t, err) _, ...
explode_data.jsonl/47535
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 276 }
[ 2830, 3393, 1949, 1474, 52949, 1199, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 19060, 1669, 270, 48868, 1474, 271, 197, 7880, 1199, 11, 8358, 1848, 1669, 270, 11716, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestGoSlice(t *testing.T) { vals := []string{"a", "b", "c", "d", "e"} globals := map[string]interface{}{ "vals": vals, } code := []byte(` out = vals[1:-1] `) output, err := starlight.Eval(code, globals, nil) if err != nil { t.Fatal(err) } v, ok := output["out"] if !ok { t.Fatal("missing value in ou...
explode_data.jsonl/47081
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 10850, 33236, 1155, 353, 8840, 836, 8, 341, 19302, 82, 1669, 3056, 917, 4913, 64, 497, 330, 65, 497, 330, 66, 497, 330, 67, 497, 330, 68, 63159, 3174, 16616, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 25596, 788, 2835...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestParticipantRound2Works(t *testing.T) { // Prepare Dkg Round 1 output p1, _, bcast1, bcast2, p2psend2 := PrepareRound2Input(t) // Actual Test require.NotNil(t, bcast1) require.NotNil(t, bcast2) require.NotNil(t, p2psend2[1]) bcast := make(map[uint32]Round1Bcast) p2p := make(map[uint32]*Round1P2PSendPack...
explode_data.jsonl/77862
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 297 }
[ 2830, 3393, 67504, 27497, 17, 37683, 1155, 353, 8840, 836, 8, 341, 197, 322, 31166, 422, 7351, 17097, 220, 16, 2550, 198, 3223, 16, 11, 8358, 293, 3829, 16, 11, 293, 3829, 17, 11, 281, 17, 1690, 408, 17, 1669, 31166, 27497, 17, 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
func TestDisplayTaskFailedExecTasks(t *testing.T) { assert := assert.New(t) assert.NoError(db.ClearCollections(task.Collection)) dt := task.Task{ Id: "task", DisplayOnly: true, Status: evergreen.TaskUndispatched, ExecutionTasks: []string{"exec0", "exec1"}, } assert.NoError(dt.Insert(...
explode_data.jsonl/60449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 382 }
[ 2830, 3393, 7020, 6262, 9408, 10216, 25449, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 6948, 35699, 9791, 13524, 52730, 17483, 28629, 1171, 97980, 1669, 3383, 28258, 515, 197, 67211, 25, 1797, 330, 8202, 756, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestApp_RunAsSubCommandIncorrectUsage(t *testing.T) { a := App{ Name: "cmd", Flags: []Flag{ &StringFlag{Name: "--foo"}, }, Writer: bytes.NewBufferString(""), } set := flag.NewFlagSet("", flag.ContinueOnError) set.Parse([]string{"", "---foo"}) c := &Context{flagSet: set} err := a.RunAsSubcommand(...
explode_data.jsonl/52566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 2164, 84158, 2121, 3136, 4062, 40468, 14783, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1845, 515, 197, 21297, 25, 330, 8710, 756, 197, 197, 9195, 25, 3056, 12135, 515, 298, 197, 5, 703, 12135, 63121, 25, 14482, 7975, 7115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFlowLoopInstance(t *testing.T) { json := `{ "name": "测试to flow", "start": { "params":{ "name":{"type":"string","value":"menghui"}, "age":{"type":"number","value":41} }, "variables": { "var_a": { "type": "string", "value": "test var" }, "var_b": { "type": "number", ...
explode_data.jsonl/5941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 18878, 14620, 2523, 1155, 353, 8840, 836, 8, 341, 30847, 1669, 1565, 515, 197, 31486, 788, 330, 81705, 983, 6396, 756, 197, 1, 2468, 788, 341, 197, 1, 3519, 12602, 197, 197, 31486, 22317, 1313, 3252, 917, 2198, 957, 3252, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestResolveReferencesForPlanChange(t *testing.T) { fakeKubeClient, fakeCatalogClient, _, testController, sharedInformers := newTestController(t, noFakeActions()) sharedInformers.ClusterServiceClasses().Informer().GetStore().Add(getTestClusterServiceClass()) instance := getTestServiceInstanceWithClusterRefs() ...
explode_data.jsonl/58194
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 859 }
[ 2830, 3393, 56808, 31712, 2461, 20485, 4072, 1155, 353, 8840, 836, 8, 341, 1166, 726, 42, 3760, 2959, 11, 12418, 41606, 2959, 11, 8358, 1273, 2051, 11, 6094, 37891, 388, 1669, 501, 2271, 2051, 1155, 11, 902, 52317, 12948, 12367, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1