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 TestAPIRequestParameters_WithFilter_AddsFilter(t *testing.T) { f := APIRequestFiltering{ Property: "testproperty1", Operator: EQOperator, Value: []string{"testvalue1"}, } params := APIRequestParameters{} params.WithFilter(f) assert.Len(t, params.Filtering, 1) assert.Equal(t, f, params.Filtering[0]...
explode_data.jsonl/44623
{ "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, 7082, 1900, 9706, 62, 2354, 5632, 21346, 82, 5632, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 5333, 1900, 5632, 287, 515, 197, 197, 3052, 25, 330, 1944, 3699, 16, 756, 197, 197, 18461, 25, 38994, 18461, 345, 197, 47399, 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 TestMailForwardEncoding(t *testing.T) { fwd := MailForward{ Name: "foobar@example.org", TargetAddress: "info@example.org", } fixtArgs := `<mailForward xsi:type="ns1:MailForward"> <name xsi:type="xsd:string">foobar@example.org</name> <targetAddress xsi:type="xsd:string">info@example.org</targetAd...
explode_data.jsonl/35227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 16702, 25925, 14690, 1155, 353, 8840, 836, 8, 341, 1166, 6377, 1669, 14874, 25925, 515, 197, 21297, 25, 688, 330, 50267, 35487, 2659, 756, 197, 197, 6397, 4286, 25, 330, 2733, 35487, 2659, 756, 197, 630, 1166, 941, 83, 411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_downloadReleaseAssetCRDs(t *testing.T) { renderer := buildTestRenderer() asset := ReleaseAssetFileDefinition{ Owner: "kubernetes-sigs", Repo: "cluster-api", Version: "v0.3.22", Files: []string{"cluster-api-components.yaml"}, Provider: "aws", } crds, err := renderer.downloadReleaseAsse...
explode_data.jsonl/3688
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 35939, 16077, 16604, 8973, 66950, 1155, 353, 8840, 836, 8, 341, 83509, 1669, 1936, 2271, 11541, 741, 197, 9852, 1669, 17381, 16604, 1703, 10398, 515, 197, 197, 13801, 25, 262, 330, 74, 29827, 1331, 14462, 756, 197, 197, 2524...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWalkSkipDirOnFile(t *testing.T) { td, err := ioutil.TempDir("", "walktest") if err != nil { t.Fatal(err) } defer os.RemoveAll(td) if err := os.MkdirAll(filepath.Join(td, "dir"), 0755); err != nil { t.Fatal(err) } touch(t, filepath.Join(td, "dir/foo1")) touch(t, filepath.Join(td, "dir/foo2")) saw...
explode_data.jsonl/1660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 388 }
[ 2830, 3393, 48849, 35134, 6184, 1925, 1703, 1155, 353, 8840, 836, 8, 341, 76373, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 19059, 1944, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2643, 84427, 61...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidUrl(t *testing.T) { // // Missing protocol scheme - url.Parse should fail // url := "://foobar.com" _, err := Get(url, nil, nil, nil) assert.NotEqual(t, nil, err) // // Unsupported protocol scheme - HttpClient.Do should fail // url = "foo://bar.com" _, err = Get(url, nil, nil, nil) assert....
explode_data.jsonl/14806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 7928, 2864, 1155, 353, 8840, 836, 8, 341, 197, 2289, 197, 322, 220, 35264, 11507, 12859, 481, 2515, 8937, 1265, 3690, 198, 197, 6320, 19320, 1669, 330, 1110, 50267, 905, 698, 197, 6878, 1848, 1669, 2126, 6522, 11, 2092, 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 TestAkimaSpline(t *testing.T) { t.Parallel() const ( derivAbsTol = 1e-8 derivRelTol = 1e-7 h = 1e-8 nPts = 100 tol = 1e-14 ) for i, test := range []struct { xs []float64 f func(float64) float64 }{ { xs: []float64{-5, -3, -2, -1.5, -1, 0.5, 1.5, 2.5, 3}, f: func...
explode_data.jsonl/44082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1186 }
[ 2830, 3393, 55802, 7523, 50, 31439, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 4777, 2399, 197, 197, 82495, 27778, 51, 337, 284, 220, 16, 68, 12, 23, 198, 197, 197, 82495, 6740, 51, 337, 284, 220, 16, 68, 12, 22, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWrapNil(t *testing.T) { got := Wrap(nil, "no error") if got != nil { t.Errorf("Wrap(nil, \"no error\"): got %#v, expected nil", got) } }
explode_data.jsonl/60771
{ "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, 26787, 19064, 1155, 353, 8840, 836, 8, 341, 3174, 354, 1669, 42187, 27907, 11, 330, 2152, 1465, 1138, 743, 2684, 961, 2092, 341, 197, 3244, 13080, 445, 26787, 27907, 11, 7245, 2152, 1465, 59, 37051, 2684, 52406, 85, 11, 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 ]
2
func TestHTTPHandlerPutUnrecognizedLevel(t *testing.T) { lvl, _ := newHandler() code, body := makeRequest(t, "PUT", lvl, strings.NewReader(`{"level":"unrecognized-level"}`)) assertCodeBadRequest(t, code) assertJSONError(t, body) }
explode_data.jsonl/7603
{ "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, 9230, 3050, 19103, 1806, 46067, 4449, 1155, 353, 8840, 836, 8, 341, 8810, 14536, 11, 716, 1669, 501, 3050, 741, 43343, 11, 2487, 1669, 1281, 1900, 1155, 11, 330, 6221, 497, 46129, 11, 9069, 68587, 5809, 4913, 3294, 3252, 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
func TestStrong(t *testing.T) { reqs := Strong p, e := NewPassword(&reqs) if e != nil { t.Error(e) } if ok, msg := reqs.Validate(p); !ok { t.Error(msg) } }
explode_data.jsonl/7149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 47586, 1155, 353, 8840, 836, 8, 341, 24395, 82, 1669, 26099, 198, 3223, 11, 384, 1669, 1532, 4876, 2099, 2958, 82, 340, 743, 384, 961, 2092, 341, 197, 3244, 6141, 2026, 340, 197, 532, 743, 5394, 11, 3750, 1669, 4232, 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 ]
3
func TestRendererService(t *testing.T) { tc := testutil.EndToEndTest(t) service := cloudrunci.NewService("render", tc.ProjectID) if err := service.Deploy(); err != nil { t.Fatalf("service.Deploy %q: %v", service.Name, err) } defer service.Clean() for _, test := range tests { req, err := service.NewRequest("P...
explode_data.jsonl/40657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 11541, 1860, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 1273, 1314, 18569, 66573, 2271, 1155, 340, 52934, 1669, 9437, 81, 18424, 7121, 1860, 445, 7322, 497, 17130, 30944, 915, 340, 743, 1848, 1669, 2473, 34848, 1989, 2129, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBroadcastChannelSupportRejection(t *testing.T) { ledgerFactory, _ := NewRAMLedgerAndFactory(10) mockConsenters := map[string]consensus.Consenter{conf.Orderer.OrdererType: &mockConsenter{}} registrar := NewRegistrar(ledgerFactory, mockConsenters, mockCrypto()) randomValue := 1 configTx := makeConfigTx(gene...
explode_data.jsonl/71402
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 43362, 9629, 7916, 693, 7606, 1155, 353, 8840, 836, 8, 341, 197, 50704, 4153, 11, 716, 1669, 1532, 49, 31102, 291, 1389, 3036, 4153, 7, 16, 15, 340, 77333, 15220, 306, 388, 1669, 2415, 14032, 60, 6254, 13626, 94594, 1950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_IndexTxAttempts(t *testing.T) { t.Parallel() app, cleanup := cltest.NewApplicationWithKey(t, cltest.LenientEthMock) defer cleanup() require.NoError(t, app.Start()) store := app.GetStore() from := cltest.GetAccountAddress(t, store) tx := cltest.CreateTx(t, store, from, 1) client, r := app.NewC...
explode_data.jsonl/78860
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 2959, 50361, 31584, 81517, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 28236, 11, 21290, 1669, 1185, 1944, 7121, 4988, 2354, 1592, 1155, 11, 1185, 1944, 65819, 1167, 65390, 11571, 340, 16867, 21290, 741, 17957, 3569...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAgent_Monitor(t *testing.T) { t.Parallel() logWriter := logger.NewLogWriter(512) a := &TestAgent{ Name: t.Name(), LogWriter: logWriter, LogOutput: io.MultiWriter(os.Stderr, logWriter), } a.Start() defer a.Shutdown() // Try passing an invalid log level req, _ := http.NewRequest("GET", "/v1/a...
explode_data.jsonl/33647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 518 }
[ 2830, 3393, 16810, 1245, 30314, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 6725, 6492, 1669, 5925, 7121, 2201, 6492, 7, 20, 16, 17, 340, 11323, 1669, 609, 2271, 16810, 515, 197, 21297, 25, 414, 259, 2967, 3148, 197, 24201, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test1(t *testing.T) { matcher := NewMatcher() matcher.Insert("你是毛泽东吗", 30, []int64{0}, 265) matcher.Insert("毛泽东啊", 30, []int64{0}, 265) //matcher.Insert("邀请码", 30, []int64{0}, 265) matcher.Build() fmt.Println(matcher.Filter("你是毛泽东啊", 0, 15)) }
explode_data.jsonl/56863
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 16, 1155, 353, 8840, 836, 8, 341, 2109, 28058, 1669, 1532, 37554, 741, 2109, 28058, 23142, 445, 105043, 107033, 101037, 497, 220, 18, 15, 11, 3056, 396, 21, 19, 90, 15, 2137, 220, 17, 21, 20, 340, 2109, 28058, 23142, 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 TestDuplicateKey(t *testing.T) { expectConfigPanic( t, func() { config.NewRateLimitConfigImpl( loadFile("duplicate_key.yaml"), stats.NewStore(stats.NewNullSink(), false)) }, "duplicate_key.yaml: duplicate descriptor composite key 'test-domain.key1_value1'") }
explode_data.jsonl/41133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 53979, 1592, 1155, 353, 8840, 836, 8, 341, 24952, 2648, 47, 31270, 1006, 197, 3244, 345, 197, 29244, 368, 341, 298, 25873, 7121, 11564, 16527, 2648, 9673, 1006, 571, 49386, 1703, 445, 63826, 3097, 33406, 4461, 571, 79659, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFindInsertPoint(t *testing.T) { type args struct { doc string docMarkerStart string docMarkerEnd string } tests := []struct { name string args args wantStart int wantEnd int err string }{ { name: "simple", args: args{ doc: `lorem ipsom markerstart ...
explode_data.jsonl/6196
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 602 }
[ 2830, 3393, 9885, 13780, 2609, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 59536, 310, 914, 198, 197, 59536, 20613, 3479, 914, 198, 197, 59536, 20613, 3727, 256, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 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 TestShouldNotHashPasswordDueToSaltCharLengthTooShort(t *testing.T) { // The salt 'YQ' is the base64 value for 'a' which is why the length is 1. hash, err := HashPassword("password", "YQ", HashingAlgorithmArgon2id, schema.DefaultCIPasswordConfiguration.Iterations, schema.DefaultCIPasswordConfiguration.Memory*10...
explode_data.jsonl/40176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 14996, 2623, 6370, 4876, 33060, 1249, 47318, 4768, 4373, 31246, 12472, 1155, 353, 8840, 836, 8, 341, 197, 322, 576, 12021, 364, 56, 48, 6, 374, 279, 2331, 21, 19, 897, 369, 364, 64, 6, 892, 374, 3170, 279, 3084, 374, 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 TestAudioAnalysis(t *testing.T) { c, s := testClientFile(http.StatusOK, "test_data/get_audio_analysis.txt") defer s.Close() analysis, err := c.GetAudioAnalysis("foo") if err != nil { t.Error(err) } if !reflect.DeepEqual(analysis.Bars, expected.Bars) { t.Errorf(fieldsDifferTemplate, "Bars") } if !ref...
explode_data.jsonl/60308
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 14755, 26573, 1155, 353, 8840, 836, 8, 341, 1444, 11, 274, 1669, 1273, 2959, 1703, 19886, 52989, 11, 330, 1944, 1769, 23302, 29688, 42682, 3909, 1138, 16867, 274, 10421, 2822, 197, 34484, 11, 1848, 1669, 272, 2234, 14755, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestDockerKubernetes121UpgradeFromLatestMinorRelease(t *testing.T) { provider := framework.NewDocker(t) test := framework.NewClusterE2ETest( t, provider, framework.WithClusterFiller(api.WithKubernetesVersion(anywherev1.Kube121)), framework.WithClusterFiller(api.WithExternalEtcdTopology(1)), framework.W...
explode_data.jsonl/6566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 188 }
[ 2830, 3393, 35, 13659, 42, 29827, 16, 17, 16, 43861, 3830, 31992, 57024, 16077, 1155, 353, 8840, 836, 8, 341, 197, 19979, 1669, 12626, 7121, 35, 13659, 1155, 340, 18185, 1669, 12626, 7121, 28678, 36, 17, 1348, 477, 1006, 197, 3244, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResolver_UserPermissionsInfo(t *testing.T) { t.Run("authenticated as non-admin", func(t *testing.T) { db.Mocks.Users.GetByCurrentAuthUser = func(context.Context) (*types.User, error) { return &types.User{}, nil } t.Cleanup(func() { db.Mocks.Users.GetByCurrentAuthUser = nil }) ctx := actor.Wit...
explode_data.jsonl/14720
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 865 }
[ 2830, 3393, 18190, 31339, 23851, 1731, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 57707, 438, 2477, 27225, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 20939, 24664, 82, 36782, 2234, 1359, 5405, 5087, 1474, 284, 2915, 5378, 9328, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTrie_InsertDuplicatePrefixes(t *testing.T) { trie := NewTrie() data := []testData{ {"Pepan", "Pepan Zdepan", success}, {"Pepan", "Pepan Zdepan", failure}, } for _, v := range data { t.Logf("INSERT prefix=%v, item=%v, success=%v", v.key, v.value, v.retVal) if ok := trie.Insert(Prefix(v.key), v.val...
explode_data.jsonl/2356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 51, 7231, 76417, 53979, 14335, 288, 1155, 353, 8840, 836, 8, 341, 197, 8927, 1669, 1532, 51, 7231, 2822, 8924, 1669, 3056, 1944, 1043, 515, 197, 197, 4913, 47, 747, 276, 497, 330, 47, 747, 276, 1863, 450, 848, 497, 2393,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_InboundIpRule_Status_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip from InboundIpRule_Status to InboundIpRule_Status via Assi...
explode_data.jsonl/39614
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 189 }
[ 2830, 3393, 25972, 10891, 23378, 11337, 36449, 62, 4498, 7903, 61941, 2568, 795, 21884, 1690, 26040, 39838, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTxWithPubMetadata(t *testing.T) { for _, testEnv := range testEnvs { t.Logf("Running test for TestEnv = %s", testEnv.getName()) testLedgerID := "testtxwithpubmetadata" testEnv.init(t, testLedgerID, nil) testTxWithPubMetadata(t, testEnv) testEnv.cleanup() } }
explode_data.jsonl/63623
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 31584, 2354, 29162, 14610, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 14359, 1669, 2088, 1273, 1702, 11562, 341, 197, 3244, 98954, 445, 18990, 1273, 369, 3393, 14359, 284, 1018, 82, 497, 1273, 14359, 8911, 2398, 197, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitTransactionWithRetries(t *testing.T) { opts := &bind.TransactOpts{From: common.HexToAddress("0x45B9c4798999FFa52e1ff1eFce9d3e45819E4158")} mockRequest := &MockTransactionRequest{} // noncer success mockClient := &MockEthCl{} mockClient.On("PendingNonceAt", mock.Anything, opts.From).Return(uint64(1), ...
explode_data.jsonl/53155
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 588 }
[ 2830, 3393, 3803, 8070, 2354, 12020, 4019, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 609, 7666, 11815, 531, 43451, 90, 3830, 25, 4185, 91538, 1249, 4286, 445, 15, 87, 19, 20, 33, 24, 66, 19, 22, 24, 23, 24, 24, 24, 1748, 64, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOptions(t *testing.T) { mysqld, err := NewMysqld(NewConfig()) if !assert.NoError(t, err, "NewMysqld should succeed") { return } dsn := mysqld.Datasource( "mysql", "root", "localhost", 0, WithParseTime(true), WithMultiStatements(true), ) if !assert.Regexp(t, "parseTime=true", dsn, "dsn match...
explode_data.jsonl/77523
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 3798, 1155, 353, 8840, 836, 8, 341, 2109, 1047, 80, 507, 11, 1848, 1669, 1532, 44, 1047, 80, 507, 35063, 2648, 2398, 743, 753, 2207, 35699, 1155, 11, 1848, 11, 330, 3564, 44, 1047, 80, 507, 1265, 11996, 899, 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...
4
func TestLifecycle(t *testing.T) { err := checkpoint.CreateTable(local.DynamoDB, local.Env, 5, 5) assert.Nil(t, err) ctx := context.Background() cp := checkpoint.New(local.Env, local.DynamoDB) key := randx.AlphaN(12) offset := uint64(randx.Int63()) err = cp.Save(ctx, key, offset) assert.Nil(t, err) actual, ...
explode_data.jsonl/7594
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 62731, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 29295, 55046, 18082, 909, 85608, 3506, 11, 2205, 81214, 11, 220, 20, 11, 220, 20, 340, 6948, 59678, 1155, 11, 1848, 692, 20985, 1669, 2266, 19047, 741, 52018, 1669, 29295, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAccAWSDBInstance_MSSQL_TZ(t *testing.T) { var v rds.DBInstance resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckAWSDBInstanceDestroy, Steps: []resource.TestStep{ { Config: testAccAWSDBMSSQL_timezone, ...
explode_data.jsonl/33928
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 491 }
[ 2830, 3393, 14603, 36136, 3506, 2523, 1245, 1220, 3588, 1139, 57, 1155, 353, 8840, 836, 8, 341, 2405, 348, 435, 5356, 22537, 2523, 271, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 4703, 3973, 25, 257, 2915, 368, 314, 1273, 1460...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetClusters(t *testing.T) { t.Run("could not create in cluster config", func(t *testing.T) { getInClusterConfig = getInClusterConfigError client := New(&Config{Name: "kobs"}) clusters, err := client.GetCluster() require.Error(t, err) require.Empty(t, clusters) }) t.Run("new cluster fails", func(...
explode_data.jsonl/34214
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 314 }
[ 2830, 3393, 1949, 94992, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 28077, 537, 1855, 304, 10652, 2193, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 10366, 641, 28678, 2648, 284, 633, 641, 28678, 2648, 1454, 271, 197, 25291, 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 TestValues_MarshalUnmarshalJSON(t *testing.T) { values := Values{ Data: map[string]interface{}{ "key": "value", }, } expected := `{"key":"value"}` actual, err := values.MarshalJSON() if err != nil { t.Errorf("unexpected error: %v", err) } assert.Equal(t, expected, string(actual)) var values2 Val...
explode_data.jsonl/4722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 6227, 1245, 28423, 1806, 27121, 5370, 1155, 353, 8840, 836, 8, 341, 45939, 1669, 24979, 515, 197, 40927, 25, 2415, 14032, 31344, 67066, 298, 197, 1, 792, 788, 330, 957, 756, 197, 197, 1583, 197, 630, 42400, 1669, 1565, 491...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlagUnderscoreRenaming(t *testing.T) { factory := NewFactory(nil) factory.FlagSet().SetNormalizeFunc(flag.WordSepNormalizeFunc) factory.FlagSet().Bool("valid_flag", false, "bool value") // In case of failure of this test check this PR: spf13/pflag#23 if factory.FlagSet().Lookup("valid_flag").Name != "va...
explode_data.jsonl/43206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 12135, 19957, 388, 2153, 34625, 6469, 1155, 353, 8840, 836, 8, 341, 1166, 2919, 1669, 1532, 4153, 27907, 692, 1166, 2919, 80911, 1649, 1005, 1649, 87824, 9626, 33104, 64969, 41114, 87824, 9626, 340, 1166, 2919, 80911, 1649, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReaderAt(t *testing.T) { svc := s3.New(unit.Session) svc.Handlers.Unmarshal.Clear() svc.Handlers.UnmarshalMeta.Clear() svc.Handlers.UnmarshalError.Clear() svc.Handlers.Send.Clear() contentLen := "" svc.Handlers.Send.PushBack(func(r *request.Request) { contentLen = r.HTTPRequest.Header.Get("Content-Le...
explode_data.jsonl/55652
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 5062, 1655, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 274, 18, 7121, 24144, 20674, 340, 1903, 7362, 35308, 9254, 38097, 13524, 741, 1903, 7362, 35308, 9254, 38097, 12175, 13524, 741, 1903, 7362, 35308, 9254, 38097, 1454,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_NamespacesTopics_Spec_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of NamespacesTopics_Spec via JSON returns original", prop.Fo...
explode_data.jsonl/36550
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 1604, 971, 27338, 45003, 1098, 992, 62, 4498, 77521, 78967, 98054, 2848, 4756, 2121, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMultiCellVreplicationWorkflow(t *testing.T) { cells := []string{"zone1", "zone2"} allCellNames = "zone1,zone2" vc = NewVitessCluster(t, "TestMultiCellVreplicationWorkflow", cells, mainClusterConfig) require.NotNil(t, vc) defaultCellName := "zone1" defaultCell = vc.Cells[defaultCellName] defer vc.TearD...
explode_data.jsonl/44950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 399 }
[ 2830, 3393, 20358, 3599, 53, 9995, 1693, 62768, 1155, 353, 8840, 836, 8, 341, 1444, 6436, 1669, 3056, 917, 4913, 8684, 16, 497, 330, 8684, 17, 16707, 50960, 3599, 7980, 284, 330, 8684, 16, 11, 8684, 17, 1837, 5195, 66, 284, 1532, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_SystemData_Status_WhenPropertiesConverted_RoundTripsWithoutLoss(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip from SystemData_Status to SystemData_Status via AssignPropert...
explode_data.jsonl/39622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 25363, 1043, 36449, 62, 4498, 7903, 61941, 2568, 795, 21884, 1690, 26040, 39838, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 220, 16, 15, 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 TestStartTransaction_given_envelope_with_trace_context_headers_when_start_transaction_called_it_will_return_transaction_with_proper_parent(t *testing.T) { tracer := apmtest.NewDiscardTracer() var e messenger.Envelope = envelope.FromMessage("test message") e = envelope.WithHeader(e, TraceparentHeader, "00-8475ef...
explode_data.jsonl/46776
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 302 }
[ 2830, 3393, 3479, 8070, 57653, 6205, 18853, 6615, 23575, 8467, 26719, 47636, 4906, 28884, 27859, 14631, 1670, 483, 12511, 28884, 6615, 2540, 712, 15960, 1155, 353, 8840, 836, 8, 341, 25583, 9584, 1669, 1443, 76, 1944, 7121, 23477, 567, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHelloExtensionsUnmarshal_NoExtensions(t *testing.T) { buf := bytes.NewBuffer([]byte{}) val := recordfmt.HelloExtensions{recordfmt.HelloExtension{}} if err := val.Decode(buf); len(val) != 0 || err != nil { t.Fatal(val, err) } }
explode_data.jsonl/53624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 9707, 31282, 1806, 27121, 36989, 31282, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 10556, 3782, 37790, 19302, 1669, 3255, 12501, 3839, 4791, 31282, 90, 8548, 12501, 3839, 4791, 12049, 6257, 630, 743, 1848, 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 Test_PostBlockFail(t *testing.T) { chain, mock33 := createBlockChain(t) ps := &bcMocks.PostService{} ps.On("PostData", mock.Anything, mock.Anything, mock.Anything).Return(errors.New("timeout")) chain.push.postService = ps subscribe := new(types.PushSubscribeReq) subscribe.Name = "push-test" subscribe.URL =...
explode_data.jsonl/61719
{ "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, 66726, 4713, 19524, 1155, 353, 8840, 836, 8, 341, 197, 8819, 11, 7860, 18, 18, 1669, 1855, 4713, 18837, 1155, 340, 35009, 1669, 609, 8904, 72577, 23442, 1860, 16094, 35009, 8071, 445, 4133, 1043, 497, 7860, 13311, 1596, 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 TestResolveCached(t *testing.T) { servers := Servers{ "A", "B", "C", } miss := 0 rslv := &CachedResolver{ Resolver: ResolverFunc(func(ctx context.Context) ([]string, error) { miss++ return servers.Resolve(ctx) }), Timeout: 10 * time.Millisecond, } ctx, cancel := context.WithCancel(context...
explode_data.jsonl/38860
{ "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, 56808, 70293, 1155, 353, 8840, 836, 8, 341, 1903, 18729, 1669, 71797, 515, 197, 197, 29133, 756, 197, 197, 63590, 756, 197, 197, 46316, 756, 197, 630, 197, 1831, 1669, 220, 15, 198, 7000, 3226, 85, 1669, 609, 70293, 18190,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoryServiceDeleteStory(t *testing.T) { testCases := map[string]struct { input func() (string, store.StoriesStore) expectedCount int64 expectedError error }{ "test delete story success": { input: func() (string, store.StoriesStore) { id := "2eaa0697-2572-47f9-bcff-0bdf0c7c6432" str...
explode_data.jsonl/44022
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 689 }
[ 2830, 3393, 17938, 1860, 6435, 17938, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 22427, 260, 2915, 368, 320, 917, 11, 3553, 7758, 2433, 6093, 340, 197, 42400, 2507, 526, 21, 19, 198, 197, 42400,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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(t *testing.T) { cfg := &Config{} cfg.Default() inf, err := NewInformer(cfg) if err != nil { t.Fatal(err) } m := inf.GetMetric() if m.Valid { t.Error("metric should be invalid") } inf.SetClient(mockRPCClient(t)) m = inf.GetMetric() if !m.Valid { t.Error("metric should be valid") } if m.Value...
explode_data.jsonl/38075
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 609, 2648, 16094, 50286, 13275, 741, 197, 13573, 11, 1848, 1669, 1532, 641, 34527, 28272, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 2109, 1669, 4132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLookupHashMapAbsent(t *testing.T) { lookuphash := createLookup(t, "lookup_hash", false) vc := &vcursor{numRows: 0} got, err := lookuphash.Map(vc, []sqltypes.Value{sqltypes.NewInt64(1), sqltypes.NewInt64(2)}) if err != nil { t.Error(err) } want := []key.Destination{ key.DestinationNone{}, key.Desti...
explode_data.jsonl/3417
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 393 }
[ 2830, 3393, 34247, 18497, 80251, 1155, 353, 8840, 836, 8, 341, 197, 21020, 8296, 1669, 1855, 34247, 1155, 11, 330, 21020, 8950, 497, 895, 340, 5195, 66, 1669, 609, 7362, 3823, 90, 2413, 9024, 25, 220, 15, 630, 3174, 354, 11, 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, 1...
5
func TestLtField(t *testing.T) { validate := New() type TimeTest struct { Start *time.Time `validate:"required,lt,ltfield=End"` End *time.Time `validate:"required,lt"` } now := time.Now() start := now.Add(time.Hour * 24 * -1 * 2) end := start.Add(time.Hour * 24) timeTest := &TimeTest{ Start: &start, ...
explode_data.jsonl/77298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1590 }
[ 2830, 3393, 87660, 1877, 1155, 353, 8840, 836, 8, 1476, 197, 7067, 1669, 1532, 2822, 13158, 4120, 2271, 2036, 341, 197, 65999, 353, 1678, 16299, 1565, 7067, 2974, 6279, 11, 4832, 11, 4832, 2566, 28, 3727, 8805, 197, 38407, 256, 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, 1...
1
func TestNonFailedBatchByBaseAndPullsIndexFunc(t *testing.T) { successFullBatchJob := func(mods ...func(*prowapi.ProwJob)) *prowapi.ProwJob { pj := &prowapi.ProwJob{ Spec: prowapi.ProwJobSpec{ Type: prowapi.BatchJob, Job: "my-job", Refs: &prowapi.Refs{ Org: "org", Repo: "repo", ...
explode_data.jsonl/42798
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1108 }
[ 2830, 3393, 8121, 9408, 21074, 1359, 3978, 3036, 36068, 82, 1552, 9626, 1155, 353, 8840, 836, 8, 341, 30553, 9432, 21074, 12245, 1669, 2915, 23351, 82, 2503, 2830, 4071, 79, 651, 2068, 1069, 651, 12245, 593, 353, 79, 651, 2068, 1069, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSelectNext(t *testing.T) { executor, _, _, sbclookup := createLegacyExecutorEnv() query := "select next :n values from user_seq" bv := map[string]*querypb.BindVariable{"n": sqltypes.Int64BindVariable(2)} _, err := executorExec(executor, query, bv) require.NoError(t, err) wantQueries := []*querypb.BoundQ...
explode_data.jsonl/67380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 3379, 5847, 1155, 353, 8840, 836, 8, 341, 67328, 4831, 11, 8358, 8358, 7898, 66, 21020, 1669, 1855, 77415, 25255, 14359, 2822, 27274, 1669, 330, 1742, 1790, 549, 77, 2750, 504, 1196, 14486, 698, 2233, 85, 1669, 2415, 14032, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetS2IPaths(t *testing.T) { tests := []struct { name string podEnvs []corev1.EnvVar want []string }{ { name: "Case 1: odo expected s2i envs available", podEnvs: []corev1.EnvVar{ { Name: occlient.EnvS2IDeploymentDir, Value: "abc", }, { Name: occlient.EnvS2ISrc...
explode_data.jsonl/4411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 762 }
[ 2830, 3393, 1949, 50, 17, 40, 26901, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 3223, 347, 1702, 11562, 3056, 98645, 16, 81214, 3962, 198, 197, 50780, 262, 3056, 917, 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...
2
func TestBuildTree(t *testing.T) { input := []int{3,9,20,-1,-1,15,7} tree := NewTree(input) print := levelOrder(tree) if tree != nil { t.Logf("level order print: %v", print) } }
explode_data.jsonl/50196
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 11066, 6533, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 3056, 396, 90, 18, 11, 24, 11, 17, 15, 4999, 16, 4999, 16, 11, 16, 20, 11, 22, 532, 51968, 1669, 1532, 6533, 5384, 340, 6900, 1669, 2188, 4431, 21298, 340, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeletedMemberRollIsAlwaysAllowed(t *testing.T) { roll := newMemberRoll("not-default", "istio-system") roll.DeletionTimestamp = now() validator, _, _ := createMemberRollValidatorTestFixture(smcp) response := validator.Handle(ctx, createCreateRequest(roll)) assert.True(response.Allowed, "Expected validator...
explode_data.jsonl/70260
{ "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, 26039, 9366, 32355, 3872, 37095, 35382, 1155, 353, 8840, 836, 8, 341, 197, 1100, 1669, 501, 9366, 32355, 445, 1921, 13672, 497, 330, 380, 815, 36648, 1138, 197, 1100, 8934, 52625, 20812, 284, 1431, 2822, 197, 16112, 11, 8358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrintBasicColor(t *testing.T) { fmt.Println("Foreground colors:") for name, c := range FgColors { c.Print(" ", name, " ") } fmt.Println("\nBackground colors:") for name, c := range BgColors { c.Print(" ", name, " ") } fmt.Println("\nBasic Options:") for name, c := range AllOptions { c.Print(" "...
explode_data.jsonl/7005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 8994, 15944, 1636, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 445, 25982, 7987, 34403, 2023, 829, 11, 272, 1669, 2088, 434, 70, 13108, 341, 197, 1444, 7918, 445, 3670, 829, 11, 330, 14167, 197, 630, 11009, 12419, 4921, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReExportDefaultInternal(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` export {default as foo} from './foo' export {default as bar} from './bar' `, "/foo.js": ` export default 'foo' `, "/bar.js": ` export default 'bar' `, ...
explode_data.jsonl/38549
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 213 }
[ 2830, 3393, 693, 16894, 3675, 11569, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 59440, 314, 2258, 438, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInt(t *testing.T) { e := 42 o := dummys.Get("someInt") if v := o.Int(); v != e { t.Errorf("expected %#v, got %#v", e, v) } if i := int(o.Interface().(float64)); i != e { t.Errorf("expected %#v, got %#v", e, i) } if dummys.Set("otherInt", e); dummys.Get("otherInt").Int() != e { t.Fail() } }
explode_data.jsonl/56771
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 1072, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 220, 19, 17, 198, 22229, 1669, 62711, 8209, 2234, 445, 14689, 1072, 1138, 743, 348, 1669, 297, 7371, 2129, 348, 961, 384, 341, 197, 3244, 13080, 445, 7325, 52406, 85, 11, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestPrint_bash_args(t *testing.T) { // replace out (os.Stdout) by a buffer bak := out out = new(bytes.Buffer) defer func() { out = bak }() //tables := []struct{ // input map[string]interface{} // expect []string //}{ // { // map[string]interface{}{ "FILE" : []s...
explode_data.jsonl/35248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 849 }
[ 2830, 3393, 8994, 880, 988, 8384, 1155, 353, 8840, 836, 8, 341, 262, 442, 8290, 700, 320, 436, 83225, 8, 553, 264, 4147, 198, 262, 36203, 1669, 700, 198, 262, 700, 284, 501, 23158, 22622, 340, 262, 17956, 2915, 368, 314, 700, 284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSynthesize(t *testing.T) { testCases := []struct { name string input interface{} expected map[string]interface{} }{ { name: "empty input", input: &MyType{}, expected: map[string]interface{}{"bar": 0, "foo": ""}, }, { name: "standard fields", input: &MyType{Foo: "bar"...
explode_data.jsonl/68918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 784 }
[ 2830, 3393, 37134, 26887, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 3749, 16094, 197, 42400, 2415, 14032, 31344, 16094, 197, 59403, 197, 197, 515, 298, 11609, 25, 257,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZipAndEndocde(t *testing.T) { for _, c := range [][]byte{ []byte("abc123"), []byte("<a>abc</a>"), []byte("[\"a\":{\"b\":\"c\"}]"), } { r1, err := ZipAndEncode(c) if err != nil { t.Errorf("ZipAndEncode(%v) = %v", c, err) continue } r2, err := UnzipAndDecode(r1) if err != nil { t.Erro...
explode_data.jsonl/80317
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 31047, 3036, 3727, 509, 450, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 272, 1669, 2088, 52931, 3782, 515, 197, 197, 1294, 3782, 445, 13683, 16, 17, 18, 4461, 197, 197, 1294, 3782, 9639, 64, 29, 13683, 522, 64, 29, 4461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCovarianceMatrix(t *testing.T) { for _, test := range []struct { mu []float64 sigma *mat.SymDense }{ { mu: []float64{2, 3, 4}, sigma: mat.NewSymDense(3, []float64{1, 0.5, 3, 0.5, 8, -1, 3, -1, 15}), }, } { normal, ok := NewNormal(test.mu, test.sigma, nil) if !ok { t.Fatalf("Bad te...
explode_data.jsonl/12024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 34, 859, 36905, 6689, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 2109, 84, 262, 3056, 3649, 21, 19, 198, 197, 1903, 11491, 353, 8470, 808, 1600, 35, 1117, 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...
5
func TestError_Envelope(t *testing.T) { var herr Error // happy path: transaction_failed with the appropriate extra fields herr.Problem.Type = "transaction_failed" herr.Problem.Extras = make(map[string]interface{}) herr.Problem.Extras["envelope_xdr"] = `AAAAADSMMRmQGDH6EJzkgi/7PoKhphMHyNGQgDp2tlS/dhGXAAAAZAAT3TUA...
explode_data.jsonl/12140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 507 }
[ 2830, 3393, 1454, 62, 62712, 1155, 353, 8840, 836, 8, 341, 2405, 54739, 4600, 271, 197, 322, 6247, 1815, 25, 7745, 35060, 448, 279, 8311, 4960, 5043, 198, 9598, 615, 7763, 10121, 10184, 284, 330, 13528, 35060, 698, 9598, 615, 7763, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiClose(t *testing.T) { ps := New(2) defer ps.Shutdown() ch := ps.Sub("t1", "t2") ps.Pub("hi", "t1") ps.Close("t1") ps.Pub("hello", "t2") ps.Close("t2") checkContents(t, ch, []string{"hi", "hello"}) }
explode_data.jsonl/44262
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 20358, 7925, 1155, 353, 8840, 836, 8, 341, 35009, 1669, 1532, 7, 17, 340, 16867, 4726, 10849, 18452, 2822, 23049, 1669, 4726, 12391, 445, 83, 16, 497, 330, 83, 17, 5130, 35009, 1069, 392, 445, 6023, 497, 330, 83, 16, 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 TestReader(t *testing.T) { source := &dataSource{} reader := NewReader(source, time.Second, time.Millisecond*50) start := time.Now() data := make([]byte, 100) count, err := reader.Read(data) dur := time.Since(start) if err != nil { t.Error("read failed: ", err) } if dur < 100*time.Millisecond || dur...
explode_data.jsonl/49962
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 5062, 1155, 353, 8840, 836, 8, 341, 47418, 1669, 609, 64860, 16094, 61477, 1669, 1532, 5062, 12437, 11, 882, 32435, 11, 882, 71482, 9, 20, 15, 692, 21375, 1669, 882, 13244, 741, 8924, 1669, 1281, 10556, 3782, 11, 220, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_new_encoder(t *testing.T) { should := require.New(t) buf1 := &bytes.Buffer{} encoder1 := json.NewEncoder(buf1) encoder1.SetEscapeHTML(false) encoder1.Encode([]int{1}) should.Equal("[1]\n", buf1.String()) buf2 := &bytes.Buffer{} encoder2 := jsoniter.NewEncoder(buf2) encoder2.SetEscapeHTML(false) enco...
explode_data.jsonl/3081
{ "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, 5921, 39068, 1155, 353, 8840, 836, 8, 341, 197, 5445, 1669, 1373, 7121, 1155, 340, 26398, 16, 1669, 609, 9651, 22622, 16094, 197, 27008, 16, 1669, 2951, 7121, 19921, 10731, 16, 340, 197, 27008, 16, 4202, 48124, 5835, 3576, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestKeyPath(t *testing.T) { dir := newTempDir(t) defer os.RemoveAll(dir) _, keyPath := newCaDirectory(t, dir, &defaultCertMaterial, &defaultKeyMaterial) ca, err := cert.Load(keyPath) if err != nil { t.Errorf("unexpected error: %v", err) } actualCertMaterial := string(ca.Certificate) if actualCertMaterial...
explode_data.jsonl/6228
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 1592, 1820, 1155, 353, 8840, 836, 8, 341, 48532, 1669, 501, 12151, 6184, 1155, 340, 16867, 2643, 84427, 14161, 340, 197, 6878, 1376, 1820, 1669, 501, 22571, 9310, 1155, 11, 5419, 11, 609, 2258, 36934, 13415, 11, 609, 2258, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValueAtPathSuccess(t *testing.T) { var testCases = []struct { expect []interface{} data interface{} path string }{ {[]interface{}{"initial"}, data, "C"}, {[]interface{}{"value1"}, data, "A[0].C"}, {[]interface{}{"value2"}, data, "A[1].C"}, {[]interface{}{"value3"}, data, "A[2].C"}, {[]int...
explode_data.jsonl/26250
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 473 }
[ 2830, 3393, 1130, 86422, 7188, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 24952, 3056, 4970, 16094, 197, 8924, 256, 3749, 16094, 197, 26781, 256, 914, 198, 197, 59403, 197, 197, 90, 1294, 4970, 6257, 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...
2
func TestVariables_AddProjectName(t *testing.T) { projectName := "project" variables := NewVariables() variables.AddProjectName(projectName) assert.Equal(t,projectName, variables["project_name"]) }
explode_data.jsonl/66409
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 22678, 21346, 7849, 675, 1155, 353, 8840, 836, 8, 341, 262, 72516, 1669, 330, 4987, 698, 262, 7332, 1669, 1532, 22678, 741, 262, 7332, 1904, 7849, 675, 21168, 675, 340, 262, 2060, 12808, 1155, 11, 4987, 675, 11, 7332, 1183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateDefaultConfig(t *testing.T) { cfg := createDefaultConfig().(*Config) assert.NotNil(t, cfg, "failed to create default config") assert.NoError(t, configcheck.ValidateConfig(cfg)) assert.Equal(t, []string{defaultBroker}, cfg.Brokers) assert.Equal(t, defaultTopic, cfg.Topic) assert.Equal(t, defaultGrou...
explode_data.jsonl/70852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 4021, 3675, 2648, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 1855, 3675, 2648, 1005, 4071, 2648, 340, 6948, 93882, 1155, 11, 13286, 11, 330, 16091, 311, 1855, 1638, 2193, 1138, 6948, 35699, 1155, 11, 2193, 2028, 47667, 2648,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStaticDatasetQueryHappy(t *testing.T) { Convey("Given a correct response from the /graphql endpoint", t, func() { testCtx := context.Background() mockHttpClient := &dphttp.ClienterMock{} mockGQLClient := &mock.GraphQLClientMock{ QueryFunc: func(ctx context.Context, query interface{}, vars map[strin...
explode_data.jsonl/8455
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 335 }
[ 2830, 3393, 11690, 33363, 2859, 32847, 1155, 353, 8840, 836, 8, 1476, 93070, 5617, 445, 22043, 264, 4396, 2033, 504, 279, 608, 38294, 14887, 497, 259, 11, 2915, 368, 341, 197, 18185, 23684, 1669, 2266, 19047, 2822, 197, 77333, 26316, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGyLinksFailureOCStoFEG(t *testing.T) { fmt.Println("\nRunning TestGyLinksFailureOCStoFEG...") tr, ruleManager, ue := ocsCreditExhaustionTestSetup(t) defer func() { // Clear hss, ocs, and pcrf assert.NoError(t, clearOCSMockDriver()) assert.NoError(t, ruleManager.RemoveInstalledRules()) assert.NoErro...
explode_data.jsonl/18982
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 452 }
[ 2830, 3393, 38, 88, 24089, 17507, 7612, 623, 78, 37, 9376, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 4921, 77, 18990, 3393, 38, 88, 24089, 17507, 7612, 623, 78, 37, 9376, 1112, 5130, 25583, 11, 5912, 2043, 11, 60098, 1669, 297, 48...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPostDominators(t *testing.T) { c := testConfig(t) fun := Fun(c, "entry", Bloc("entry", Valu("mem", OpInitMem, TypeMem, 0, nil), Valu("p", OpConstBool, TypeBool, 1, nil), If("p", "a", "c")), Bloc("a", If("p", "b", "c")), Bloc("b", Goto("c")), Bloc("c", If("p", "b", "exit")), Bloc("...
explode_data.jsonl/77587
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 4133, 71541, 2973, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1273, 2648, 1155, 340, 90126, 1669, 16071, 1337, 11, 330, 4085, 756, 197, 12791, 1074, 445, 4085, 756, 298, 197, 2208, 84, 445, 10536, 497, 10672, 3803, 18816, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckoutRevisionCanGetNonstandardRefs(t *testing.T) { rootPath := t.TempDir() sourceRepoPath, err := ioutil.TempDir(rootPath, "") require.NoError(t, err) // Create a repo such that one commit is on a non-standard ref _and nowhere else_. This is meant to simulate, for // example, a GitHub ref for a pull ...
explode_data.jsonl/5709
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 55145, 33602, 6713, 1949, 8121, 20270, 82807, 1155, 353, 8840, 836, 8, 341, 33698, 1820, 1669, 259, 65009, 6184, 2822, 47418, 25243, 1820, 11, 1848, 1669, 43144, 65009, 6184, 9206, 1820, 11, 14676, 17957, 35699, 1155, 11, 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...
1
func TestWithEnableCompression(t *testing.T) { type T = transport type args struct { enable bool } type want struct { obj *T err error } type test struct { name string args args want want checkFunc func(want, *T, error) error beforeFunc func(args) afterFunc func(args) } de...
explode_data.jsonl/57545
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 745 }
[ 2830, 3393, 2354, 11084, 81411, 1155, 353, 8840, 836, 8, 341, 13158, 350, 284, 7557, 198, 13158, 2827, 2036, 341, 197, 197, 12552, 1807, 198, 197, 532, 13158, 1366, 2036, 341, 197, 22671, 353, 51, 198, 197, 9859, 1465, 198, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRollupQuantileOverTime(t *testing.T) { f := func(phi, vExpected float64) { t.Helper() phis := []*timeseries{{ Values: []float64{phi}, Timestamps: []int64{123}, }} var me metricsql.MetricExpr args := []interface{}{phis, &metricsql.RollupExpr{Expr: &me}} testRollupFunc(t, "quantile_over_ti...
explode_data.jsonl/23114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 32355, 454, 44220, 457, 1918, 1462, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 48230, 11, 348, 18896, 2224, 21, 19, 8, 341, 197, 3244, 69282, 741, 197, 197, 36789, 1669, 29838, 15136, 4699, 90, 515, 298, 197, 6227, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateSSH(t *testing.T) { rg := rand.New(rand.NewSource(42)) translator := &i18n.Translator{ Locale: nil, } privateKey, publicKey, err := CreateSSH(rg, translator) if err != nil { t.Fatalf("failed to generate SSH: %s", err) } pemBlock := &pem.Block{ Type: "RSA PRIVATE KEY", Bytes: x509.Marsha...
explode_data.jsonl/7027
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 352 }
[ 2830, 3393, 4021, 62419, 1155, 353, 8840, 836, 8, 341, 197, 1984, 1669, 10382, 7121, 37595, 7121, 3608, 7, 19, 17, 4390, 197, 44357, 1669, 609, 72, 16, 23, 77, 11815, 21829, 515, 197, 197, 19231, 25, 2092, 345, 197, 630, 2455, 1592,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestForStringLabelDefault(t *testing.T) { var out bytes.Buffer var in bytes.Buffer in.Write([]byte("\n")) // [ENTER] // No lablel but a default _ = prompt.ForString("", "Alice", prompt.WithInput(&in), prompt.WithOutput(&out)) if out.String() != "(Alice): " { t.Fatalf("expected '(Alice): ', got '%v'\n", ...
explode_data.jsonl/6611
{ "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, 2461, 703, 2476, 3675, 1155, 353, 8840, 836, 8, 341, 2405, 700, 5820, 22622, 198, 2405, 304, 5820, 22622, 198, 17430, 4073, 10556, 3782, 4921, 77, 2761, 442, 508, 12847, 2533, 197, 322, 2308, 326, 480, 75, 714, 264, 1638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollectionService_Create(t *testing.T) { client, mux := setup(t) blob, err := readFileContents("../testdata/collection/collection.json") require.NoError(t, err) mux.HandleFunc("/api/v1/collections/create_collection", func(w http.ResponseWriter, r *http.Request) { require.Equal(t, http.MethodPost, r.Met...
explode_data.jsonl/12628
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 6482, 1860, 34325, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 1669, 6505, 1155, 692, 2233, 1684, 11, 1848, 1669, 61732, 14803, 17409, 92425, 2899, 1908, 2899, 1908, 4323, 1138, 17957, 35699, 1155, 11, 1848, 692, 2109, 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 TestTriggerInitializeConditions(t *testing.T) { tests := []struct { name string ts *TriggerStatus want *TriggerStatus }{{ name: "empty", ts: &TriggerStatus{}, want: &TriggerStatus{ Status: duckv1beta1.Status{ Conditions: []apis.Condition{{ Type: TriggerConditionBroker, Status: ...
explode_data.jsonl/54994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 843 }
[ 2830, 3393, 17939, 9928, 35435, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 57441, 256, 353, 17939, 2522, 198, 197, 50780, 353, 17939, 2522, 198, 197, 15170, 515, 197, 11609, 25, 330, 3194, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestParseKubectlError(t *testing.T) { tests := []struct { description string details string err error expectedAe proto.ActionableErr }{ { description: "rollout status connection error", err: errors.New("Unable to connect to the server"), expectedAe: proto.ActionableErr{ ...
explode_data.jsonl/81096
{ "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, 14463, 42, 53380, 1454, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 914, 198, 197, 2698, 2237, 257, 914, 198, 197, 9859, 260, 1465, 198, 197, 42400, 32, 68, 220, 18433, 11360, 480, 7747, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTimeSinceScrub(t *testing.T) { t.Parallel() require.Greater( t, timeSinceScrub(sampleStatusNormalOutput), float64(6000), ) require.Equal( t, float64(0), timeSinceScrub(sampleStatusUnscrubbedOutput), ) }
explode_data.jsonl/18992
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 1462, 12549, 3326, 59430, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 17957, 1224, 28362, 1006, 197, 3244, 345, 197, 21957, 12549, 3326, 59430, 32968, 2522, 12206, 5097, 1326, 197, 8139, 21, 19, 7, 21, 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...
1
func TestClientDefaultUserAgent(t *testing.T) { t.Parallel() ln := fasthttputil.NewInmemoryListener() userAgentSeen := "" s := &Server{ Handler: func(ctx *RequestCtx) { userAgentSeen = string(ctx.UserAgent()) }, } go s.Serve(ln) //nolint:errcheck c := &Client{ Dial: func(addr string) (net.Conn, error...
explode_data.jsonl/79344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 258 }
[ 2830, 3393, 2959, 3675, 1474, 16810, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 2261, 1669, 4937, 96336, 628, 321, 7121, 641, 17269, 2743, 2822, 19060, 16810, 85675, 1669, 8389, 1903, 1669, 609, 5475, 515, 197, 197, 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...
1
func TestCannotRunProcessOnRunningPipeline(t *testing.T) { p := pipeline.New( pipeline.Node(&NoOpProcessor{}), ) go p.Process(&SimpleReader{}) defer p.Shutdown() time.Sleep(100 * time.Millisecond) assert.Panics(t, func() { p.Process(&SimpleReader{}) }) }
explode_data.jsonl/64694
{ "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, 17444, 6727, 7423, 1925, 18990, 34656, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 15301, 7121, 1006, 197, 3223, 8790, 21714, 2099, 2753, 7125, 22946, 6257, 1326, 197, 692, 30680, 281, 29012, 2099, 16374, 5062, 37790, 16867, 281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_statementsNextView(t *testing.T) { testcases := []struct { current string want string }{ {current: "statements_timings", want: "statements_general"}, {current: "statements_general", want: "statements_io"}, {current: "statements_io", want: "statements_temp"}, {current: "statements_temp", want:...
explode_data.jsonl/69230
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 16271, 3723, 5847, 851, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 20121, 914, 198, 197, 50780, 262, 914, 198, 197, 59403, 197, 197, 90, 3231, 25, 330, 94587, 29087, 819, 497, 1366, 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...
2
func TestGetTrades(t *testing.T) { t.Parallel() _, err := b.GetTrades("BTC", "AUD", nil) if err != nil { t.Error("Test failed - GetTrades() error", err) } val := url.Values{} val.Set("since", "0") _, err = b.GetTrades("BTC", "AUD", val) if err != nil { t.Error("Test failed - GetTrades() error", err) } }
explode_data.jsonl/48989
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 1949, 1282, 3452, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 293, 2234, 1282, 3452, 445, 59118, 497, 330, 61278, 497, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 2271, 4641...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartStandAlone(t *testing.T) { home, err := ioutil.TempDir("", "mock-sdk-cmd") require.Nil(t, err) defer func() { os.RemoveAll(home) }() viper.Set(cli.HomeFlag, home) defer setupClientHome(t)() logger := log.NewNopLogger() cfg, err := tcmd.ParseConfig() require.Nil(t, err) ctx := server.NewContex...
explode_data.jsonl/17821
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 365 }
[ 2830, 3393, 3479, 48733, 2101, 603, 1155, 353, 8840, 836, 8, 341, 197, 5117, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 16712, 35478, 1786, 2277, 1138, 17957, 59678, 1155, 11, 1848, 340, 16867, 2915, 368, 341, 197, 25078, 84427, 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 TestWorkflowTemplateServer_ListClusterWorkflowTemplates(t *testing.T) { server, ctx := getClusterWorkflowTemplateServer() cwftReq := clusterwftmplpkg.ClusterWorkflowTemplateListRequest{} cwftRsp, err := server.ListClusterWorkflowTemplates(ctx, &cwftReq) if assert.NoError(t, err) { assert.Len(t, cwftRsp.Items...
explode_data.jsonl/48138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 62768, 7275, 5475, 27104, 28678, 62768, 51195, 1155, 353, 8840, 836, 8, 341, 41057, 11, 5635, 1669, 633, 28678, 62768, 7275, 5475, 741, 1444, 86, 723, 27234, 1669, 10652, 86, 723, 54010, 30069, 72883, 62768, 7275, 852, 1900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProdCons(t *testing.T) { t.Parallel() t.Run("nothing provided ends", func(t *testing.T) { t.Parallel() err := (&prodcons.Runner{}).Run() assert.NoError(t, err) }) t.Run("the consumer receives exactly one time", func(t *testing.T) { t.Parallel() var producerCount = 1000 produced := set.OfStrin...
explode_data.jsonl/75650
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 765 }
[ 2830, 3393, 41279, 15220, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3244, 16708, 445, 41212, 3897, 10335, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 9859, 1669, 15899, 19748, 6254, 16708, 1194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddReadingError(t *testing.T) { reset() myMock := &dbMock.DBClient{} myMock.On("AddReading", mock.Anything).Return("", fmt.Errorf("some error")) dbClient = myMock _, err := addReading(models.Reading{}, logger.NewMockClient()) if err == nil { t.Errorf("Expected error adding reading") } }
explode_data.jsonl/48168
{ "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, 2212, 31899, 1454, 1155, 353, 8840, 836, 8, 341, 70343, 741, 13624, 11571, 1669, 609, 1999, 11571, 22537, 2959, 31483, 13624, 11571, 8071, 445, 2212, 31899, 497, 7860, 13311, 1596, 568, 5598, 19814, 8879, 13080, 445, 14689, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMakePortsAndBindings(t *testing.T) { for desc, test := range map[string]struct { pm []*runtimeapi.PortMapping exposedPorts dockernat.PortSet portmappings map[dockernat.Port][]dockernat.PortBinding }{ "no port mapping": { pm: nil, exposedPorts: map[dockernat.Port]struct{}{}, ...
explode_data.jsonl/52788
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 992 }
[ 2830, 3393, 8078, 68273, 3036, 52843, 1155, 353, 8840, 836, 8, 341, 2023, 6560, 11, 1273, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 86511, 1843, 29838, 22255, 2068, 43013, 6807, 198, 197, 8122, 3865, 68273, 27549, 932, 266, 43013, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSum(t *testing.T) { t.Parallel() s := []float64{} val := Sum(s) if val != 0 { t.Errorf("Val not returned as default when slice length is zero") } s = []float64{3, 4, 1, 7, 5} val = Sum(s) if val != 20 { t.Errorf("Wrong sum returned") } }
explode_data.jsonl/1243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 9190, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 1669, 3056, 3649, 21, 19, 16094, 19302, 1669, 8116, 1141, 340, 743, 1044, 961, 220, 15, 341, 197, 3244, 13080, 445, 2208, 537, 5927, 438, 1638, 979, 15983, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateIssueValueErrs(t *testing.T) { cucm, iucm, lucm, pucm, m := prepareMocksAndRUC() tests := []struct { body *strings.Reader err error }{ { strings.NewReader("title=&description=test-description&status=1&labels=test1,test2,test3"), errors.New("title not provided"), }, { strings.NewRe...
explode_data.jsonl/60163
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 4289, 42006, 1130, 7747, 82, 1155, 353, 8840, 836, 8, 341, 1444, 1754, 76, 11, 600, 1754, 76, 11, 25927, 76, 11, 281, 1754, 76, 11, 296, 1669, 10549, 72577, 3036, 49, 5459, 2822, 78216, 1669, 3056, 1235, 341, 197, 35402,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetContainerHealth(t *testing.T) { assert := asrt.New(t) client := GetDockerClient() labels := map[string]string{ "com.ddev.site-name": testContainerName, } container, err := FindContainerByLabels(labels) require.NoError(t, err) require.NotNil(t, container) err = client.StopContainer(container.ID, ...
explode_data.jsonl/41372
{ "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, 1949, 4502, 14542, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 438, 3342, 7121, 1155, 340, 25291, 1669, 2126, 35, 13659, 2959, 2822, 95143, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 874, 950, 3583, 22115, 11494, 788, 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 TestLeaderYield(t *testing.T) { // Scenario: Spawn 2 peers and wait for the first one to be the leader // There isn't any orderer present so the leader peer won't be able to // connect to the orderer, and should relinquish its leadership after a while. // Make sure the other peer declares itself as the leader ...
explode_data.jsonl/58840
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1380 }
[ 2830, 3393, 52621, 56, 816, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 47361, 220, 17, 25029, 323, 3783, 369, 279, 1156, 825, 311, 387, 279, 7653, 198, 197, 322, 2619, 4436, 944, 894, 1973, 261, 3042, 773, 279, 7653, 14397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTopologyModeFactory_computeResourcesForMinimumMode(t *testing.T) { factory := NewTopologyModeFactory(nil) testcases := map[string]struct { nodeList *corev1.NodeList err error config map[nodeType]*nodeConfig }{ "nodes-less-than-three": { nodeList: &corev1.NodeList{ Items: []corev1.Node{...
explode_data.jsonl/73838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1114 }
[ 2830, 3393, 60954, 3636, 4153, 57028, 11277, 2461, 28695, 3636, 1155, 353, 8840, 836, 8, 341, 1166, 2919, 1669, 1532, 60954, 3636, 4153, 27907, 340, 18185, 23910, 1669, 2415, 14032, 60, 1235, 341, 197, 20831, 852, 353, 98645, 16, 21714, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDomainMatchModel(t *testing.T) { e, _ := NewEnforcer("examples/rbac_with_domain_pattern_model.conf", "examples/rbac_with_domain_pattern_policy.csv") e.AddNamedDomainMatchingFunc("g", "keyMatch2", util.KeyMatch2) testDomainEnforce(t, e, "alice", "domain1", "data1", "read", true) testDomainEnforce(t, e, "al...
explode_data.jsonl/57142
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 13636, 8331, 1712, 1155, 353, 8840, 836, 8, 341, 7727, 11, 716, 1669, 1532, 1702, 82010, 445, 51668, 7382, 55877, 6615, 20111, 21260, 5047, 13937, 497, 330, 51668, 7382, 55877, 6615, 20111, 21260, 22773, 11219, 1138, 7727, 190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNumericAssignTo(t *testing.T) { type _int8 int8 var i8 int8 var i16 int16 var i32 int32 var i64 int64 var i int var ui8 uint8 var ui16 uint16 var ui32 uint32 var ui64 uint64 var ui uint var pi8 *int8 var _i8 _int8 var _pi8 *_int8 var f32 float32 var f64 float64 var pf32 *float32 var pf64 *fl...
explode_data.jsonl/39597
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1891 }
[ 2830, 3393, 36296, 28933, 1249, 1155, 353, 8840, 836, 8, 341, 13158, 716, 396, 23, 526, 23, 271, 2405, 600, 23, 526, 23, 198, 2405, 600, 16, 21, 526, 16, 21, 198, 2405, 600, 18, 17, 526, 18, 17, 198, 2405, 600, 21, 19, 526, 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...
9
func TestVerCodeIsExpired(t *testing.T) { code := VerificationCode{ Code: "12345678", TestType: "confirmed", ExpiresAt: time.Now().Add(time.Hour), } if got := code.IsExpired(); got { t.Errorf("code says expired, when shouldn't be") } }
explode_data.jsonl/22973
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 10141, 2078, 3872, 54349, 1155, 353, 8840, 836, 8, 341, 43343, 1669, 55473, 2078, 515, 197, 90774, 25, 414, 330, 16, 17, 18, 19, 20, 21, 22, 23, 756, 197, 73866, 929, 25, 220, 330, 41028, 756, 197, 197, 65331, 1655, 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...
2
func TestCheckChaincodeVersion(t *testing.T) { lscc := &SCC{} validCCName := "ccname" /*allowed versions*/ err := lscc.isValidChaincodeVersion(validCCName, "a_b") require.NoError(t, err) err = lscc.isValidChaincodeVersion(validCCName, "a.b") require.NoError(t, err) err = lscc.isValidChaincodeVersion(validCCNam...
explode_data.jsonl/11804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 458 }
[ 2830, 3393, 3973, 18837, 1851, 5637, 1155, 353, 8840, 836, 8, 341, 197, 4730, 638, 1669, 609, 3540, 34, 31483, 56322, 3706, 675, 1669, 330, 638, 606, 698, 197, 1057, 20967, 10795, 3276, 9859, 1669, 19597, 638, 32161, 18837, 1851, 5637, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImageTagError(t *testing.T) { client := &Client{ client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")), } err := client.ImageTag(context.Background(), "image_id", "repo:tag") if err == nil || err.Error() != "Error response from daemon: Server error" { t.Fatalf("expected a Se...
explode_data.jsonl/22949
{ "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, 1906, 5668, 1454, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 609, 2959, 515, 197, 25291, 25, 501, 11571, 2959, 6390, 11571, 19886, 66760, 11, 330, 5475, 1465, 30154, 197, 630, 9859, 1669, 2943, 7528, 5668, 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...
3
func TestGetOwnedOrgsByUserID(t *testing.T) { assert.NoError(t, PrepareTestDatabase()) orgs, err := GetOwnedOrgsByUserID(2) assert.NoError(t, err) if assert.Len(t, orgs, 1) { assert.EqualValues(t, 3, orgs[0].ID) } orgs, err = GetOwnedOrgsByUserID(4) assert.NoError(t, err) assert.Len(t, orgs, 0) }
explode_data.jsonl/71065
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 1949, 57641, 42437, 82, 1359, 36899, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 31166, 2271, 5988, 12367, 87625, 82, 11, 1848, 1669, 2126, 57641, 42437, 82, 1359, 36899, 7, 17, 340, 6948, 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...
2
func TestResources_AddLoadBalancer(t *testing.T) { tests := []struct { name string lbs []godo.LoadBalancer newLB godo.LoadBalancer expectedIDMap map[string]*godo.LoadBalancer expectedNameMap map[string]*godo.LoadBalancer }{ { name: "update existing", lbs: []godo...
explode_data.jsonl/28023
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 724 }
[ 2830, 3393, 11277, 21346, 5879, 93825, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 8810, 1279, 1797, 3056, 70, 6004, 13969, 93825, 198, 197, 8638, 34068, 1843, 342, 6004, 13969, 93825, 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...
3
func TestShowSnippet(t *testing.T) { app := newTestApp(t) // start up a https test server ts := newTestServer(t, app.routes()) defer ts.Close() tests := []struct { name string urlPath string wantCode int wantBody []byte }{ {"Valid ID", "/snippet/1", http.StatusOK, []byte("An old silent pond...")}...
explode_data.jsonl/12757
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 444 }
[ 2830, 3393, 7812, 87852, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 501, 2271, 2164, 1155, 692, 197, 322, 1191, 705, 264, 3703, 1273, 3538, 198, 57441, 1669, 501, 2271, 5475, 1155, 11, 906, 39306, 2398, 16867, 10591, 10421, 2822, 78216,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDescendantNames(t *testing.T) { // Test a tree has the following structure: // a // / \ // / \ // b c // / | \ / \ // x y z 123 456 // | // 789 kinship := map[string][]string{ "a": []string{"b", "c"}, "b": []string{"x", "y", "z"}, "c":...
explode_data.jsonl/28407
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 556 }
[ 2830, 3393, 11065, 20372, 7980, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 264, 4916, 702, 279, 2701, 5944, 510, 197, 322, 260, 264, 198, 197, 322, 981, 608, 220, 3044, 197, 322, 257, 608, 257, 3044, 197, 322, 262, 293, 981, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSnowballDoubleAdd(t *testing.T) { params := Parameters{ Metrics: prometheus.NewRegistry(), K: 1, Alpha: 1, BetaVirtuous: 3, BetaRogue: 5, } tree := Tree{} tree.Initialize(params, Red) tree.Add(Red) { expected := "SB(NumSuccessfulPolls = 0, SF(Confidence = 0, Finalized = false)) Bits = [0, 25...
explode_data.jsonl/56480
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 62285, 3959, 7378, 2212, 1155, 353, 8840, 836, 8, 341, 25856, 1669, 13522, 515, 197, 9209, 13468, 25, 2706, 39705, 7121, 15603, 3148, 197, 39340, 25, 981, 220, 16, 11, 24708, 25, 220, 16, 11, 34243, 53, 2106, 9193, 25, 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...
4
func TestFormatTxEncode(t *testing.T) { data, err := FormatTxEncode("coins", &Transaction{ Payload: []byte("this is a test."), }) assert.Equal(t, err, nil) var tx Transaction err = Decode(data, &tx) assert.Equal(t, err, nil) assert.Equal(t, tx.Execer, []byte("coins")) }
explode_data.jsonl/52307
{ "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, 4061, 31584, 32535, 1155, 353, 8840, 836, 8, 972, 8924, 11, 1848, 1669, 15042, 31584, 32535, 445, 29609, 497, 609, 8070, 1666, 197, 10025, 6989, 25, 3056, 3782, 445, 574, 374, 220, 264, 1273, 1189, 9912, 197, 35099, 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 TestLoggingServiceV2ListMonitoredResourceDescriptors(t *testing.T) { var nextPageToken string = "" var resourceDescriptorsElement *monitoredrespb.MonitoredResourceDescriptor = &monitoredrespb.MonitoredResourceDescriptor{} var resourceDescriptors = []*monitoredrespb.MonitoredResourceDescriptor{resourceDescriptor...
explode_data.jsonl/77763
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 481 }
[ 2830, 3393, 34575, 1860, 53, 17, 852, 11095, 36201, 4783, 58553, 1155, 353, 8840, 836, 8, 341, 2405, 83595, 3323, 914, 284, 8389, 2405, 5101, 58553, 1691, 353, 1645, 36201, 416, 16650, 52211, 36201, 4783, 11709, 284, 609, 1645, 36201, 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