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 TestPrepareForUpdate(t *testing.T) { strategy := statusStrategy{} tcs := []struct { old *unstructured.Unstructured obj *unstructured.Unstructured expected *unstructured.Unstructured }{ { // changes to spec are ignored old: &unstructured.Unstructured{ Object: map[string]interface{}{ ...
explode_data.jsonl/61602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1149 }
[ 2830, 3393, 50590, 2461, 4289, 1155, 353, 8840, 836, 8, 341, 11355, 10228, 1669, 2639, 19816, 16094, 3244, 4837, 1669, 3056, 1235, 341, 197, 61828, 414, 353, 359, 51143, 10616, 51143, 198, 197, 22671, 414, 353, 359, 51143, 10616, 51143, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTagHeaderBasedRouting(t *testing.T) { cancel := logstream.Start(t) defer cancel() clients := e2e.Setup(t) names := test.ResourceNames{ Service: test.ObjectNameForTest(t), Image: test.PizzaPlanet1, } // Setup Initial Service t.Log("Creating a new Service in runLatest") objects, err := v1test.Cre...
explode_data.jsonl/3849
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1087 }
[ 2830, 3393, 5668, 4047, 28715, 24701, 1155, 353, 8840, 836, 8, 341, 84441, 1669, 1487, 4027, 12101, 1155, 340, 16867, 9121, 2822, 197, 31869, 1669, 384, 17, 68, 39820, 1155, 340, 93940, 1669, 1273, 20766, 7980, 515, 197, 91619, 25, 1273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRouter(t *testing.T) { // 1. prepare router r := newRouter() r.add("GET", "/", nil) r.add("GET", "/admin/", nil) r.add("GET", "/admin/status", nil) r.add("POST", "/admin/maintenance", nil) r.add("GET", "/users", nil) r.add("GET", "/users/{id}", nil) r.add("POST", "/users/{id}", nil) r.add("PUT", "/us...
explode_data.jsonl/5599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1419 }
[ 2830, 3393, 9523, 1155, 353, 8840, 836, 8, 341, 197, 322, 220, 16, 13, 10549, 9273, 198, 7000, 1669, 501, 9523, 741, 7000, 1364, 445, 3806, 497, 64657, 2092, 340, 7000, 1364, 445, 3806, 497, 3521, 2882, 28105, 2092, 340, 7000, 1364, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPauseAndContinue(t *testing.T) { runTest(t, "loopprog", func(client *daptest.Client, fixture protest.Fixture) { runDebugSessionWithBPs(t, client, "launch", // Launch func() { client.LaunchRequest("exec", fixture.Path, !stopOnEntry) }, // Set breakpoints fixture.Source, []int{6}, []onBr...
explode_data.jsonl/17353
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 605 }
[ 2830, 3393, 28391, 3036, 23526, 1155, 353, 8840, 836, 8, 341, 56742, 2271, 1155, 11, 330, 10498, 32992, 497, 2915, 12805, 353, 91294, 1944, 11716, 11, 12507, 8665, 991, 12735, 8, 341, 197, 56742, 7939, 5283, 2354, 33, 20420, 1155, 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 TestHandleMultipleQuitRequests(t *testing.T) { opts := &Options{ ListenAddress: ":9090", MaxConnections: 512, EnableLifecycle: true, RoutePrefix: "/", ExternalURL: &url.URL{ Scheme: "http", Host: "localhost:9090", Path: "/", }, } webHandler := New(nil, opts) webHandler.config = ...
explode_data.jsonl/46076
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 550 }
[ 2830, 3393, 6999, 32089, 42856, 35295, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 609, 3798, 515, 197, 10675, 268, 4286, 25, 256, 13022, 24, 15, 24, 15, 756, 197, 197, 5974, 54751, 25, 220, 220, 20, 16, 17, 345, 197, 197, 11084, 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...
2
func TestScheduler_RemoveByRef(t *testing.T) { scheduler := NewScheduler() job1 := scheduler.Every(1).Minute() job1.Do(task) job2 := scheduler.Every(1).Minute() job2.Do(taskWithParams, 1, "hello") assert.Equal(t, 2, scheduler.Len(), "Incorrect number of jobs") scheduler.RemoveByRef(job1) assert.ElementsMatch(...
explode_data.jsonl/63500
{ "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, 38878, 66843, 1359, 3945, 1155, 353, 8840, 836, 8, 341, 1903, 15222, 1669, 1532, 38878, 741, 68577, 16, 1669, 28809, 5142, 1204, 7, 16, 568, 55193, 741, 68577, 16, 33596, 17483, 340, 68577, 17, 1669, 28809, 5142, 1204, 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 TestGetEventsInRangeWithEventsSameDepth(t *testing.T) { t.Parallel() db := MustCreateDatabase(t) var events []gomatrixserverlib.HeaderedEvent events = append(events, MustCreateEvent(t, testRoomID, nil, &gomatrixserverlib.EventBuilder{ Content: []byte(fmt.Sprintf(`{"room_version":"4","creator":"%s"}`, testU...
explode_data.jsonl/36040
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1234 }
[ 2830, 3393, 1949, 7900, 76059, 2354, 7900, 19198, 19776, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20939, 1669, 15465, 4021, 5988, 1155, 692, 2405, 4357, 3056, 36083, 2555, 4030, 2740, 15753, 291, 1556, 198, 90873, 284, 8737, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_isPair(t *testing.T) { type args struct { hand deck.Hand } tests := []struct { name string args args want string want1 bool }{ { name: "Should be a pair", args: args{deck.Hand{ deck.Card{Value: 8}, deck.Card{Value: 8}, deck.Card{Value: 6}, deck.Card{Value: 4}, deck...
explode_data.jsonl/7192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 662 }
[ 2830, 3393, 6892, 12443, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 9598, 437, 9530, 35308, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 31215, 220, 2827, 198, 197, 50780, 220, 914, 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 TestValidateConfig(t *testing.T) { with.Logging(t, func(harness *with.LoggingHarness) { cfg := defaultProductionConfig() cfg.SetNodeAddress(defaultNodeAddress()) cfg.SetNodePrivateKey(defaultPrivateKey()) require.NoError(t, ValidateNodeLogic(cfg), "if this test fails check the min/max values of protocol ...
explode_data.jsonl/17015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 17926, 2648, 1155, 353, 8840, 836, 8, 341, 46948, 41945, 1155, 11, 2915, 3203, 23518, 353, 4197, 41945, 74248, 8, 341, 197, 50286, 1669, 1638, 44967, 2648, 741, 197, 50286, 4202, 1955, 4286, 18978, 1955, 4286, 2398, 197, 502...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImportStatementPath(t *testing.T) { p := createParser(`import "exchange"`) bvmUtils.Assert(t, isImportStatement(p), "should detect import statement") parseImportStatement(p) n := p.scope.Next() bvmUtils.AssertNow(t, n.Type() == ast.ImportStatement, "wrong import type") a := n.(*ast.ImportStatementNode) ...
explode_data.jsonl/49761
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 11511, 8636, 1820, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1855, 6570, 5809, 474, 330, 39568, 1, 24183, 2233, 7338, 4209, 11711, 1155, 11, 374, 11511, 8636, 1295, 701, 330, 5445, 11140, 1159, 5114, 1138, 75115, 11511, 8636...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangefeedTelemetry(t *testing.T) { defer leaktest.AfterTest(t)() testFn := func(t *testing.T, db *gosql.DB, f cdctest.TestFeedFactory) { sqlDB := sqlutils.MakeSQLRunner(db) sqlDB.Exec(t, `CREATE TABLE foo (a INT PRIMARY KEY)`) sqlDB.Exec(t, `INSERT INTO foo VALUES (1)`) sqlDB.Exec(t, `CREATE TABLE ...
explode_data.jsonl/7062
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 664 }
[ 2830, 3393, 1143, 524, 823, 12051, 6639, 35958, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 18185, 24911, 1669, 2915, 1155, 353, 8840, 836, 11, 2927, 353, 34073, 1470, 22537, 11, 282, 15307, 67880, 8787...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScanBalancedPattern(t *testing.T) { cases := []struct { Input string Want string WantFailure bool }{ { Input: "foo OR bar", Want: "foo", }, { Input: "(hello there)", Want: "(hello there)", }, { Input: "( general:kenobi )", Want: "( general:kenobi )", }, {...
explode_data.jsonl/49629
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 457 }
[ 2830, 3393, 26570, 37889, 4874, 15760, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 66588, 981, 914, 198, 197, 17300, 517, 286, 914, 198, 197, 17300, 517, 17507, 1807, 198, 197, 59403, 197, 197, 515, 298, 6658...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetryAfterThrottle(t *testing.T) { db := tests.Tempfile() defer os.Remove(db) // Create the app app := glusterfs.NewTestApp(db) defer app.Close() // Setup the server m := &clientTestMiddleware{} ts := setupHeketiServerAndMiddleware(app, m) defer ts.Close() c := NewClientWithOptions(ts.URL, "admin"...
explode_data.jsonl/18019
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1008 }
[ 2830, 3393, 51560, 6025, 1001, 27535, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 7032, 65009, 1192, 741, 16867, 2643, 13270, 9791, 692, 197, 322, 4230, 279, 906, 198, 28236, 1669, 2770, 4993, 3848, 7121, 2271, 2164, 9791, 340, 16867, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestEncodeExtensions(t *testing.T) { var buf bytes.Buffer exts := []*PointerExtension{ NewPointerExtension("foo", 0, "foo_oid"), NewPointerExtension("bar", 1, "bar_oid"), NewPointerExtension("baz", 2, "baz_oid"), } pointer := NewPointer("main_oid", 12345, exts) _, err := EncodePointer(&buf, pointer) as...
explode_data.jsonl/50434
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 32535, 31282, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 5820, 22622, 198, 95450, 82, 1669, 29838, 9084, 12049, 515, 197, 197, 3564, 9084, 12049, 445, 7975, 497, 220, 15, 11, 330, 7975, 59633, 4461, 197, 197, 3564, 9084, 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...
2
func TestQuantileInvalidCumulantKind(t *testing.T) { if !panics(func() { Quantile(0.5, CumulantKind(1000), []float64{1, 2, 3}, nil) }) { t.Errorf("Quantile did not panic when CumulantKind is unknown") } }
explode_data.jsonl/1783
{ "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, 44220, 457, 7928, 85805, 68633, 10629, 1155, 353, 8840, 836, 8, 341, 743, 753, 848, 1211, 18552, 368, 314, 31441, 457, 7, 15, 13, 20, 11, 31578, 68633, 10629, 7, 16, 15, 15, 15, 701, 3056, 3649, 21, 19, 90, 16, 11, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResolveIOPathPlaceholders(t *testing.T) { ctx := context.Background() wf := unmarshalWF(ioPathPlaceholders) woc := newWoc(*wf) woc.operate(ctx) assert.Equal(t, wfv1.WorkflowRunning, woc.wf.Status.Phase) pods, err := listPods(woc) assert.NoError(t, err) assert.True(t, len(pods.Items) > 0, "pod was not c...
explode_data.jsonl/70984
{ "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, 56808, 3810, 1820, 17371, 16662, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 6692, 69, 1669, 650, 27121, 32131, 37258, 1820, 17371, 16662, 340, 6692, 509, 1669, 501, 54, 509, 4071, 43083, 340, 6692, 509, 715...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTopics(t *testing.T) { t.Run("Get topic list test", func(t *testing.T) { Init(clientId) _, err := Topics() if err != nil { t.Error(err) } else { log.Println("Get topic list test is successful.") } }) }
explode_data.jsonl/4856
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 45003, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1949, 8544, 1140, 1273, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 98762, 12805, 764, 692, 197, 197, 6878, 1848, 1669, 40894, 2822, 197, 743, 1848, 961, 2092, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGlobalAvailable(t *testing.T) { globalRegistry = newRegistry() if err := Register(DriverDef{Name: "foo"}); err != nil { t.Errorf("register returned error: %v", err) } bar := DriverDef{ Name: "healthy-bar", Default: true, Priority: Default, Status: func() State { return State{Healthy: tru...
explode_data.jsonl/15482
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 423 }
[ 2830, 3393, 11646, 16485, 1155, 353, 8840, 836, 8, 341, 18842, 15603, 284, 501, 15603, 2822, 743, 1848, 1669, 8451, 5432, 5469, 2620, 63121, 25, 330, 7975, 9207, 1215, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 6343, 5927, 1465, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHTTPGet_Perform(t *testing.T) { t.Parallel() store := leanStore() cases := []struct { name string status int want string wantErrored bool response string headers http.Header queryParams adapters.QueryParameters }{ {"success", 200, "results!", false, `results!`, ni...
explode_data.jsonl/35148
{ "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, 9230, 1949, 53918, 627, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 57279, 1669, 15651, 6093, 741, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 23847, 414, 526, 198, 197, 50780, 286, 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, 1...
2
func TestValidateSupport(t *testing.T) { type entry struct { kind report.EntryKind err error path path.ContextPath } tests := []struct { in Config entries []entry }{ // empty-ish config { Config{ Metadata: Metadata{ Name: "z", Labels: map[string]string{ ROLE_LABEL_KEY: "z"...
explode_data.jsonl/8693
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2552 }
[ 2830, 3393, 17926, 7916, 1155, 353, 8840, 836, 8, 341, 13158, 4343, 2036, 341, 197, 197, 15314, 1895, 22330, 10629, 198, 197, 9859, 220, 1465, 198, 197, 26781, 1815, 9328, 1820, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 17430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUseJWTToken(t *testing.T) { fixture.EnsureCleanState(t) projectName := "proj-" + strconv.FormatInt(time.Now().Unix(), 10) appName := "app-" + strconv.FormatInt(time.Now().Unix(), 10) roleName := "roleTest" testApp := &v1alpha1.Application{ ObjectMeta: metav1.ObjectMeta{ Name: appName, }, Spec: v...
explode_data.jsonl/58445
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1182 }
[ 2830, 3393, 10253, 55172, 3323, 1155, 353, 8840, 836, 8, 341, 1166, 12735, 22834, 19098, 27529, 1397, 1155, 692, 72470, 675, 1669, 330, 30386, 27651, 488, 33317, 9978, 1072, 9730, 13244, 1005, 55832, 1507, 220, 16, 15, 340, 28236, 675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitialIngestion(t *testing.T) { unittest.LargeTest(t) ctx, gb, mockRepo, ri, commit, test, cleanup := setupTestInitial(t) defer cleanup() // No commits, no branches; nothing to do. test(0, 0) // One commit. c0 := commit() mockRepo.MockLog(ctx, c0.Hash, gitiles.LogReverse(), gitiles.LogBatchSize(batc...
explode_data.jsonl/60143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 733 }
[ 2830, 3393, 6341, 641, 6969, 290, 1155, 353, 8840, 836, 8, 341, 20479, 14267, 92762, 2271, 1155, 340, 20985, 11, 47015, 11, 7860, 25243, 11, 24185, 11, 5266, 11, 1273, 11, 21290, 1669, 6505, 2271, 6341, 1155, 340, 16867, 21290, 2822, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatMean(t *testing.T) { mat := NewMatWithSize(100, 100, MatTypeCV8U) mean := mat.Mean() if mean.Val1 != 0 { t.Errorf("Mat Mean incorrect Val1") } }
explode_data.jsonl/81700
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 11575, 18783, 1155, 353, 8840, 836, 8, 341, 59874, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 15, 11, 220, 16, 15, 15, 11, 6867, 929, 19589, 23, 52, 340, 2109, 5307, 1669, 5517, 1321, 5307, 741, 743, 3076, 77819, 16, 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 ]
2
func TestNewHashRing(t *testing.T) { hr := NewCarbonHashRing() hr.SetReplicas(5) if hr.Replicas() != 5 { t.Error("HashRing replica setting error") } n := NewNode("a", "a") hr.AddNode(n) if hr.String() != "[carbon: 1 nodes, 5 replicas, 5 ring members a:a]" { t.Error("HashRing string representation or AddNode...
explode_data.jsonl/51137
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 3564, 6370, 43466, 1155, 353, 8840, 836, 8, 341, 78847, 1669, 1532, 36607, 6370, 43466, 741, 78847, 4202, 18327, 52210, 7, 20, 340, 743, 18026, 2817, 79, 52210, 368, 961, 220, 20, 341, 197, 3244, 6141, 445, 6370, 43466, 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...
4
func TestAuth(t *testing.T) { setup := func(t *testing.T, store *authorization.Store, tx kv.Tx) { for i := 1; i <= 10; i++ { err := store.CreateAuthorization(context.Background(), tx, &influxdb.Authorization{ ID: platform.ID(i), Token: fmt.Sprintf("randomtoken%d", i), OrgID: platform.ID(i), ...
explode_data.jsonl/46466
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2622 }
[ 2830, 3393, 5087, 1155, 353, 8840, 836, 8, 341, 84571, 1669, 2915, 1155, 353, 8840, 836, 11, 3553, 353, 39554, 38047, 11, 9854, 16178, 81362, 8, 341, 197, 2023, 600, 1669, 220, 16, 26, 600, 2651, 220, 16, 15, 26, 600, 1027, 341, 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...
3
func TestStringAt_Calver(t *testing.T) { if want, got := true, testStringAt("CALVER", 2, -2, "POLKA", "PALKO", "HALVA", "HALVO", "SALVER", "CALVER"); want != got { t.Fatalf("StringAt error, wanted %v got %v", want, got) } }
explode_data.jsonl/9346
{ "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, 703, 1655, 920, 278, 423, 1155, 353, 8840, 836, 8, 341, 743, 1366, 11, 2684, 1669, 830, 11, 1273, 703, 1655, 445, 49533, 3763, 497, 220, 17, 11, 481, 17, 11, 330, 49303, 26444, 497, 330, 47, 36450, 46, 497, 330, 31714,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodeSetup(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("Tendermint does not close all its open files on shutdown, which causes cleanup to fail") } if testing.Short() { t.Skip("Skipping test in short mode") } opts, err := acctesting.NodeInitOptsForNetwork("Badlands") require.NoError(t, err)...
explode_data.jsonl/78013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 513 }
[ 2830, 3393, 1955, 21821, 1155, 353, 8840, 836, 8, 341, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 197, 3244, 57776, 445, 51, 1659, 67791, 1558, 537, 3265, 678, 1181, 1787, 3542, 389, 23766, 11, 892, 11137, 21290, 311, 3690, 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 TestHash(t *testing.T) { doc := `{"a": [[true, {"b": [null]}, {"c": "d"}]], "e": {100: a[i].b}, "k": ["foo" | true], "o": {"foo": "bar" | true}, "sc": {"foo" | true}, "s": {1, 2, {3, 4}}, "big": 1e+1000}` stmt1 := MustParseStatement(doc) stmt2 := MustParseStatement(doc) obj1 := stmt1.(Body)[0].Terms.(*Term)...
explode_data.jsonl/2912
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 6370, 1155, 353, 8840, 836, 8, 1476, 59536, 1669, 1565, 4913, 64, 788, 4318, 1866, 11, 5212, 65, 788, 508, 2921, 66125, 5212, 66, 788, 330, 67, 9207, 20492, 330, 68, 788, 314, 16, 15, 15, 25, 264, 989, 936, 65, 2137, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFetchCRL(t *testing.T) { t.Run("Valid DER CRL", testFetchCRLWithValidCRL) t.Run("Valid PEM CRL", testFetchCRLWithValidPEMCRL) t.Run("Invalid DER CRL", testFetchCRLWithInvalidCRL) t.Run("Invalid PEM CRL", testFetchCRLWithInvalidPEMCRL) t.Run("Invalid URL", testFetchCRLWithInvalidURL) t.Run("HTTP Error", t...
explode_data.jsonl/39148
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 20714, 34, 4728, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4088, 46777, 356, 4728, 497, 1273, 20714, 34, 4728, 2354, 4088, 34, 4728, 340, 3244, 16708, 445, 4088, 96734, 356, 4728, 497, 1273, 20714, 34, 4728, 2354, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServicePersistence(t *testing.T) { svc := &ServicePersistence{} batch := entity.Batch{ entity.BatchItem{0, []byte("TEST"), 0}, } res, err := svc.Lock(batch) assert.Len(t, res, 1) assert.Nil(t, err) res, err = svc.Rollback(batch) assert.Len(t, res, 1) assert.Nil(t, err) res, err = svc.Commit(batch)...
explode_data.jsonl/73744
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 1860, 71562, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 609, 1860, 71562, 16094, 2233, 754, 1669, 5387, 45791, 515, 197, 52987, 45791, 1234, 90, 15, 11, 3056, 3782, 445, 10033, 3975, 220, 15, 1583, 197, 630, 10202, 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 TestGetAllLibraryPanels(t *testing.T) { testScenario(t, "When an admin tries to get all library panels and none exists, it should return none", func(t *testing.T, sc scenarioContext) { resp := sc.service.getAllHandler(sc.reqContext) require.Equal(t, 200, resp.Status()) var result libraryPanelsResult ...
explode_data.jsonl/35047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2288 }
[ 2830, 3393, 1949, 2403, 16915, 35693, 2010, 1155, 353, 8840, 836, 8, 341, 18185, 54031, 1155, 11, 330, 4498, 458, 3986, 16297, 311, 633, 678, 6733, 21285, 323, 6857, 6724, 11, 432, 1265, 470, 6857, 756, 197, 29244, 1155, 353, 8840, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestText(t *testing.T) { convert(t, Text, "", "") convert(t, Text, 1, "1") lt(t, Text, "a", "b") eq(t, Text, "a", "a") gt(t, Text, "b", "a") }
explode_data.jsonl/54298
{ "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, 1178, 1155, 353, 8840, 836, 8, 341, 197, 14166, 1155, 11, 2918, 11, 7342, 14676, 197, 14166, 1155, 11, 2918, 11, 220, 16, 11, 330, 16, 5130, 197, 4832, 1155, 11, 2918, 11, 330, 64, 497, 330, 65, 1138, 7727, 80, 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 TestFailedWikiGetAllPagesDueToValidation(t *testing.T) { stop, serverSocketPath := runWikiServiceServer(t) defer stop() client, conn := newWikiClient(t, serverSocketPath) defer conn.Close() testCases := []struct { desc string req *gitalypb.WikiGetAllPagesRequest }{ {desc: "no repository", req: &gita...
explode_data.jsonl/48806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 9408, 53896, 1949, 2403, 17713, 33060, 1249, 13799, 1155, 353, 8840, 836, 8, 341, 62644, 11, 3538, 10286, 1820, 1669, 1598, 53896, 1860, 5475, 1155, 340, 16867, 2936, 2822, 25291, 11, 4534, 1669, 501, 53896, 2959, 1155, 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 TestVerifyUpdateChangefeedConfig(t *testing.T) { ctx := context.Background() ctx, cancel := context.WithCancel(ctx) defer cancel() oldInfo := &model.ChangeFeedInfo{Config: config.GetDefaultReplicaConfig()} // test startTs > targetTs changefeedConfig := model.ChangefeedConfig{TargetTS: 20} oldInfo.StartTs = ...
explode_data.jsonl/29910
{ "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, 32627, 4289, 1143, 524, 823, 12051, 2648, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 20985, 11, 9121, 1669, 2266, 26124, 9269, 7502, 340, 16867, 9121, 741, 61828, 1731, 1669, 609, 2528, 39348, 28916, 1731, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestShutdownTimesOut(t *testing.T) { nodeID := ids.EmptyNodeID vdrs := validators.NewSet() err := vdrs.AddWeight(ids.GenerateTestNodeID(), 1) assert.NoError(t, err) benchlist := benchlist.NewNoBenchlist() metrics := prometheus.NewRegistry() // Ensure that the Ancestors request does not timeout tm, err := t...
explode_data.jsonl/76077
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1098 }
[ 2830, 3393, 62004, 18889, 2662, 1155, 353, 8840, 836, 8, 341, 20831, 915, 1669, 14151, 11180, 1955, 915, 198, 5195, 93246, 1669, 38588, 7121, 1649, 741, 9859, 1669, 348, 93246, 1904, 8295, 43448, 57582, 2271, 1955, 915, 1507, 220, 16, 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 TestEventSub(t *testing.T) { a := test_setup.SetupTestEnv(t) params := *&events.MockEventParameters{ FromUserID: fromUser, ToUserID: toUser, Transport: models.TransportEventSub, Trigger: "subscribe", } r, err := Event{}.GenerateEvent(params) a.Nil(err) var body models.SubEventSubResponse er...
explode_data.jsonl/48396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 1556, 3136, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1273, 21363, 39820, 2271, 14359, 1155, 692, 25856, 1669, 77745, 12389, 24664, 1556, 9706, 515, 197, 197, 3830, 36899, 25, 504, 1474, 345, 197, 197, 1249, 36899, 25, 256,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNetworksPrune(t *testing.T) { expectedURL := "/v1.25/networks/prune" danglingFilters := filters.NewArgs() danglingFilters.Add("dangling", "true") noDanglingFilters := filters.NewArgs() noDanglingFilters.Add("dangling", "false") labelFilters := filters.NewArgs() labelFilters.Add("dangling", "true") l...
explode_data.jsonl/41335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 936 }
[ 2830, 3393, 12320, 82, 3533, 2886, 1155, 353, 8840, 836, 8, 341, 42400, 3144, 1669, 3521, 85, 16, 13, 17, 20, 47658, 82, 44672, 2886, 1837, 2698, 90104, 28351, 1669, 13406, 7121, 4117, 741, 2698, 90104, 28351, 1904, 445, 67, 90104, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTypeSystem_FieldArgumentsMustHaveInputTypes_RejectsAnEmptyFieldArgType(t *testing.T) { _, err := schemaWithArgOfType(nil) expectedError := `BadObject.badField(badArg:) argument type must be Input Type but got: <nil>.` if err == nil || err.Error() != expectedError { t.Fatalf("Expected error: %v, got %v", e...
explode_data.jsonl/79185
{ "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, 929, 2320, 46272, 19139, 31776, 12116, 2505, 4173, 50693, 583, 82, 2082, 3522, 1877, 2735, 929, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 10802, 2354, 2735, 34696, 27907, 340, 42400, 1454, 1669, 1565, 17082, 1190, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_search_3227b17f70d3cb3a5f2b296d6943848a(t *testing.T) { es, _ := elasticsearch.NewDefaultClient() // tag:3227b17f70d3cb3a5f2b296d6943848a[] res, err := es.Cluster.PutSettings( strings.NewReader(`{ "transient": { "cluster.routing.use_adaptive_replica_selection": false } }`)) fmt.Println(...
explode_data.jsonl/428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 10716, 62, 18, 17, 17, 22, 65, 16, 22, 69, 22, 15, 67, 18, 7221, 18, 64, 20, 69, 17, 65, 17, 24, 21, 67, 21, 24, 19, 18, 23, 19, 23, 64, 1155, 353, 8840, 836, 8, 341, 78966, 11, 716, 1669, 655, 27791, 7121, 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 TestOption_WithEnableCookie(t *testing.T) { client, err := NewClient("test", "http://httpbin.org/", WithEnableCookie(true)) if err != nil { t.Fatal(err) } v := "smallfish" resp := &respCarrier{} err = client.Get(resp, "/cookies/set?k1="+v) if err != nil { t.Fatal(err) } t.Log(resp.String()) err =...
explode_data.jsonl/68686
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 5341, 62, 2354, 11084, 20616, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 445, 1944, 497, 330, 1254, 1110, 1254, 6863, 2659, 35075, 197, 197, 2354, 11084, 20616, 3715, 1171, 743, 1848, 961, 2092, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_registryAddCmd(t *testing.T) { cases := []cmdTestCase{ { name: "in general", args: []string{"registry", "add", "name", "uri"}, action: actionRegistryAdd, expected: map[string]interface{}{ actions.OptionApp: ka, actions.OptionName: "name", actions.OptionURI: "uri", ...
explode_data.jsonl/34529
{ "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, 50650, 2212, 15613, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 8710, 16458, 515, 197, 197, 515, 298, 11609, 25, 256, 330, 258, 4586, 756, 298, 31215, 25, 256, 3056, 917, 4913, 29172, 497, 330, 718, 497, 330, 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 Test_SBTopic_Status_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of SBTopic_Status via JSON returns original", prop.ForAll(RunJSONSe...
explode_data.jsonl/36552
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 72209, 26406, 36449, 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, 16, 15, 198, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRootHandler(t *testing.T) { cfg := initTest() r := gofight.New() // log for json cfg.Log.Format = "json" r.GET("/"). Run(routerEngine(cfg, q), func(r gofight.HTTPResponse, rq gofight.HTTPRequest) { data := r.Body.Bytes() value, _ := jsonparser.GetString(data, "text") assert.Equal(t, "Welco...
explode_data.jsonl/67606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 8439, 3050, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 2930, 2271, 2822, 7000, 1669, 728, 21143, 7121, 2822, 197, 322, 1487, 369, 2951, 198, 50286, 5247, 9978, 284, 330, 2236, 1837, 7000, 17410, 4283, 38609, 197, 85952, 6121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStateTransitionAfterLeaseExpirationWithNoResponse(t *testing.T) { const ( leaseLength Seconds = 1 acquireTimeout = time.Nanosecond backoffTime = time.Nanosecond ) var wg sync.WaitGroup defer wg.Wait() ctx, cancel := context.WithCancel(context.Background()) defer cancel() s...
explode_data.jsonl/20582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1175 }
[ 2830, 3393, 1397, 21768, 6025, 2304, 519, 66301, 2354, 2753, 2582, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 197, 1623, 4373, 262, 60983, 284, 220, 16, 198, 197, 81200, 984, 7636, 260, 284, 882, 2067, 276, 960, 1297, 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 TestNewPaginatedBase_ReturnsPaginatedBase(t *testing.T) { b := NewPaginatedBase(APIRequestParameters{}, APIResponseMetadataPagination{}, func(parameters APIRequestParameters) (Paginated, error) { return nil, nil }) assert.NotNil(t, b) }
explode_data.jsonl/44629
{ "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, 3564, 47712, 15479, 3978, 53316, 82, 47712, 15479, 3978, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 1532, 47712, 15479, 3978, 48953, 1900, 9706, 22655, 5333, 2582, 14610, 44265, 22655, 2915, 37959, 5333, 1900, 9706, 8, 320, 477...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewOrder(t *testing.T) { t.Parallel() _, err := b.NewOrder("BTCUSD", 1, 2, true, "market", false) if err == nil { t.Error("Test Failed - NewOrder() error") } }
explode_data.jsonl/79945
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 3564, 4431, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 7121, 4431, 445, 59118, 26749, 497, 220, 16, 11, 220, 17, 11, 830, 11, 330, 19301, 497, 895, 340, 743, 1848, 621, 2092, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestRuleGroupByConst(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := []string{ "select col1,col2 from tbl where col1='abc' group by 1", "select col1,col2 from tbl group by 1", } for _, sql := range sqls { q, err := NewQuery4Audit(sql) if err == nil { rule ...
explode_data.jsonl/76748
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 11337, 2808, 1359, 19167, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 3056, 917, 515, 197, 197, 1, 1742, 1375, 16, 51496, 17, 504, 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 TestGetProofConnection(t *testing.T) { beforeEach(t) connection, err := r.Proof().Connection(testContext(), &model.Proof{ID: testProofID}) if err != nil { t.Errorf("Received unexpected error %s", err) } if connection == nil { t.Errorf("Expecting result, received %v", connection) } }
explode_data.jsonl/70487
{ "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, 1949, 31076, 4526, 1155, 353, 8840, 836, 8, 341, 63234, 4854, 1155, 692, 54590, 11, 1848, 1669, 435, 7763, 1055, 1005, 4526, 8623, 1972, 1507, 609, 2528, 7763, 1055, 90, 915, 25, 1273, 31076, 915, 3518, 743, 1848, 961, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSetArgPtr(t *testing.T) { _, ctrl := createFixtures(t) subject := new(Subject) var in int = 43 const set = 42 ctrl.RecordCall(subject, "SetArgMethod", nil, &in).SetArg(1, set) ctrl.Call(subject, "SetArgMethod", nil, &in) if in != set { t.Error("Expected SetArg() to modify value pointed to by argumen...
explode_data.jsonl/17285
{ "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, 1649, 2735, 5348, 1155, 353, 8840, 836, 8, 341, 197, 6878, 23743, 1669, 1855, 25958, 18513, 1155, 340, 28624, 583, 1669, 501, 7, 13019, 692, 2405, 304, 526, 284, 220, 19, 18, 198, 4777, 738, 284, 220, 19, 17, 198, 84381,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterAlwaysFalse(t *testing.T) { in := make(chan Image, 1) filter := filterGenerator(func(Image) bool { return false }, false) out := filter(in) in <- Image{} close(in) _, ok := <-out if ok { t.Error("Filter remains unexpectedly open") } }
explode_data.jsonl/46234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 5632, 37095, 4049, 1155, 353, 8840, 836, 8, 341, 17430, 1669, 1281, 35190, 4654, 11, 220, 16, 340, 50108, 1669, 4051, 12561, 18552, 30122, 8, 1807, 314, 470, 895, 2470, 895, 340, 13967, 1669, 4051, 5900, 340, 17430, 9119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRegisterRootNamespaceTransactionSerialization(t *testing.T) { tx, err := NewRegisterRootNamespaceTransaction( fakeDeadline, "newnamespace", big.NewInt(10000), MijinTest, ) assert.Nilf(t, err, "NewRegisterRootNamespaceTransaction returned error: %s", err) b, err := tx.generateBytes() assert.Nilf...
explode_data.jsonl/69196
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 8690, 8439, 22699, 8070, 35865, 1155, 353, 8840, 836, 8, 341, 46237, 11, 1848, 1669, 1532, 8690, 8439, 22699, 8070, 1006, 197, 1166, 726, 83593, 345, 197, 197, 1, 931, 2231, 756, 197, 2233, 343, 7121, 1072, 7, 16, 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
func TestStr2Bytes(t *testing.T) { Convey("Cast str to bytes", t, func() { tests := []struct { Value string Dest []byte Success bool }{ {"aaa", []byte("aaa"), true}, {"true", []byte("true"), true}, {"2222", []byte("222"), false}, {"12311", []byte("aaaaa"), false}, {"", nil, true}, } ...
explode_data.jsonl/34303
{ "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, 2580, 17, 7078, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 18714, 607, 311, 5820, 497, 259, 11, 2915, 368, 341, 197, 78216, 1669, 3056, 1235, 341, 298, 47399, 256, 914, 198, 298, 10957, 477, 262, 3056, 3782, 198, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPathV(t *testing.T) { tests := []struct { desc string in string want string err error }{ { desc: "valid-kv", in: "[1:2]", want: "1:2", err: nil, }, { desc: "valid-v", in: "[:1]", want: "1", err: nil, }, { desc: "invalid", in: "083fj", want: "", ...
explode_data.jsonl/70574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 1820, 53, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 914, 198, 197, 17430, 256, 914, 198, 197, 50780, 914, 198, 197, 9859, 220, 1465, 198, 197, 59403, 197, 197, 515, 298, 41653, 25, 330, 1891...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContext2Plan_requiredModuleOutput(t *testing.T) { m := testModule(t, "plan-required-output") p := testProvider("test") p.GetSchemaReturn = &ProviderSchema{ ResourceTypes: map[string]*configschema.Block{ "test_resource": { Attributes: map[string]*configschema.Attribute{ "id": {Type: cty.S...
explode_data.jsonl/28728
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 757 }
[ 2830, 3393, 1972, 17, 20485, 18743, 3332, 5097, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 62472, 59524, 1138, 3223, 1669, 1273, 5179, 445, 1944, 1138, 3223, 2234, 8632, 5598, 284, 609, 5179, 8632, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersion(t *testing.T) { c := NewParallelE2eCLI(t, binDir) t.Run("azure version", func(t *testing.T) { res := c.RunDockerCmd("version") res.Assert(t, icmd.Expected{Out: "Cloud integration"}) }) t.Run("format", func(t *testing.T) { res := c.RunDockerCmd("version", "-f", "{{ json . }}") res.Assert(t...
explode_data.jsonl/5436
{ "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, 5637, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 16547, 36, 17, 68, 63959, 1155, 11, 9544, 6184, 692, 3244, 16708, 445, 39495, 2319, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 10202, 1669, 272, 16708, 35, 13659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnd(t *testing.T) { bA1, _ := randBitArray(51) bA2, _ := randBitArray(31) bA3 := bA1.And(bA2) if bA3.Bits != 31 { t.Error("Expected min bits", bA3.Bits) } if len(bA3.Elems) != len(bA2.Elems) { t.Error("Expected min elems length") } for i := 0; i < bA3.Bits; i++ { expected := bA1.GetIndex(i) && ...
explode_data.jsonl/77646
{ "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, 3036, 1155, 353, 8840, 836, 8, 1476, 2233, 32, 16, 11, 716, 1669, 10382, 8344, 1857, 7, 20, 16, 340, 2233, 32, 17, 11, 716, 1669, 10382, 8344, 1857, 7, 18, 16, 340, 2233, 32, 18, 1669, 293, 32, 16, 31164, 1883, 32, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuditDEnabled(t *testing.T) { mockCS := getMockBaseContainerService("1.12.7") mockCS.Properties.OrchestratorProfile.OrchestratorType = Kubernetes isUpgrade := true mockCS.Properties.setAgentProfileDefaults(isUpgrade, false, AzurePublicCloud) // In upgrade scenario, nil AuditDEnabled should always render ...
explode_data.jsonl/33867
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 962 }
[ 2830, 3393, 74516, 1150, 77, 2312, 1155, 353, 8840, 836, 8, 341, 77333, 6412, 1669, 633, 11571, 3978, 4502, 1860, 445, 16, 13, 16, 17, 13, 22, 1138, 77333, 6412, 15945, 90449, 331, 15111, 850, 8526, 90449, 331, 15111, 850, 929, 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...
6
func TestMetricsMetadata_ToMetricValues_Error(t *testing.T) { metricDataType := metricValueDataType{dataType: metricDataType} int64MetricValueMetadata := Int64MetricValueMetadata{ queryMetricValueMetadata: newQueryMetricValueMetadata("nonExistingMetricName", "nonExistingMetricColumnName", metricDataType, metricU...
explode_data.jsonl/64256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 27328, 14610, 38346, 54310, 6227, 28651, 1155, 353, 8840, 836, 8, 341, 2109, 16340, 22653, 1669, 18266, 1130, 22653, 90, 57694, 25, 18266, 22653, 532, 2084, 21, 19, 54310, 1130, 14610, 1669, 1333, 21, 19, 54310, 1130, 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 TestAuthorizationEndpointDiscoveryLinkTag(t *testing.T) { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte(fmt.Sprintf(`<!doctype html><html><head><meta charset=utf-8><link rel="authorization_endpoint" href="/indieauth"></head></html>`))) }) server :...
explode_data.jsonl/7016
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 18124, 27380, 67400, 3939, 5668, 1155, 353, 8840, 836, 8, 341, 2109, 2200, 1669, 1758, 7121, 60421, 44, 2200, 741, 2109, 2200, 63623, 35460, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 4073, 10556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReflectCallNotEnoughArgs(t *testing.T) { const SCRIPT = ` f(42) ` vm := New() f := func(x, y int, z *int, s string) (int, error) { if z != nil { return 0, fmt.Errorf("z is not nil") } if s != "" { return 0, fmt.Errorf("s is not \"\"") } return x + y, nil } vm.Set("f", f) prg := MustC...
explode_data.jsonl/10498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 72789, 7220, 2623, 95801, 4117, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 1166, 7, 19, 17, 340, 197, 3989, 54879, 1669, 1532, 2822, 1166, 1669, 2915, 2075, 11, 379, 526, 11, 1147, 353, 396, 11, 274, 914, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParallelGetter(t *testing.T) { c, cli := helpers.GetTestEtcd(t) defer c.Terminate(t) serversToAdd := []*Server{ NewServer("frontend-1", "type1", true, nil), NewServer("frontend-2", "type2", true, nil), NewServer("frontend-3", "type3", true, nil), NewServer("frontend-4", "type4", true, nil), NewSe...
explode_data.jsonl/61570
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 684 }
[ 2830, 3393, 16547, 31485, 1155, 353, 8840, 836, 8, 341, 1444, 11, 21348, 1669, 30187, 2234, 2271, 31860, 4385, 1155, 340, 16867, 272, 836, 261, 34016, 1155, 692, 1903, 18729, 52113, 1669, 29838, 5475, 515, 197, 197, 3564, 5475, 445, 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...
5
func TestPalette_palette2048(t *testing.T) { var palette palette2048.Slice = palette2048.Slice(palette2048_rkbv.Palette[:]) if nil == palette { t.Error("This should never happen.") return } { var yellow color.Color = color.RGBA{255,199,6,55} actualColor := palette.Convert(yellow) actual := fmt.Sprint(...
explode_data.jsonl/44841
{ "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, 39135, 66252, 17, 15, 19, 23, 1155, 353, 8840, 836, 8, 1476, 2405, 26308, 26308, 17, 15, 19, 23, 95495, 284, 26308, 17, 15, 19, 23, 95495, 1295, 28510, 17, 15, 19, 23, 1710, 21310, 85, 1069, 28510, 3447, 9604, 743, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMaxIndexWaitees(t *testing.T) { d, err := ioutil.TempDir("", "indexertest") require.NoError(t, err) defer os.RemoveAll(d) store, err := Open(d, DefaultOptions().WithMaxWaitees(1)) require.NoError(t, err) // Grab errors from waiters errCh := make(chan error) for i := 0; i < 2; i++ { go func() { e...
explode_data.jsonl/67686
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 409 }
[ 2830, 3393, 5974, 1552, 98227, 632, 288, 1155, 353, 8840, 836, 8, 341, 2698, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 1252, 83386, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 1500, 692, 57279, 11, 1848, 1669, 526...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerBoundHandshake_Marshal(t *testing.T) { tt := []struct { packet mc.ServerBoundHandshake marshaledPacket mc.Packet }{ { packet: mc.ServerBoundHandshake{ ProtocolVersion: 578, ServerAddress: "spook.space", ServerPort: 25565, NextState: mc.StatusState, }, ...
explode_data.jsonl/44999
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 606 }
[ 2830, 3393, 5475, 19568, 2314, 29661, 1245, 28423, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 68802, 688, 19223, 22997, 19568, 2314, 29661, 198, 197, 2109, 277, 75303, 16679, 19223, 93971, 198, 197, 59403, 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 TestNewReleaseAppAllocationAskEvent(t *testing.T) { tests := []struct { name string appID, taskID string terminationType si.TerminationType wantID, wantTaskID, wantType string wantEvent events.ApplicationEventType }{ {TestCreateNa...
explode_data.jsonl/9802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 408 }
[ 2830, 3393, 3564, 16077, 2164, 78316, 26172, 1556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 5108, 914, 198, 197, 28236, 915, 11, 3383, 915, 394, 914, 198, 197, 197, 88676, 929, 1060, 4403, 836, 261, 3209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartStop(t *testing.T) { connected := make(chan *ConnReq) disconnected := make(chan *ConnReq) cmgr, err := New(&Config{ TargetOutbound: 1, GetNewAddress: func() (net.Addr, error) { return &net.TCPAddr{ IP: net.ParseIP("127.0.0.1"), Port: 18555, }, nil }, Dial: mockDialer, OnConnec...
explode_data.jsonl/53947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 466 }
[ 2830, 3393, 3479, 10674, 1155, 353, 8840, 836, 8, 341, 197, 15288, 1669, 1281, 35190, 353, 9701, 27234, 340, 34597, 15288, 1669, 1281, 35190, 353, 9701, 27234, 340, 1444, 48292, 11, 1848, 1669, 1532, 2099, 2648, 515, 197, 197, 6397, 266...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAkimaSplineFitErrors(t *testing.T) { t.Parallel() for _, test := range []struct { xs, ys []float64 }{ { xs: []float64{0, 1, 2}, ys: []float64{10, 20}, }, { xs: []float64{0, 1}, ys: []float64{10, 20, 30}, }, { xs: []float64{0}, ys: []float64{0}, }, { xs: []float64{0, 1, 1...
explode_data.jsonl/44083
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 392 }
[ 2830, 3393, 55802, 7523, 50, 31439, 23346, 13877, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 10225, 82, 11, 31810, 3056, 3649, 21, 19, 198, 197, 59403, 197, 197, 515, 298,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRuleImpossibleWhere(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := [][]string{ { "select * from tbl where 1 != 1;", "select * from tbl where 'a' != 'a';", "select * from tbl where col between 10 AND 5;", }, { "select * from tbl where 1 = 1;", ...
explode_data.jsonl/76770
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 434 }
[ 2830, 3393, 11337, 89655, 9064, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 52931, 917, 515, 197, 197, 515, 298, 197, 1, 1742, 353, 504, 21173, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestData(t *testing.T) { compose.EnsureUp(t, "rabbitmq") f := mbtest.NewEventsFetcher(t, getConfig()) err := mbtest.WriteEvents(f, t) if err != nil { t.Fatal("write", err) } }
explode_data.jsonl/11869
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 93200, 1155, 353, 8840, 836, 8, 341, 32810, 2900, 22834, 19098, 2324, 1155, 11, 330, 86345, 27674, 5130, 1166, 1669, 10016, 1944, 7121, 7900, 97492, 1155, 11, 66763, 2398, 9859, 1669, 10016, 1944, 4073, 7900, 955, 11, 259, 340, 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 ]
2
func TestIssue1817(t *testing.T) { // Setting a breakpoint on a line that doesn't have any PC addresses marked // is_stmt should work. withTestProcess("issue1817", t, func(p *proc.Target, fixture protest.Fixture) { setFileBreakpoint(p, t, fixture.Source, 16) }) }
explode_data.jsonl/56339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 42006, 16, 23, 16, 22, 1155, 353, 8840, 836, 8, 341, 197, 322, 20037, 264, 52745, 389, 264, 1555, 429, 3171, 944, 614, 894, 6673, 14230, 12864, 198, 197, 322, 374, 21824, 1265, 975, 624, 46948, 2271, 7423, 445, 11159, 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 TestWorkerVolumeType(t *testing.T) { validConfigs := []struct { conf string volumeType string iops int }{ { conf: ``, volumeType: "gp2", iops: 0, }, { conf: ` workerRootVolumeType: gp2 `, volumeType: "gp2", iops: 0, }, { conf: ` workerRootVolume...
explode_data.jsonl/4371
{ "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, 21936, 18902, 929, 1155, 353, 8840, 836, 8, 1476, 56322, 84905, 1669, 3056, 1235, 341, 197, 67850, 981, 914, 198, 197, 5195, 4661, 929, 914, 198, 197, 8230, 3721, 981, 526, 198, 197, 59403, 197, 197, 515, 298, 67850, 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...
6
func Test_StoreRepo_Store(t *testing.T) { s := sample.NewStore() testCases := []struct { name string arg *domain.Store expectedErr bool prepare func(mock sqlmock.Sqlmock) }{ { name: "failure_exec_query_returns_error", arg: s, expectedErr: true, prepare: func(mo...
explode_data.jsonl/20616
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1375 }
[ 2830, 3393, 92684, 25243, 92684, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6077, 7121, 6093, 741, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 47903, 260, 353, 12204, 38047, 198, 197, 42400, 7747, 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...
1
func TestListAllTablesByTableStatus(t *testing.T) { db, mock, err := sqlmock.New() require.NoError(t, err) defer func() { require.NoError(t, db.Close()) }() conn, err := db.Conn(context.Background()) require.NoError(t, err) tctx := tcontext.Background().WithLogger(appLogger) // Test list all tables and ski...
explode_data.jsonl/49486
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1126 }
[ 2830, 3393, 852, 2403, 21670, 1359, 2556, 2522, 1155, 353, 8840, 836, 8, 341, 20939, 11, 7860, 11, 1848, 1669, 5704, 16712, 7121, 741, 17957, 35699, 1155, 11, 1848, 340, 16867, 2915, 368, 341, 197, 17957, 35699, 1155, 11, 2927, 10421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilters(t *testing.T) { testCases := []struct { name string filters Filters labels string fields string }{{ name: "no-filters", filters: Filters{}, }, { name: "namespace", filters: Filters{ Namespace: "default", }, }, { name: "node", filters: Filters{ Node: "ec2-test", ...
explode_data.jsonl/56855
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 649 }
[ 2830, 3393, 28351, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 1166, 8612, 45012, 198, 197, 95143, 220, 914, 198, 197, 55276, 220, 914, 198, 197, 15170, 515, 197, 11609, 25, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateSecurityGroup(t *testing.T) { tests := []struct { name string requestedSG *models.SecurityGroup expectedSG *models.SecurityGroup allocatedInt int64 fails bool expectedStatusCode int }{ { name: "create security group", requested...
explode_data.jsonl/47316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 905 }
[ 2830, 3393, 4021, 15352, 2808, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 23555, 291, 7783, 286, 353, 6507, 21567, 2808, 198, 197, 42400, 7783, 260, 353, 6507, 21567, 2808, 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, 1...
1
func Test_Encode_NoValues(t *testing.T) { var in []uint64 encoded, _ := simple8b.EncodeAll(in) decoded := make([]uint64, len(in)) n, _ := simple8b.DecodeAll(decoded, encoded) if len(in) != len(decoded[:n]) { t.Fatalf("Len mismatch: got %v, exp %v", len(decoded), len(in)) } }
explode_data.jsonl/78339
{ "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, 93529, 534, 36989, 6227, 1155, 353, 8840, 836, 8, 341, 2405, 304, 3056, 2496, 21, 19, 198, 197, 19329, 11, 716, 1669, 4285, 23, 65, 50217, 2403, 5900, 692, 197, 62913, 1669, 1281, 10556, 2496, 21, 19, 11, 2422, 5900, 117...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcileOnCompletedPipelineRun(t *testing.T) { // TestReconcileOnCompletedPipelineRun runs "Reconcile" on a PipelineRun that already reached completion // and that does not have the latest status from TaskRuns yet. It checks that the TaskRun status is updated // in the PipelineRun status, that the completi...
explode_data.jsonl/27280
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1146 }
[ 2830, 3393, 693, 40446, 457, 1925, 22724, 34656, 6727, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 693, 40446, 457, 1925, 22724, 34656, 6727, 8473, 330, 693, 40446, 457, 1, 389, 264, 40907, 6727, 429, 2669, 8643, 9755, 198, 197, 322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlushOrderedWhenRandomInsertionOrderAndTakeNaNs(t *testing.T) { maxHeap := NewFloatHeap(true, 3) maxHeap.Push(math.NaN(), 4) maxHeap.Push(1.1, 1) maxHeap.Push(3.1, 3) maxHeap.Push(math.NaN(), 5) actualMax := maxHeap.OrderedFlush() equalPairs(t, []ValueIndexPair{ {Val: 3.1, Index: 3}, {Val: 1.1, In...
explode_data.jsonl/68391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 46874, 54384, 4498, 13999, 13780, 290, 4431, 3036, 17814, 22831, 82, 1155, 353, 8840, 836, 8, 341, 22543, 27909, 1669, 1532, 5442, 27909, 3715, 11, 220, 18, 340, 22543, 27909, 34981, 37270, 78706, 1507, 220, 19, 340, 22543, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIgnoreUnknownUsers(t *testing.T) { t.Run("Ignore Unkown Users set to true", func(t *testing.T) { mdb := newTestReplicaSet() ignoreUnknownUsers := true mdb.Spec.Security.Authentication.IgnoreUnknownUsers = &ignoreUnknownUsers assertAuthoritativeSet(t, mdb, false) }) t.Run("IgnoreUnknownUsers is not...
explode_data.jsonl/80687
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 12497, 13790, 7137, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 12497, 1230, 74, 779, 14627, 738, 311, 830, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2109, 1999, 1669, 501, 2271, 18327, 15317, 1649, 741, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestWithLogger(t *testing.T) { // with *logrus.Logger l := NewLogger(WithLogger(logrus.StandardLogger())).Fields(map[string]interface{}{ "k1": "v1", "k2": 123456, }) logger.DefaultLogger = l logger.Log(logger.InfoLevel, "testing: with *logrus.Logger") // with *logrus.Entry el := NewLogger(WithLogger(lo...
explode_data.jsonl/6553
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 2354, 7395, 1155, 353, 8840, 836, 8, 341, 197, 322, 448, 353, 839, 20341, 12750, 198, 8810, 1669, 1532, 7395, 7, 2354, 7395, 12531, 20341, 53615, 7395, 34670, 8941, 9147, 14032, 31344, 67066, 197, 197, 62911, 16, 788, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBatchMetrics_UnevenBatchMaxSize(t *testing.T) { ctx := context.Background() sink := new(metricsSink) metricsCount := 50 dataPointsPerMetric := 2 sendBatchMaxSize := 99 batchMetrics := newBatchMetrics(sink) md := testdata.GenerateMetricsManyMetricsSameResource(metricsCount) batchMetrics.add(md) requi...
explode_data.jsonl/25027
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 21074, 27328, 6665, 811, 1037, 21074, 5974, 1695, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1903, 766, 1669, 501, 89788, 45094, 340, 2109, 13468, 2507, 1669, 220, 20, 15, 198, 8924, 11411, 3889, 54310, 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 TestProductService_Create(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() product := mock_application.NewMockProductInterface(ctrl) persistence := mock_application.NewMockProductPersistenceInterface(ctrl) persistence.EXPECT().Save(gomock.Any()).Return(product, nil).AnyTimes() service := ...
explode_data.jsonl/44571
{ "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, 4816, 1860, 34325, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 69288, 1669, 7860, 38721, 7121, 11571, 4816, 5051, 62100, 340, 3223, 8026, 1669, 7860, 38721,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenericSchedulerWithExtenders(t *testing.T) { tests := []struct { name string predicates map[string]algorithm.FitPredicate prioritizers []algorithm.PriorityConfig extenders []FakeExtender nodes []string expectedHost string expectsErr bool }{ { predicates: map[string...
explode_data.jsonl/8935
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2685 }
[ 2830, 3393, 19964, 38878, 2354, 6756, 14506, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 3223, 1151, 24821, 256, 2415, 14032, 60, 19688, 991, 275, 36329, 198, 197, 3223, 3254, 275, 12230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLifecycle(t *testing.T) { AfterSuite(func() { logPath := fmt.Sprintf("%s/aftersuite", ns.LogDir) kubectl.DumpAllLogs(logPath).ExecV() fmt.Printf("\n\tPost-run logs dumped at: %s\n\n", logPath) _ = ns.Terminate() }) RegisterFailHandler(Fail) RunSpecs(t, testName) }
explode_data.jsonl/36675
{ "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, 62731, 1155, 353, 8840, 836, 8, 341, 197, 6025, 28000, 18552, 368, 341, 197, 6725, 1820, 1669, 8879, 17305, 4430, 82, 14186, 723, 388, 9302, 497, 12268, 5247, 6184, 340, 197, 16463, 53380, 909, 1510, 2403, 51053, 12531, 1820...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreate(t *testing.T) { ctx := testhelper.Context(t) cfg, repo, _, _, client := setup(ctx, t) pool := initObjectPool(t, cfg, cfg.Storages[0]) poolReq := &gitalypb.CreateObjectPoolRequest{ ObjectPool: pool.ToProto(), Origin: repo, } _, err := client.CreateObjectPool(ctx, poolReq) require.NoErro...
explode_data.jsonl/31590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 4021, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1273, 18764, 9328, 1155, 340, 50286, 11, 15867, 11, 8358, 8358, 2943, 1669, 6505, 7502, 11, 259, 692, 85273, 1669, 2930, 1190, 10551, 1155, 11, 13286, 11, 13286, 7758, 269, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddRecord(t *testing.T) { records := make([]*kinesis.PutRecordsRequestEntry, 0, 500) record := map[interface{}]interface{}{ "testkey": []byte("test value"), } outputPlugin, _ := newMockOutputPlugin(nil, false) timeStamp := time.Now() retCode := outputPlugin.AddRecord(&records, record, &timeStamp) a...
explode_data.jsonl/74098
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 2212, 6471, 1155, 353, 8840, 836, 8, 341, 197, 26203, 1669, 1281, 85288, 74, 82789, 39825, 25876, 1900, 5874, 11, 220, 15, 11, 220, 20, 15, 15, 692, 71952, 1669, 2415, 58, 4970, 78134, 4970, 67066, 197, 197, 1, 1944, 792...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSessionEndSession(t *testing.T) { t.Run("error", func(t *testing.T) { mockSessionService := new(mockSessionService) mockSessionService.On("endSession", mock.Anything).Return(&mockEndSessionResult, mockError) session := session{mockSessionService, mockLogger} err := session.endSession(context.Backgrou...
explode_data.jsonl/13189
{ "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, 5283, 3727, 5283, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 841, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 77333, 5283, 1860, 1669, 501, 30389, 5283, 1860, 340, 197, 77333, 5283, 1860, 8071, 445, 408, 5283, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConcurrentT_FailNow(t *testing.T) { var ct *test.ConcurrentT // Test that NewConcurrent.FailNow() calls T.FailNow(). test.AssertFatal(t, func(t test.T) { ct = test.NewConcurrent(t) ct.FailNow() }) // Test that after that, FailNow() calls runtime.Goexit(). assert.True(t, test.CheckGoexit(ct.FailNow)...
explode_data.jsonl/69825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 313 }
[ 2830, 3393, 1109, 3231, 51, 1400, 604, 7039, 1155, 353, 8840, 836, 8, 341, 2405, 20251, 353, 1944, 69677, 51, 271, 197, 322, 3393, 429, 1532, 1109, 3231, 57243, 7039, 368, 6738, 350, 57243, 7039, 25829, 18185, 11711, 62396, 1155, 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 TestValidate(t *testing.T) { tests := []struct { sql string err *terror.Error }{ { sql: "select date_format((1,2), '%H');", err: expression.ErrOperandColumns, }, { sql: "select cast((1,2) as date)", err: expression.ErrOperandColumns, }, { sql: "select (1,2) between (3,4) and (5,6)", ...
explode_data.jsonl/50220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1932 }
[ 2830, 3393, 17926, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 30633, 914, 198, 197, 9859, 353, 37388, 6141, 198, 197, 59403, 197, 197, 515, 298, 30633, 25, 330, 1742, 2400, 8955, 1188, 16, 11, 17, 701, 7677, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScrapeLoopRunCreatesStaleMarkersOnFailedScrape(t *testing.T) { appender := &collectResultAppender{} var ( signal = make(chan struct{}) scraper = &testScraper{} app = func() storage.Appender { return appender } ) defer close(signal) ctx, cancel := context.WithCancel(context.Background()) sl :=...
explode_data.jsonl/56123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 592 }
[ 2830, 3393, 3326, 19842, 14620, 6727, 54868, 623, 1574, 82405, 1925, 9408, 3326, 19842, 1155, 353, 8840, 836, 8, 341, 28236, 1659, 1669, 609, 17384, 2077, 2164, 1659, 16094, 2405, 2399, 197, 81319, 220, 284, 1281, 35190, 2036, 37790, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUpdateProject(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleUpdateProjectSuccessfully(t) var description = "The team that is bright red" updateOpts := projects.UpdateOpts{ Name: "Bright Red Team", Description: &description, Tags: &[]string{"Red"}, Extra: map[str...
explode_data.jsonl/49972
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 195 }
[ 2830, 3393, 4289, 7849, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 4289, 7849, 35959, 1155, 692, 2405, 4008, 284, 330, 785, 2083, 429, 374, 9906, 2518, 698, 27175, 43451, 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 TestConvertLocation(t *testing.T) { var input string var result Location var empty bool input = "1" result, empty = convertLocation(input) assert.Equal(t, true, empty) assert.Equal(t, Location{}, result) // strconv.ParseInt: parsing "測試": invalid syntax input = "測試 139.704051" result, empty = convertL...
explode_data.jsonl/17937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 534 }
[ 2830, 3393, 12012, 4707, 1155, 353, 8840, 836, 8, 341, 2405, 1946, 914, 198, 2405, 1102, 9866, 198, 2405, 4287, 1807, 271, 22427, 284, 330, 16, 698, 9559, 11, 4287, 284, 5508, 4707, 5384, 692, 6948, 12808, 1155, 11, 830, 11, 4287, 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 TestBuildEnv(t *testing.T) { tests := []struct { description string platform v1.Platform userEnv []string configEnv []string expectedEnvs map[string]string }{ { description: "defaults", platform: v1.Platform{ OS: "linux", Architecture: "amd64", }, expectedEn...
explode_data.jsonl/2481
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 926 }
[ 2830, 3393, 11066, 14359, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 42407, 220, 914, 198, 197, 197, 15734, 257, 348, 16, 51227, 198, 197, 19060, 14359, 414, 3056, 917, 198, 197, 25873, 14359, 262, 3056, 917, 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...
5
func TestValueAssignmentSlurmResult(t *testing.T) { t.Parallel() data := `"Final Results: \"Minibatch[1-11]\": errs = 0.550%"` va := ValueAssignment{} err := yaml.Unmarshal([]byte(data), &va) require.Nil(t, err) require.Equal(t, ValueAssignmentLiteral, va.Type) require.Equal(t, `"Final Results: \"Minibatch[1-11...
explode_data.jsonl/64271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 1130, 41613, 7442, 52370, 2077, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 8924, 1669, 53305, 19357, 18099, 25, 7245, 6217, 579, 754, 58, 16, 12, 16, 16, 60, 11693, 70817, 284, 220, 15, 13, 20, 20, 15, 4, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsRegexOrExactMatch(t *testing.T) { tests := []struct { path string expected bool }{ { path: "/path", expected: false, }, { path: "~ .*\\.jpg", expected: true, }, { path: "=/exact/match", expected: true, }, } for _, test := range tests { result := isRege...
explode_data.jsonl/65887
{ "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, 3872, 32464, 2195, 57954, 8331, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 26781, 257, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 515, 298, 26781, 25, 257, 3521, 2343, 756, 298, 42400, 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...
3
func TestDroppedTargetsList(t *testing.T) { var ( app = &nopAppendable{} cfg = &config.ScrapeConfig{ JobName: "dropMe", ScrapeInterval: model.Duration(1), RelabelConfigs: []*relabel.Config{ { Action: relabel.Drop, Regex: relabel.MustNewRegexp("dropMe"), SourceLabels:...
explode_data.jsonl/56112
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 35, 41716, 49030, 852, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 28236, 284, 609, 62813, 23877, 480, 16094, 197, 50286, 284, 609, 1676, 18326, 19842, 2648, 515, 298, 197, 12245, 675, 25, 286, 330, 6719, 7823, 756, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpan_Links(t *testing.T) { ms := NewSpan() assert.EqualValues(t, NewSpanLinkSlice(), ms.Links()) fillTestSpanLinkSlice(ms.Links()) testValLinks := generateTestSpanLinkSlice() assert.EqualValues(t, testValLinks, ms.Links()) }
explode_data.jsonl/63275
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 12485, 2351, 15504, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 12485, 741, 6948, 12808, 6227, 1155, 11, 1532, 12485, 3939, 33236, 1507, 9829, 1214, 15504, 2398, 65848, 2271, 12485, 3939, 33236, 35680, 1214, 15504, 2398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNumberDataPointSlice_RemoveIf(t *testing.T) { // Test RemoveIf on empty slice emptySlice := NewNumberDataPointSlice() emptySlice.RemoveIf(func(el NumberDataPoint) bool { t.Fail() return false }) // Test RemoveIf filtered := generateTestNumberDataPointSlice() pos := 0 filtered.RemoveIf(func(el Numb...
explode_data.jsonl/32720
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 2833, 1043, 2609, 33236, 66843, 2679, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 10783, 2679, 389, 4287, 15983, 198, 197, 3194, 33236, 1669, 1532, 2833, 1043, 2609, 33236, 741, 197, 3194, 33236, 13270, 2679, 18552, 18584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBinpackingEstimate(t *testing.T) { estimator := NewBinpackingNodeEstimator(simulator.NewTestPredicateChecker()) cpuPerPod := int64(350) memoryPerPod := int64(1000 * 1024 * 1024) pod := makePod(cpuPerPod, memoryPerPod) pods := make([]*apiv1.Pod, 0) for i := 0; i < 10; i++ { pods = append(pods, pod) }...
explode_data.jsonl/1148
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 28794, 95124, 13782, 3426, 1155, 353, 8840, 836, 8, 341, 197, 477, 13689, 1669, 1532, 28794, 95124, 1955, 13782, 13689, 47760, 10511, 7121, 2271, 36329, 35188, 12367, 80335, 3889, 23527, 1669, 526, 21, 19, 7, 18, 20, 15, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDestroyEdgeTransformer_moduleOnly(t *testing.T) { g := Graph{Path: addrs.RootModuleInstance} g.Add(testDestroyNode("module.child.test_object.a")) g.Add(testDestroyNode("module.child.test_object.b")) g.Add(testDestroyNode("module.child.test_object.c")) state := states.NewState() child := state.EnsureModu...
explode_data.jsonl/46938
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 825 }
[ 2830, 3393, 14245, 11656, 46358, 10750, 7308, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 12165, 90, 1820, 25, 912, 5428, 45345, 3332, 2523, 532, 3174, 1904, 8623, 14245, 1955, 445, 4352, 17531, 5958, 5314, 5849, 5455, 3174, 1904, 8623, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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