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 TestHostNetwork(t *testing.T) { volSize := resource.NewQuantity(100000.0, resource.BinarySI) c := New(&clusterd.Context{Clientset: testop.New(1)}, "ns", "myversion", "", "", *volSize, rookalpha.Annotations{}, rookalpha.Placement{}, edgefsv1beta1.NetworkSpec{ServerIfName: "eth0"}, edgefsv1beta1.DashboardSpec{},...
explode_data.jsonl/4578
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 9296, 12320, 1155, 353, 8840, 836, 8, 341, 5195, 337, 1695, 1669, 5101, 7121, 17342, 7, 16, 15, 15, 15, 15, 15, 13, 15, 11, 5101, 49983, 13817, 340, 1444, 1669, 1532, 2099, 18855, 67, 9328, 90, 2959, 746, 25, 1273, 453...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShareWith(t *testing.T) { tests := []struct { name, expected string }{ {"", "One for you, one for me."}, {"Alice", "One for Alice, one for me."}, {"Bob", "One for Bob, one for me."}, } for _, test := range tests { if observed := ShareWith(test.name); observed != test.expected { t.Fat...
explode_data.jsonl/21301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 12115, 2354, 1155, 353, 8840, 836, 8, 972, 78216, 1669, 3056, 1235, 972, 197, 11609, 11, 3601, 914, 319, 197, 92, 1666, 197, 197, 4913, 497, 330, 3966, 369, 498, 11, 825, 369, 752, 1189, 11557, 197, 197, 4913, 61686, 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...
3
func TestShout(t *testing.T) { if Shout("Test") != "Test!" { t.Errorf("Got %s but want \"Test!\"", Shout("Test")) } if Shout("") != "!" { t.Errorf("Got %s but want \"!\"", Shout("")) } }
explode_data.jsonl/35080
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 2016, 411, 1155, 353, 8840, 836, 8, 341, 743, 1417, 411, 445, 2271, 899, 961, 330, 2271, 8958, 341, 197, 3244, 13080, 445, 32462, 1018, 82, 714, 1366, 7245, 2271, 0, 55853, 1417, 411, 445, 2271, 5455, 197, 532, 743, 1417...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestError(t *testing.T) { query := makeQuery(nil) q := graphql.MustParse(` query foo { error } `, map[string]interface{}{}) if err := graphql.PrepareQuery(context.Background(), query, q.SelectionSet); err != nil { t.Error(err) } e := testgraphql.NewExecutorWrapper(t) _, err := e.Execute(context....
explode_data.jsonl/72161
{ "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, 1454, 1155, 353, 8840, 836, 8, 341, 27274, 1669, 1281, 2859, 27907, 692, 18534, 1669, 48865, 50463, 14463, 61528, 197, 27274, 15229, 341, 298, 18290, 198, 197, 197, 532, 197, 7808, 2415, 14032, 31344, 6257, 6257, 692, 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, 1...
4
func TestBuildStatus(t *testing.T) { d := entity.Definition{ StatusCode: http.StatusOK, } assert.Equal(t, http.StatusOK, d.BuildStatusCode()) d = entity.Definition{ StatusCode: 700, } assert.Equal(t, 700, d.BuildStatusCode()) }
explode_data.jsonl/68888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 11066, 2522, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 5387, 49947, 4054, 515, 197, 197, 15872, 25, 1758, 52989, 345, 197, 630, 6948, 12808, 1155, 11, 1758, 52989, 11, 294, 25212, 15872, 12367, 2698, 284, 5387, 49947, 4054, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTabletServerStreamExecuteComments(t *testing.T) { db, tsv := setupTabletServerTest(t, "") defer tsv.StopService() defer db.Close() executeSQL := "/* leading */ select * from test_table limit 1000 /* trailing */" executeSQLResult := &sqltypes.Result{ Fields: []*querypb.Field{ {Type: sqltypes.VarBinar...
explode_data.jsonl/80002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 472 }
[ 2830, 3393, 2556, 83, 5475, 3027, 17174, 17373, 1155, 353, 8840, 836, 8, 341, 20939, 11, 259, 3492, 1669, 6505, 2556, 83, 5475, 2271, 1155, 11, 14676, 16867, 259, 3492, 30213, 1860, 741, 16867, 2927, 10421, 2822, 8122, 3068, 6688, 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 TestCollaterals(t *testing.T) { client := v1.New(&v1.Config{ Key: os.Getenv("BFKEY"), Secret: os.Getenv("BFSECRET"), }) res, err := client.Collaterals(list.NewForCollaterals( 500, 0, 0, )) assert.NoError(t, err) for i, v := range *res { fmt.Printf("%d %+v\n", i, v) } s := new(list.SFDFactors) ...
explode_data.jsonl/41220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 15265, 962, 1127, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 348, 16, 7121, 2099, 85, 16, 10753, 515, 197, 55242, 25, 262, 2643, 64883, 445, 19883, 4784, 4461, 197, 7568, 50856, 25, 2643, 64883, 445, 19883, 65310, 4461, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestInitializeShouldCleanupOnBadMountPoint(t *testing.T) { if buildpipeline.IsRegularBuild() { // this test only apply to "regular build" pipeline const invalidMountPointSource = "@" extraDirectories := []string{} extraMountPoints := []*MountPoint{ NewMountPoint(invalidMountPointSource, "custom-mount"...
explode_data.jsonl/38799
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 9928, 14996, 67335, 1925, 17082, 16284, 2609, 1155, 353, 8840, 836, 8, 341, 743, 1936, 51258, 4506, 30404, 11066, 368, 341, 197, 197, 322, 419, 1273, 1172, 3796, 311, 330, 22308, 1936, 1, 15301, 198, 197, 4777, 8318, 16284, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_Mock_On_WithIntArgMatcher(t *testing.T) { var mockedService TestExampleImplementation mockedService.On("TheExampleMethod", MatchedBy(func(a int) bool { return a == 1 }), MatchedBy(func(b int) bool { return b == 2 }), MatchedBy(func(c int) bool { return c == 3 })).Return(0, nil) ...
explode_data.jsonl/8570
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 1245, 1176, 35482, 62, 2354, 1072, 2735, 37554, 1155, 353, 8840, 836, 8, 972, 2405, 46149, 1860, 3393, 13314, 36850, 871, 2109, 67385, 1860, 8071, 445, 785, 13314, 3523, 4723, 197, 197, 8331, 97322, 18552, 2877, 526, 8, 1807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExecutions(t *testing.T) { n := 100 count := 499 client := v1.New(nil) var ex []execution.Execution var agg []execution.Execution var lastid int for i := 0; i < n; i++ { exec, err := client.Executions(execution.New(types.FXBTCJPY).SetPagination(count, lastid, 0)) fmt.Printf("%+v\n", err) assert....
explode_data.jsonl/41197
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 10216, 3977, 1155, 353, 8840, 836, 8, 341, 9038, 1669, 220, 16, 15, 15, 198, 18032, 1669, 220, 19, 24, 24, 198, 25291, 1669, 348, 16, 7121, 27907, 340, 2405, 505, 3056, 52721, 68352, 198, 2405, 50020, 3056, 52721, 68352, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImportCorrectMap(t *testing.T) { wantgraph, wantmap := getGGraph() test(t, wantgraph, wantmap, nil, "testdata/G.txt") f := "testdata/L.txt" test(t, Graph{ Verticies: []Vertex{Vertex{ID: 0}, Vertex{ID: 1}, Vertex{ID: 2}}}, map[string]int{ "A": 0, "B": 1, "C": 2, }, nil, f) }
explode_data.jsonl/81155
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 11511, 33092, 2227, 1155, 353, 8840, 836, 8, 341, 50780, 4439, 11, 1366, 2186, 1669, 633, 38, 11212, 741, 18185, 1155, 11, 1366, 4439, 11, 1366, 2186, 11, 2092, 11, 330, 92425, 15792, 3909, 1138, 1166, 1669, 330, 92425, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestChangesetApply(t *testing.T) { conn, s := fillSession(t) defer func() { s.Delete() if err := conn.Close(); err != nil { t.Error(err) } }() buf := new(bytes.Buffer) if err := s.Changeset(buf); err != nil { t.Fatal(err) } b := buf.Bytes() invBuf := new(bytes.Buffer) if err := sqlite.Changes...
explode_data.jsonl/35695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 11317, 295, 28497, 1155, 353, 8840, 836, 8, 341, 32917, 11, 274, 1669, 5155, 5283, 1155, 340, 16867, 2915, 368, 341, 197, 1903, 18872, 741, 197, 743, 1848, 1669, 4534, 10421, 2129, 1848, 961, 2092, 341, 298, 3244, 6141, 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...
2
func TestDial(t *testing.T) { defer func() func() { temp := hsDialer hsDialer = func(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error) { return &grpc.ClientConn{}, nil } return func() { hsDialer = temp } }() // Ensure that hsConn is nil at first. hsConn = nil // First call to Dial...
explode_data.jsonl/80624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 404 }
[ 2830, 3393, 35, 530, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 2915, 368, 341, 197, 16280, 1669, 32220, 35, 530, 261, 198, 197, 81692, 35, 530, 261, 284, 2915, 8637, 914, 11, 12185, 2503, 56585, 98462, 5341, 8, 4609, 56585, 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 TestRESTClientPodCPUEmptyMetricsForOnePod(t *testing.T) { targetTimestamp := 1 window := 30 * time.Second tc := restClientTestCase{ resourceName: v1.ResourceCPU, desiredMetricValues: PodMetricsInfo{ "test-pod-0": {Value: 100, Timestamp: offsetTimestampBy(targetTimestamp), Window: window}, "test-pod-1"...
explode_data.jsonl/64907
{ "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, 38307, 2959, 23527, 7123, 2230, 76, 1595, 27328, 2461, 3966, 23527, 1155, 353, 8840, 836, 8, 341, 28861, 20812, 1669, 220, 16, 198, 23545, 1669, 220, 18, 15, 353, 882, 32435, 198, 78255, 1669, 2732, 2959, 16458, 515, 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 TestWalk(t *testing.T) { cases := []struct { Name string Input interface{} ExpectedCalls []string }{ { "Struct with one string field", struct{ Name string }{"Chris"}, []string{"Chris"}, }, { "Struct with two string fields", struct { Name string City string }...
explode_data.jsonl/35088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 778 }
[ 2830, 3393, 48849, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 21297, 688, 914, 198, 197, 66588, 260, 3749, 16094, 197, 197, 18896, 55292, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 197, 1, 9422, 448, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpenParentDiscarderFilter(t *testing.T) { rule := &rules.RuleDefinition{ ID: "test_rule", Expression: `open.filename =~ "/usr/bin" && open.flags & (O_CREAT | O_SYNC) > 0`, } test, err := newTestModule(nil, []*rules.RuleDefinition{rule}, testOpts{wantProbeEvents: true}) if err != nil { t.Fata...
explode_data.jsonl/61816
{ "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, 5002, 8387, 23477, 567, 261, 5632, 1155, 353, 8840, 836, 8, 341, 7000, 1111, 1669, 609, 21977, 63961, 10398, 515, 197, 29580, 25, 260, 330, 1944, 21124, 756, 197, 197, 9595, 25, 1565, 2508, 30882, 20495, 3521, 7063, 8749, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGlobalHeadersSetInRequest(t *testing.T) { ts := httptest.NewServer( http.HandlerFunc( func(w http.ResponseWriter, r *http.Request) { if strings.HasSuffix(r.URL.Path, "/v2") { apiResourcesHandler(w, r) } else { if r.Header.Get("Authorization") != "Bearer testtoken" { t.Errorf("Expe...
explode_data.jsonl/64675
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 564 }
[ 2830, 3393, 11646, 10574, 1649, 641, 1900, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 1006, 197, 28080, 89164, 1006, 298, 29244, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 571, 743, 9069, 16152, 40177...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBindUnmarshalTypeError(t *testing.T) { body := bytes.NewBufferString(`{ "id": "text" }`) e := New() req := httptest.NewRequest(http.MethodPost, "/", body) req.Header.Set(HeaderContentType, MIMEApplicationJSON) rec := httptest.NewRecorder() c := e.NewContext(req, rec) u := new(user) err := c.Bind(u) ...
explode_data.jsonl/72328
{ "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, 9950, 1806, 27121, 80076, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 5820, 7121, 4095, 703, 5809, 90, 330, 307, 788, 330, 1318, 1, 335, 24183, 7727, 1669, 1532, 741, 24395, 1669, 54320, 70334, 75274, 19886, 20798, 4133, 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 TestReconcile(t *testing.T) { adapterCfg := &adapterConfig{ Image: "registry/image:tag", obsConfig: &source.EmptyVarsGenerator{}, } ctor := reconcilerCtor(adapterCfg) trg := newTarget() ab := adapterBuilder(adapterCfg) TestReconcileAdapter(t, ctor, trg, ab) }
explode_data.jsonl/50274
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 693, 40446, 457, 1155, 353, 8840, 836, 8, 341, 197, 19731, 42467, 1669, 609, 19731, 2648, 515, 197, 53397, 25, 257, 330, 29172, 23349, 25, 4578, 756, 197, 197, 5481, 2648, 25, 609, 2427, 11180, 28305, 12561, 38837, 197, 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 TestCPUInstrs(t *testing.T) { roms := []struct { until uint16 path string }{ {0xC7D2, "./tests/cpu_instrs/individual/01-special.gb"}, {0xC7F4, "./tests/cpu_instrs/individual/02-interrupts.gb"}, {0xCB44, "./tests/cpu_instrs/individual/03-op sp,hl.gb"}, {0xCB35, "./tests/cpu_instrs/individual/04-op r,...
explode_data.jsonl/57733
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 469 }
[ 2830, 3393, 31615, 74375, 82, 1155, 353, 8840, 836, 8, 341, 197, 441, 82, 1669, 3056, 1235, 341, 197, 20479, 1646, 2622, 16, 21, 198, 197, 26781, 220, 914, 198, 197, 59403, 197, 197, 90, 15, 12125, 22, 35, 17, 11, 5924, 23841, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSign(t *testing.T) { key, _ := HexToECDSA(testPrivHex) addr := common.HexToAddress(testAddrHex) msg := Keccak256([]byte("foo")) sig, err := Sign(msg, key) if err != nil { t.Errorf("Sign error: %s", err) } recoveredPub, err := Ecrecover(msg, sig) if err != nil { t.Errorf("ECRecover error: %s", err)...
explode_data.jsonl/3758
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 7264, 1155, 353, 8840, 836, 8, 341, 23634, 11, 716, 1669, 27228, 1249, 7498, 72638, 8623, 32124, 20335, 340, 53183, 1669, 4185, 91538, 1249, 4286, 8623, 13986, 20335, 692, 21169, 1669, 6569, 84262, 17, 20, 21, 10556, 3782, 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...
6
func TestTransactionService_GetTransaction_TransferTransaction(t *testing.T) { mockServer.AddRouter(&mock.Router{ Path: fmt.Sprintf("/transaction/%s", transactionId), RespBody: transactionJson, }) cl := mockServer.getTestNetClientUnsafe() tx, err := cl.Transaction.GetTransaction(context.Background(), tran...
explode_data.jsonl/69183
{ "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, 8070, 1860, 13614, 8070, 34932, 802, 8070, 1155, 353, 8840, 836, 8, 341, 77333, 5475, 1904, 9523, 2099, 16712, 31413, 515, 197, 69640, 25, 257, 8879, 17305, 4283, 13528, 12627, 82, 497, 7745, 764, 1326, 197, 197, 36555, 5444...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEventRecordsRaw_Decode_FailsFirstNotPhase(t *testing.T) { e := EventRecordsRaw(MustHexDecodeString("0x0400020000000302d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48266d00000000000000000000000000000010a5d4e80000000000000000000000...
explode_data.jsonl/68329
{ "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, 1556, 25876, 20015, 78668, 534, 1400, 6209, 5338, 2623, 30733, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 3665, 25876, 20015, 3189, 590, 20335, 32564, 703, 445, 15, 87, 15, 19, 15, 15, 15, 17, 15, 15, 15, 15, 15, 15, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPostgreSQL_Initialize(t *testing.T) { cleanup, connURL := preparePostgresTestContainer(t) defer cleanup() connectionDetails := map[string]interface{}{ "connection_url": connURL, } dbRaw, _ := New() db := dbRaw.(*PostgreSQL) connProducer := db.ConnectionProducer.(*connutil.SQLConnectionProducer) e...
explode_data.jsonl/45464
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 4133, 59796, 62, 9928, 1155, 353, 8840, 836, 8, 341, 1444, 60639, 11, 4534, 3144, 1669, 10549, 4133, 17818, 2271, 4502, 1155, 340, 16867, 21290, 2822, 54590, 7799, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 7742, 2903, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestCancelOpenOrders(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip("skipping test, either api keys or manipulaterealorders isnt set correctly") } temp := []string{BTCAUD, LTCAUD} _, err := b.CancelAllOpenOrdersByPairs(temp) if err != nil { t.Error(err) } temp...
explode_data.jsonl/33154
{ "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, 9269, 5002, 24898, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 1369, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 11, 2987, 6330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollectUnused(t *testing.T) { t.Parallel() inputs := []struct { text string names []string }{ { text: ` s0 { f0 string } `, names: []string{"s0"}, }, { text: ` foo$0(a ptr[in, s0]) s0 { f0 int8 f1 int16 } `, names: []string{}, }, { text:...
explode_data.jsonl/53125
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 619 }
[ 2830, 3393, 47504, 94033, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 22427, 82, 1669, 3056, 1235, 341, 197, 15425, 220, 914, 198, 197, 93940, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 15425, 25, 22074, 571, 1903, 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...
7
func TestDSNParserInvalid(t *testing.T) { var invalidDSNs = []string{ "@net(addr/", // no closing brace "@tcp(/", // no closing brace "tcp(/", // no closing brace "(/", // no closing brace "net(addr)//", ...
explode_data.jsonl/70842
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 5936, 45, 6570, 7928, 1155, 353, 8840, 836, 8, 972, 2405, 8318, 5936, 47360, 284, 3056, 917, 1666, 197, 197, 96270, 4711, 24497, 28105, 1698, 442, 902, 15316, 32864, 319, 197, 197, 96270, 27161, 9921, 497, 2549, 442, 902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateFuncTypecheck(t *testing.T) { tcs := []struct { name string code []byte fnReturn wasm.ValueType err error }{ { name: "voidfunc-i32", fnReturn: noReturn, code: []byte{ operators.I32Const, 0, }, err: InvalidTypeError{noReturn, wasm.ValueTypeI32}, }, { ...
explode_data.jsonl/16564
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1947 }
[ 2830, 3393, 17926, 9626, 929, 2028, 1155, 353, 8840, 836, 8, 341, 3244, 4837, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 43343, 257, 3056, 3782, 198, 197, 40095, 5598, 98263, 6167, 929, 198, 197, 9859, 414, 1465, 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 TestRateLimiter_ReachLimit_AllowedOtherUser(t *testing.T) { // 10 requests per second limit limiter := New(10, time.Second) // a limit of 10 tokens should be allowed on a second for i := 0; i < 10; i++ { date := fmt.Sprintf("2000-01-01T00:00:00.%d00Z", i) mockClock(limiter, date) assert.True(t, limiter...
explode_data.jsonl/74378
{ "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, 11564, 43, 17700, 62, 48368, 16527, 53629, 12817, 11409, 1474, 1155, 353, 8840, 836, 8, 341, 197, 322, 220, 16, 15, 7388, 817, 2086, 3930, 198, 197, 4659, 2015, 1669, 1532, 7, 16, 15, 11, 882, 32435, 692, 197, 322, 264, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestFloat32_String(t *testing.T) { testcases := []struct { name string s Float32 expect string }{ { name: "test Float32 String, s is empty", s: Float32{}, expect: "[]", }, { name: "test Float32 String, s is not empty", s: map[float32]struct{}{1: {}}, expect: "[1...
explode_data.jsonl/60122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 5442, 18, 17, 31777, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 1903, 414, 13001, 18, 17, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 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...
3
func TestEncodeInvalidPayload(t *testing.T) { h := defaultHeader() p := mockIDTokenPayload{"key": func() {}} if s, err := encodeToken(&mockSigner{}, h, p); s != "" || err == nil { t.Errorf("encodeToken() = (%v, %v); want = ('', error)", s, err) } }
explode_data.jsonl/42598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 32535, 7928, 29683, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 1638, 4047, 741, 3223, 1669, 7860, 915, 3323, 29683, 4913, 792, 788, 2915, 368, 4687, 532, 743, 274, 11, 1848, 1669, 16164, 3323, 2099, 16712, 7264, 261, 22655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_urlHostAndPath(t *testing.T) { type args struct { urlString string } tests := []struct { name string args args wantHost string wantPath string wantErr bool }{ {name: "valid", args: args{urlString: "https://my.git.host/scm/group/project.git"}, wantHost: "my.git.host", wantPath:...
explode_data.jsonl/46405
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 2903, 9296, 3036, 1820, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 19320, 703, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 31215, 257, 2827, 198, 197, 50780, 9296, 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...
4
func TestUpdateExifRationals(t *testing.T) { r, err := os.Open("fixtures/walrus.jpg") if err != nil { t.Fatalf("Failed to open test image, %v", err) } defer r.Close() wr := io.Discard fnum, err := PrepareTag("FNumber", "11/1") if err != nil { t.Fatalf("Failed to prepare tag, %v", err) } xres, err :=...
explode_data.jsonl/18064
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 4289, 840, 333, 49, 367, 1127, 1155, 353, 8840, 836, 8, 1476, 7000, 11, 1848, 1669, 2643, 12953, 445, 45247, 6324, 278, 20341, 4819, 5130, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 9408, 311, 1787, 1273, 2168, 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...
5
func TestInitNodeValidatorFiles(t *testing.T) { home, cleanup := testutil.NewTestCaseDir(t) cfg, err := createDefaultTendermintConfig(home) t.Cleanup(cleanup) nodeID, valPubKey, err := genutil.InitializeNodeValidatorFiles(cfg) require.Nil(t, err) require.NotEqual(t, "", nodeID) require.NotEqual(t, 0, len(valPubK...
explode_data.jsonl/58650
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 3803, 1955, 14256, 10809, 1155, 353, 8840, 836, 8, 341, 197, 5117, 11, 21290, 1669, 1273, 1314, 7121, 16458, 6184, 1155, 340, 50286, 11, 1848, 1669, 1855, 3675, 51, 1659, 67791, 2648, 63194, 340, 3244, 727, 60639, 1337, 6063...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseArguments(t *testing.T) { var cmd Command cmd = parseArguments(".") expect.DeepEqual(t, cmd, Command{Directory: "."}) // cmd = parseArguments("--template=javascript", ".") // expect.DeepEqual(t, cmd, Command{Template: "javascript", Directory: "."}) // // cmd = parseArguments("--template=typescrip...
explode_data.jsonl/63318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 14463, 19139, 1155, 353, 8840, 836, 8, 341, 2405, 5439, 7348, 271, 25920, 284, 4715, 19139, 5680, 1138, 24952, 94750, 1155, 11, 5439, 11, 7348, 90, 9310, 25, 22760, 8824, 197, 322, 5439, 284, 4715, 19139, 21549, 4214, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIncompatibleStorageForStreaming(t *testing.T) { jaeger := &v1.Jaeger{ Spec: v1.JaegerSpec{ Strategy: v1.DeploymentStrategyStreaming, Storage: v1.JaegerStorageSpec{ Type: "memory", }, }, } normalize(context.Background(), jaeger) assert.Equal(t, v1.DeploymentStrategyAllInOne, jaeger.Spec.Str...
explode_data.jsonl/21849
{ "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, 641, 34842, 5793, 2461, 76509, 1155, 353, 8840, 836, 8, 341, 197, 5580, 1878, 1669, 609, 85, 16, 3503, 64, 1878, 515, 197, 7568, 992, 25, 348, 16, 3503, 64, 1878, 8327, 515, 298, 197, 19816, 25, 348, 16, 34848, 39130, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFrameMarshalJSON(t *testing.T) { var tests = []struct { Frame want string }{{ initpc, `^"github\.com/marmotedu/errors\.init(\.ializers)? .+/github\.com/marmotedu/errors/stack_test.go:\d+"$`, }, { 0, `^"unknown"$`, }} for i, tt := range tests { got, err := json.Marshal(tt.Frame) if err != n...
explode_data.jsonl/19131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 4369, 55438, 5370, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 197, 4369, 198, 197, 50780, 914, 198, 197, 15170, 515, 197, 28248, 3992, 345, 197, 197, 63, 61, 1, 5204, 18831, 874, 3183, 2178, 925...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseCreateTable(t *testing.T) { sqlFile := filepath.Join(t.TempDir(), "tmp.sql") err := ioutil.WriteFile(sqlFile, []byte("CREATE TABLE `test_user` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `mobile` varchar(255) COLLATE utf8mb4_bin NOT NULL comment '手\\t机 号',\n `class` bigint NOT NULL comment '班级',\n `...
explode_data.jsonl/25574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 568 }
[ 2830, 3393, 14463, 4021, 2556, 1155, 353, 8840, 836, 8, 341, 30633, 1703, 1669, 26054, 22363, 1155, 65009, 6184, 1507, 330, 5173, 10045, 1138, 9859, 1669, 43144, 4073, 1703, 13148, 1703, 11, 3056, 3782, 445, 22599, 14363, 1565, 1944, 3317...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMixed(t *testing.T) { var args struct { Foo string `arg:"-f"` Bar int Baz uint `arg:"positional"` Ham bool Spam float32 } args.Bar = 3 err := parse("123 -spam=1.2 -ham -f xyz", &args) require.NoError(t, err) assert.Equal(t, "xyz", args.Foo) assert.Equal(t, 3, args.Bar) assert.Equal(t, uin...
explode_data.jsonl/12992
{ "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, 86433, 1155, 353, 8840, 836, 8, 341, 2405, 2827, 2036, 341, 197, 12727, 2624, 220, 914, 1565, 858, 86789, 69, 8805, 197, 197, 3428, 220, 526, 198, 197, 12791, 1370, 220, 2622, 1565, 858, 2974, 966, 3005, 8805, 197, 13292, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScenarios(t *testing.T) { suite := NewSuite(t, WithFeaturesPath("features/example.feature")) compiled := regexp.MustCompile(`I add (\d+) and (\d+)`) suite.AddRegexStep(compiled, add) compiled = regexp.MustCompile(`the result should equal (\d+)`) suite.AddRegexStep(compiled, check) suite.Run() }
explode_data.jsonl/69364
{ "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, 3326, 60494, 1155, 353, 8840, 836, 8, 341, 96572, 1669, 1532, 28000, 1155, 11, 3085, 21336, 1820, 445, 20304, 65182, 29591, 5455, 197, 50845, 1669, 41877, 98626, 5809, 40, 912, 19788, 67, 36197, 323, 19788, 67, 36197, 24183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFailedSyncWithRetry(t *testing.T) { Given(t). Path("hook"). When(). PatchFile("hook.yaml", `[{"op": "replace", "path": "/metadata/annotations", "value": {"argocd.argoproj.io/hook": "PreSync"}}]`). // make hook fail PatchFile("hook.yaml", `[{"op": "replace", "path": "/spec/containers/0/command", "val...
explode_data.jsonl/35662
{ "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, 9408, 12154, 2354, 51560, 1155, 353, 8840, 836, 8, 341, 9600, 2071, 1155, 4292, 197, 69640, 445, 20873, 38609, 197, 197, 4498, 25829, 197, 10025, 754, 1703, 445, 20873, 33406, 497, 77644, 4913, 453, 788, 330, 8156, 497, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_TeamLogin(t *testing.T) { // error payload w := httptest.NewRecorder() jsonData, _ := json.Marshal(map[string]interface{}{ "Name": 123123, "Password": "", }) req, _ := http.NewRequest("POST", "/api/login", bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", managerToken) router.ServeHTTP...
explode_data.jsonl/77162
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 740 }
[ 2830, 3393, 1139, 14580, 6231, 1155, 353, 8840, 836, 8, 341, 197, 322, 1465, 7729, 198, 6692, 1669, 54320, 70334, 7121, 47023, 741, 30847, 1043, 11, 716, 1669, 2951, 37271, 9147, 14032, 31344, 67066, 197, 197, 1, 675, 788, 257, 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...
1
func TestMemoryPressureCondition(t *testing.T) { now := time.Now() before := now.Add(-time.Second) nowFunc := func() time.Time { return now } cases := []struct { desc string node *v1.Node pressure bool expectConditions []v1.NodeCondition expectEvents []testEvent }{ ...
explode_data.jsonl/31858
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1545 }
[ 2830, 3393, 10642, 68269, 10547, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 882, 13244, 741, 63234, 1669, 1431, 1904, 4080, 1678, 32435, 340, 80922, 9626, 1669, 2915, 368, 882, 16299, 314, 470, 1431, 555, 1444, 2264, 1669, 3056, 1235, 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 TestExecutorDisconnect(t *testing.T) { mockDriver := &MockExecutorDriver{} executor := NewTestKubernetesExecutor() executor.Init(mockDriver) executor.Registered(mockDriver, nil, nil, nil) executor.Disconnected(mockDriver) assert.Equal(t, false, executor.isConnected(), "executor should not be connected af...
explode_data.jsonl/59740
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 25255, 60651, 1155, 353, 8840, 836, 8, 341, 77333, 11349, 1669, 609, 11571, 25255, 11349, 16094, 67328, 4831, 1669, 1532, 2271, 42, 29827, 25255, 2822, 67328, 4831, 26849, 30389, 11349, 340, 67328, 4831, 19983, 291, 30389, 11349...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseIPPortIPv6(t *testing.T) { ip := net.ParseIP("dead:beef::1") port := uint16(8080) gotIP, gotPort, err := parseIPPort("DEADBEEF000000000000000000000001:1F90") if err != nil { t.Fatal(err) } if !(gotIP.Equal(ip) && port == gotPort) { t.Errorf("want %s:%d, have %s:%d", ip, port, gotIP, gotPort) }...
explode_data.jsonl/52485
{ "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, 14463, 3298, 7084, 58056, 21, 1155, 353, 8840, 836, 8, 341, 46531, 1669, 4179, 8937, 3298, 445, 33754, 25, 1371, 823, 486, 16, 1138, 52257, 1669, 2622, 16, 21, 7, 23, 15, 23, 15, 692, 3174, 354, 3298, 11, 2684, 7084, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlow_Apply(tt *testing.T) { tests := []struct { name string flow Flow s []byte want []byte }{ { name: "base", flow: NewFlow(NewChain(bytes.ToLower, bytes.Title)), s: []byte("hEllO, WoRld\nI aM aWare"), want: []byte("Hello, World\nI Am Aware"), }, { name: "shortcut flow", ...
explode_data.jsonl/75648
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 298 }
[ 2830, 3393, 18878, 36117, 398, 47152, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 1166, 10303, 22452, 198, 197, 1903, 262, 3056, 3782, 198, 197, 50780, 3056, 3782, 198, 197, 59403, 197, 197, 515, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStoreSetRangesMaxBytes(t *testing.T) { defer leaktest.AfterTest(t) store, _, stopper := createTestStore(t) defer stopper.Stop() testData := []struct { rng *Replica expMaxBytes int64 }{ {store.LookupReplica(roachpb.RKeyMin, nil), config.DefaultZoneConfig.RangeMaxBytes}, {splitTestRange(...
explode_data.jsonl/44476
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 483 }
[ 2830, 3393, 6093, 1649, 74902, 5974, 7078, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 340, 57279, 11, 8358, 2936, 712, 1669, 1855, 2271, 6093, 1155, 340, 16867, 2936, 712, 30213, 2822, 18185, 1043, 1669, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReflect_string(t *testing.T) { var expected, actual string = "howdy", "" b := make([]byte, 6) lex.PutString(b, expected) lex.Reflect(b, &actual) assert.Equal(t, expected, actual) }
explode_data.jsonl/50150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 72789, 3904, 1155, 353, 8840, 836, 8, 341, 2405, 3601, 11, 5042, 914, 284, 330, 5158, 10258, 497, 35829, 2233, 1669, 1281, 10556, 3782, 11, 220, 21, 340, 197, 2571, 39825, 703, 1883, 11, 3601, 692, 197, 2571, 18369, 767, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInboxTlfFinalize(t *testing.T) { _, inbox, _ := setupInboxTest(t, "basic") // Create an inbox with a bunch of convos, merge it and read it back out numConvs := 10 var convs []types.RemoteConversation for i := numConvs - 1; i >= 0; i-- { convs = append(convs, makeConvo(gregor1.Time(i), 1, 1)) } conv...
explode_data.jsonl/16808
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 419 }
[ 2830, 3393, 641, 2011, 51, 11008, 19357, 551, 1155, 353, 8840, 836, 8, 1476, 197, 6878, 22883, 11, 716, 1669, 6505, 641, 2011, 2271, 1155, 11, 330, 22342, 5130, 197, 322, 4230, 458, 22883, 448, 264, 15493, 315, 5686, 436, 11, 10880, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartChildSpan(t *testing.T) { tr := NewTracer() sp1 := tr.StartSpan("parent", Recordable) StartRecording(sp1, SingleNodeRecording) sp2 := StartChildSpan("child", sp1, nil /* logTags */, false /*separateRecording*/) sp2.Finish() sp1.Finish() if err := TestingCheckRecordedSpans(GetRecording(sp1), ` spa...
explode_data.jsonl/51598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 3479, 3652, 12485, 1155, 353, 8840, 836, 8, 341, 25583, 1669, 1532, 1282, 9584, 741, 41378, 16, 1669, 489, 12101, 12485, 445, 3765, 497, 13583, 480, 340, 65999, 52856, 22580, 16, 11, 11327, 1955, 52856, 340, 41378, 17, 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...
5
func TestHelperProcess(t *testing.T) { if os.Getenv("GO_WANT_HELPER_PROCESS") != "1" { return } fmt.Fprintf(os.Stdout, "fake result") os.Exit(0) }
explode_data.jsonl/14805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 5511, 7423, 1155, 353, 8840, 836, 8, 341, 743, 2643, 64883, 445, 15513, 2763, 2821, 85331, 36199, 899, 961, 330, 16, 1, 341, 197, 853, 198, 197, 532, 11009, 59559, 9638, 83225, 11, 330, 30570, 1102, 1138, 25078, 34358, 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 ]
2
func TestAccKeycloakAttributeToRoleIdentityProviderMapper_basic(t *testing.T) { t.Parallel() mapperName := acctest.RandomWithPrefix("tf-acc") alias := acctest.RandomWithPrefix("tf-acc") role := acctest.RandomWithPrefix("tf-acc") claimName := acctest.RandomWithPrefix("tf-acc") claimValue := acctest.RandomWithPrefi...
explode_data.jsonl/33575
{ "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, 14603, 1592, 88751, 3907, 1249, 9030, 18558, 5179, 10989, 34729, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2109, 3106, 675, 1669, 1613, 67880, 26709, 2354, 14335, 445, 8935, 12, 4475, 1138, 197, 14956, 1669, 1613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNew(t *testing.T) { tests := []struct { name string args []string envVars map[string]string expectedNamespace string }{ { name: "default", args: nil, envVars: nil, expectedNamespace: defaultOSMNamespace, }, { ...
explode_data.jsonl/48268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 776 }
[ 2830, 3393, 3564, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 1060, 914, 198, 197, 31215, 1060, 3056, 917, 198, 197, 57538, 28305, 1843, 2415, 14032, 30953, 198, 197, 42400, 22699, 914, 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...
2
func TestGetVerKey(t *testing.T) { k := newKMS(t, mockstorage.NewMockStoreProvider()) ctx := &context{ kms: k, keyType: kms.ED25519Type, keyAgreementType: kms.X25519ECDHKWType, mediaTypeProfiles: []string{transport.MediaTypeRFC0019EncryptedEnvelope}, } _, encKey := newSigningAndEnc...
explode_data.jsonl/2111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2036 }
[ 2830, 3393, 1949, 10141, 1592, 1155, 353, 8840, 836, 8, 341, 16463, 1669, 501, 42, 4826, 1155, 11, 7860, 16172, 7121, 11571, 6093, 5179, 2398, 20985, 1669, 609, 2147, 515, 197, 16463, 1011, 25, 2290, 595, 345, 197, 23634, 929, 25, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMigrateFromVersion7(t *testing.T) { sourceStore := v7datas.NewDatabase(v7chunks.NewMemoryStore()) sinkStore := datas.NewDatabase(chunks.NewMemoryStore()) test := func(expected types.Value, source v7types.Value) { actual, err := MigrateFromVersion7(source, sourceStore, sinkStore) assert.NoError(t, err) ...
explode_data.jsonl/73964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1958 }
[ 2830, 3393, 44, 34479, 3830, 5637, 22, 1155, 353, 8840, 836, 8, 341, 47418, 6093, 1669, 348, 22, 27240, 7121, 5988, 3747, 22, 84263, 7121, 10642, 6093, 2398, 1903, 766, 6093, 1669, 16879, 7121, 5988, 7520, 15296, 7121, 10642, 6093, 1236...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMainAndExtPolicyCompilerReversed(t *testing.T) { policyDecision := policyCompilerMainAndExtReversed("fraud-detection") mainPMpolicies := tu.GetMainPMDecisions("fraud-detection") extPMpolicies := tu.GetExtPMDecisions("fraud-detection") tu.CheckPolicies(t, policyDecision, mainPMpolicies, extPMpolicies) pol...
explode_data.jsonl/42362
{ "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, 6202, 3036, 6756, 13825, 38406, 693, 43776, 1155, 353, 8840, 836, 8, 341, 3223, 8018, 74846, 1669, 4842, 38406, 6202, 3036, 6756, 693, 43776, 445, 42289, 661, 1737, 22280, 1138, 36641, 8795, 79, 42038, 1669, 9765, 2234, 6202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateChain(t *testing.T) { fakeCARoots := NewPEMCertPool() if !fakeCARoots.AppendCertsFromPEM([]byte(testonly.FakeCACertPEM)) { t.Fatal("failed to load fake root") } if !fakeCARoots.AppendCertsFromPEM([]byte(testonly.FakeRootCACertPEM)) { t.Fatal("failed to load fake root") } if !fakeCARoots.Appen...
explode_data.jsonl/13639
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2145 }
[ 2830, 3393, 17926, 18837, 1155, 353, 8840, 836, 8, 341, 1166, 726, 36390, 1905, 82, 1669, 1532, 1740, 11604, 529, 10551, 741, 743, 753, 30570, 36390, 1905, 82, 8982, 34, 15546, 3830, 1740, 44, 10556, 3782, 8623, 3243, 991, 726, 92832, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateEtcdEncryptionKey(t *testing.T) { key1 := generateEtcdEncryptionKey() key2 := generateEtcdEncryptionKey() if key1 == key2 { t.Fatalf("generateEtcdEncryptionKey should return a unique key each time, instead returned identical %s and %s", key1, key2) } for _, val := range []string{key1, key2} { ...
explode_data.jsonl/33871
{ "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, 31115, 31860, 4385, 79239, 1592, 1155, 353, 8840, 836, 8, 341, 23634, 16, 1669, 6923, 31860, 4385, 79239, 1592, 741, 23634, 17, 1669, 6923, 31860, 4385, 79239, 1592, 741, 743, 1376, 16, 621, 1376, 17, 341, 197, 3244, 30762, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewCephDaemonResources(t *testing.T) { cases := []struct { name string spec *api.StorageCluster expected map[string]corev1.ResourceRequirements }{ { name: "When nothing is passed to StorageCluster.Spec.Resources (Defaults)", spec: &api.StorageCluster{ Spec: api.StorageClusterSpec{ ...
explode_data.jsonl/16370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1603 }
[ 2830, 3393, 3564, 34, 23544, 89177, 11277, 1155, 353, 8840, 836, 8, 1476, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 98100, 257, 353, 2068, 43771, 28678, 198, 197, 42400, 2415, 14032, 60, 98645, 16, 20766, 59202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDownloadMultiList(t *testing.T) { var ( l = []string{ "https://raw.githubusercontent.com/NVIDIA/aistore/master/README.md", "https://raw.githubusercontent.com/kubernetes/kubernetes/master/LICENSE?query=values", } expectedObjs = []string{"LICENSE", "README.md"} proxyURL = tutils.RandomProxyURL...
explode_data.jsonl/70380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 339 }
[ 2830, 3393, 11377, 20358, 852, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 8810, 284, 3056, 917, 515, 298, 197, 57557, 1110, 1041, 50927, 905, 20290, 29352, 14186, 380, 460, 23303, 14, 54675, 21324, 756, 298, 197, 57557, 1110, 1041, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDB_e2e(t *testing.T) { const ( numDatapoints = 1000 numRanges = 1000 timeInterval = int64(3) ) // Create 8 series with 1000 data-points of different ranges and run queries. lbls := [][]labels.Label{ { {Name: "a", Value: "b"}, {Name: "instance", Value: "localhost:9090"}, {Name: "job", ...
explode_data.jsonl/64372
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1617 }
[ 2830, 3393, 3506, 2204, 17, 68, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 22431, 45696, 391, 14399, 284, 220, 16, 15, 15, 15, 198, 197, 22431, 74902, 257, 284, 220, 16, 15, 15, 15, 198, 197, 21957, 10256, 220, 284, 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...
1
func TestJournal(t *testing.T) { if testing.Short() { t.Skip() } execStatements(t, []string{ "create table _vt.resharding_journal(id int, db_name varchar(128), val blob, primary key(id))", }) defer execStatements(t, []string{ "drop table _vt.resharding_journal", }) engine.se.Reload(context.Background()) ...
explode_data.jsonl/10424
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 438 }
[ 2830, 3393, 43494, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 741, 197, 630, 67328, 93122, 1155, 11, 3056, 917, 515, 197, 197, 1, 3182, 1965, 716, 9708, 13, 2488, 28410, 85075, 3724, 526, 11, 2927, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeylevelValidationPolicyRetrievalFailure(t *testing.T) { t.Parallel() // Scenario: we validate a transaction that updates // the key-level validation parameters for a key. // we simulate the case where we fail to retrieve // the validation parameters from the ledger. mr := &mockState{GetStateMetadataEr...
explode_data.jsonl/80489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 6608, 967, 889, 13799, 13825, 12020, 7231, 831, 17507, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 58663, 25, 582, 9593, 264, 7745, 429, 8837, 198, 197, 322, 279, 1376, 11591, 10519, 5029, 369, 264, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReadASN1(t *testing.T) { for _, test := range readASN1TestData { t.Run(test.name, func(t *testing.T) { var in, out String = test.in, nil ok := in.ReadASN1(&out, test.tag) if ok != test.ok || ok && !bytes.Equal(out, test.out.([]byte)) { t.Errorf("in.ReadASN1() = %v, want %v; out = %v, want %v", ...
explode_data.jsonl/16720
{ "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, 4418, 68134, 16, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 1349, 68134, 16, 83920, 341, 197, 3244, 16708, 8623, 2644, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 2405, 304, 11, 700, 923, 284, 1273, 185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListCDSVolume(t *testing.T) { queryArgs := &ListCDSVolumeArgs{ MaxKeys: 100, InstanceId: "InstanceId", Marker: "VolumeId", ZoneName: "zoneName", } if res, err := BBC_CLIENT.ListCDSVolume(queryArgs); err != nil { fmt.Println("list volume failed: ", err) } else { fmt.Println("list volume...
explode_data.jsonl/4093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 852, 34, 5936, 18902, 1155, 353, 8840, 836, 8, 341, 27274, 4117, 1669, 609, 852, 34, 5936, 18902, 4117, 515, 197, 197, 5974, 8850, 25, 262, 220, 16, 15, 15, 345, 197, 197, 65918, 25, 330, 65918, 756, 197, 197, 20613, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetSetClearMapFields_ValueTypes(t *testing.T) { fd, err := desc.LoadFileDescriptor("desc_test_field_types.proto") testutil.Ok(t, err) md := fd.FindSymbol("testprotos.MapValFields").(*desc.MessageDescriptor) dm := NewMessage(md) inputs := map[reflect.Kind]interface{}{ reflect.Bool: true, reflect.In...
explode_data.jsonl/40955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2091 }
[ 2830, 3393, 1949, 1649, 14008, 2227, 8941, 27867, 4173, 1155, 353, 8840, 836, 8, 341, 61721, 11, 1848, 1669, 6560, 13969, 1703, 11709, 445, 8614, 4452, 5013, 9763, 57322, 1138, 18185, 1314, 54282, 1155, 11, 1848, 340, 84374, 1669, 12414, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDrawWhenArriveAtTheSameCell(t *testing.T) { b := cleanBoard() b.Grid[6][8] = P1Head b.Grid[8][8] = P2Head w, _ := b.Advance() assert.Equal(t, w, (Winner)(Draw)) assert.Equal(t, b.Grid[7][8], (Cell)(Crash)) }
explode_data.jsonl/7803
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 8137, 4498, 8838, 533, 1655, 785, 19198, 3599, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 4240, 11932, 741, 2233, 18578, 58, 21, 1457, 23, 60, 284, 393, 16, 12346, 198, 2233, 18578, 58, 23, 1457, 23, 60, 284, 393, 17, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSqlmapper(t *testing.T) { t.Log("====>TestSqlmapper") var db *sql.DB // db = GetDB() // get db in your own way if db == nil { t.Log("db is nil.") return } ctx := context.Background() // test Query row0, _ := QueryByKey(ctx, nil, db, "key001") rowArr1, _ := QueryByFieldOne(ctx, nil, db, "one") r...
explode_data.jsonl/58907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 417 }
[ 2830, 3393, 8269, 38076, 1155, 353, 8840, 836, 8, 341, 3244, 5247, 445, 605, 29, 2271, 8269, 38076, 5130, 2405, 2927, 353, 3544, 22537, 198, 197, 322, 2927, 284, 2126, 3506, 368, 442, 633, 2927, 304, 697, 1828, 1616, 198, 743, 2927, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScanWithNilArguments(t *testing.T) { session := createSession(t) defer session.Close() if err := createTable(session, `CREATE TABLE gocql_test.scan_with_nil_arguments ( foo varchar, bar int, PRIMARY KEY (foo, bar) )`); err != nil { t.Fatal("create:", err) } for i := 1; i <= 20; i++ { if...
explode_data.jsonl/11151
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 26570, 2354, 19064, 19139, 1155, 353, 8840, 836, 8, 341, 25054, 1669, 1855, 5283, 1155, 340, 16867, 3797, 10421, 2822, 743, 1848, 1669, 1855, 2556, 16264, 11, 1565, 22599, 14363, 342, 509, 1470, 4452, 47949, 6615, 36175, 43433...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStrOpsTextJustify_ParseString_06(t *testing.T) { testStr := "left" txtJustify, err := TextJustify(0).XParseString( testStr, false) if err != nil { t.Errorf("Error returned by TextJustify(0).ParseString(testStr, true).\n"+ "Error='%v'\n", err.Error()) return } if txtJustify != TxtJustify.Le...
explode_data.jsonl/29330
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 2580, 38904, 1178, 9952, 1437, 77337, 703, 62, 15, 21, 1155, 353, 8840, 836, 8, 1476, 18185, 2580, 1669, 330, 2359, 1837, 68272, 9952, 1437, 345, 197, 9859, 1669, 2918, 9952, 1437, 7, 15, 568, 55, 14463, 703, 1006, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestFlushOrdered(t *testing.T) { maxHeap := NewFloatHeap(true, 3) maxHeap.Push(0.1, 0) maxHeap.Push(1.1, 1) maxHeap.Push(2.1, 2) maxHeap.Push(3.1, 3) actualMax := maxHeap.OrderedFlush() assert.Equal(t, []ValueIndexPair{ {Val: 3.1, Index: 3}, {Val: 2.1, Index: 2}, {Val: 1.1, Index: 1}, }, actualMax...
explode_data.jsonl/68389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 346 }
[ 2830, 3393, 46874, 54384, 1155, 353, 8840, 836, 8, 341, 22543, 27909, 1669, 1532, 5442, 27909, 3715, 11, 220, 18, 692, 22543, 27909, 34981, 7, 15, 13, 16, 11, 220, 15, 340, 22543, 27909, 34981, 7, 16, 13, 16, 11, 220, 16, 340, 225...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUseCustomConfigDir(t *testing.T) { err := Listen(Options{ ConfigDir: os.TempDir(), ShutdownCleanup: true, }) if err != nil { t.Fatal(err) } Close() }
explode_data.jsonl/16613
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 10253, 10268, 2648, 6184, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 32149, 7, 3798, 515, 197, 66156, 6184, 25, 981, 2643, 65009, 6184, 3148, 197, 197, 62004, 67335, 25, 830, 345, 197, 3518, 743, 1848, 961, 2092, 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 ]
2
func TestMarshalUnmarshal(t *testing.T) { assert := assert.New(t) e := ce.Event{ Context: ce.EventContextV03{ Type: "type", ID: "id", Source: *types.ParseURLRef("source"), }.AsV03(), } assert.NoError(e.SetData("foo")) b, err := format.Marshal(format.JSON.MediaType(), e) assert.NoError(err) ass...
explode_data.jsonl/37864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 55438, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 7727, 1669, 3761, 6904, 515, 197, 70871, 25, 3761, 6904, 1972, 53, 15, 18, 515, 298, 27725, 25, 256, 330, 1313, 756, 298, 29580, 25, 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 TestContext2Plan_invalidOutput(t *testing.T) { m := testModuleInline(t, map[string]string{ "main.tf": ` data "aws_data_source" "name" {} output "out" { value = "${data.aws_data_source.name.missing}" }`, }) p := testProvider("aws") ctx := testContext2(t, &ContextOpts{ Config: m, ProviderResolver: prov...
explode_data.jsonl/28726
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 1972, 17, 20485, 31433, 5097, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 25324, 1155, 11, 2415, 14032, 30953, 515, 197, 197, 1, 3817, 68994, 788, 22074, 691, 330, 8635, 1769, 10347, 1, 330, 606, 1, 10086, 3006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_fetchAndImportIcon(t *testing.T) { r := &models.RepoInternal{Name: "test", Namespace: "repo-namespace"} t.Run("no icon", func(t *testing.T) { m := &mock.Mock{} c := models.Chart{ID: "test/acs-engine-autoscaler"} manager := getMockManager(m) fImporter := fileImporter{manager} assert.NoErr(t, fImpor...
explode_data.jsonl/67809
{ "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, 11803, 3036, 11511, 4395, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 6507, 2817, 5368, 11569, 63121, 25, 330, 1944, 497, 41962, 25, 330, 23476, 12, 2231, 16707, 3244, 16708, 445, 2152, 4603, 497, 2915, 1155, 353, 8840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserService_Delete(t *testing.T) { client := newTestClient(t) us := NewUserService(func(context.Context, string) (*ent.Client, error) { return client, nil }) ctx := authz.NewContext(context.Background(), authz.AdminPermissions()) u := client.User.Create().SetAuthID("YYY").SaveX(ctx) require.Equal(t, user....
explode_data.jsonl/70875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 305 }
[ 2830, 3393, 60004, 57418, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 501, 2271, 2959, 1155, 340, 70175, 1669, 1532, 60004, 18552, 5378, 9328, 11, 914, 8, 4609, 306, 11716, 11, 1465, 8, 314, 470, 2943, 11, 2092, 2751, 20985, 1669, 4166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_filterStoreItem_Found(t *testing.T) { items := []v2.StoreFunction{ v2.StoreFunction{ Name: "figlet", }, } wantName := "figlet" got, gotErr := filterStoreItem(items, wantName) if gotErr != nil { t.Errorf("got error %s", gotErr) t.Fail() } if got.Name != wantName { t.Errorf("name got: %s,...
explode_data.jsonl/72184
{ "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, 8727, 6093, 1234, 1400, 795, 1155, 353, 8840, 836, 8, 1476, 46413, 1669, 3056, 85, 17, 38047, 5152, 515, 197, 5195, 17, 38047, 5152, 515, 298, 21297, 25, 330, 904, 1149, 756, 197, 197, 1583, 197, 532, 50780, 675, 1669, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestStoreHostPort(t *testing.T) { opts := map[string]interface{}{} StoreHostPort("istio-pilot", "15005", "foo", opts) actual, ok := opts["foo"] if !ok { t.Fatalf("expected to have map entry foo populated") } expected := "{\"address\": \"istio-pilot\", \"port_value\": 15005}" if actual != expected { t.Er...
explode_data.jsonl/35254
{ "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, 6093, 9296, 7084, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 2415, 14032, 31344, 6257, 16094, 197, 6093, 9296, 7084, 445, 380, 815, 2268, 23958, 497, 330, 16, 20, 15, 15, 20, 497, 330, 7975, 497, 12185, 340, 88814, 11, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInsertShardedOwned(t *testing.T) { invschema := &vschemapb.SrvVSchema{ Keyspaces: map[string]*vschemapb.Keyspace{ "sharded": { Sharded: true, Vindexes: map[string]*vschemapb.Vindex{ "hash": { Type: "hash", }, "twocol": { Type: "lookup", Params: map[string]string{ ...
explode_data.jsonl/55989
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2293 }
[ 2830, 3393, 13780, 2016, 20958, 57641, 1155, 353, 8840, 836, 8, 341, 17430, 11562, 3416, 1669, 609, 11562, 2407, 391, 65, 808, 10553, 53, 8632, 515, 197, 197, 8850, 27338, 25, 2415, 14032, 8465, 11562, 2407, 391, 65, 37863, 1306, 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...
3
func TestFuncBackedValidator(t *testing.T) { scheme := runtime.NewScheme() install.Install(scheme) log := klogr.New() c := NewFuncBackedValidator(log, scheme, map[schema.GroupKind]Validator{ {Group: testgroup.GroupName, Kind: "TestType"}: ValidatorFunc(&v1.TestType{}, validation.ValidateTestType, validation.Vali...
explode_data.jsonl/9630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1315 }
[ 2830, 3393, 9626, 3707, 291, 14256, 1155, 353, 8840, 836, 8, 341, 1903, 8058, 1669, 15592, 7121, 28906, 741, 197, 12248, 71207, 541, 1141, 8058, 692, 6725, 1669, 595, 839, 81, 7121, 741, 1444, 1669, 1532, 9626, 3707, 291, 14256, 12531, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultipleResultSets(t *testing.T) { runTests(t, dsn, func(dbt *DBTest) { // Create and seed table dbt.mustExecContext(getContext(), "CREATE TABLE "+dbt.tableName+" (id BIGINT PRIMARY KEY, val VARCHAR) TRANSACTIONAL=false") dbt.mustExecContext(getContext(), "UPSERT INTO "+dbt.tableName+" VALUES (1,'A')"...
explode_data.jsonl/20925
{ "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, 32089, 2077, 30175, 1155, 353, 8840, 836, 8, 1476, 56742, 18200, 1155, 11, 294, 9613, 11, 2915, 9791, 83, 353, 3506, 2271, 8, 341, 197, 197, 322, 4230, 323, 10320, 1965, 198, 197, 20939, 83, 69419, 10216, 1972, 40804, 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...
7
func TestGetOupostIDError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ec2MetadataClient := mock_ec2.NewMockEC2MetadataClient(ctrl) agent := &ecsAgent{ec2MetadataClient: ec2MetadataClient} ec2MetadataClient.EXPECT().OutpostARN().Return("", errors.New("error")) assert.Equal(t, "", agent.ge...
explode_data.jsonl/41593
{ "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, 1949, 46, 454, 535, 915, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 17, 14610, 2959, 1669, 7860, 36844, 17, 7121, 11571, 7498, 17, 1461...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBaseMetricListClose(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() opts := testOptions(ctrl) l, err := newBaseMetricList(testShard, time.Second, nil, nil, nil, opts) require.NoError(t, err) l.RLock() require.False(t, l.closed) l.RUnlock() l.Close() require.True(t, l.closed) ...
explode_data.jsonl/43582
{ "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, 3978, 54310, 852, 7925, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 64734, 1669, 1273, 3798, 62100, 340, 8810, 11, 1848, 1669, 501, 3978, 54310, 852, 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
func TestStoreScanInconsistentResolvesIntents(t *testing.T) { defer leaktest.AfterTest(t)() // This test relies on having a committed Txn record and open intents on // the same Range. This only works with auto-gc turned off; alternatively // the test could move to splitting its underlying Range. defer setTxnAutoGC...
explode_data.jsonl/107
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 860 }
[ 2830, 3393, 6093, 26570, 641, 78399, 1061, 18186, 1072, 805, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 197, 322, 1096, 1273, 33644, 389, 3432, 264, 11163, 39850, 77, 3255, 323, 1787, 93515, 389, 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 TestPeerDistanceHeap_ToAPI(t *testing.T) { rng := rand.New(rand.NewSource(int64(0))) target := id.NewPseudoRandom(rng) cp := NewClosestPeers(target, 8) addresses := cp.ToAPI() assert.Equal(t, cp.Len(), len(addresses)) for _, a := range addresses { assert.True(t, cp.In(id.FromBytes(a.PeerId))) } }
explode_data.jsonl/41122
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 30888, 14778, 27909, 38346, 7082, 1155, 353, 8840, 836, 8, 341, 7000, 968, 1669, 10382, 7121, 37595, 7121, 3608, 1548, 21, 19, 7, 15, 5929, 28861, 1669, 877, 7121, 47, 21952, 13999, 87597, 340, 52018, 1669, 1532, 7925, 267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_LoginPassword(t *testing.T) { checkCredentialsAndSkip(t) client := NewClient(sfURL, DefaultClientID, DefaultAPIVersion, logger.New()) if client == nil { t.Fatal() } // Use token err := client.LoginPassword(sfUser, sfPass, sfToken) if err != nil { t.Fail() } else { log.Infof("%s sessionID...
explode_data.jsonl/27751
{ "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, 2959, 79232, 4876, 1155, 353, 8840, 836, 8, 341, 25157, 27025, 3036, 35134, 1155, 692, 25291, 1669, 1532, 2959, 33804, 3144, 11, 7899, 2959, 915, 11, 7899, 7082, 5637, 11, 5925, 7121, 2398, 743, 2943, 621, 2092, 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 Test_dict_String(t *testing.T) { t.Parallel() tests := []struct { name string d hclDict want string }{ {"nil", nil, ""}, {"Empty dict", hclDict{}, ""}, {"Map", dictFixture, `float=1.23 int=123 list=[1,"two"] listInt=[1,2,3] map{sub1=1 sub2="two"} mapInt{"1"=1 "2"="two"} string="Foo bar"`}, } f...
explode_data.jsonl/60151
{ "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, 5243, 31777, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 2698, 262, 305, 564, 13448, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 4913, 8385, 497, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStandaloneService(t *testing.T) { go serveStandaloneDKV() sleepInSecs(3) dkvSvcAddr := fmt.Sprintf("%s:%d", dkvSvcHost, dkvSvcPort) if client, err := ctl.NewInSecureDKVClient(dkvSvcAddr, ""); err != nil { t.Fatalf("Unable to connect to DKV service at %s. Error: %v", dkvSvcAddr, err) } else { dkvCli = ...
explode_data.jsonl/36842
{ "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, 623, 84112, 1860, 1155, 353, 8840, 836, 8, 341, 30680, 8683, 623, 84112, 18301, 53, 741, 52533, 641, 8430, 82, 7, 18, 340, 2698, 43408, 92766, 13986, 1669, 8879, 17305, 4430, 82, 7533, 67, 497, 40204, 85, 92766, 9296, 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 TestLoadBalancedWebService_StackName(t *testing.T) { testCases := map[string]struct { inSvcName string inEnvName string inAppName string wantedStackName string }{ "valid stack name": { inSvcName: "frontend", inEnvName: "test", inAppName: "phonetool", wantedStackName: "phonetool-test-front...
explode_data.jsonl/20401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 460 }
[ 2830, 3393, 5879, 37889, 4874, 94388, 62, 4336, 675, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 17430, 92766, 675, 914, 198, 197, 17430, 14359, 675, 914, 198, 197, 17430, 87994, 914, 271, 197, 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 TestSpotInstanceActionCheck_NoInstanceActionYet(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ec2MetadataClient := mock_ec2.NewMockEC2MetadataClient(ctrl) ec2Client := mock_ec2.NewMockClient(ctrl) ecsClient := mock_api.NewMockECSClient(ctrl) myARN := "myARN" agent := &ecsAgent{ ec2...
explode_data.jsonl/41612
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 47049, 2523, 2512, 3973, 36989, 2523, 2512, 28074, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 17, 14610, 2959, 1669, 7860, 36844, 17, 7121, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_NewSessionId(t *testing.T) { gtest.C(t, func(t *gtest.T) { id1 := NewSessionId() id2 := NewSessionId() t.AssertNE(id1, id2) t.Assert(len(id1), 32) }) }
explode_data.jsonl/44410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 39582, 5283, 764, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 15710, 16, 1669, 1532, 5283, 764, 741, 197, 15710, 17, 1669, 1532, 5283, 764, 741, 197, 3244, 11711, 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
func TestPackableMultipartByteRanges(t *testing.T) { m1, _ := testArtifacts() m2 := m1.PackableMultipartByteRanges() if len(m2) != 2 { t.Errorf("expected %d got %d", 2, len(m2)) } }
explode_data.jsonl/78453
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 30684, 480, 44, 18204, 7153, 74902, 1155, 353, 8840, 836, 8, 341, 2109, 16, 11, 716, 1669, 1273, 9286, 26401, 741, 2109, 17, 1669, 296, 16, 1069, 473, 480, 44, 18204, 7153, 74902, 741, 743, 2422, 1255, 17, 8, 961, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestConvertVLabsKubernetesConfigProfile(t *testing.T) { tests := map[string]struct { props *vlabs.KubernetesConfig expect *KubernetesConfig }{ "WindowsNodeBinariesURL": { props: &vlabs.KubernetesConfig{ WindowsNodeBinariesURL: "http://test/test.tar.gz", }, expect: &KubernetesConfig{ Windo...
explode_data.jsonl/34631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 497 }
[ 2830, 3393, 12012, 30698, 3435, 42, 29827, 2648, 8526, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 77691, 220, 353, 14536, 3435, 11352, 29827, 2648, 198, 197, 24952, 353, 42, 29827, 2648, 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...
3
func Test_underscore_arrays_4(t *testing.T) { tt(t, func() { test, _ := test_() test(` test("compact", function() { equal(_.compact([0, 1, false, 2, false, 3]).length, 3, 'can trim out all falsy values'); var result = (function(){ return _.compact(arguments).length; })(0, 1, false, 2, false, 3); ...
explode_data.jsonl/68898
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 62, 53933, 68983, 62, 19, 1155, 353, 8840, 836, 8, 972, 3244, 83, 1155, 11, 2915, 368, 972, 197, 18185, 11, 716, 1669, 1273, 62, 18005, 197, 18185, 5809, 319, 220, 1273, 445, 39760, 497, 729, 368, 972, 262, 6144, 27191, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAvatarsURLCaching(t *testing.T) { tc := libkb.SetupTest(t, "TestAvatarsURLCaching", 1) defer tc.Cleanup() clock := clockwork.NewFakeClock() tc.G.SetClock(clock) cb := make(chan struct{}, 5) tc.G.API = newAvatarMockAPI(makeHandler("url", cb)) source := NewURLCachingSource(time.Hour, 10) t.Logf("API ...
explode_data.jsonl/61530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 690 }
[ 2830, 3393, 9865, 43858, 3144, 34, 11829, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 3051, 21310, 39820, 2271, 1155, 11, 330, 2271, 9865, 43858, 3144, 34, 11829, 497, 220, 16, 340, 16867, 17130, 727, 60639, 2822, 84165, 1669, 8866, 1778...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStringReferring(t *testing.T) { str := []byte(`{"A":"0","B":"1"}`) sp := *(**byte)(unsafe.Pointer(&str)) println("malloc *byte ", sp) runtime.SetFinalizer(sp, func(sp *byte){ referred = false println("*byte ", sp, " got free") }) runtime.GC() println("first GC") ...
explode_data.jsonl/6202
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 594 }
[ 2830, 3393, 85098, 14443, 1155, 353, 8840, 836, 8, 341, 262, 607, 1669, 3056, 3782, 5809, 4913, 32, 3252, 15, 2198, 33, 3252, 16, 1, 27085, 262, 978, 1669, 12861, 334, 3782, 2376, 38157, 41275, 2099, 495, 1171, 262, 13751, 445, 16166,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnitGetUserJson(t *testing.T) { s := echo.New() g := s.Group("/api") req := httptest.NewRequest(echo.GET, "/api/users/"+e.testUser.ID, nil) rec := httptest.NewRecorder() userCtrl := &User{} cc := &context.AppContext{ Config: e.config, UserStore: &UserFakeStore{}, } s.Use(middleware.AppContex...
explode_data.jsonl/7156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 4562, 1949, 1474, 5014, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1687, 7121, 741, 3174, 1669, 274, 5407, 4283, 2068, 5130, 24395, 1669, 54320, 70334, 75274, 2026, 958, 17410, 11, 3521, 2068, 19178, 33778, 68, 5958, 1474, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeSnappyHeader(t *testing.T) { r := bytes.NewReader(sampleSnappyInform) out, err := DecodeHeader(r) assert.Nil(t, err, "successful decode should not return any errors") assert.Equal(t, sampleSnappyInformHeader, out, "response should equal sample") }
explode_data.jsonl/38401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 32564, 20720, 11144, 4047, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 5820, 68587, 32968, 20720, 11144, 37891, 340, 13967, 11, 1848, 1669, 50194, 4047, 2601, 340, 6948, 59678, 1155, 11, 1848, 11, 330, 30950, 16895, 1265, 537, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_mrCmd_noArgs(t *testing.T) { repo := copyTestRepo(t) cmd := exec.Command("../lab_bin", "mr") cmd.Dir = repo b, err := cmd.CombinedOutput() if err != nil { t.Log(string(b)) t.Fatal(err) } require.Contains(t, string(b), `Usage: lab mr [flags] lab mr [command]`) }
explode_data.jsonl/44430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 92858, 15613, 6536, 4117, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 2975, 2271, 25243, 1155, 340, 25920, 1669, 3883, 12714, 17409, 14380, 21816, 497, 330, 20946, 1138, 25920, 83757, 284, 15867, 271, 2233, 11, 1848, 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...
2
func TestGetLiferayHomeRelease7_1M1(t *testing.T) { release := Release{Tag: "7.1-ce-m1-tomcat-hsql"} assert := assert.New(t) assert.Equal("/liferay", release.GetLiferayHome()) }
explode_data.jsonl/11701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 1949, 43, 33204, 7623, 16077, 22, 62, 16, 44, 16, 1155, 353, 8840, 836, 8, 341, 17200, 1623, 1669, 17381, 90, 5668, 25, 330, 22, 13, 16, 53212, 1448, 16, 2385, 316, 4616, 2832, 3544, 63159, 6948, 1669, 2060, 7121, 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