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 TestCloudDatastoreWithRPCRetryAndChaosRPCTestSuite(t *testing.T) { ctx := context.Background() for name, test := range testsuite.TestSuite { t.Run(name, func(t *testing.T) { // Skip the flaky tests. switch name { case "Filter_PropertyTranslaterMustError": t.SkipNow() } defer cleanUp() ...
explode_data.jsonl/22390
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 16055, 1043, 4314, 2354, 29528, 51560, 3036, 1143, 64866, 21657, 76434, 28000, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 2023, 829, 11, 1273, 1669, 2088, 7032, 9302, 8787, 28000, 341, 197, 3244, 16708, 3153,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRename(t *testing.T) { t.Run("should rename element", func(t *testing.T) { tests := map[string]interface{}{ "struct": struct{ OldName string }{ OldName: "v", }, "map": map[string]string{ "OldName": "v", }, } for name, object := range tests { t.Run(name, func(t *testing.T) { ma...
explode_data.jsonl/71714
{ "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, 88757, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5445, 29074, 2392, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 78216, 1669, 2415, 14032, 31344, 67066, 298, 197, 80575, 788, 2036, 90, 10621, 675, 914, 335, 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...
1
func TestEntryAddUntimedWithNoRollup(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() pipelineNoRollup := metadata.PipelineMetadata{ Pipeline: applied.NewPipeline([]applied.OpUnion{ { Type: pipeline.TransformationOpType, Transformation: pipeline.TransformationOp{Type: trans...
explode_data.jsonl/24225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 5874, 2212, 20250, 75485, 2354, 2753, 32355, 454, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 3223, 8790, 2753, 32355, 454, 1669, 11160, 1069, 8790, 14610, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFrameHitCount(t *testing.T) { f := NewFrame(nil) if f.HitCount() != 0 { t.Errorf("The initial hit counts should be 0.") } f.IncHitCount() if f.HitCount() != 1 { t.Errorf("This should be 1.") } f.SetHitCount(0) if f.HitCount() != 0 { t.Errorf("This should be 0.") } }
explode_data.jsonl/52246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 4369, 19498, 2507, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 4369, 27907, 340, 743, 282, 85344, 2507, 368, 961, 220, 15, 341, 197, 3244, 13080, 445, 785, 2856, 4201, 14579, 1265, 387, 220, 15, 13053, 197, 532, 1166, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBatchPointGetLockIndex(t *testing.T) { store, clean := createMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk2 := testkit.NewTestKit(t, store) tk.MustExec("use test") tk2.MustExec("use test") tk.MustExec("drop table if exists t1") tk.MustExec("create table t1 (c1 int primary k...
explode_data.jsonl/12478
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 439 }
[ 2830, 3393, 21074, 2609, 1949, 11989, 1552, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1855, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegrationTransactionRecordQueryCanExecute(t *testing.T) { env := NewIntegrationTestEnv(t) newKey, err := GeneratePrivateKey() assert.NoError(t, err) newBalance := NewHbar(2) assert.Equal(t, 2*HbarUnits.Hbar._NumberOfTinybar(), newBalance.tinybar) tx, err := NewAccountCreateTransaction(). SetKey(n...
explode_data.jsonl/78871
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 547 }
[ 2830, 3393, 52464, 8070, 6471, 2859, 6713, 17174, 1155, 353, 8840, 836, 8, 341, 57538, 1669, 1532, 52464, 2271, 14359, 1155, 692, 8638, 1592, 11, 1848, 1669, 19813, 75981, 741, 6948, 35699, 1155, 11, 1848, 692, 8638, 21190, 1669, 1532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMsgFilter_IsByBot(t *testing.T) { var botID disgord.Snowflake = 123 messageFromBot := &disgord.Message{ Author: &disgord.User{Bot: true}, } messageNotFromBot := &disgord.Message{ Author: &disgord.User{Bot: false}, } testCases := []struct { name string evt interface{}...
explode_data.jsonl/1328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 6611, 5632, 31879, 1359, 23502, 1155, 353, 8840, 836, 8, 341, 2405, 10924, 915, 32183, 539, 808, 3328, 63456, 284, 220, 16, 17, 18, 271, 24753, 3830, 23502, 1669, 609, 4243, 70, 539, 8472, 515, 197, 197, 7133, 25, 609, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestTabContainer_RemoveIndex(t *testing.T) { tabs := container.NewAppTabs(&container.TabItem{Text: "Test1", Content: widget.NewLabel("Test1")}, &container.TabItem{Text: "Test2", Content: widget.NewLabel("Test2")}) tabs.SelectTabIndex(1) tabs.RemoveIndex(1) assert.Equal(t, 0, tabs.CurrentTabIndex()) // check...
explode_data.jsonl/32317
{ "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, 8582, 4502, 66843, 1552, 1155, 353, 8840, 836, 8, 341, 3244, 3435, 1669, 5476, 7121, 2164, 36985, 2099, 3586, 4328, 1234, 90, 1178, 25, 330, 2271, 16, 497, 8883, 25, 9086, 7121, 2476, 445, 2271, 16, 79583, 197, 197, 5, 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 TestRename(t *testing.T) { if testing.Short() { t.SkipNow() } t.Parallel() // Create TurtleDexFileSet with TurtleDexFile entry := newTestFile() // Create new paths for the file. oldTurtleDexFilePath := entry.TurtleDexFilePath() newTurtleDexFilePath := strings.TrimSuffix(entry.TurtleDexFilePath(), modul...
explode_data.jsonl/14692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 88757, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 7039, 741, 197, 532, 3244, 41288, 7957, 2822, 197, 322, 4230, 66806, 35, 327, 1703, 1649, 448, 66806, 35, 327, 1703, 198, 48344, 1669, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddJitterToChunkEndTime_ShouldHonorMaxVarianceAndMaxNextAt(t *testing.T) { chunkMinTime := int64(10) nextAt := int64(95) maxNextAt := int64(100) variance := 0.2 // Compute the expected max variance. expectedMaxVariance := int64(float64(nextAt-chunkMinTime) * variance) for seriesHash := uint64(0); seri...
explode_data.jsonl/60338
{ "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, 2212, 41, 3248, 1249, 28304, 55833, 36578, 616, 39, 54037, 5974, 53, 36905, 3036, 5974, 5847, 1655, 1155, 353, 8840, 836, 8, 341, 23049, 3122, 6217, 1462, 1669, 526, 21, 19, 7, 16, 15, 340, 28144, 1655, 1669, 526, 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...
2
func TestSpanErrorNil(t *testing.T) { assert := assert.New(t) tracer := newTracer(withTransport(newDefaultTransport())) span := tracer.newRootSpan("pylons.request", "pylons", "/") // don't set the error if it's nil nMeta := len(span.Meta) span.SetTag(ext.Error, nil) assert.Equal(int32(0), span.Error) assert.Eq...
explode_data.jsonl/42850
{ "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, 12485, 1454, 19064, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 25583, 9584, 1669, 501, 1282, 9584, 16980, 27560, 1755, 3675, 27560, 12145, 197, 1480, 1669, 64306, 4618, 8439, 12485, 445, 3288, 75, 2382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMakeIdentifier(t *testing.T) { t.Parallel() id := makeIdentifier() if len(id) < 10 { t.Errorf("expected a string of length 10 at least") } }
explode_data.jsonl/5210
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 8078, 8714, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 15710, 1669, 1281, 8714, 741, 743, 2422, 3724, 8, 366, 220, 16, 15, 341, 197, 3244, 13080, 445, 7325, 264, 914, 315, 3084, 220, 16, 15, 518, 3245, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewClientWithSkipVerify(t *testing.T) { assert := assert.New(t) var druidOpts []ClientOption druidOpts = append(druidOpts, WithSkipTLSVerify()) d, err := NewClient("localhost:8082", druidOpts...) assert.Nil(err, "error should be nil") assert.NotNil(d, "client should not be nil") assert.True(d.http.HTT...
explode_data.jsonl/28557
{ "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, 3564, 2959, 2354, 35134, 32627, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2405, 1353, 2423, 43451, 3056, 2959, 5341, 198, 2698, 81, 2423, 43451, 284, 8737, 30958, 2423, 43451, 11, 3085, 35134, 45439, 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 TestKafkaClient_decodeOffsetValueV0_Errors(t *testing.T) { for _, values := range decodeOffsetValueV0Errors { _, errorAt := decodeOffsetValueV0(bytes.NewBuffer(values.Bytes)) assert.Equalf(t, values.ErrorAt, errorAt, "Expected errorAt to be %v, not %v", values.ErrorAt, errorAt) } }
explode_data.jsonl/34268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 42, 21883, 2959, 15227, 6446, 1130, 53, 15, 93623, 1087, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2750, 1669, 2088, 16895, 6446, 1130, 53, 15, 13877, 341, 197, 197, 6878, 1465, 1655, 1669, 16895, 6446, 1130, 53, 15, 23158...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHITS(t *testing.T) { for i, test := range hitsTests { g := simple.NewDirectedGraph() for u, e := range test.g { // Add nodes that are not defined by an edge. if g.Node(int64(u)) == nil { g.AddNode(simple.Node(u)) } for v := range e { g.SetEdge(simple.Edge{F: simple.Node(u), T: simple.N...
explode_data.jsonl/73757
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 446 }
[ 2830, 3393, 39, 14474, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 1273, 1669, 2088, 12983, 18200, 341, 197, 3174, 1669, 4285, 7121, 92669, 11212, 741, 197, 2023, 575, 11, 384, 1669, 2088, 1273, 1302, 341, 298, 197, 322, 2691, 7798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEExact(t *testing.T) { xsdvalidate.Init() defer xsdvalidate.Cleanup() xsdhandler, err := xsdvalidate.NewXsdHandlerUrl("docs/eExact-Schema.xsd", xsdvalidate.ParsErrDefault) if err != nil { panic(err) } defer xsdhandler.Free() eExact := globe.EExact{ GLEntries: globe.GLEntries{ { Description: ...
explode_data.jsonl/77557
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 506 }
[ 2830, 3393, 36, 57954, 1155, 353, 8840, 836, 8, 341, 10225, 13446, 7067, 26849, 741, 16867, 11943, 67, 7067, 727, 60639, 741, 10225, 13446, 17905, 11, 1848, 1669, 11943, 67, 7067, 7121, 55, 13446, 3050, 2864, 445, 14120, 16546, 57954, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_preorderTraversal(t *testing.T) { assert := assert.New(t) assert.Equal([]int{1, 2, 3}, preorderTraversal(&TreeNode{Val: 1, Right: &TreeNode{Val: 2, Left: &TreeNode{Val: 3}}})) }
explode_data.jsonl/32244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 10442, 1358, 76276, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 6948, 12808, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 2137, 71850, 76276, 2099, 26597, 90, 2208, 25, 220, 16, 11, 10083, 25, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNilAttributeMap(t *testing.T) { assert.EqualValues(t, 0, NewAttributeMap().Len()) val, exist := NewAttributeMap().Get("test_key") assert.False(t, exist) assert.EqualValues(t, AttributeValue{nil}, val) insertMap := NewAttributeMap() insertMap.Insert("k", NewAttributeValueString("v")) assert.EqualValues...
explode_data.jsonl/38196
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 867 }
[ 2830, 3393, 19064, 3907, 2227, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 6227, 1155, 11, 220, 15, 11, 1532, 3907, 2227, 1005, 11271, 12367, 19302, 11, 3000, 1669, 1532, 3907, 2227, 1005, 1949, 445, 1944, 3097, 1138, 6948, 50757, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStore_GetVulnerabilityMetadata_SetVulnerabilityMetadata(t *testing.T) { dbTempFile, err := ioutil.TempFile("", "grype-db-test-store") if err != nil { t.Fatalf("could not create temp file: %+v", err) } defer os.Remove(dbTempFile.Name()) store, cleanupFn, err := New(dbTempFile.Name(), true) defer cleanu...
explode_data.jsonl/78503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1079 }
[ 2830, 3393, 6093, 13614, 53, 58401, 2897, 14610, 14812, 53, 58401, 2897, 14610, 1155, 353, 8840, 836, 8, 341, 20939, 12151, 1703, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 901, 499, 60399, 16839, 33252, 1138, 743, 1848, 961, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogoutCommand(t *testing.T) { _, session := setupTest() log := &logout{tag: "A00004"} resp := log.execute(session) if (resp.tag != "A00004") || (resp.message != "LOGOUT completed") || (resp.untagged[0] != "BYE IMAP4rev1 Server logging out") { t.Error("Logout Failed - unexpected response.") fmt.Println(...
explode_data.jsonl/9589
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 27958, 4062, 1155, 353, 8840, 836, 8, 341, 197, 6878, 3797, 1669, 6505, 2271, 741, 6725, 1669, 609, 15937, 90, 4578, 25, 330, 32, 15, 15, 15, 15, 19, 16707, 34653, 1669, 1487, 7769, 16264, 340, 743, 320, 18243, 12399, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetUserGroup(t *testing.T) { userGroup := models.UserGroup{GroupName: "insert_group", GroupType: common.LDAPGroupType, LdapGroupDN: "ldap_dn_string"} result, err := AddUserGroup(userGroup) if err != nil { t.Errorf("Error occurred when AddUserGroup: %v", err) } createdUserGroupID = result type args stru...
explode_data.jsonl/73816
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 1949, 1474, 2808, 1155, 353, 8840, 836, 8, 341, 19060, 2808, 1669, 4119, 7344, 2808, 90, 50569, 25, 330, 4208, 6288, 497, 5737, 929, 25, 4185, 1214, 35, 2537, 2808, 929, 11, 444, 91294, 2808, 31264, 25, 330, 38665, 69799, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttachmentService_Human(t *testing.T) { testCases := []struct { name string attachmentID string mockFile string wantHTTPMethod string endpoint string context context.Context wantHTTPCodeReturn int wantErr bool }{ { name: ...
explode_data.jsonl/50070
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2502 }
[ 2830, 3393, 33569, 1860, 2039, 7136, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 197, 21981, 915, 981, 914, 198, 197, 77333, 1703, 1843, 914, 198, 197, 50780, 9230, 3523, 257, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateRequestBody(t *testing.T) { requiredReqBody := openapi3.NewRequestBody(). WithContent(openapi3.NewContentWithJSONSchema(openapi3.NewStringSchema())). WithRequired(true) plainTextContent := openapi3.NewContent() plainTextContent["text/plain"] = openapi3.NewMediaType().WithSchema(openapi3.NewStri...
explode_data.jsonl/41695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 886 }
[ 2830, 3393, 17926, 33334, 1155, 353, 8840, 836, 8, 341, 58183, 27234, 5444, 1669, 1787, 2068, 18, 7121, 33334, 25829, 197, 197, 2354, 2762, 30981, 2068, 18, 7121, 2762, 2354, 5370, 8632, 30981, 2068, 18, 7121, 703, 8632, 2140, 4292, 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 TestValidateIgnoreHeadersFails(t *testing.T) { ignoreHeaders := []string{ "Host", "Connection", } allErrs := validateIgnoreHeaders(ignoreHeaders, field.NewPath("ignoreHeaders")) if len(allErrs) == 0 { t.Errorf("validateIgnoreHeaders(%v) returned no errors for invalid input", ignoreHeaders) } }
explode_data.jsonl/65905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 17926, 12497, 10574, 37, 6209, 1155, 353, 8840, 836, 8, 341, 197, 13130, 10574, 1669, 3056, 917, 515, 197, 197, 1, 9296, 756, 197, 197, 1, 4526, 756, 197, 630, 50960, 7747, 82, 1669, 9593, 12497, 10574, 96426, 10574, 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...
2
func TestSyncToSignedCommitKeyWithKnownKey(t *testing.T) { Given(t). Project("gpg"). Path(guestbookPath). GPGPublicKeyAdded(). Sleep(2). When(). AddSignedFile("test.yaml", "null"). IgnoreErrors(). Create(). Sync(). Then(). Expect(OperationPhaseIs(OperationSucceeded)). Expect(SyncStatusIs(SyncSt...
explode_data.jsonl/66665
{ "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, 12154, 1249, 49312, 33441, 1592, 2354, 48206, 1592, 1155, 353, 8840, 836, 8, 341, 9600, 2071, 1155, 4292, 197, 197, 7849, 445, 70, 3517, 38609, 197, 69640, 3268, 3045, 2190, 1820, 4292, 197, 9600, 11383, 61822, 19337, 25829, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmailCallbackURL(t *testing.T) { type args struct { baseurl string email string secret string } tests := []struct { name string args args want string wantErr bool }{ // TODO: Add test cases. { name: "Valid callback", args: args{ baseurl: "https://example.com", em...
explode_data.jsonl/58087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 4781, 7494, 3144, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 24195, 1085, 914, 198, 197, 57549, 256, 914, 198, 197, 197, 20474, 220, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFillKubeProxyDefaults(t *testing.T) { g := NewGomegaWithT(t) trueVar := true falseVar := false testcases := []struct { in *operv1.NetworkSpec out *operv1.NetworkSpec }{ // no bind address and cluster CIDR is IPv4 { in: &operv1.NetworkSpec{ ClusterNetwork: []operv1.ClusterNetworkEntry{ ...
explode_data.jsonl/57156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 951 }
[ 2830, 3393, 14449, 42, 3760, 16219, 16273, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 42808, 3962, 1669, 830, 198, 36012, 3962, 1669, 895, 271, 18185, 23910, 1669, 3056, 1235, 341, 197, 17430, 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 TestSpx2(t *testing.T) { gopSpxTestEx(t, ` println("Hi") `, ` func onMsg(msg string) { } `, `package main import ( fmt "fmt" spx2 "github.com/goplus/gop/cl/internal/spx2" ) type Game struct { spx2.Game } func (this *Game) MainEntry() { fmt.Println("Hi") } func main() { new(Game).Main() } type Kai struct ...
explode_data.jsonl/78668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 50, 1767, 17, 1155, 353, 8840, 836, 8, 341, 3174, 453, 50, 1767, 2271, 840, 1155, 11, 22074, 33655, 445, 13048, 1138, 7808, 22074, 2830, 389, 6611, 8119, 914, 8, 341, 532, 7808, 1565, 1722, 1887, 271, 474, 2399, 11009, 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 TestModifyUser(t *testing.T) { ts := httptest.NewTLSServer( http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, modifyUserResponse) }), ) defer ts.Close() duo := buildAdminClient(ts.URL, nil) userToModify := User{ UserID: "DU3RP9I2WOC59VZX672N", Email: "jsmith-new@exa...
explode_data.jsonl/61400
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 44427, 1474, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 1006, 197, 28080, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 298, 11009, 991, 33655, 3622, 11, 5602, 1474...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStepper_Date_After(t *testing.T) { hourSt := Stepper{ N: 2, U: Uhour, } daySt := Stepper{ N: 2, U: Uday, } testTime := time.Date(2021, 1, 17, 17, 45, 04, 0, time.UTC) hour, err := hourSt.After(testTime) assert.NoError(t, err) assert.Equal(t, 19, hour.(time.Time).Hour()) day, err := daySt.After...
explode_data.jsonl/78066
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 20903, 6922, 39564, 1566, 1046, 1155, 353, 8840, 836, 8, 341, 9598, 413, 623, 1669, 3360, 6922, 515, 197, 18317, 25, 220, 17, 345, 197, 15980, 25, 547, 24677, 345, 197, 532, 98197, 623, 1669, 3360, 6922, 515, 197, 18317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyLast(t *testing.T) { t.Parallel() slice := ring.New(15) last := slice.Last() if last != nil { t.Error("Non-nil last value returned for empty ring") } }
explode_data.jsonl/14677
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 3522, 5842, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 4754, 1669, 10058, 7121, 7, 16, 20, 340, 33096, 1669, 15983, 24682, 741, 743, 1537, 961, 2092, 341, 197, 3244, 6141, 445, 8121, 83248, 1537, 897, 592...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplyOldSavePath(t *testing.T) { t.Parallel() fName := "TestApplyOldSavePath" defer cleanup(fName) writeOldFile(fName, t) oldfName := "OldSavePath" err := Apply(bytes.NewReader(newFile), Options{ TargetPath: fName, OldSavePath: oldfName, }) validateUpdate(fName, err, t) if _, err := os.Stat(o...
explode_data.jsonl/73981
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 28497, 18284, 8784, 1820, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1166, 675, 1669, 330, 2271, 28497, 18284, 8784, 1820, 698, 16867, 21290, 955, 675, 340, 24945, 18284, 1703, 955, 675, 11, 259, 692, 61828, 69, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReflect_struct(t *testing.T) { var expected testStruct = testStruct{42, "hello", 12.5} var actual testStruct b := make([]byte, 18) lex.PutInt(b, expected.A) lex.PutString(b[8:], expected.B) lex.PutFloat32(b[14:], expected.C) lex.Reflect(b, &actual) assert.Equal(t, expected, actual) }
explode_data.jsonl/50152
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 72789, 15126, 1155, 353, 8840, 836, 8, 341, 2405, 3601, 1273, 9422, 284, 1273, 9422, 90, 19, 17, 11, 330, 14990, 497, 220, 16, 17, 13, 20, 532, 2405, 5042, 1273, 9422, 271, 2233, 1669, 1281, 10556, 3782, 11, 220, 16, 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 TestObjectReference(t *testing.T) { testConfig := []byte(`metrics: - name: submatch event_matcher: - key: Type expr: Normal labels: node: Object.Spec.NodeName `) config, err := NewConfig(bytes.NewBuffer(testConfig)) require.NoError(t, err, "There should be no error while unmarshaling config") po...
explode_data.jsonl/36670
{ "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, 1190, 8856, 1155, 353, 8840, 836, 8, 341, 18185, 2648, 1669, 3056, 3782, 5809, 43262, 510, 12, 829, 25, 1186, 6347, 198, 220, 1538, 10708, 261, 510, 220, 481, 1376, 25, 3990, 198, 262, 15169, 25, 18437, 198, 220, 9201, 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
func TestSimpleSend(t *testing.T) { c := newTestContext(t, 20000, 1500, localLinkAddr) defer c.cleanup() // Prepare route. r := stack.Route{ RemoteLinkAddress: remoteLinkAddr, } for iters := 1000; iters > 0; iters-- { // Prepare and send packet. n := rand.Intn(10000) hdr := buffer.NewPrependable(n + int...
explode_data.jsonl/4233
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 846 }
[ 2830, 3393, 16374, 11505, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 501, 2271, 1972, 1155, 11, 220, 17, 15, 15, 15, 15, 11, 220, 16, 20, 15, 15, 11, 2205, 3939, 13986, 340, 16867, 272, 87689, 2822, 197, 322, 31166, 6021, 624, 7000...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateKeyToPath(t *testing.T) { testCases := []struct { kp core.KeyToPath ok bool errtype field.ErrorType }{ { kp: core.KeyToPath{Key: "k", Path: "p"}, ok: true, }, { kp: core.KeyToPath{Key: "k", Path: "p/p/p/p"}, ok: true, }, { kp: core.KeyToPath{Key: "k", Path: "p...
explode_data.jsonl/1000
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1017 }
[ 2830, 3393, 17926, 1592, 1249, 1820, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 16463, 79, 414, 6200, 9610, 1249, 1820, 198, 197, 59268, 414, 1807, 198, 197, 9859, 1313, 2070, 6141, 929, 198, 197, 59403, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPoolError(t *testing.T) { assert := assert.New(t) var ( panicCount = uint32(0) panicHandler = func(alias string, err interface{}) { atomic.AddUint32(&panicCount, 1) // Do work panic assert.Equal(alias, fmt.Sprintf("%s-%d", poolName, 1)) } pool = New(poolName, numWorkers, panicHandler) ...
explode_data.jsonl/73114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 10551, 1454, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 2405, 2399, 197, 30764, 2507, 256, 284, 2622, 18, 17, 7, 15, 340, 197, 30764, 3050, 284, 2915, 79965, 914, 11, 1848, 3749, 28875, 341, 298, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLink_GetNewAddress(t *testing.T) { InitTest() add, err := Lin.GetNewAddress(TestSeed, 0) if err != nil { fmt.Println("GetNewAddress err ", err.Error()) } else { for k, v := range add { fmt.Println(k, " => ", v) } } }
explode_data.jsonl/15327
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 3939, 13614, 3564, 4286, 1155, 353, 8840, 836, 8, 341, 98762, 2271, 741, 12718, 11, 1848, 1669, 8564, 2234, 3564, 4286, 31159, 41471, 11, 220, 15, 340, 743, 1848, 961, 2092, 341, 197, 11009, 12419, 445, 1949, 3564, 4286, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPostUnmarshalTaskWithEFSVolumesThatUseECSVolumePlugin(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() testCreds := getACSIAMRoleCredentials() credentialsIDInTask := aws.StringValue(testCreds.CredentialsId) credentialsManager := mock_credentials.NewMockManager(ctrl) taskCredentials := ...
explode_data.jsonl/37200
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 852 }
[ 2830, 3393, 4133, 1806, 27121, 6262, 2354, 36, 8485, 96325, 4792, 10253, 36, 6412, 18902, 11546, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 18185, 34, 53369, 1669, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccLibvirtCloudInit_CreateCloudInitDiskAndUpdate(t *testing.T) { var volume libvirt.StorageVol randomResourceName := acctest.RandString(10) // this structs are contents values we expect. expectedContents := Expected{UserData: "#cloud-config", NetworkConfig: "network:", MetaData: "instance-id: bamboo"} exp...
explode_data.jsonl/32958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1393 }
[ 2830, 3393, 14603, 9194, 47381, 16055, 3803, 34325, 16055, 3803, 47583, 56365, 1155, 353, 8840, 836, 8, 341, 2405, 8123, 3051, 47381, 43771, 36361, 198, 83628, 4783, 675, 1669, 1613, 67880, 2013, 437, 703, 7, 16, 15, 340, 197, 322, 419,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponseRouterNoResponse(t *testing.T) { receiver := &fakeReceiver{ Responses: []rpcResponse{ {nil, errors.New("Some other error that will get ignored since we can't route it to anyone (ie: no message ID)")}, {nil, amqp.ErrConnClosed}, }, } link := &Link{ responseMap: map[string]chan rpcRespons...
explode_data.jsonl/57205
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 2582, 9523, 2753, 2582, 1155, 353, 8840, 836, 8, 341, 17200, 12862, 1669, 609, 30570, 25436, 515, 197, 197, 70743, 25, 3056, 29414, 2582, 515, 298, 197, 90, 8385, 11, 5975, 7121, 445, 8373, 1008, 1465, 429, 686, 633, 12036...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPexpire(t *testing.T) { s, err := Run() ok(t, err) defer s.Close() c, err := proto.Dial(s.Addr()) ok(t, err) defer c.Close() t.Run("key exists", func(t *testing.T) { ok(t, s.Set("foo", "bar")) must1(t, c, "PEXPIRE", "foo", "12") mustDo(t, c, "PTTL", "foo", proto.Int(12), ) equals(t, 12...
explode_data.jsonl/44813
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 47, 52161, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 6452, 741, 59268, 1155, 11, 1848, 340, 16867, 274, 10421, 741, 1444, 11, 1848, 1669, 18433, 98462, 1141, 93626, 2398, 59268, 1155, 11, 1848, 340, 16867, 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...
1
func TestCancelPipelineRun(t *testing.T) { testCases := []struct { name string pipelineRun *v1alpha1.PipelineRun pipelineState []*resources.ResolvedPipelineRunTask taskRuns []*v1alpha1.TaskRun }{{ name: "no-resolved-taskrun", pipelineRun: tb.PipelineRun("test-pipeline-run-cancelled", "foo"...
explode_data.jsonl/45955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1027 }
[ 2830, 3393, 9269, 34656, 6727, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 688, 914, 198, 197, 3223, 8790, 6727, 256, 353, 85, 16, 7141, 16, 1069, 8790, 6727, 198, 197, 3223, 8790, 1397, 29838, 12745...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadSaveWithStruct(t *testing.T) { type gopher struct { Name string Info string `search:"about"` Legs float64 `search:",facet"` Fuzz Atom `search:"Fur,facet"` } doc := gopher{"Gopher", "Likes slide rules.", 4, Atom("furry")} pb := &pb.Document{ Field: []*pb.Field{ newStringValueField("Nam...
explode_data.jsonl/27953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 442 }
[ 2830, 3393, 5879, 8784, 2354, 9422, 1155, 353, 8840, 836, 8, 341, 13158, 342, 16940, 2036, 341, 197, 21297, 914, 198, 197, 197, 1731, 914, 220, 1565, 1836, 2974, 9096, 8805, 197, 15070, 791, 82, 2224, 21, 19, 1565, 1836, 12147, 83523,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreatePipeline(t *testing.T) { mux, server, client := setup() defer teardown(server) mux.HandleFunc("/projects/1/pipeline", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "POST") testJSONBody(t, r, values{"ref": "master"}) fmt.Fprint(w, `{"id":1, "status":"pending"}`) }) opt := &C...
explode_data.jsonl/5215
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 4021, 34656, 1155, 353, 8840, 836, 8, 341, 2109, 2200, 11, 3538, 11, 2943, 1669, 6505, 741, 16867, 49304, 21421, 692, 2109, 2200, 63623, 4283, 17161, 14, 16, 4322, 8790, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHTTPMetrics(t *testing.T) { t.Parallel() handler := New(nil, &Options{ RoutePrefix: "/", ListenAddress: "somehost:9090", ExternalURL: &url.URL{ Host: "localhost.localdomain:9090", Scheme: "http", }, }) getReady := func() int { t.Helper() w := httptest.NewRecorder() req, err := http...
explode_data.jsonl/46074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 411 }
[ 2830, 3393, 9230, 27328, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 53326, 1669, 1532, 27907, 11, 609, 3798, 515, 197, 47501, 14335, 25, 256, 3521, 756, 197, 10675, 268, 4286, 25, 330, 14689, 3790, 25, 24, 15, 24, 15, 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
func TestClientImplementation(t *testing.T) { //given cli := NewClient(context.Background(), baseURL, &http.Client{}) //then assert.Implements(t, (*Client)(nil), cli, "Rest client implements Client interface") }
explode_data.jsonl/17064
{ "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, 2959, 36850, 1155, 353, 8840, 836, 8, 341, 197, 322, 41968, 198, 86448, 1669, 1532, 2959, 5378, 19047, 1507, 56741, 11, 609, 1254, 11716, 37790, 197, 322, 3391, 198, 6948, 26914, 4674, 1155, 11, 4609, 2959, 2376, 8385, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListPods(t *testing.T) { ns := api.NamespaceDefault c := &testClient{ Request: testRequest{Method: "GET", Path: testapi.Default.ResourcePath("pods", ns, ""), Query: buildQueryValues(nil)}, Response: Response{StatusCode: http.StatusOK, Body: &api.PodList{ Items: []api.Pod{ { Status: api....
explode_data.jsonl/36091
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 852, 23527, 82, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 6330, 46011, 3675, 198, 1444, 1669, 609, 1944, 2959, 515, 197, 73806, 25, 1273, 1900, 90, 3523, 25, 330, 3806, 497, 7933, 25, 1273, 2068, 13275, 20766, 1820, 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 TestIntExpressionPOW(t *testing.T) { assertClauseSerialize(t, table1ColInt.POW(table2ColInt), "POW(table1.col_int, table2.col_int)") assertClauseSerialize(t, table1ColInt.POW(Int(11)), "POW(table1.col_int, $1)", int64(11)) }
explode_data.jsonl/41460
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 1072, 9595, 2045, 54, 1155, 353, 8840, 836, 8, 341, 6948, 28482, 15680, 1155, 11, 1965, 16, 6127, 1072, 1069, 3307, 15761, 17, 6127, 1072, 701, 330, 2045, 54, 15761, 16, 13414, 4042, 11, 1965, 17, 13414, 4042, 19107, 6948,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextSaveConfig(t *testing.T) { ctx := newContext(&caddy.Instance{Storage: make(map[interface{}]interface{})}).(*httpContext) ctx.saveConfig("foo", new(SiteConfig)) if _, ok := ctx.keysToSiteConfigs["foo"]; !ok { t.Error("Expected config to be saved, but it wasn't") } if got, want := len(ctx.siteConfi...
explode_data.jsonl/26465
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 1972, 8784, 2648, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 501, 1972, 2099, 66, 22478, 12688, 90, 5793, 25, 1281, 9147, 58, 4970, 78134, 4970, 28875, 16630, 4071, 1254, 1972, 340, 20985, 5681, 2648, 445, 7975, 497, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckErrorSuppression(t *testing.T) { query := `arr = [1,2,3]; arr[0].deadbeef = 1` _, errs := newTypeChecker().CheckBody(nil, MustParseBody(query)) if len(errs) != 1 { t.Fatalf("Expected exactly one error but got: %v", errs) } _, ok := errs[0].Details.(*RefErrUnsupportedDetail) if !ok { t.Fatalf(...
explode_data.jsonl/14560
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 3973, 1454, 10048, 4011, 1155, 353, 8840, 836, 8, 1476, 27274, 1669, 1565, 1118, 284, 508, 16, 11, 17, 11, 18, 5265, 2890, 58, 15, 936, 33754, 1371, 823, 284, 220, 16, 19324, 197, 6878, 70817, 1669, 501, 929, 35188, 1005...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsRed(t *testing.T) { defer leaktest.AfterTest(t) testCases := []struct { node *proto.RangeTreeNode expected bool }{ // normal black node {&proto.RangeTreeNode{Black: true}, false}, // normal red node {&proto.RangeTreeNode{Black: false}, true}, // nil {nil, false}, } for i, test := ran...
explode_data.jsonl/15490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 3872, 6033, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 340, 18185, 37302, 1669, 3056, 1235, 341, 197, 20831, 257, 353, 15110, 24783, 26597, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 322, 462...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTagInvalidUnprefixedRepo(t *testing.T) { // skip this until we start blocking bad tags t.Skip() invalidRepos := []string{"-foo", "fo$z$", "Foo@3cc", "Foo$3", "Foo*3", "Fo^3", "Foo!3", "F)xcz(", "fo", "f"} for _, repo := range invalidRepos { tagCmd := exec.Command(dockerBinary, "tag", "busybox", repo) ...
explode_data.jsonl/77728
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 224 }
[ 2830, 3393, 5668, 7928, 1806, 30552, 3286, 25243, 1155, 353, 8840, 836, 8, 341, 197, 322, 10706, 419, 3080, 582, 1191, 22188, 3873, 9492, 198, 3244, 57776, 2822, 197, 11808, 693, 966, 1669, 3056, 917, 4913, 12, 7975, 497, 330, 824, 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...
3
func TestCreateRouteForOneReserveRevision(t *testing.T) { ctx, _, ctl, _, cf := newTestSetup(t) defer cf() fakeRecorder := controller.GetEventRecorder(ctx).(*record.FakeRecorder) // An inactive revision rev := getTestRevision("test-rev") rev.Status.MarkActiveFalse("NoTraffic", "no message") fakeservingclient....
explode_data.jsonl/66129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1641 }
[ 2830, 3393, 4021, 4899, 2461, 3966, 1061, 5852, 33602, 1155, 353, 8840, 836, 8, 341, 20985, 11, 8358, 64935, 11, 8358, 24111, 1669, 501, 2271, 21821, 1155, 340, 16867, 24111, 2822, 1166, 726, 47023, 1669, 6461, 2234, 1556, 47023, 7502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_client_DownloadReleaseAsset(t *testing.T) { tests := []struct { name string assetName string responseContent string wantErr bool }{ {"ok", "abc", "true", false}, {"not found", "404", "", true}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { testS...
explode_data.jsonl/45922
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 467 }
[ 2830, 3393, 8179, 1557, 37702, 16077, 16604, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 197, 9852, 675, 981, 914, 198, 197, 21735, 2762, 914, 198, 197, 50780, 7747, 260, 1807, 198, 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 TestOSSToObjectError(t *testing.T) { testCases := []struct { inputErr error expectedErr error bucket, object string }{ { inputErr: ossErrResponse("BucketAlreadyExists"), expectedErr: minio.BucketAlreadyOwnedByYou{}, }, { inputErr: ossErrResponse("BucketNotEmpty"), expectedE...
explode_data.jsonl/79131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 864 }
[ 2830, 3393, 3126, 784, 78, 1190, 1454, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 22427, 7747, 981, 1465, 198, 197, 42400, 7747, 262, 1465, 198, 197, 2233, 11152, 11, 1633, 914, 198, 197, 59403, 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...
4
func TestBuildToolComponent(t *testing.T) { component := BuildTool{ Version: "19.1.0", } require.Equal(t, "build-tools;19.1.0", component.GetSDKStylePath()) require.Equal(t, "build-tools-19.1.0", component.GetLegacySDKStylePath()) require.Equal(t, "build-tools/19.1.0", component.InstallPathInAndroidHome()) }
explode_data.jsonl/15336
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 11066, 7740, 2189, 1155, 353, 8840, 836, 8, 341, 52228, 1669, 7854, 7740, 515, 197, 77847, 25, 330, 16, 24, 13, 16, 13, 15, 756, 197, 630, 17957, 12808, 1155, 11, 330, 5834, 44646, 26, 16, 24, 13, 16, 13, 15, 497, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMul(t *testing.T) { t.Parallel() s1 := []float64{1, 2, 3} s2 := []float64{1, 2, 3} ans := []float64{1, 4, 9} Mul(s1, s2) if !EqualApprox(s1, ans, EqTolerance) { t.Errorf("Mul doesn't give correct answer") } s1short := []float64{1} if !Panics(func() { Mul(s1short, s2) }) { t.Errorf("Did not panic w...
explode_data.jsonl/1230
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 59155, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 16, 1669, 3056, 3649, 21, 19, 90, 16, 11, 220, 17, 11, 220, 18, 532, 1903, 17, 1669, 3056, 3649, 21, 19, 90, 16, 11, 220, 17, 11, 220, 18, 532, 435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTarWithOptions(t *testing.T) { // TODO Windows: Figure out how to fix this test. if runtime.GOOS == "windows" { t.Skip("Failing on Windows") } origin, err := ioutil.TempDir("", "docker-test-untar-origin") if err != nil { t.Fatal(err) } if _, err := ioutil.TempDir(origin, "folder"); err != nil { t....
explode_data.jsonl/81996
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 539 }
[ 2830, 3393, 62733, 74238, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 5515, 25, 19037, 700, 1246, 311, 5046, 419, 1273, 624, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 197, 3244, 57776, 445, 37, 14277, 389, 5515, 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...
9
func TestCatchClause(t *testing.T) { data := []byte(`<?php namespace App; use Exception; try { } catch (\NotFoundException $ex) { } catch (\HttpException | Exception $ex) { } catch (\Throwable $ex) { }`) doc := NewDocument("test1", data) doc.Load() results := []*ClassAccess{} tra := newTraverser() tra.traverseD...
explode_data.jsonl/4694
{ "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, 57760, 28482, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 3056, 3782, 5809, 1316, 1208, 198, 2231, 1845, 401, 810, 4112, 401, 1539, 341, 92, 2287, 19788, 14578, 400, 327, 8, 341, 92, 2287, 19788, 58499, 760, 4112, 400, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContainerCreate(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionAuth(t) defer rollback() err := c.ContainerCreate(ctx, CONTAINER, m1.ContainerHeaders()) if err != nil { t.Fatal(err) } err = c.ContainerDelete(ctx, CONTAINER) if err != nil { t.Fatal(err) } }
explode_data.jsonl/12663
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 4502, 4021, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 5087, 1155, 340, 16867, 60414, 741, 9859, 1669, 272, 33672, 4021, 7502, 11, 16120, 34521, 11, 296, 16, 33672, 10574,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnalogSensorDriverDefaultName(t *testing.T) { d := NewAnalogSensorDriver(newAioTestAdaptor(), "1") gobottest.Assert(t, strings.HasPrefix(d.Name(), "AnalogSensor"), true) }
explode_data.jsonl/912
{ "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, 2082, 30951, 30752, 11349, 3675, 675, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 1532, 2082, 30951, 30752, 11349, 1755, 32, 815, 2271, 2589, 32657, 1507, 330, 16, 1138, 3174, 674, 1716, 477, 11711, 1155, 11, 9069, 94357, 1500...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnprovidedPositionalArg(t *testing.T) { f := NewFixture(t, model.UserConfigState{}) f.File("Tiltfile", ` config.define_string_list('foo', args=True) cfg = config.parse() print("foo:",cfg['foo']) `) _, err := f.ExecFile("Tiltfile") require.Error(t, err) require.Contains(t, err.Error(), `key "foo" not in d...
explode_data.jsonl/65233
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 1806, 63425, 3812, 278, 2735, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 18930, 1155, 11, 1614, 7344, 2648, 1397, 37790, 1166, 8576, 445, 51, 2963, 1192, 497, 22074, 1676, 16756, 3904, 2019, 492, 7975, 516, 2827, 3618, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlash(t *testing.T) { store := sessions.NewMemoryStore() defer func() { err := store.Close() if err != nil { t.Fatal(err) } }() ss := sessions.New(store, "myapp_session") m := mux.New() m.Use(ss.Middleware) m.Get("/").ThenFunc(func(c context.Context, w http.ResponseWriter, r *http.Request) { ...
explode_data.jsonl/45595
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 604 }
[ 2830, 3393, 23876, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 15704, 7121, 10642, 6093, 741, 16867, 2915, 368, 341, 197, 9859, 1669, 3553, 10421, 741, 197, 743, 1848, 961, 2092, 341, 298, 3244, 26133, 3964, 340, 197, 197, 532, 197, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSend(t *testing.T) { var url = "1https://oapi.dingtalk.com/robot/send?access_token=468470912f6c1241b1d804292794523940a9763eed0b04bf379469ee2163a103" ddBot := &DingDingBot{url, url, "ddBot"} //一般文本消息 //a := &DingDingTextMessage{Text: "hello"} //链接消息 //a := &DingDingLinkMessage{"Hello Title", "Hello", "", ...
explode_data.jsonl/52856
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1438 }
[ 2830, 3393, 11505, 1155, 353, 8840, 836, 8, 341, 2405, 2515, 284, 330, 16, 2428, 1110, 78, 2068, 950, 287, 35241, 905, 14, 18247, 69736, 30, 5211, 6458, 28, 19, 21, 23, 19, 22, 15, 24, 16, 17, 69, 21, 66, 16, 17, 19, 16, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResourceWithOwnerReferenceTemplate(t *testing.T) { controller := newController() wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("") // operate the workflow. it should create a pod. wf := unmarshalWF(resourceWithOwnerReferenceTemplate) wf, err := wfcset.Create(wf) assert.NoError(t, err) w...
explode_data.jsonl/54385
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 706 }
[ 2830, 3393, 4783, 2354, 13801, 8856, 7275, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 501, 2051, 741, 6692, 8316, 746, 1669, 6461, 1418, 69, 2972, 746, 18979, 45926, 73, 53, 16, 7141, 16, 1005, 6776, 38140, 445, 5130, 197, 322, 14476,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPanicBreakpointOnContinue(t *testing.T) { runTest(t, "panic", func(client *daptest.Client, fixture protest.Fixture) { runDebugSessionWithBPs(t, client, "launch", // Launch func() { client.LaunchRequest("exec", fixture.Path, !stopOnEntry) }, // Set breakpoints fixture.Source, []int{5}, ...
explode_data.jsonl/17342
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 675 }
[ 2830, 3393, 47, 31270, 22524, 2768, 1925, 23526, 1155, 353, 8840, 836, 8, 341, 56742, 2271, 1155, 11, 330, 19079, 497, 2915, 12805, 353, 91294, 1944, 11716, 11, 12507, 8665, 991, 12735, 8, 341, 197, 56742, 7939, 5283, 2354, 33, 20420, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNUsersBootstrap(t *testing.T) { if os.Getenv("SKIP_FOLDERSYNC") != "" { t.Skip("Skipping foldersync tests") } tests := []struct { totalClients int totalCorePeers int syncTimeout time.Duration randFilesGen int randFileSize int checkSyncedFiles bool }{ {totalClients: 2, tot...
explode_data.jsonl/21833
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 941 }
[ 2830, 3393, 45, 7137, 45511, 1155, 353, 8840, 836, 8, 341, 743, 2643, 64883, 445, 91799, 1400, 7863, 4321, 71401, 899, 961, 1591, 341, 197, 3244, 57776, 445, 85945, 29242, 1721, 7032, 1138, 197, 532, 78216, 1669, 3056, 1235, 341, 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...
6
func TestValidateDmsReplicationInstanceId(t *testing.T) { validIds := []string{ "tf-test-replication-instance-1", "tfTestReplicaitonInstance", } for _, s := range validIds { _, errors := validateDmsReplicationInstanceId(s, "replicaiton_instance_id") if len(errors) > 0 { t.Fatalf("%q should be a valid rep...
explode_data.jsonl/78605
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 17926, 35, 1011, 18327, 1693, 65918, 1155, 353, 8840, 836, 8, 341, 56322, 12701, 1669, 3056, 917, 515, 197, 197, 1, 8935, 16839, 5504, 79, 1693, 73655, 12, 16, 756, 197, 197, 1, 8935, 2271, 18327, 415, 1315, 263, 2523, 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...
5
func TestStateStoreKeys(t *testing.T) { address := common.HexToAddress("0xabcd") expected := "swap_cashout_000000000000000000000000000000000000abcd" if chequebook.CashoutActionKey(address) != expected { t.Fatalf("wrong cashout action key. wanted %s, got %s", expected, chequebook.CashoutActionKey(address)) } ex...
explode_data.jsonl/41448
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 1397, 6093, 8850, 1155, 353, 8840, 836, 8, 341, 63202, 1669, 4185, 91538, 1249, 4286, 445, 15, 52616, 4385, 5130, 42400, 1669, 330, 25741, 64363, 411, 62, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 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, 1, 1, 1, 1, 1, 1...
4
func TestRolesGet(t *testing.T) { clients.RequireAdmin(t) client, err := clients.NewIdentityV3Client() th.AssertNoErr(t, err) role, err := FindRole(t, client) th.AssertNoErr(t, err) p, err := roles.Get(client, role.ID).Extract() th.AssertNoErr(t, err) tools.PrintResource(t, p) }
explode_data.jsonl/57722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 25116, 1949, 1155, 353, 8840, 836, 8, 341, 197, 31869, 81288, 7210, 1155, 692, 25291, 11, 1848, 1669, 8239, 7121, 18558, 53, 18, 2959, 741, 70479, 11711, 2753, 7747, 1155, 11, 1848, 692, 197, 5778, 11, 1848, 1669, 7379, 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...
1
func TestMCR_createResourcesFromTemplates(t *testing.T) { testcases := []struct { name string data templateData templates []resourceTemplate resourceName string create bool }{ { name: "Create objects from precacheDependenciesCreateTemplates", data: templateData{ Cluster: "te...
explode_data.jsonl/47901
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 707 }
[ 2830, 3393, 44, 8973, 8657, 11277, 3830, 51195, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 8924, 260, 3811, 1043, 198, 197, 197, 15463, 262, 3056, 9233, 7275, 198, 197, 50346, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIotaGetNodeInfo(t *testing.T) { InitTest() info, err := Lin.API.GetNodeInfo() if err != nil { fmt.Println("GetNodeInfo err ", err.Error()) } else { fmt.Printf("INFO IS \n %+v \n", info) //fmt.Println("Info Time", info.Time) //fmt.Println("Info NodeAlias", info.NodeAlias) //fmt.Println("Info Autop...
explode_data.jsonl/15328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 40, 6089, 1949, 1955, 1731, 1155, 353, 8840, 836, 8, 341, 98762, 2271, 741, 27043, 11, 1848, 1669, 8564, 24922, 2234, 1955, 1731, 741, 743, 1848, 961, 2092, 341, 197, 11009, 12419, 445, 1949, 1955, 1731, 1848, 3670, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteOwnerRefPatch(t *testing.T) { original := v1.Pod{ ObjectMeta: metav1.ObjectMeta{ UID: "100", OwnerReferences: []metav1.OwnerReference{ {UID: "1"}, {UID: "2"}, {UID: "3"}, }, }, } originalData := serilizeOrDie(t, original) expected := v1.Pod{ ObjectMeta: metav1.ObjectMeta{ ...
explode_data.jsonl/1193
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 6435, 13801, 3945, 43622, 1155, 353, 8840, 836, 8, 341, 197, 9889, 1669, 348, 16, 88823, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 197, 6463, 25, 330, 16, 15, 15, 756, 298, 197, 13801, 31712, 25, 3056, 4059...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParse(test *testing.T) { parseBadRDL(test, `type Contact Struct { String foo; String foo; }`) parseBadRDL(test, `type Foo Struct { String foo; } type Bar Foo { String foo; }`) parseBadRDL(test, `type Foo Struct { String bar; } resource Foo GET "/foo?d={debug}" {String debug (optinal); }`) parseGoodRDL(test...
explode_data.jsonl/74346
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 410 }
[ 2830, 3393, 14463, 8623, 353, 8840, 836, 8, 341, 75115, 17082, 49, 16524, 8623, 11, 1565, 1313, 9180, 16139, 314, 923, 15229, 26, 923, 15229, 26, 335, 24183, 75115, 17082, 49, 16524, 8623, 11, 1565, 1313, 33428, 16139, 314, 923, 15229, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteFSMetadata(t *testing.T) { disk := filepath.Join(globalTestTmpDir, "minio-"+nextSuffix()) defer removeAll(disk) obj := initFSObjects(disk, t) fs := obj.(*fsObjects) bucketName := "bucket" objectName := "object" if err := obj.MakeBucket(bucketName); err != nil { t.Fatal("Unexpected err: ", err)...
explode_data.jsonl/68542
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 7985, 8485, 14610, 1155, 353, 8840, 836, 8, 341, 2698, 3187, 1669, 26054, 22363, 31951, 2271, 35986, 6184, 11, 330, 1065, 815, 52077, 3600, 40177, 2398, 16867, 65099, 1500, 3187, 692, 22671, 1669, 2930, 8485, 11543, 1500, 3187...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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
func TestReactorInvalidPrecommit(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() config := configSetup(t) n := 4 states, cleanup := makeConsensusState(ctx, t, config, n, "consensus_reactor_test", newMockTickerFunc(true)) t.Cleanup(cleanup) for i := 0...
explode_data.jsonl/80923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 780 }
[ 2830, 3393, 693, 5621, 7928, 4703, 17413, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 220, 16, 15, 77053, 32435, 340, 16867, 9121, 2822, 25873, 1669, 2193, 21821, 1155, 692, 9038, 1669, 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 TestSet_AddIfNotExistFuncLock(t *testing.T) { gtest.C(t, func(t *gtest.T) { s := gset.New(true) wg := sync.WaitGroup{} wg.Add(2) go func() { defer wg.Done() r := s.AddIfNotExistFuncLock(1, func() bool { time.Sleep(500 * time.Millisecond) return true }) t.Assert(r, true) }() time.Sl...
explode_data.jsonl/34400
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 1649, 21346, 2679, 45535, 9626, 11989, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 1903, 1669, 342, 746, 7121, 3715, 340, 197, 72079, 1669, 12811, 28384, 2808, 16094, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodePublishVolumeBadAttribute(t *testing.T) { // Create server and client connection s := newTestServer(t) defer s.Stop() // Make a call c := csi.NewNodeClient(s.Conn()) name := "myvol" s.MockDriver(). EXPECT(). Type(). Return(api.DriverType_DRIVER_TYPE_BLOCK). Times(1) os.Mkdir("mypath", 07...
explode_data.jsonl/51444
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 1955, 50145, 18902, 17082, 3907, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 3538, 323, 2943, 3633, 198, 1903, 1669, 501, 2271, 5475, 1155, 340, 16867, 274, 30213, 2822, 197, 322, 7405, 264, 1618, 198, 1444, 1669, 272, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEventsAreLoaded(t *testing.T) { loaders := map[string]func(*trace.Event, *ThreadTransitionSetBuilder) error{ "migrate-n-sleep": func(ev *trace.Event, ttsb *ThreadTransitionSetBuilder) error { pid, ok := ev.NumberProperties["pid"] if !ok { return MissingFieldError("pid", ev) } comm := ev.Text...
explode_data.jsonl/47250
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1836 }
[ 2830, 3393, 7900, 11526, 22369, 1155, 353, 8840, 836, 8, 341, 49386, 388, 1669, 2415, 14032, 60, 2830, 4071, 15067, 6904, 11, 353, 6855, 21768, 1649, 3297, 8, 1465, 515, 197, 197, 1, 76, 34479, 5279, 1331, 3499, 788, 2915, 32647, 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...
4
func TestStoreRemovePlaceholderOnRaftIgnored(t *testing.T) { defer leaktest.AfterTest(t)() tc := testContext{} stopper := stop.NewStopper() defer stopper.Stop(context.Background()) tc.Start(t, stopper) s := tc.store ctx := context.Background() // Clobber the existing range and recreated it with an uninitialize...
explode_data.jsonl/115
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1096 }
[ 2830, 3393, 6093, 13021, 48305, 1925, 55535, 723, 43337, 3018, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 78255, 1669, 1273, 1972, 16094, 62644, 712, 1669, 2936, 7121, 10674, 712, 741, 16867, 2936, 712, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormatterOverline(test *testing.T) { formatted, err := formatter.Format("{overline}text{overline | off}") assert.NoError(test, err) assert.Equal(test, "\x1b[53mtext\x1b[55m", formatted) }
explode_data.jsonl/39777
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 14183, 1918, 1056, 8623, 353, 8840, 836, 8, 341, 37410, 12127, 11, 1848, 1669, 24814, 9978, 13976, 1975, 1056, 92, 1318, 90, 1975, 1056, 760, 1007, 55266, 6948, 35699, 8623, 11, 1848, 340, 6948, 12808, 8623, 11, 2917, 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
func TestNestedJoins(t *testing.T) { catalogStore, err := store.Open("catalog_nestedjoins", store.DefaultOptions()) require.NoError(t, err) defer os.RemoveAll("catalog_nestedjoins") dataStore, err := store.Open("sqldata_nestedjoins", store.DefaultOptions()) require.NoError(t, err) defer os.RemoveAll("sqldata_nes...
explode_data.jsonl/64081
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1067 }
[ 2830, 3393, 71986, 22493, 1330, 1155, 353, 8840, 836, 8, 341, 1444, 7750, 6093, 11, 1848, 1669, 3553, 12953, 445, 26539, 66279, 7305, 1330, 497, 3553, 13275, 3798, 2398, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 445, 26539, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateColPointGet(t *testing.T) { store, clean := createMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") defer func() { tk.MustExec(fmt.Sprintf("set global tidb_row_format_version = %d", variable.DefTiDBRowFormatV2)) }() tests2 := []int{variable.DefTiDB...
explode_data.jsonl/12484
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 832 }
[ 2830, 3393, 31115, 6127, 2609, 1949, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1855, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStep(t *testing.T) { // wide range of step sizes to try and hit edge cases steps := [...]int{1, 3, 4, 7, 8, 17, 24, 30, 64, 256} rnd := rand.New(rand.NewSource(123)) for _, c := range testVectors { s, _ := NewUnauthenticatedCipher(hexDecode(c.key), hexDecode(c.nonce)) input := hexDecode(c.input) outp...
explode_data.jsonl/80524
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 435 }
[ 2830, 3393, 8304, 1155, 353, 8840, 836, 8, 341, 197, 322, 6884, 2088, 315, 3019, 12282, 311, 1430, 323, 4201, 6821, 5048, 198, 18388, 7124, 1669, 48179, 396, 90, 16, 11, 220, 18, 11, 220, 19, 11, 220, 22, 11, 220, 23, 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...
6
func TestKeepComments(t *testing.T) { t.Parallel() in := "# foo\ncmd\n# bar" want := &File{ Stmts: []*Stmt{{ Comments: []Comment{{Text: " foo"}}, Cmd: litCall("cmd"), }}, Last: []Comment{{Text: " bar"}}, } singleParse(NewParser(KeepComments(true)), in, want)(t) }
explode_data.jsonl/55110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 19434, 17373, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 17430, 1669, 5869, 15229, 59, 1016, 2277, 1699, 2, 3619, 698, 50780, 1669, 609, 1703, 515, 197, 197, 31063, 82, 25, 29838, 31063, 90, 515, 298, 197, 17373...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsertShardedIgnoreOwnedWithNull(t *testing.T) { invschema := &vschemapb.SrvVSchema{ Keyspaces: map[string]*vschemapb.Keyspace{ "sharded": { Sharded: true, Vindexes: map[string]*vschemapb.Vindex{ "primary": { Type: "hash", }, "onecol": { Type: "lookup", Params: ma...
explode_data.jsonl/55993
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1147 }
[ 2830, 3393, 13780, 2016, 20958, 12497, 57641, 2354, 3280, 1155, 353, 8840, 836, 8, 341, 17430, 11562, 3416, 1669, 609, 11562, 2407, 391, 65, 808, 10553, 53, 8632, 515, 197, 197, 8850, 27338, 25, 2415, 14032, 8465, 11562, 2407, 391, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestCheckBuffer(t *testing.T) { var buf = make([]byte, 512) n := uint64(256) b := CheckBuffer(buf, n) if uint64(len(b)) != n { t.Errorf("error %d != %d", len(b), n) } }
explode_data.jsonl/58544
{ "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, 3973, 4095, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 284, 1281, 10556, 3782, 11, 220, 20, 16, 17, 340, 9038, 1669, 2622, 21, 19, 7, 17, 20, 21, 340, 2233, 1669, 4248, 4095, 10731, 11, 308, 340, 743, 2622, 21, 19, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileServing(t *testing.T) { const ( fname = "test.txt" data = "This is test data" ) dir, err := ioutil.TempDir("", "data") if err != nil { t.Fatalf("error creating tmp dir: %v", err) } if err := ioutil.WriteFile(filepath.Join(dir, fname), []byte(data), 0755); err != nil { t.Fatalf("error writing...
explode_data.jsonl/66374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 1703, 50, 19505, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 1166, 606, 284, 330, 1944, 3909, 698, 197, 8924, 220, 284, 330, 1986, 374, 1273, 821, 698, 197, 340, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 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...
7
func TestUpdateAutoscalerWrongParams(t *testing.T) { // given suite := NewBrokerSuiteTest(t) defer suite.TearDown() id := uuid.New().String() resp := suite.CallAPI("PUT", fmt.Sprintf("oauth/cf-eu10/v2/service_instances/%s?accepts_incomplete=true&plan_id=7d55d31d-35ae-4438-bf13-6ffdfa107d9f&service_id=47c9dcbf-ff3...
explode_data.jsonl/8131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 660 }
[ 2830, 3393, 4289, 19602, 436, 63084, 29185, 4870, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 96572, 1669, 1532, 65545, 28000, 2271, 1155, 340, 16867, 16182, 836, 682, 4454, 741, 15710, 1669, 16040, 7121, 1005, 703, 2822, 34653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckForbiddenErrorAndResbmitAllowed(t *testing.T) { cancel, controller := newController() defer cancel() wf := unmarshalWF(resubmitPendingWf) woc := newWorkflowOperationCtx(wf, controller) forbiddenErr := apierr.NewForbidden(schema.GroupResource{Group: "test", Resource: "test1"}, "test", errors.New("exc...
explode_data.jsonl/71022
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 3973, 69115, 1454, 3036, 1061, 65, 1763, 35382, 1155, 353, 8840, 836, 8, 341, 84441, 11, 6461, 1669, 501, 2051, 741, 16867, 9121, 741, 6692, 69, 1669, 650, 27121, 32131, 4590, 392, 1763, 32027, 54, 69, 340, 6692, 509, 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 TestFlowRejectsMalformedSchedule(t *testing.T) { workflow, err := parseString(`workflow "foo" { on = "schedule(" resolves = "a" } action "a" { uses="./x" }`) assertParseError(t, err, 1, 1, workflow, "workflow `foo' has an invalid `on' attribute `schedule(' - must be a known event type or schedule expression", ...
explode_data.jsonl/55687
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 18878, 78413, 82, 29600, 10155, 32210, 1155, 353, 8840, 836, 8, 341, 197, 56249, 11, 1848, 1669, 4715, 703, 5809, 56249, 330, 7975, 1, 314, 389, 284, 330, 28630, 445, 63297, 284, 330, 64, 1, 335, 1917, 330, 64, 1, 314, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApp01maDisconnect(t *testing.T) { var err error t.Logf("TestDisconnect()...\n") ioApp01ma = NewIoApp01ma() ioApp01ma.DefaultParms() // Disconnect before a connection has been made. err = ioApp01ma.Disconnect() if err == nil { t.Fatal("Error: Never Connected!\n\n\n") } ...
explode_data.jsonl/16189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 371 }
[ 2830, 3393, 2164, 15, 16, 1728, 60651, 1155, 353, 8840, 836, 8, 341, 262, 762, 1848, 260, 1465, 271, 3244, 98954, 445, 2271, 60651, 368, 30801, 77, 1138, 53112, 2164, 15, 16, 1728, 284, 1532, 42799, 2164, 15, 16, 1728, 741, 53112, 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...
6
func TestGrpcMatchEventStreaming(t *testing.T) { log.Printf("Starting GET5 gRPC Client...") conn, err := grpc.Dial("127.0.0.1:50055", grpc.WithInsecure()) if err != nil { t.Errorf("client connection error:%v\n", err) } defer conn.Close() req := &pb.MatchEventRequest{ Matchid: 97, } client := pb.NewGet5Clien...
explode_data.jsonl/40917
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 248 }
[ 2830, 3393, 6464, 3992, 8331, 1556, 76509, 1155, 353, 8840, 836, 8, 341, 6725, 19367, 445, 24617, 7890, 20, 342, 29528, 8423, 33093, 32917, 11, 1848, 1669, 47900, 98462, 445, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 20, 15, 15, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestSignUp(t *testing.T) { // Load the environment variables, this is where things like api keys should be stored. // Can also store constants shared by multiple services err := godotenv.Load("../.env") if err != nil { panic(errors.Wrap(err, "Could not load .env file")) } // Connect to the database err =...
explode_data.jsonl/24067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 604 }
[ 2830, 3393, 57522, 1155, 353, 8840, 836, 8, 341, 197, 322, 8893, 279, 4573, 7332, 11, 419, 374, 1380, 2513, 1075, 6330, 6894, 1265, 387, 9768, 624, 197, 322, 2980, 1083, 3553, 18021, 6094, 553, 5248, 3516, 198, 9859, 1669, 9886, 354, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSortedArray_Empty(t *testing.T) { gtest.C(t, func(t *gtest.T) { array := garray.NewSortedArray(gutil.ComparatorInt) v, ok := array.PopLeft() t.Assert(v, nil) t.Assert(ok, false) t.Assert(array.PopLefts(10), nil) v, ok = array.PopRight() t.Assert(v, nil) t.Assert(ok, false) t.Assert(array.Po...
explode_data.jsonl/67014
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 221 }
[ 2830, 3393, 51051, 1857, 76060, 1595, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11923, 1669, 342, 1653, 7121, 51051, 1857, 3268, 1314, 79257, 1072, 340, 197, 5195, 11, 5394, 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 TestFilteringServerGetSrvKeyspameNamesFiltersEverythingOut(t *testing.T) { _, _, f := newFiltering(nil) doTestGetSrvKeyspaceNames(t, f, stockCell, []string{}, nil) }
explode_data.jsonl/2376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 5632, 287, 5475, 1949, 50, 10553, 8850, 79, 373, 7980, 28351, 34964, 2662, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 282, 1669, 501, 5632, 287, 27907, 340, 19935, 2271, 1949, 50, 10553, 8850, 1306, 7980, 1155, 11, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollectTxFeesRollback(t *testing.T) { cleanAndPrepare() randVar := rand.New(rand.NewSource(time.Now().Unix())) var funds, funds2 []*protocol.FundsTx accAHash := protocol.SerializeHashContent(accA.Address) accBHash := protocol.SerializeHashContent(accB.Address) minerHash := protocol.SerializeHashConten...
explode_data.jsonl/41099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 727 }
[ 2830, 3393, 47504, 51, 9770, 5516, 32355, 1419, 1155, 353, 8840, 836, 8, 341, 1444, 2675, 3036, 50590, 2822, 7000, 437, 3962, 1669, 10382, 7121, 37595, 7121, 3608, 9730, 13244, 1005, 55832, 49962, 2405, 10514, 11, 10514, 17, 29838, 17014,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetOpQueueParameters(t *testing.T) { t.Run("Valid env values -> error", func(t *testing.T) { restorePoolEnv := setEnv(t, opQueuePoolEnvKey, "221") restoreTaskMonitorIntervalEnv := setEnv(t, opQueueTaskMonitorIntervalEnvKey, "17s") restoreTaskExpirationEnv := setEnv(t, opQueueTaskExpirationEnvKey, "33s")...
explode_data.jsonl/31135
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1156 }
[ 2830, 3393, 1949, 7125, 7554, 9706, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4088, 6105, 2750, 1464, 1465, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 96027, 10551, 14359, 1669, 738, 14359, 1155, 11, 1179, 7554, 10551, 14359, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestColorizeResultStringr(t *testing.T) { cases := []struct { query []string from string expect string }{ {[]string{""}, "", ""}, {[]string{"qt"}, "libqt", "lib[B]qt[/B]"}, {[]string{"qt"}, "libqtconfig", "lib[B]qt[/B]config"}, {[]string{"Qt"}, "libqt", "lib[B]qt[/B]"}, {[]string{"Qt"}, "libqt...
explode_data.jsonl/54430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 1636, 551, 2077, 703, 81, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 27274, 220, 3056, 917, 198, 197, 42727, 256, 914, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 90, 1294, 917, 90, 3014, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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