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 TestListAllRules(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleRuleListSuccessfully(t) allPages, err := l7policies.ListRules(fake.ServiceClient(), "8a1412f0-4c32-4257-8b07-af4770b604fd", l7policies.ListRulesOpts{}).AllPages() th.AssertNoErr(t, err) actual, err := l7policies.ExtractRules(allP...
explode_data.jsonl/79643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 852, 2403, 26008, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 11337, 852, 35959, 1155, 692, 50960, 17713, 11, 1848, 1669, 326, 22, 79, 42038, 5814, 26008, 74138, 138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpanLink_TraceState(t *testing.T) { ms := NewSpanLink() assert.EqualValues(t, TraceState(""), ms.TraceState()) testValTraceState := TraceState("congo=congos") ms.SetTraceState(testValTraceState) assert.EqualValues(t, testValTraceState, ms.TraceState()) }
explode_data.jsonl/63298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 12485, 3939, 21038, 578, 1397, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 12485, 3939, 741, 6948, 12808, 6227, 1155, 11, 27163, 1397, 86076, 9829, 46920, 1397, 2398, 18185, 2208, 6550, 1397, 1669, 27163, 1397, 445, 443, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJobWithoutPatch(t *testing.T) { c := NewCtx(t) defer c.Close() build := testBuild(1) c.client2.UploadBuild(build) crash := testCrash(build, 1) crash.ReproOpts = []byte("repro opts") crash.ReproSyz = []byte("repro syz") c.client2.ReportCrash(crash) c.expectOK(c.GET("/email_poll")) c.expectEQ(len(c....
explode_data.jsonl/54015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 800 }
[ 2830, 3393, 12245, 26040, 43622, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 23684, 1155, 340, 16867, 272, 10421, 2822, 69371, 1669, 1273, 11066, 7, 16, 340, 1444, 6581, 17, 86597, 11066, 43333, 692, 91492, 988, 1669, 1273, 16001, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestString(t *testing.T) { t.Parallel() want := "ID{Address: localhost:12345, Id: [73 44 127 92 143 18 83 102 101 246 108 105 60 227 86 107 128 15 61 7 191 108 178 184 1 152 19 41 78 16 131 58]}" if id1.String() != want { t.Errorf("String() = %s, want %s", id1.String(), want) } }
explode_data.jsonl/7126
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 703, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 50780, 1669, 330, 915, 90, 4286, 25, 47422, 25, 16, 17, 18, 19, 20, 11, 5223, 25, 508, 22, 18, 220, 19, 19, 220, 16, 17, 22, 220, 24, 17, 220, 16, 19, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetMyTeamSanitization(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer th.TearDown() var team *model.Team if res, err := th.BasicClient.CreateTeam(&model.Team{ DisplayName: t.Name() + "_1", Name: GenerateTestTeamName(), Email: th.GenerateTestEmail(), Type: ...
explode_data.jsonl/48514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 700 }
[ 2830, 3393, 1949, 5050, 14597, 23729, 275, 2022, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 1005, 3803, 2320, 7210, 741, 16867, 270, 836, 682, 4454, 2822, 2405, 2083, 353, 2528, 65842, 198, 743, 592, 11, 1848, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSearchUserAccessToken(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer th.TearDown() Client := th.Client AdminClient := th.SystemAdminClient testDescription := "test token" th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableUserAccessTokens = true }) th.App.Upda...
explode_data.jsonl/21560
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 494 }
[ 2830, 3393, 5890, 1474, 37649, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 1005, 3803, 2320, 7210, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 197, 7210, 2959, 1669, 270, 16620, 7210, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGameSetup(t *testing.T) { game := Game{gridSize: 4} preTileState := [][][]int{[][]int{[]int{0, 0, 3}, []int{0, 1, 2}}} gInfo := GameInfo{HighScore: 10, CurrentScore: 5, TileState: preTileState} game.setup(gInfo) if game.score != 5 { t.Errorf("score %v expected %v", game.score, 5) } if game.highScore...
explode_data.jsonl/59001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 276 }
[ 2830, 3393, 4868, 21821, 1155, 353, 8840, 836, 8, 341, 30677, 1669, 4050, 90, 4203, 1695, 25, 220, 19, 532, 40346, 15628, 1397, 1669, 3056, 16613, 396, 90, 16613, 396, 90, 1294, 396, 90, 15, 11, 220, 15, 11, 220, 18, 2137, 3056, 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...
6
func TestRemove(t *testing.T) { m := NewSharedMap() monkey := Animal{"monkey"} m.Store("monkey", monkey) m.Delete("monkey") count := 0 m.Range(func(key, value interface{}) bool { count++ return true }) if count != 0 { t.Error("Expecting count to be zero once item was removed.") } temp, ok := m.Load(...
explode_data.jsonl/77834
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 13021, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 16997, 2227, 2822, 197, 96016, 1669, 21292, 4913, 96016, 16707, 2109, 38047, 445, 96016, 497, 38703, 692, 2109, 18872, 445, 96016, 5130, 18032, 1669, 220, 15, 198, 2109, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewWallet(t *testing.T) { chainID := ids.ID{1, 2, 3, 4, 5, 6, 7, 8, 9, 10} w, err := NewWallet(logging.NoLog{}, 12345, chainID, 0) if err != nil { t.Fatal(err) } if w == nil { t.Fatalf("failed to create the new wallet") } }
explode_data.jsonl/41617
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 3564, 38259, 1155, 353, 8840, 836, 8, 341, 197, 8819, 915, 1669, 14151, 9910, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 11, 220, 24, 11, 220, 16, 15, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestHaveValidStructure(t *testing.T) { test := []string{`{P}|1|[2]^"a"`, `{P}|1|[:2]^"a"`, `{P}|0|[%2]#({W}|0|[:2]^"br")`, `{P}|0|[2]#({W}|0|[2:]$"brazil")`, `{B}|1|[@2]^"a"`, `{P}|1|[:2]9"a"`} want := []bool{true, true, true, true, false, false} for idx, item := range test { r := &Rules{} resu...
explode_data.jsonl/73979
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 12116, 4088, 22952, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 3056, 917, 90, 63, 90, 47, 52398, 16, 74723, 17, 90304, 1, 64, 1, 12892, 197, 197, 63, 90, 47, 52398, 16, 91, 3447, 17, 90304, 1, 64, 1, 12892, 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...
3
func TestServiceDetailFromSvcs(t *testing.T) { tags1 := []string{"tag1-a", "tag1-b"} meta1 := map[string]string{"a": "b", "c": "d"} tags2 := []string{"tag2-a", "tag2-b"} meta2 := map[string]string{"l": "m", "n": "o"} in := []*consulapi.CatalogService{ { Node: "n1", Address: "addr1", ServiceT...
explode_data.jsonl/71897
{ "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, 1860, 10649, 3830, 50, 85, 4837, 1155, 353, 8840, 836, 8, 341, 3244, 2032, 16, 1669, 3056, 917, 4913, 4578, 16, 7409, 497, 330, 4578, 16, 1455, 16707, 84004, 16, 1669, 2415, 14032, 30953, 4913, 64, 788, 330, 65, 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_ComponentList_Remove(t *testing.T) { t.Run("Remove Prerequisite", func(t *testing.T) { compList := newCompList(t, "../test/data/componentlist.yaml") compList.Remove("prereqcomp1") require.Equal(t, 1, len(compList.Prerequisites), "Different amount of prerequisite components") require.Equal(t, 3, len(c...
explode_data.jsonl/4586
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 80760, 852, 66843, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 13021, 2340, 90375, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 5689, 852, 1669, 501, 13552, 852, 1155, 11, 7005, 1944, 13167, 62958, 1607, 33406, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTimeAndBillingEntryProjectsEndpoint_GetPrimary(t *testing.T) { var want types.GUID n := &TimeAndBillingEntryProjects{ProjectId: &want} if got := n.GetPrimary(); !reflect.DeepEqual(*got, want) { t.Errorf("TimeAndBillingEntryProjectsEndpoint.GetPrimary() failed, got: %v, want: %v", *got, want) } }
explode_data.jsonl/36068
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 1462, 3036, 82007, 5874, 29958, 27380, 13614, 15972, 1155, 353, 8840, 836, 8, 341, 2405, 1366, 4494, 1224, 6463, 198, 9038, 1669, 609, 1462, 3036, 82007, 5874, 29958, 90, 7849, 764, 25, 609, 52657, 630, 743, 2684, 1669, 308,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigValidate(t *testing.T) { tests := []struct { cfg map[string]interface{} error bool }{ { cfg: map[string]interface{}{ "scope": "foo", }, error: true, }, { cfg: map[string]interface{}{ "scope": "cluster", }, error: false, }, { cfg: map[string]interface{}{}, ...
explode_data.jsonl/29226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 2648, 17926, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 50286, 256, 2415, 14032, 31344, 16094, 197, 18290, 1807, 198, 197, 59403, 197, 197, 515, 298, 50286, 25, 2415, 14032, 31344, 67066, 571, 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...
3
func TestTransfersController_TransferError(t *testing.T) { t.Parallel() config, _ := cltest.NewConfig(t) rpcClient, gethClient, _, assertMocksCalled := cltest.NewEthMocksWithStartupAssertions(t) defer assertMocksCalled() app, cleanup := cltest.NewApplicationWithConfigAndKey(t, config, eth.NewClientWith(rpcClien...
explode_data.jsonl/41299
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 330 }
[ 2830, 3393, 3167, 49793, 2051, 34932, 802, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 25873, 11, 716, 1669, 1185, 1944, 7121, 2648, 1155, 340, 7000, 3992, 2959, 11, 633, 71, 2959, 11, 8358, 2060, 72577, 20960, 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 TestNodeID_logdistEqual(t *testing.T) { x := common.Hash{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15} if logdist(x, x) != 0 { t.Errorf("logdist(x, x) != 0") } }
explode_data.jsonl/49022
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 1955, 915, 5224, 12211, 2993, 1155, 353, 8840, 836, 8, 341, 10225, 1669, 4185, 15103, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 23, 11, 220, 24, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZstdChunked(t *testing.T) { estargz.CompressionTestSuite(t, zstdControllerWithLevel(zstd.SpeedFastest), zstdControllerWithLevel(zstd.SpeedDefault), zstdControllerWithLevel(zstd.SpeedBetterCompression), // zstdControllerWithLevel(zstd.SpeedBestCompression), // consumes too much memory to pass on CI ) ...
explode_data.jsonl/10603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 57, 1834, 28304, 291, 1155, 353, 8840, 836, 8, 341, 197, 477, 858, 89, 2961, 4011, 2271, 28000, 1155, 345, 197, 20832, 1834, 2051, 2354, 4449, 13174, 1834, 84461, 32174, 477, 1326, 197, 20832, 1834, 2051, 2354, 4449, 13174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarshalArrays(t *testing.T) { cases := []struct { Data interface{} Expected string }{ { Data: struct { XY [2]int }{ XY: [2]int{1, 2}, }, Expected: `XY = [1,2] `, }, { Data: struct { XY [1][2]int }{ XY: [1][2]int{{1, 2}}, }, Expected: `XY = [[1,2]] `, },...
explode_data.jsonl/46358
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 485 }
[ 2830, 3393, 55438, 22182, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 40927, 257, 3749, 16094, 197, 197, 18896, 914, 198, 197, 59403, 197, 197, 515, 298, 40927, 25, 2036, 341, 571, 197, 16356, 508, 17, 63025,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_AWSSensitiveAttributes(t *testing.T) { var tests = []struct { name string source string mustIncludeResultCode string mustExcludeResultCode string }{ { name: "check sensitive attribute", source: ` resource "evil_corp" "virtual_machine" { root_password = "secr...
explode_data.jsonl/29931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 465 }
[ 2830, 3393, 1566, 54, 1220, 18723, 10516, 1155, 353, 8840, 836, 8, 1476, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 1698, 914, 198, 197, 47418, 394, 914, 198, 197, 2109, 590, 22283, 2077, 2078, 914, 198, 197, 2109, 590, 95239, 2077...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLimitGroups(t *testing.T) { tests := map[string]struct { groups []string limits []string expected []string }{ "no-limit": {groups: []string{"a", "b", "c"}, limits: []string{}, expected: []string{"a", "b", "c"}}, "empty-limit": {groups: []string{"a", "b", "c"}, limits:...
explode_data.jsonl/56142
{ "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, 16527, 22173, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 44260, 82, 256, 3056, 917, 198, 197, 197, 41078, 256, 3056, 917, 198, 197, 42400, 3056, 917, 198, 197, 59403, 197, 197, 1, 2152, 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 TestApp01maDatabaseCreate(t *testing.T) { var err error t.Logf("TestDatabaseCreate()...\n") //DockerRun(t) ioApp01ma = NewIoApp01ma() ioApp01ma.DefaultParms() err = ioApp01ma.DatabaseCreate("App01ma") if err != nil { t.Errorf("\tError - Database Create failed: %s\n", err.Error()) ...
explode_data.jsonl/16190
{ "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, 2164, 15, 16, 1728, 5988, 4021, 1155, 353, 8840, 836, 8, 341, 262, 762, 1848, 260, 1465, 271, 3244, 98954, 445, 2271, 5988, 4021, 368, 30801, 77, 1138, 322, 35, 13659, 6727, 1155, 692, 53112, 2164, 15, 16, 1728, 284, 153...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImportFormsWithNoBundle(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` import 'foo' import {} from 'foo' import * as ns from 'foo' import {a, b as c} from 'foo' import def from 'foo' import def2, * as ns2 from 'foo' import def3...
explode_data.jsonl/38447
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 11511, 1838, 16056, 2753, 8409, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 21918, 364, 7975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMiddlewarePanicOnLateUse(t *testing.T) { handler := func(ctx context.Context, rc *fasthttp.RequestCtx) { rc.Write([]byte("hello\n")) } mw := func(next Handler) Handler { return HandlerFunc(func(ctx context.Context, rc *fasthttp.RequestCtx) { next.ServeHTTP(ctx, rc) }) } defer func() { if reco...
explode_data.jsonl/47957
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 24684, 47, 31270, 1925, 61457, 10253, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 2915, 7502, 2266, 9328, 11, 10192, 353, 9349, 1254, 9659, 23684, 8, 341, 197, 30295, 4073, 10556, 3782, 445, 14990, 1699, 5455, 197, 630, 2109,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequestCancellationV2(t *testing.T) { ctx := context.Background() for name, forwarded := range map[string]bool{ "forwarded": true, "standalone": false, } { t.Run(name, func(t *testing.T) { server := WaitableServer{ Started: make(chan struct{}), Completed: make(chan error), } env :...
explode_data.jsonl/31791
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 451 }
[ 2830, 3393, 1900, 82298, 53, 17, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 2023, 829, 11, 52246, 1669, 2088, 2415, 14032, 96436, 515, 197, 197, 1, 13435, 291, 788, 220, 830, 345, 197, 197, 1, 2685, 31576, 788, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCredentialsString(t *testing.T) { for _, test := range []struct { c Credentials s string }{ { nil, "", }, { NewAnonymousCredentials(""), "anonymousCredentials", }, { NewAnonymousCredentials("test"), "anonymousCredentials created from test", }, { NewAuthTokenCredentials(...
explode_data.jsonl/66815
{ "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, 27025, 703, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 1444, 61260, 198, 197, 1903, 914, 198, 197, 59403, 197, 197, 515, 298, 84131, 345, 298, 197, 39680, 197, 197, 1583, 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...
2
func TestContextDescriptionWithBaseShaRoundTripping(t *testing.T) { t.Parallel() testCases := []struct { name string shaIn string expectedSha string }{ { name: "Valid SHA is returned", shaIn: "8d287a3aeae90fd0aef4a70009c715712ff302cd", expectedSha: "8d287a3aeae90fd0aef4a700...
explode_data.jsonl/41052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 484 }
[ 2830, 3393, 1972, 5009, 2354, 3978, 62316, 27497, 21884, 10732, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 197, 15247, 641, 981, 914, 198, 197, 42400, 62316...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsReadable(t *testing.T) { writeDir := "privilege" + "/read" err := Mkdir(writeDir, 0755) if err != nil { panic(err) } t.Cleanup(func() { _ = RemoveWithRecur("privilege") }) if !IsReadable(writeDir) { t.Error("IsReadable test failed!") } }
explode_data.jsonl/34185
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 3872, 57938, 1155, 353, 8840, 836, 8, 341, 24945, 6184, 1669, 330, 11887, 42769, 1, 488, 3521, 878, 698, 9859, 1669, 386, 12438, 55828, 6184, 11, 220, 15, 22, 20, 20, 340, 743, 1848, 961, 2092, 341, 197, 30764, 3964, 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...
1
func TestServerNewFailsWhenFailedCollectResources(t *testing.T) { mock := gomock.NewController(t) defer mock.Finish() cfg := defaultMockCfg(mock) collector := hardware.NewMockHardwareInfo(mock) collector.EXPECT().Info().Times(1).Return(nil, errors.New("")) builder := MinerBuilder{} builder.Hardware(collector) ...
explode_data.jsonl/44505
{ "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, 5475, 3564, 37, 6209, 4498, 9408, 47504, 11277, 1155, 353, 8840, 836, 8, 341, 77333, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 991, 18176, 2822, 50286, 1669, 1638, 11571, 42467, 30389, 340, 1444, 24605, 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 TestNopClient(t *testing.T) { l := log.New() c := fcm.NewNopClient(l) c.MustSend(context.Background(), &messaging.MulticastMessage{ Tokens: []string{"asd"}, Data: map[string]string{ "yolo": "nolo", }, }) }
explode_data.jsonl/74849
{ "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, 45, 453, 2959, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 1487, 7121, 741, 1444, 1669, 282, 6226, 7121, 45, 453, 2959, 2333, 340, 1444, 50463, 11505, 5378, 19047, 1507, 609, 76, 32140, 53515, 35446, 2052, 515, 197, 10261, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPeer_Send_ImmediateAbort(t *testing.T) { t.Parallel() s := makeSetup(t) ctx, cancel := context.WithCancel(context.Background()) cancel() // This operation should abort immediately. assert.Error(t, s.alice.peer.Send(ctx, wire.NewPingMsg())) assert.True(t, s.alice.peer.IsClosed(), "peer must be closed ...
explode_data.jsonl/51235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 30888, 46267, 62, 52734, 85891, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 1669, 1281, 21821, 1155, 692, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 84441, 2822, 197, 322, 1096, 5666, 1265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReset(t *testing.T) { cpu := testCPU cpu.Reset() t.Logf("status = 0b%s", strconv.FormatInt(int64(cpu.status), 2)) assertEqualsB(t, ZeroB, cpu.x) assertEqualsB(t, ZeroB, cpu.y) assertEqualsB(t, ZeroB, cpu.a) assertEqualsB(t, byte(0xFD), cpu.stkp) assertFalse(t, cpu.StatusRegister(C)) assertFalse(t, cp...
explode_data.jsonl/73050
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 14828, 1155, 353, 8840, 836, 8, 341, 80335, 1669, 1273, 31615, 198, 80335, 36660, 741, 3244, 98954, 445, 2829, 284, 220, 15, 65, 12952, 497, 33317, 9978, 1072, 1548, 21, 19, 48814, 4299, 701, 220, 17, 4390, 21729, 33, 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 TestDockerComposeStrategyForInvalidService(t *testing.T) { path := "./testresources/docker-compose-simple.yml" identifier := strings.ToLower(uuid.New().String()) compose := NewLocalDockerCompose([]string{path}, identifier, WithLogger(TestLogger(t))) destroyFn := func() { err := compose.Down() checkIfErro...
explode_data.jsonl/43626
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 35, 13659, 70492, 19816, 2461, 7928, 1860, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 5924, 1944, 12745, 61764, 65070, 65957, 33936, 1837, 197, 15909, 1669, 9069, 29983, 41458, 7121, 1005, 703, 12367, 32810, 2900, 1669, 1532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestShopSmPage(t *testing.T) { mSm := new(logics.SmLogic) r, err := mSm.ShopSmPage(context.Background(), 1, 0, 10, cards.STATUS_ON_SALE) logs.Info(err) rbyte, _ := json.Marshal(r) logs.Info(string(rbyte)) }
explode_data.jsonl/35929
{ "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, 19795, 10673, 2665, 1155, 353, 8840, 836, 8, 341, 2109, 10673, 1669, 501, 12531, 1211, 92445, 26751, 340, 7000, 11, 1848, 1669, 296, 10673, 10849, 453, 10673, 2665, 5378, 19047, 1507, 220, 16, 11, 220, 15, 11, 220, 16, 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 TestReadCsvWithEntryMissingName(t *testing.T) { var loader autoimport.Loader loader = csv.CsvLoader{make(storeType)} r := strings.NewReader(kMissingNameCsv) _, err := loader.Load(3, "", r, date_util.YMD(2015, 9, 3)) if err != nil { t.Error("Expected no error") } r = strings.NewReader(kMissingNameCsv) _, ...
explode_data.jsonl/33811
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 4418, 94826, 2354, 5874, 25080, 675, 1155, 353, 8840, 836, 8, 341, 2405, 16047, 3233, 474, 82987, 198, 197, 8355, 284, 13147, 727, 3492, 9181, 90, 6927, 31200, 929, 10569, 7000, 1669, 9069, 68587, 5969, 25080, 675, 94826, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestExpressions(t *testing.T) { tests := []struct { code string }{ {`bark()`}, {`bark(123)`}, {`bark(123, "abc")`}, } for _, test := range tests { t.Run(test.code, func(t *testing.T) { l := lexer.New(test.code) p := New(l) if expr := p.parseExpr(); expr.String() != test.code { t.Fatalf...
explode_data.jsonl/81339
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 40315, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 43343, 914, 198, 197, 59403, 197, 197, 90, 63, 65, 838, 54258, 1583, 197, 197, 90, 63, 65, 838, 7, 16, 17, 18, 46186, 1583, 197, 197, 90, 63, 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 TestStateInit(t *testing.T) { var ec2Is []*ec2.Instance for _, state := range []string{"terminated", "shutting-down", "running"} { i, _ := create("i-"+state, state, "", "") ec2Is = append(ec2Is, i) } dio := &ec2.DescribeInstancesOutput{Reservations: []*ec2.Reservation{{Instances: ec2Is}}} s := &state{c: &...
explode_data.jsonl/42281
{ "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, 1397, 3803, 1155, 353, 8840, 836, 8, 341, 2405, 11942, 17, 3872, 29838, 757, 17, 12688, 198, 2023, 8358, 1584, 1669, 2088, 3056, 917, 4913, 68659, 497, 330, 927, 73981, 14875, 497, 330, 27173, 9207, 341, 197, 8230, 11, 716...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNegotiationTiming(t *testing.T) { params := TransportParams{ ParticipantID: "id", ParticipantIdentity: "identity", Target: livekit.SignalTarget_SUBSCRIBER, Config: &WebRTCConfig{}, } transportA, err := NewPCTransport(params) require.NoError(t, err) _, err = transpor...
explode_data.jsonl/29010
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 617 }
[ 2830, 3393, 47800, 354, 7101, 62805, 1155, 353, 8840, 836, 8, 341, 25856, 1669, 16742, 4870, 515, 197, 197, 67504, 915, 25, 981, 330, 307, 756, 197, 197, 67504, 18558, 25, 330, 16912, 756, 197, 197, 6397, 25, 1060, 3887, 8226, 75669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcileAccountClaim(t *testing.T) { awsaccountapis.AddToScheme(scheme.Scheme) tests := []struct { name string localObjects []runtime.Object expectedAccountClaim awsv1alpha1.AccountClaim verifyAccountFunction func(client.Client, *awsv1alpha1.AccountClaim) bool }{ { n...
explode_data.jsonl/56711
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 677 }
[ 2830, 3393, 693, 40446, 457, 7365, 45544, 1155, 353, 8840, 836, 8, 341, 197, 8635, 4608, 13725, 1904, 1249, 28906, 1141, 8058, 92719, 340, 78216, 1669, 3056, 1235, 341, 197, 11609, 1698, 914, 198, 197, 8854, 11543, 688, 3056, 22255, 834...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccUser_basic(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, CheckDestroy: testAccCheckUserDestroy("artifactory_user.foobar"), Providers: testAccProviders, Steps: []resource.TestStep{ { Config: userBasic, Check: resource.ComposeTestCheckF...
explode_data.jsonl/68364
{ "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, 14603, 1474, 34729, 1155, 353, 8840, 836, 8, 341, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 4703, 3973, 25, 257, 2915, 368, 314, 1273, 14603, 4703, 3973, 1155, 8, 1153, 197, 69472, 14245, 25, 1273, 14603, 3973, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResolveTemplate(t *testing.T) { tests := []struct { name string uri string wantErr string }{ { name: "resolve-template", uri: "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/get-started-with-templates/quickstart-template/azuredeploy.json", }, { name: "r...
explode_data.jsonl/20145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 366 }
[ 2830, 3393, 56808, 7275, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 197, 6070, 257, 914, 198, 197, 50780, 7747, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 17325, 33409, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunForEndpointsAndReturnFirst(t *testing.T) { tests := []struct { endpoints []string expectedEndpoint string }{ { endpoints: []string{"1", "2", "3"}, expectedEndpoint: "1", }, { endpoints: []string{"6", "5"}, expectedEndpoint: "5", }, { endpoints: []st...
explode_data.jsonl/52400
{ "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, 6727, 2461, 80786, 3036, 5598, 5338, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 6246, 7706, 286, 3056, 917, 198, 197, 42400, 27380, 914, 198, 197, 59403, 197, 197, 515, 298, 6246, 7706, 25, 286, 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...
1
func TestCount(t *testing.T) { tests := []struct { desc string it *Iter size int }{ {"empty", New(FromStrings([]string{})), 0}, {"non-empty", New(FromStrings([]string{"a"})), 1}, } for _, tc := range tests { t.Run(tc.desc, func(t *testing.T) { got := tc.it.Count() if got != tc.size { t.Erro...
explode_data.jsonl/56147
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 2507, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 914, 198, 197, 23374, 256, 353, 8537, 198, 197, 13832, 526, 198, 197, 59403, 197, 197, 4913, 3194, 497, 1532, 7, 3830, 20859, 10556, 917, 6257, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExemplarSlice_CopyTo(t *testing.T) { dest := NewExemplarSlice() // Test CopyTo to empty NewExemplarSlice().CopyTo(dest) assert.EqualValues(t, NewExemplarSlice(), dest) // Test CopyTo larger slice generateTestExemplarSlice().CopyTo(dest) assert.EqualValues(t, generateTestExemplarSlice(), dest) // Test...
explode_data.jsonl/32763
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 840, 25892, 277, 33236, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 49616, 1669, 1532, 840, 25892, 277, 33236, 741, 197, 322, 3393, 14540, 1249, 311, 4287, 198, 197, 3564, 840, 25892, 277, 33236, 1005, 12106, 1249, 27010, 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...
1
func TestClientSnifferCallback(t *testing.T) { var calls int cb := func(node *NodesInfoNode) bool { calls++ return false } _, err := NewClient( SetURL("http://127.0.0.1:19200", "http://127.0.0.1:9200"), SetSnifferCallback(cb)) if err == nil { t.Fatalf("expected cluster to fail with no nodes found") } i...
explode_data.jsonl/37997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 2959, 20720, 14320, 7494, 1155, 353, 8840, 836, 8, 341, 2405, 6738, 526, 198, 63810, 1669, 2915, 6958, 353, 12288, 1731, 1955, 8, 1807, 341, 197, 1444, 5583, 22940, 197, 853, 895, 198, 197, 532, 197, 6878, 1848, 1669, 1532...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParsingTimeYaml(t *testing.T) { parseYamlTimeAndCheck(t, "02:03") _, err := parseYamlTime("02:62") assert.EqualError(t, err, `Yaml error parsing time "02:62": minute out of range`) }
explode_data.jsonl/24538
{ "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, 68839, 1462, 56, 9467, 1155, 353, 8840, 836, 8, 341, 75115, 56, 9467, 1462, 3036, 3973, 1155, 11, 330, 15, 17, 25, 15, 18, 1138, 197, 6878, 1848, 1669, 4715, 56, 9467, 1462, 445, 15, 17, 25, 21, 17, 1138, 6948, 12808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPowerSet(t *testing.T) { set := []int{1, 2, 3, 4} t.Run("Get all combinations", func(t *testing.T) { powerSet := GetPowerSet(set) assert.Equal(t, 16, len(powerSet)) }) }
explode_data.jsonl/28833
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 1949, 14986, 1649, 1155, 353, 8840, 836, 8, 341, 8196, 1669, 3056, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 19, 630, 3244, 16708, 445, 1949, 678, 27459, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3223, 1202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewServiceEntryController(t *testing.T) { config, err := clientcmd.BuildConfigFromFlags("", "../../test/resources/admins@fake-cluster.k8s.local") if err != nil { t.Errorf("%v", err) } stop := make(chan struct{}) handler := test.MockServiceEntryHandler{} serviceEntryController, err := NewServiceEntryCo...
explode_data.jsonl/11889
{ "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, 3564, 1860, 5874, 2051, 1155, 353, 8840, 836, 8, 341, 25873, 11, 1848, 1669, 2943, 8710, 25212, 2648, 3830, 9195, 19814, 10208, 1944, 38900, 17402, 82, 31, 30570, 93208, 5202, 23, 82, 11033, 1138, 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...
7
func TestWorkflowSetInitial(t *testing.T) { workflow := &Workflow{ TaskTemplates: []TaskTemplate{ TaskTemplate{ TaskName: "First", Initial: false, }, TaskTemplate{ TaskName: "Second", Initial: false, }, }, } workflow.SetInitial("First") assert.True(t, workflow.TaskTemplates[0].In...
explode_data.jsonl/19597
{ "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, 62768, 1649, 6341, 1155, 353, 8840, 836, 8, 341, 197, 56249, 1669, 609, 62768, 515, 197, 81153, 51195, 25, 3056, 6262, 7275, 515, 298, 81153, 7275, 515, 571, 81153, 675, 25, 330, 5338, 756, 571, 197, 6341, 25, 220, 895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_runAudit(t *testing.T) { type args struct { audit string output string } tests := []struct { name string args args errMsg string output string }{ { name: "run success", args: args{ audit: "echo 'hello world'", }, errMsg: "", output: "hello world\n", }, { name: ...
explode_data.jsonl/69363
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 583 }
[ 2830, 3393, 14007, 74516, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 48545, 220, 914, 198, 197, 21170, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 31215, 256, 2827, 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...
8
func TestTypeMismatch(t *testing.T) { // Verifies that: // 1. Mismatches between the given type and data, i.e. `Person` and // the data item is a string, are properly caught: //{ // "name": "contents", // "type": "Person" //}, //{ // "contents": "Hello, Bob!" <-- string not "Person" //} // 2. Nonexistent t...
explode_data.jsonl/30003
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1378 }
[ 2830, 3393, 929, 82572, 1155, 353, 8840, 836, 8, 341, 197, 322, 6250, 9606, 429, 510, 197, 322, 220, 16, 13, 386, 2142, 9118, 1948, 279, 2661, 943, 323, 821, 11, 600, 1734, 13, 1565, 10680, 63, 323, 198, 197, 322, 7018, 32088, 821...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddTrailingSlash(t *testing.T) { lee := leego.New() req := standard.NewRequest(httptest.NewRequest(leego.GET, "/add-slash", nil)) rec := standard.NewResponse(httptest.NewRecorder()) c := lee.NewContext(req, rec) h := AddTrailingSlash()(func(c leego.Context) leego.LeeError { return nil }) h(c) assert...
explode_data.jsonl/46921
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 2212, 1282, 14277, 88004, 1155, 353, 8840, 836, 8, 341, 197, 8501, 1669, 512, 13243, 7121, 2822, 24395, 1669, 5297, 75274, 73392, 83, 70334, 75274, 74824, 13243, 17410, 11, 3521, 718, 1331, 24686, 497, 2092, 1171, 67904, 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 TestWindowsUNCPathsAreRemoved(t *testing.T) { wf := wfv1.MustUnmarshalWorkflow(helloWindowsWf) uncVolume := apiv1.Volume{ Name: "unc", VolumeSource: apiv1.VolumeSource{ HostPath: &apiv1.HostPathVolumeSource{ Path: "\\\\.\\pipe\\test", }, }, } uncMount := apiv1.VolumeMount{ Name: "unc", ...
explode_data.jsonl/75398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 668 }
[ 2830, 3393, 13164, 12633, 26901, 11526, 42642, 1155, 353, 8840, 836, 8, 341, 6692, 69, 1669, 289, 27890, 16, 50463, 1806, 27121, 62768, 3203, 4791, 13164, 54, 69, 340, 197, 1347, 18902, 1669, 1443, 344, 16, 79106, 515, 197, 21297, 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 TestGetAllPlugins(t *testing.T) { config.SetUpMockConfig(t) defer func() { err := common.TruncateDB(common.InMemory) if err != nil { t.Fatalf("error: %v", err) } err = common.TruncateDB(common.OnDisk) if err != nil { t.Fatalf("error: %v", err) } }() mockPlugins(t) plugins, err := GetAllPlug...
explode_data.jsonl/49403
{ "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, 1949, 2403, 45378, 1155, 353, 8840, 836, 8, 341, 25873, 4202, 2324, 11571, 2648, 1155, 340, 16867, 2915, 368, 341, 197, 9859, 1669, 4185, 8240, 26900, 3506, 57802, 5337, 10642, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegration_ExternalAdapter_RunLogInitiated(t *testing.T) { t.Parallel() rpcClient, gethClient, sub, assertMockCalls := cltest.NewEthMocks(t) defer assertMockCalls() app, cleanup := cltest.NewApplication(t, eth.NewClientWith(rpcClient, gethClient), ) defer cleanup() gethClient.On("ChainID", mock.Any...
explode_data.jsonl/75894
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 942 }
[ 2830, 3393, 52464, 62, 25913, 5940, 84158, 2201, 3803, 10029, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 7000, 3992, 2959, 11, 633, 71, 2959, 11, 1186, 11, 2060, 11571, 55292, 1669, 1185, 1944, 7121, 65390, 72577, 1155, 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...
1
func TestAgingPayablesListEndpoint_List_all(t *testing.T) { s, mux, _, teardown := setup() defer teardown() acceptHeaders := []string{"application/json"} opts1 := api.NewListOptions() opts1.Select.Add("*") u, e := s.client.ResolvePathWithDivision("/api/v1/{division}/read/financial/AgingPayablesList", 0) if e !...
explode_data.jsonl/28470
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 725 }
[ 2830, 3393, 32, 3173, 20595, 4788, 852, 27380, 27104, 5705, 1155, 353, 8840, 836, 8, 341, 1903, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 197, 10330, 10574, 1669, 3056, 917, 4913, 5132, 8931, 63159, 64734, 16, 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...
2
func TestApplication_FindCepNotFoundSave(t *testing.T) { cr := new(CepRepositoryMock) s := "12345678" cr.On("GetCep", s).Return(nil, true) cr.On("SaveCep", s).Return(&model.Cep{}, false) app := GetInstance(cr) cep, err := app.FindCep(s) if err != nil { t.Error("error getting cep") } cr.AssertExpectations(t)...
explode_data.jsonl/58367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 4988, 95245, 34, 747, 10372, 8784, 1155, 353, 8840, 836, 8, 341, 91492, 1669, 501, 3025, 747, 4624, 11571, 340, 1903, 1669, 330, 16, 17, 18, 19, 20, 21, 22, 23, 698, 91492, 8071, 445, 1949, 34, 747, 497, 274, 568, 5598...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExecute(t *testing.T) { t.Run("success", func(t *testing.T) { tests := []*struct { name string template string commands map[string]string vars map[string]string result string }{ { name: "raw string", template: `just ra\w string`, result: `just raw string`, ...
explode_data.jsonl/9577
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2562 }
[ 2830, 3393, 17174, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5630, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 78216, 1669, 29838, 1235, 341, 298, 11609, 257, 914, 198, 298, 22832, 914, 198, 298, 197, 24270, 2415, 14032, 30953...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMemberCancelInviteEmail(t *testing.T) { tc, _, name := memberSetup(t) defer tc.Cleanup() tc.G.SetServices(externals.GetServices()) address := "noone@keybase.io" if err := InviteEmailMember(context.TODO(), tc.G, name, address, keybase1.TeamRole_READER); err != nil { t.Fatal(err) } assertInvite(tc, n...
explode_data.jsonl/13536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 427 }
[ 2830, 3393, 9366, 9269, 93540, 4781, 1155, 353, 8840, 836, 8, 341, 78255, 11, 8358, 829, 1669, 4462, 21821, 1155, 340, 16867, 17130, 727, 60639, 2822, 78255, 1224, 4202, 11025, 7, 4301, 1127, 2234, 11025, 12367, 63202, 1669, 330, 2152, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpenKeeper(t *testing.T) { tests := []struct { URL string WantErr bool }{ {"stringkey://my-secret", false}, {"stringkey://my-secret?param=value", true}, {"base64key://bXktc2VjcmV0LWtleQ==", false}, {"base64key://bXktc2VjcmV0LWtleQ==?param=value", true}, {"base64key://not-valid-base64", true...
explode_data.jsonl/7822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 5002, 77233, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 79055, 257, 914, 198, 197, 17300, 517, 7747, 1807, 198, 197, 59403, 197, 197, 4913, 917, 792, 1110, 2408, 68892, 497, 895, 1583, 197, 197, 4913,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateHTTPHeaderName(t *testing.T) { testCases := []struct { name string valid bool }{ {name: "header1", valid: true}, {name: "X-Requested-With", valid: true}, {name: "", valid: false}, } for _, tc := range testCases { if got := ValidateHTTPHeaderName(tc.name); (got == nil) != tc.valid { ...
explode_data.jsonl/56909
{ "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, 17926, 98752, 675, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 56322, 1807, 198, 197, 59403, 197, 197, 47006, 25, 330, 2708, 16, 497, 2697, 25, 830, 1583, 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...
3
func TestQueryFilter(t *testing.T) { api := &mockSCIONDService{ replies: []*sciond.PathReply{ buildSCIONDReply(pathXY1, pathXY2), }, } Convey("Create path manager", t, func() { pm, err := New(api, &Timers{}, log.Root()) SoMsg("pm", pm, ShouldNotBeNil) SoMsg("err", err, ShouldBeNil) Convey("Query with ...
explode_data.jsonl/25284
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 2859, 5632, 1155, 353, 8840, 836, 8, 341, 54299, 1669, 609, 16712, 3540, 1271, 35, 1860, 515, 197, 17200, 7202, 25, 29838, 2388, 290, 67, 17474, 20841, 515, 298, 69371, 3540, 1271, 35, 20841, 5581, 16356, 16, 11, 1815, 163...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRevelWithFieldsOutput(t *testing.T) { l, b := newBufferedRevelLog() l.WithFields("test", true).Warn("This is a message.") expectedMatch := "WARN.*This is a message. test=true\n" actual := b.String() if ok, _ := regexp.Match(expectedMatch, []byte(actual)); !ok { t.Errorf("Log output mismatch %s (actual)...
explode_data.jsonl/3454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 693, 889, 2354, 8941, 5097, 1155, 353, 8840, 836, 8, 341, 8810, 11, 293, 1669, 501, 4095, 291, 693, 889, 2201, 741, 8810, 26124, 8941, 445, 1944, 497, 830, 568, 38244, 445, 1986, 374, 264, 1943, 31225, 42400, 8331, 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 Test_SalesReports_Filter_SetType(t *testing.T) { filter := &SalesReportsFilter{} filter.TypeSales() assert.Equal(t, filter.ReportType, SalesReportTypeSales) filter.TypeNewsStand() assert.Equal(t, filter.ReportType, SalesReportTypeNewsStand) filter.TypePreOrder() assert.Equal(t, filter.ReportType, SalesRepor...
explode_data.jsonl/60786
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 1098, 3831, 23748, 68935, 14812, 929, 1155, 353, 8840, 836, 8, 341, 50108, 1669, 609, 35418, 23748, 5632, 16094, 50108, 10184, 35418, 741, 6948, 12808, 1155, 11, 4051, 25702, 929, 11, 15829, 10361, 929, 35418, 340, 50108, 1018...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJson2Struct_slice_bool(t *testing.T) { ret, err := Json2Struct("auto_name", `[true,false,false,false]`, GoStructType) fmt.Printf("ret:\n %s, %v\n", ret, err) }
explode_data.jsonl/72751
{ "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, 5014, 17, 9422, 26488, 22159, 1155, 353, 8840, 836, 8, 341, 11262, 11, 1848, 1669, 8308, 17, 9422, 445, 3902, 1269, 497, 77644, 1866, 23367, 23367, 23367, 60, 7808, 5994, 9422, 929, 340, 11009, 19367, 445, 2122, 7190, 77, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestDriverDefaults(t *testing.T) { testAdaptor := newAioTestAdaptor() pin := "456" drivers := []DriverAndPinner{ NewGroveSoundSensorDriver(testAdaptor, pin), NewGroveLightSensorDriver(testAdaptor, pin), NewGrovePiezoVibrationSensorDriver(testAdaptor, pin), NewGroveRotaryDriver(testAdaptor, pin), } f...
explode_data.jsonl/1450
{ "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, 11349, 16273, 1155, 353, 8840, 836, 8, 341, 18185, 2589, 32657, 1669, 501, 32, 815, 2271, 2589, 32657, 741, 3223, 258, 1669, 330, 19, 20, 21, 1837, 2698, 81, 1945, 1669, 3056, 11349, 3036, 47, 4382, 515, 197, 197, 3564, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResponseErrorHTML(t *testing.T) { raw := "HTTP/1.1 413 Request Entity Too Large\r\n" + "\r\n" + `<html> <head><title>413 Request Entity Too Large</title></head> <body bgcolor="white"> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.6.2</center> </body> </html>` + "\r\n" r := bu...
explode_data.jsonl/16552
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 2582, 1454, 5835, 1155, 353, 8840, 836, 8, 341, 76559, 1669, 330, 9230, 14, 16, 13, 16, 220, 19, 16, 18, 6145, 10390, 24599, 20286, 12016, 1699, 1, 3610, 197, 197, 11934, 81, 1699, 1, 3610, 197, 197, 63, 27, 1551, 397,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpaceService_Update(t *testing.T) { testCases := []struct { name string spaceKey string payload *model.UpdateSpaceScheme mockFile string wantHTTPMethod string endpoint string context context.Context wantHTTPCodeReturn int ...
explode_data.jsonl/39246
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3028 }
[ 2830, 3393, 9914, 1860, 47393, 1155, 353, 8840, 836, 8, 1476, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 1903, 1306, 1592, 1843, 914, 198, 197, 76272, 310, 353, 2528, 16689, 9914, 28906, 198, 197, 77333, 1703,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_can_list_group_targets_for_the_group_administrator_role_given_to_a_group(t *testing.T) { ctx, client, err := tests.NewClient(context.TODO()) require.NoError(t, err) role := okta.AssignRoleRequest{ Type: "USER_ADMIN", } gp := &okta.GroupProfile{ Name: "SDK_TEST Assign Admin Role To Group", } g := ...
explode_data.jsonl/31234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 27421, 2019, 6288, 41997, 5478, 16068, 6288, 12207, 18690, 19792, 57653, 2346, 4306, 6288, 1155, 353, 8840, 836, 8, 341, 20985, 11, 2943, 11, 1848, 1669, 7032, 7121, 2959, 5378, 90988, 2398, 17957, 35699, 1155, 11, 1848, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatchAnyRegexps(t *testing.T) { matchers, err := InitMatchers("\\.gz$") assert.Nil(t, err) assert.Equal(t, MatchAny(matchers, "/var/log/log.gz"), true) }
explode_data.jsonl/36934
{ "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, 8331, 8610, 32464, 1690, 1155, 353, 8840, 836, 8, 341, 47706, 388, 11, 1848, 1669, 15690, 37862, 29710, 13, 46589, 87653, 6948, 59678, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 14152, 8610, 25401, 388, 11, 3521, 947, 19413...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedisCache_Suite(t *testing.T) { t.Parallel() if testing.Short() { t.Skipf("Skipping integration test in short mode") return } suite.Run(t, new(RedisCacheTestSuite)) }
explode_data.jsonl/14341
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 48137, 8233, 1098, 9302, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 69, 445, 85945, 17590, 1273, 304, 2805, 3856, 1138, 197, 853, 198, 197, 630, 96572, 16708, 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 ]
2
func TestConstantTimeCompare(t *testing.T) { for i, test := range testConstantTimeCompareData { if r := ConstantTimeCompare(test.a, test.b); r != test.out { t.Errorf("#%d bad result (got %x, want %x)", i, r, test.out) } } }
explode_data.jsonl/79467
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 15472, 1462, 27374, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 1273, 1669, 2088, 1273, 15472, 1462, 27374, 1043, 341, 197, 743, 435, 1669, 19305, 1462, 27374, 8623, 5849, 11, 1273, 948, 1215, 435, 961, 1273, 2532, 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 TestOutput(t *testing.T) { wfCtx := mockContext(t) r := require.New(t) taskValue, err := value.NewValue(` output: score: 99 `, nil, "") r.NoError(err) err = Output(wfCtx, taskValue, v1beta1.WorkflowStep{ Properties: &runtime.RawExtension{ Raw: []byte("{\"name\":\"mystep\"}"), }, Outputs: common.Step...
explode_data.jsonl/53514
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 318 }
[ 2830, 3393, 5097, 1155, 353, 8840, 836, 8, 341, 6692, 69, 23684, 1669, 7860, 1972, 1155, 340, 7000, 1669, 1373, 7121, 1155, 340, 49115, 1130, 11, 1848, 1669, 897, 7121, 1130, 61528, 3006, 25, 5456, 25, 220, 24, 24, 715, 7808, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLoadTemplate(t *testing.T) { // Load template absPath, err := filepath.Abs("../../tests/files/") assert.NotNil(t, absPath) assert.Nil(t, err) templatePath := absPath + "/template.json" content, err := readTemplate(templatePath) assert.Nil(t, err) // Setup ES client := GetTestingElasticsearch() err...
explode_data.jsonl/40099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 5879, 7275, 1155, 353, 8840, 836, 8, 1476, 197, 322, 8893, 3811, 198, 197, 3435, 1820, 11, 1848, 1669, 26054, 33255, 36800, 23841, 33220, 53006, 6948, 93882, 1155, 11, 3647, 1820, 340, 6948, 59678, 1155, 11, 1848, 692, 22832...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTx_InputCount(t *testing.T) { t.Run("get input count", func(t *testing.T) { tx := bt.NewTx() assert.NotNil(t, tx) err := tx.From( "07912972e42095fe58daaf09161c5a5da57be47c2054dc2aaa52b30fefa1940b", 0, "76a914af2590a45ae401651fdbdf59a76ad43d1862534088ac", 4000000) assert.NoError(t, err) a...
explode_data.jsonl/28742
{ "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, 31584, 48653, 2507, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 455, 1946, 1760, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 46237, 1669, 19592, 7121, 31584, 741, 197, 6948, 93882, 1155, 11, 9854, 340, 197, 9859, 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 TestGetIntSlice(t *testing.T) { config := &Config{Object{"a": Array{Int(1), Int(2)}, "b": Array{String("c"), Int(1)}}} t.Run("get array as int slice", func(t *testing.T) { got := config.GetIntSlice("a") assertDeepEqual(t, got, []int{1, 2}) }) t.Run("return nil for a non-existing int slice", func(t *testi...
explode_data.jsonl/4119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 85097, 33236, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 609, 2648, 90, 1190, 4913, 64, 788, 2910, 90, 1072, 7, 16, 701, 1333, 7, 17, 42419, 330, 65, 788, 2910, 90, 703, 445, 66, 3975, 1333, 7, 16, 52731, 630, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRollingSimple(t *testing.T) { if topologyBackend != "elasticsearch" && flowBackend != "elasticsearch" { t.Skip("Elasticsearch is used neither for topology nor flows") } // del first in order to cleanup previews run delTestIndex("rolling") delTestIndex("not_rolling") indices := []es.Index{ { Name...
explode_data.jsonl/6513
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 973 }
[ 2830, 3393, 32355, 287, 16374, 1155, 353, 8840, 836, 8, 341, 743, 44882, 29699, 961, 330, 301, 27791, 1, 1009, 6396, 29699, 961, 330, 301, 27791, 1, 341, 197, 3244, 57776, 445, 36, 51179, 1836, 374, 1483, 13866, 369, 44882, 6329, 2745...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetrySleep(t *testing.T) { startTime := time.Now().UnixNano() sleepTime := 200 * time.Millisecond err := DoSleep(2, sleepTime, func(attempt int) (err error) { if attempt == 0 { err = errors.New("") } return err }) dt := (time.Now().UnixNano() - startTime - int64(sleepTime)) / (int64(time.Millis...
explode_data.jsonl/72027
{ "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, 51560, 41745, 1155, 353, 8840, 836, 8, 341, 21375, 1462, 1669, 882, 13244, 1005, 55832, 83819, 741, 52533, 1462, 1669, 220, 17, 15, 15, 353, 882, 71482, 271, 9859, 1669, 3155, 41745, 7, 17, 11, 6084, 1462, 11, 2915, 19356,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlayer_CrosshairCode(t *testing.T) { pl := playerWithResourceProperty("m_szCrosshairCodes", st.PropertyValue{StringVal: "CSGO-jvnbx-S3xFK-iEJXD-Y27Nd-AO6FP"}) assert.Equal(t, "CSGO-jvnbx-S3xFK-iEJXD-Y27Nd-AO6FP", pl.CrosshairCode()) }
explode_data.jsonl/12200
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 4476, 920, 2128, 50629, 2078, 1155, 353, 8840, 836, 8, 341, 72213, 1669, 2781, 2354, 4783, 3052, 445, 76, 33945, 28501, 50629, 20871, 497, 357, 15727, 1130, 90, 703, 2208, 25, 330, 6412, 15513, 13333, 85, 18080, 87, 6222, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTypeSystem_ListMustAcceptGraphQLTypes_RejectsANilTypeAsItemTypeOfList(t *testing.T) { result := graphql.NewList(nil) expectedError := `Can only create List of a Type but got: <nil>.` if result.Error() == nil || result.Error().Error() != expectedError { t.Fatalf("Expected error: %v, got %v", expectedError,...
explode_data.jsonl/79189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 929, 2320, 27104, 31776, 16646, 88637, 4173, 50693, 583, 82, 1093, 321, 929, 2121, 74618, 2124, 852, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 48865, 7121, 852, 27907, 340, 42400, 1454, 1669, 1565, 6713, 1172, 1855, 1759, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockGlobalUpdate(t *testing.T) { db := DB.New() db.Create(&Toy{Name: "Stuffed Animal", OwnerType: "Nobody"}) err := db.Model(&Toy{}).Update("OwnerType", "Human").Error if err != nil { t.Error("Unexpected error on global update") } err = db.Delete(&Toy{}).Error if err != nil { t.Error("Unexpected ...
explode_data.jsonl/28067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 4713, 11646, 4289, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 5952, 7121, 741, 20939, 7251, 2099, 67970, 63121, 25, 330, 623, 40573, 21292, 497, 25833, 929, 25, 330, 56713, 1, 8824, 9859, 1669, 2927, 5659, 2099, 67970, 6257,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue27610(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec(`use test;`) tk.MustExec(`drop table if exists PK_TCOLLATION3966STROBJSTROBJ;`) tk.MustExec("CREATE TABLE `PK_TCOLLATION3966STROBJSTROBJ` (\n `COL1` enum('ll','aa','bb','cc...
explode_data.jsonl/65607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 42006, 17, 22, 21, 16, 15, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValueBinder_BindUnmarshaler(t *testing.T) { exampleTime, _ := time.Parse(time.RFC3339, "2020-12-23T09:45:31+02:00") var testCases = []struct { name string givenFailFast bool givenBindErrors []error whenURL string whenMust bool expectValue Timestamp expectError ...
explode_data.jsonl/82558
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1313 }
[ 2830, 3393, 1130, 44055, 1668, 484, 1806, 27121, 261, 1155, 353, 8840, 836, 8, 341, 8122, 1516, 1462, 11, 716, 1669, 882, 8937, 9730, 2013, 6754, 18, 18, 18, 24, 11, 330, 17, 15, 17, 15, 12, 16, 17, 12, 17, 18, 51, 15, 24, 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...
4
func TestAttachRequest(t *testing.T) { if runtime.GOOS == "freebsd" { t.SkipNow() } if runtime.GOOS == "windows" { t.Skip("test skipped on windows, see https://delve.beta.teamcity.com/project/Delve_windows for details") } runTest(t, "loopprog", func(client *daptest.Client, fixture protest.Fixture) { // Start...
explode_data.jsonl/17352
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 30485, 1900, 1155, 353, 8840, 836, 8, 341, 743, 15592, 97574, 3126, 621, 330, 10593, 51835, 1, 341, 197, 3244, 57776, 7039, 741, 197, 532, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 197, 3244, 57776, 445, 1944, 3515...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInit(t *testing.T) { graph, _ := tempGraph(t) defer nukeGraph(graph) // Root should exist if _, err := os.Stat(graph.root); err != nil { t.Fatal(err) } // Map() should be empty l := graph.Map() if len(l) != 0 { t.Fatalf("len(Map()) should return %d, not %d", 0, len(l)) } }
explode_data.jsonl/64320
{ "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, 1155, 353, 8840, 836, 8, 341, 66616, 11, 716, 1669, 2730, 11212, 1155, 340, 16867, 308, 10430, 11212, 24312, 340, 197, 322, 18854, 1265, 3000, 198, 743, 8358, 1848, 1669, 2643, 53419, 24312, 12576, 1215, 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 TestFal03(t *testing.T) { var fal float64 fal = Fal03(0.80) if !CheckFloat(fal, 5.132369751108684150, 1e-12) { t.Errorf("fal != 5.132369751108684150 -> %v\n", fal) } }
explode_data.jsonl/45911
{ "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, 90258, 15, 18, 1155, 353, 8840, 836, 8, 341, 2405, 25484, 2224, 21, 19, 271, 1166, 278, 284, 22869, 15, 18, 7, 15, 13, 23, 15, 692, 743, 753, 3973, 5442, 955, 278, 11, 220, 20, 13, 16, 18, 17, 18, 21, 24, 22, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCookieStore_Get_decode_base64_error(t *testing.T) { cipher := &fakeCipher{} opt := CookieOption{} cookieman := New(cipher, opt) w := httptest.NewRecorder() store := cookieman.NewCookieStore("n", nil) http.SetCookie(w, &http.Cookie{ Name: "n", Value: "zzz: non base64 encoding", }) req := GetReque...
explode_data.jsonl/48011
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 20616, 6093, 13614, 15227, 7651, 21, 19, 4096, 1155, 353, 8840, 836, 8, 341, 1444, 10558, 1669, 609, 30570, 79460, 16094, 64838, 1669, 24356, 5341, 16094, 197, 1015, 38191, 15977, 1669, 1532, 1337, 10558, 11, 3387, 340, 6692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLinkFormat_Decode(t *testing.T) { format := linkFormat{} ctx := fake.NewContext() ctx = serde.WithFactory(ctx, types.AggregateKey{}, fake.SignatureFactory{}) ctx = serde.WithFactory(ctx, types.ChangeSetKey{}, fakeChangeSetFac{}) ctx = serde.WithFactory(ctx, types.BlockKey{}, types.BlockFactory{}) msg, ...
explode_data.jsonl/4474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 940 }
[ 2830, 3393, 3939, 4061, 78668, 534, 1155, 353, 8840, 836, 8, 341, 59416, 1669, 2656, 4061, 31483, 20985, 1669, 12418, 7121, 1972, 741, 20985, 284, 61570, 26124, 4153, 7502, 11, 4494, 49850, 14240, 1592, 22655, 12418, 41152, 1568, 4153, 37...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValues(t *testing.T) { data := []byte(`{"foo": "bar", "baz": {"bar": "cat"}}`) testData := []struct { path []string value string }{ { []string{"foo"}, "bar", }, { []string{"baz", "bar"}, "cat", }, } values, err := newValues(&source.ChangeSet{ Data: data, }) if err != nil { ...
explode_data.jsonl/612
{ "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, 6227, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 3056, 3782, 5809, 4913, 7975, 788, 330, 2257, 497, 330, 42573, 788, 5212, 2257, 788, 330, 4616, 30975, 63, 692, 18185, 1043, 1669, 3056, 1235, 341, 197, 26781, 220, 3056, 917...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSecret(t *testing.T) { t.Run("successfully retrieve secret", func(t *testing.T) { t.Run("without version id and version stage", func(t *testing.T) { s := smSecretStore{ client: &mockedSM{ GetSecretValueFn: func(input *secretsmanager.GetSecretValueInput) (*secretsmanager.GetSecretValueOutput, ...
explode_data.jsonl/23986
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1166 }
[ 2830, 3393, 1949, 19773, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 60505, 17179, 6234, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 16708, 445, 28996, 2319, 877, 323, 2319, 6430, 497, 2915, 1155, 353, 8840, 836, 8, 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...
1
func Test_source(t *testing.T) { assert.Equal(t, dunno, source([][]byte{}, 0)) assert.Equal(t, dunno, source([][]byte{}, 1)) assert.Equal(t, []byte("test"), source([][]byte{[]byte("test")}, 1)) }
explode_data.jsonl/44807
{ "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, 10347, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 49016, 2152, 11, 2530, 10556, 1294, 3782, 22655, 220, 15, 1171, 6948, 12808, 1155, 11, 49016, 2152, 11, 2530, 10556, 1294, 3782, 22655, 220, 16, 1171, 6948, 12808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetVolumeID(t *testing.T) { b := &blockStore{} pv := &unstructured.Unstructured{ Object: map[string]interface{}{}, } // missing spec.gcePersistentDisk -> no error volumeID, err := b.GetVolumeID(pv) require.NoError(t, err) assert.Equal(t, "", volumeID) // missing spec.gcePersistentDisk.pdName -> er...
explode_data.jsonl/71437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 1949, 18902, 915, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 609, 4574, 6093, 31483, 3223, 85, 1669, 609, 359, 51143, 10616, 51143, 515, 197, 23816, 25, 2415, 14032, 31344, 6257, 38837, 197, 630, 197, 322, 7402, 1398, 1302, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServer_EnqueueRepoUpdate(t *testing.T) { repo := repos.Repo{ Name: "github.com/foo/bar", ExternalRepo: api.ExternalRepoSpec{ ID: "bar", ServiceType: "github", ServiceID: "http://github.com", }, Metadata: new(github.Repository), Sources: map[string]*repos.SourceInfo{ "extsvc:12...
explode_data.jsonl/35192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1340 }
[ 2830, 3393, 5475, 62, 1702, 4584, 25243, 4289, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 45774, 2817, 5368, 515, 197, 21297, 25, 330, 5204, 905, 60555, 49513, 756, 197, 197, 25913, 25243, 25, 6330, 5121, 15342, 25243, 8327, 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...
1
func TestDeleteRun_RunNotExist(t *testing.T) { store := NewFakeClientManagerOrFatal(util.NewFakeTimeForEpoch()) defer store.Close() manager := NewResourceManager(store) err := manager.DeleteRun("1") assert.Equal(t, codes.NotFound, err.(*util.UserError).ExternalStatusCode()) assert.Contains(t, err.Error(), "not fo...
explode_data.jsonl/28364
{ "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, 6435, 6727, 84158, 45535, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 52317, 2959, 2043, 2195, 62396, 67811, 7121, 52317, 1462, 2461, 44338, 2398, 16867, 3553, 10421, 741, 92272, 1669, 1532, 32498, 31200, 340, 9859, 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 TestNewEmptyQueue(t *testing.T) { queue := NewQueue() if queue == nil { t.Fatal("Construct a new empty queue fail!") } if len(queueList) > 0 { t.Fatal("Initailize the queue list wrong!") } }
explode_data.jsonl/55225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 3564, 3522, 7554, 1155, 353, 8840, 836, 8, 341, 46993, 1669, 1532, 7554, 741, 743, 7177, 621, 2092, 341, 197, 3244, 26133, 445, 28468, 264, 501, 4287, 7177, 3690, 22988, 197, 630, 743, 2422, 34010, 852, 8, 861, 220, 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 ]
3
func TestInstanceExistsByProviderID(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() cloud := GetTestCloud(ctrl) testcases := []struct { name string vmList []string nodeName string providerID string expected bool expectedErrMsg error }{ { name:...
explode_data.jsonl/60298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1895 }
[ 2830, 3393, 2523, 15575, 1359, 5179, 915, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 197, 12361, 1669, 2126, 2271, 16055, 62100, 692, 18185, 23910, 1669, 3056, 1235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestRedelegationEqual(t *testing.T) { r1 := NewRedelegation(sdk.AccAddress(addr1), addr2, addr3, 0, time.Unix(0, 0), sdk.NewInt(0), sdk.NewDec(0)) r2 := NewRedelegation(sdk.AccAddress(addr1), addr2, addr3, 0, time.Unix(0, 0), sdk.NewInt(0), sdk.NewDec(0)) ok := r1.Equal(r2) require.True(t, ok) r2.En...
explode_data.jsonl/58938
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 6033, 68, 87566, 2993, 1155, 353, 8840, 836, 8, 341, 7000, 16, 1669, 1532, 6033, 68, 87566, 1141, 7584, 77538, 4286, 24497, 16, 701, 10789, 17, 11, 10789, 18, 11, 220, 15, 345, 197, 21957, 10616, 941, 7, 15, 11, 220, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAlgorithms(t *testing.T) { heuristics := []Heuristic{ UseFirst(Halving{}, DeltaLargest{}), UseFirst(Halving{}, Approximation{}), } for _, heuristic := range heuristics { suite := algtest.SequenceAlgorithmSuite{ Algorithm: NewAlgorithm(heuristic), AcceptsLargeInputs: true, } t.Run(su...
explode_data.jsonl/3505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 2101, 18980, 1155, 353, 8840, 836, 8, 341, 197, 383, 324, 5589, 1669, 3056, 1519, 34456, 515, 197, 95023, 5338, 10896, 278, 4405, 22655, 24957, 43, 32381, 6257, 1326, 197, 95023, 5338, 10896, 278, 4405, 22655, 43819, 5465, 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 TestDownloadTo_VerifyLater(t *testing.T) { defer ensure.HelmHome(t)() dest := ensure.TempDir(t) defer os.RemoveAll(dest) // Set up a fake repo srv, err := repotest.NewTempServerWithCleanup(t, "testdata/*.tgz*") if err != nil { t.Fatal(err) } defer srv.Stop() if err := srv.LinkIndices(); err != nil { ...
explode_data.jsonl/1373
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 458 }
[ 2830, 3393, 11377, 1249, 2334, 261, 1437, 29982, 1155, 353, 8840, 836, 8, 341, 16867, 5978, 3839, 23162, 7623, 1155, 8, 2822, 49616, 1669, 5978, 65009, 6184, 1155, 340, 16867, 2643, 84427, 27010, 692, 197, 322, 2573, 705, 264, 12418, 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 TestGetResourceGroups(t *testing.T) { tests := []struct { name string nodeResourceGroups map[string]string expected sets.String informerSynced bool expectError bool }{ { name: "cloud provider configured RG should be returned by default", nodeReso...
explode_data.jsonl/80295
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 600 }
[ 2830, 3393, 1949, 4783, 22173, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 2290, 914, 198, 197, 20831, 4783, 22173, 2415, 14032, 30953, 198, 197, 42400, 1843, 7289, 6431, 198, 197, 17430, 34527, 12154, 291, 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 TestEntityResponseWriter(t *testing.T) { t.Run("InvalidAccept", testEntityResponseWriterInvalidAccept) t.Run("Success", func(t *testing.T) { for _, defaultFormat := range wrp.AllFormats() { t.Run(defaultFormat.String(), func(t *testing.T) { testEntityResponseWriterSuccess(t, defaultFormat, defaultForma...
explode_data.jsonl/14998
{ "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, 3030, 2582, 6492, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 7928, 16646, 497, 1273, 3030, 2582, 6492, 7928, 16646, 692, 3244, 16708, 445, 7188, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2023, 8358, 1638, 4061, 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