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 TestSpecificSeek(t *testing.T) { m := newMockD() defer close(m.recvChan) ds := initializeDeliverHandler() go ds.Handle(m) specifiedStart := uint64(3) specifiedStop := uint64(7) m.recvChan <- makeSeek(systemChainID, &ab.SeekInfo{Start: seekSpecified(specifiedStart), Stop: seekSpecified(specifiedStop), Beha...
explode_data.jsonl/36259
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 343 }
[ 2830, 3393, 47514, 39350, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 501, 11571, 35, 741, 16867, 3265, 1255, 40433, 46019, 692, 83336, 1669, 9468, 16532, 1524, 3050, 741, 30680, 11472, 31421, 1255, 692, 1903, 44040, 3479, 1669, 2622, 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...
7
func TestBaseIdentity_StunnedGettersSetters(t *testing.T) { i := getTestBaseIdentity() if i.IsStunned() { t.Errorf("IsStunned should have return false, but it returned true") } i.ApplyStun() if !i.IsStunned() { t.Error("ApplyStun should have set stun to true, but it was false") } i.ClearStun() if i.IsStun...
explode_data.jsonl/55781
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 3978, 18558, 70645, 37990, 1949, 5045, 1649, 5045, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 633, 2271, 3978, 18558, 741, 743, 600, 4506, 623, 37990, 368, 341, 197, 3244, 13080, 445, 3872, 623, 37990, 1265, 614, 470, 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...
4
func TestList_FrontValue(t *testing.T) { gtest.C(t, func(t *gtest.T) { l := New() l2 := New() a1 := []interface{}{1, 2, 3, 4} l.PushFronts(a1) i1 := l.FrontValue() t.Assert(gconv.Int(i1), 4) t.Assert(l.Len(), 4) i1 = l2.FrontValue() t.Assert(i1, nil) }) }
explode_data.jsonl/30905
{ "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, 852, 1400, 9411, 1130, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 8810, 1669, 1532, 741, 197, 8810, 17, 1669, 1532, 741, 197, 11323, 16, 1669, 3056, 4970, 6257, 90,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestObjectTypeFromString(t *testing.T) { for str, typ := range map[string]ObjectType{ "blob": BlobObjectType, "tree": TreeObjectType, "commit": CommitObjectType, "tag": TagObjectType, "something else": UnknownObjectType, } { t.Run(str, func(t *testing.T) { as...
explode_data.jsonl/72186
{ "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, 49530, 44491, 1155, 353, 8840, 836, 8, 341, 2023, 607, 11, 3582, 1669, 2088, 2415, 14032, 60, 49530, 515, 197, 197, 1, 35112, 788, 1843, 49439, 49530, 345, 197, 197, 1, 9344, 788, 1843, 8942, 49530, 345, 197, 197, 1, 174...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStyledIndexing(t *testing.T) { Test(t, That("put (styled-segment abc &italic=$true &fg-color=red)[bold]").Puts(false), That("put (styled-segment abc &italic=$true &fg-color=red)[italic]").Puts(true), That("put (styled-segment abc &italic=$true &fg-color=red)[fg-color]").Puts("red"), ) Test(t, That(...
explode_data.jsonl/6987
{ "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, 34180, 1552, 287, 1155, 353, 8840, 836, 8, 341, 73866, 1155, 345, 197, 197, 4792, 445, 628, 320, 22849, 7806, 9070, 39022, 609, 34406, 3186, 1866, 609, 4817, 7889, 28, 1151, 6620, 14824, 44891, 47, 6128, 3576, 1326, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMultiBot_Help(t *testing.T) { mockBot := MockBot{} mockBot.On("Help", mock.Anything).Return("blahblahblah") bot := MultiBot{ &mockBot, } assert.Equal(t, "blahblahblah", bot.Help()) assert.Equal(t, &Response{ Text: "blahblahblah", }, bot.OnMessage(Message{ Text: "help", })) }
explode_data.jsonl/15509
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 20358, 23502, 2039, 1267, 1155, 353, 8840, 836, 8, 341, 77333, 23502, 1669, 14563, 23502, 16094, 77333, 23502, 8071, 445, 12689, 497, 7860, 13311, 1596, 568, 5598, 445, 70614, 70614, 70614, 1138, 2233, 354, 1669, 17439, 23502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToAuthOptions(t *testing.T) { cfg := Config{} cfg.Global.Username = "user" // etc. ao := cfg.toAuthOptions() if !ao.AllowReauth { t.Errorf("Will need to be able to reauthenticate") } if ao.Username != cfg.Global.Username { t.Errorf("Username %s != %s", ao.Username, cfg.Global.Username) } }
explode_data.jsonl/6587
{ "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, 1249, 5087, 3798, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 5532, 16094, 50286, 27381, 42777, 284, 330, 872, 698, 197, 322, 4992, 382, 197, 3441, 1669, 13286, 2389, 5087, 3798, 2822, 743, 753, 3441, 29081, 693, 3242, 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...
3
func TestMultiStoreRestart(t *testing.T) { db := dbm.NewMemDB() pruning := types.PruningOptions{ KeepEvery: 3, SnapshotEvery: 6, } multi := newMultiStoreWithMounts(db, pruning) err := multi.LoadLatestVersion() require.Nil(t, err) initCid := multi.LastCommitID() k, v := "wind", "blows" k2, v2 := "wate...
explode_data.jsonl/21886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1115 }
[ 2830, 3393, 20358, 6093, 59354, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 76, 7121, 18816, 3506, 741, 25653, 37202, 1669, 4494, 1069, 6108, 287, 3798, 515, 197, 197, 19434, 11510, 25, 257, 220, 18, 345, 197, 7568, 9601, 11510, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpgradeControlPlane(t *testing.T) { //if !globalOpts.Enabled { // t.Skipf("upgrade test is disabled") //} t.Parallel() g := NewWithT(t) client := e2eutil.GetClientOrDie() t.Logf("Starting control plane upgrade test. FromImage: %s, toImage: %s", globalOpts.PreviousReleaseImage, globalOpts.LatestReleas...
explode_data.jsonl/62876
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1530 }
[ 2830, 3393, 43861, 3273, 34570, 1155, 353, 8840, 836, 8, 341, 197, 322, 333, 753, 9752, 43451, 13690, 341, 197, 322, 3244, 57776, 69, 445, 44230, 1273, 374, 8386, 1138, 197, 55342, 3244, 41288, 7957, 741, 3174, 1669, 1532, 2354, 51, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJsonListValue_Equal(t *testing.T) { listA := NewJSONList(NewRegistry(), &structpb.ListValue{Values: []*structpb.Value{ {Kind: &structpb.Value_NumberValue{NumberValue: -3}}, {Kind: &structpb.Value_StringValue{StringValue: "hello"}}}}) listB := NewJSONList(NewRegistry(), &structpb.ListValue{Values: []*stru...
explode_data.jsonl/55359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 328 }
[ 2830, 3393, 5014, 852, 1130, 2089, 1751, 1155, 353, 8840, 836, 8, 341, 14440, 32, 1669, 1532, 5370, 852, 35063, 15603, 1507, 609, 1235, 16650, 5814, 1130, 90, 6227, 25, 29838, 1235, 16650, 6167, 515, 197, 197, 90, 10629, 25, 609, 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...
6
func TestPrioritySampleTracerWeight(t *testing.T) { // Simple sample unit test assert := assert.New(t) env := defaultEnv s := getTestPriorityEngine() clientRate := 0.25 for i := 0; i < 10; i++ { trace, root := getTestTraceWithService(t, "my-service", s) SetSamplingPriority(root, SamplingPriority(i%2)) root...
explode_data.jsonl/7956
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 20555, 17571, 1282, 9584, 8295, 1155, 353, 8840, 836, 8, 341, 197, 322, 8993, 6077, 4982, 1273, 198, 6948, 1669, 2060, 7121, 1155, 340, 57538, 1669, 1638, 14359, 271, 1903, 1669, 633, 2271, 49471, 6082, 741, 25291, 11564, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMutatorFind(t *testing.T) { readCtx := context.Background() tests := []struct { name string ctx context.Context mutator *types.Mutator argument string expected bool expectedErrCode ErrCode }{ { name: "Found", ctx: readC...
explode_data.jsonl/12870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 590 }
[ 2830, 3393, 51440, 850, 9885, 1155, 353, 8840, 836, 8, 341, 37043, 23684, 1669, 2266, 19047, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 20985, 1797, 2266, 9328, 198, 197, 2109, 332, 850, 260, 353, 9242, 1321, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPipe(t *testing.T) { type testcase struct { values []interface{} doClose bool } test := func(tc testcase) { src, sink := NewPipe() errCh := make(chan error) for _, v := range tc.values { go func(v_ interface{}) { errCh <- sink.Pour(context.TODO(), v_) }(v) v_, err := src.Next(con...
explode_data.jsonl/15577
{ "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, 34077, 1155, 353, 8840, 836, 8, 341, 13158, 70080, 2036, 341, 197, 45939, 220, 3056, 4970, 16094, 197, 19935, 7925, 1807, 198, 197, 630, 18185, 1669, 2915, 44415, 70080, 8, 341, 197, 41144, 11, 19309, 1669, 1532, 34077, 2822...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseTime(t *testing.T) { tests := []struct { name string input string timeZone float64 wantTime time.Time wantErr bool }{ { name: "Good case - Timezone positive", input: "01/01/2023 12:34:56", timeZone: 5, wantTime: time.Date(2023, 1, 1, 12, 34, 56, 0, time.FixedZo...
explode_data.jsonl/39060
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 514 }
[ 2830, 3393, 14463, 1462, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 914, 198, 197, 21957, 15363, 2224, 21, 19, 198, 197, 50780, 1462, 882, 16299, 198, 197, 50780, 7747, 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...
4
func TestUpgrade_removeACR(t *testing.T) { yaml := `apiVersion: skaffold/v1alpha5 kind: Config build: artifacts: - image: myregistry.azurecr.io/skaffold-example acr: {} deploy: kubectl: manifests: - k8s-* ` upgradeShouldFail(t, yaml) }
explode_data.jsonl/71755
{ "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, 43861, 18193, 1706, 49, 1155, 353, 8840, 836, 8, 341, 14522, 9467, 1669, 1565, 2068, 5637, 25, 1901, 2649, 813, 5457, 16, 7141, 20, 198, 15314, 25, 5532, 198, 5834, 510, 220, 35036, 510, 220, 481, 2168, 25, 847, 29172, 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 TestHealth(t *testing.T) { for i, c := range GetClients() { nc, ok := c.(client.NetworkClient) require.True(t, ok, "%d", i) _, err := nc.Health() require.Nil(t, err, "%d: %+v", i, err) } }
explode_data.jsonl/48944
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 14542, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 272, 1669, 2088, 2126, 47174, 368, 341, 197, 197, 1016, 11, 5394, 1669, 272, 12832, 2972, 30149, 2959, 340, 197, 17957, 32443, 1155, 11, 5394, 11, 5962, 67, 497, 600, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAWSCodeCloneURLs(t *testing.T) { clock := timeutil.NewFakeClock(time.Now(), 0) now := clock.Now() repo := &awscodecommit.Repository{ ARN: "arn:aws:codecommit:us-west-1:999999999999:stripe-go", AccountID: "999999999999", ID: "f001337a-3450-46fd-b7d2-650c0EXAMPLE", Name: ...
explode_data.jsonl/39374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 393 }
[ 2830, 3393, 36136, 2078, 37677, 3144, 82, 1155, 353, 8840, 836, 8, 341, 84165, 1669, 882, 1314, 7121, 52317, 26104, 9730, 13244, 1507, 220, 15, 340, 80922, 1669, 8866, 13244, 2822, 17200, 5368, 1669, 609, 8635, 1851, 17413, 25170, 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...
2
func TestScribble(t *testing.T) { // attempt to remove the db from any previous tests if err := os.RemoveAll("/tmp/scribble"); err != nil { t.Fatalf(err.Error()) } url, err := url.Parse("scribble://?db=/tmp/scribble") if err != nil { t.Fatalf(err.Error()) } scribble, err := mistAuth.NewScribble(url) if e...
explode_data.jsonl/71511
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 50, 740, 59880, 1155, 353, 8840, 836, 8, 1476, 197, 322, 4774, 311, 4057, 279, 2927, 504, 894, 3681, 7032, 198, 743, 1848, 1669, 2643, 84427, 4283, 5173, 2687, 740, 59880, 5038, 1848, 961, 2092, 341, 197, 3244, 30762, 3964...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConn_WriteOnClosedFails(t *testing.T) { requireVCAN0(t) conn, err := Dial("can", "vcan0") assert.NilError(t, err) tr := NewTransmitter(conn) ctx, done := context.WithTimeout(context.Background(), time.Second) defer done() assert.NilError(t, tr.TransmitFrame(ctx, can.Frame{})) // When I close the connec...
explode_data.jsonl/35859
{ "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, 9701, 31825, 1925, 26884, 37, 6209, 1155, 353, 8840, 836, 8, 341, 17957, 11287, 1093, 15, 1155, 340, 32917, 11, 1848, 1669, 66155, 445, 4814, 497, 330, 85, 4814, 15, 1138, 6948, 59678, 1454, 1155, 11, 1848, 340, 25583, 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 TestAppendComponentParams(t *testing.T) { tests := []struct { componentName string jsonnet string params Params expected string }{ // Test case with existing components { "baz", ` { global: { // User-defined global parameters; accessible to all component and environments...
explode_data.jsonl/36747
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1963 }
[ 2830, 3393, 23877, 2189, 4870, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 52228, 675, 914, 198, 197, 30847, 4711, 981, 914, 198, 197, 25856, 286, 34352, 198, 197, 42400, 414, 914, 198, 197, 59403, 197, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestBoringServerSignatureAndHash(t *testing.T) { defer func() { testingOnlyForceClientHelloSignatureAlgorithms = nil }() for _, sigHash := range defaultSupportedSignatureAlgorithms { t.Run(fmt.Sprintf("%#x", sigHash), func(t *testing.T) { serverConfig := testConfig.Clone() serverConfig.Certificates =...
explode_data.jsonl/9399
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 890 }
[ 2830, 3393, 33, 5503, 5475, 25088, 3036, 6370, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 197, 8840, 7308, 18573, 2959, 9707, 25088, 2101, 18980, 284, 2092, 198, 197, 66816, 2023, 8358, 8366, 6370, 1669, 2088, 1638, 34636...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Time(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 whenLayout string expectValue time.Time ...
explode_data.jsonl/82554
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1062 }
[ 2830, 3393, 1130, 44055, 39080, 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, 19, 20, 25, 18, 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...
4
func TestStage(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleStageImageDataSuccessfully(t) err := imagedata.Stage( fakeclient.ServiceClient(), "da3b75d9-3f4a-40e7-8a2c-bfab23927dea", readSeekerOfBytes([]byte{5, 3, 7, 24})).ExtractErr() th.AssertNoErr(t, err) }
explode_data.jsonl/7109
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 19398, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 2822, 197, 6999, 19398, 90583, 35959, 1155, 692, 9859, 1669, 732, 3279, 459, 69873, 1006, 197, 1166, 726, 2972, 13860, 2959, 3148, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPro(t *testing.T) { t.Run("566. Reshape the Matrix", func(t *testing.T) { input := [][]int{{1, 2}, {3, 4}} r, c := 1, 4 want := [][]int{{1, 2, 3, 4}} got := solution(input, r, c) if !IntSliceEqual(got, want) { t.Errorf("got: %v, want: %v", got, want) } }) t.Run("566. Reshape the Matrix2", f...
explode_data.jsonl/41699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 1336, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 20, 21, 21, 13, 1800, 29788, 279, 11631, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 22427, 1669, 52931, 396, 2979, 16, 11, 220, 17, 2137, 314, 18, 11, 220, 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 TestDIDSecrets_Get(t *testing.T) { t.Run("returns secret", func(t *testing.T) { expected := httpsignatures.Secret{ KeyID: uuid.New().String(), PublicKey: uuid.New().String(), PrivateKey: uuid.New().String(), Algorithm: uuid.New().String(), } d := &zcapld.DIDSecrets{ Secrets: map[string...
explode_data.jsonl/71475
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 584 }
[ 2830, 3393, 35, 915, 19773, 82, 13614, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4216, 6234, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 42400, 1669, 3703, 622, 2789, 74779, 515, 298, 55242, 915, 25, 414, 16040, 7121, 1005, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStatus_NotReady(t *testing.T) { mockJSONRPC := &mocks.JSONRPC{} mockGraphQL := &mocks.GraphQL{} c := &Client{ c: mockJSONRPC, g: mockGraphQL, traceSemaphore: semaphore.NewWeighted(100), } ctx := context.Background() mockJSONRPC.On( "CallContext", ctx, mock.Anything...
explode_data.jsonl/55484
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 316 }
[ 2830, 3393, 2522, 60816, 19202, 1155, 353, 8840, 836, 8, 341, 77333, 5370, 29528, 1669, 609, 16712, 82, 18009, 29528, 16094, 77333, 88637, 1669, 609, 16712, 82, 40237, 3588, 31483, 1444, 1669, 609, 2959, 515, 197, 1444, 25, 1060, 7860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPersistingPropertyAndTagWithSameName(t *testing.T) { dimension := types.Dimension{ Properties: map[string]string{ "shared_name": "property_value", }, Tags: map[string]bool{ "shared_name": true, }, } metadataUpdate := dimensionToMetadataUpdate(dimension) expectedMetadataToUpdate := map[string]...
explode_data.jsonl/6186
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 61267, 287, 3052, 3036, 5668, 2354, 19198, 675, 1155, 353, 8840, 836, 8, 341, 2698, 18161, 1669, 4494, 53234, 515, 197, 197, 7903, 25, 2415, 14032, 30953, 515, 298, 197, 1, 6100, 1269, 788, 330, 3699, 3142, 756, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStoreAppendRead(t *testing.T) { f, err := ioutil.TempFile("", "store_append_read_test") require.NoError(t, err) defer os.Remove(f.Name()) s, err := newStore(f) require.NoError(t, err) testAppend(t, s) testRead(t, s) testReadAt(t, s) s, err = newStore(f) require.NoError(t, err) testRead(t, s) }
explode_data.jsonl/15730
{ "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, 6093, 23877, 4418, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 43144, 65009, 1703, 19814, 330, 4314, 26041, 6443, 4452, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 13270, 955, 2967, 12367, 1903, 11, 1848, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIsTCPReachable(t *testing.T) { server1 := newMockTLSServer(t) defer server1.httpServer.Close() server2 := newMockTLSServer(t) defer server2.httpServer.Close() host := "127.0.0.1" port1, err := getServerPort(server1.httpServer) if err != nil { t.Fatalf("error to get the server 1 port: %v", err) } po...
explode_data.jsonl/18245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 3872, 49896, 48368, 480, 1155, 353, 8840, 836, 8, 341, 41057, 16, 1669, 501, 11571, 13470, 1220, 2836, 1155, 340, 16867, 3538, 16, 6964, 5475, 10421, 741, 41057, 17, 1669, 501, 11571, 13470, 1220, 2836, 1155, 340, 16867, 353...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func Test_rdfParser2_2_nodeToTriples(t *testing.T) { var parser *rdfParser2_2 var output, expectedOutput []*gordfParser.Triple // TestCase 1: a nil node shouldn't raise any error or panic. parser, _ = parserFromBodyContent(``) output = parser.nodeToTriples(nil) if output == nil { t.Errorf("nil input should ret...
explode_data.jsonl/52718
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 576 }
[ 2830, 3393, 1710, 2940, 6570, 17, 62, 17, 5084, 1249, 56352, 642, 1155, 353, 8840, 836, 8, 341, 2405, 6729, 353, 77998, 6570, 17, 62, 17, 198, 2405, 2550, 11, 3601, 5097, 29838, 70, 539, 69, 6570, 836, 461, 694, 271, 197, 322, 305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestOracleFactory(t *testing.T) { defer leaktest.AfterTest(t)() disableEnterprise := utilccl.TestingEnableEnterprise() defer disableEnterprise() st := cluster.MakeTestingClusterSettings() storage.FollowerReadsEnabled.Override(&st.SV, true) clock := hlc.NewClock(hlc.UnixNano, time.Nanosecond) stopper := stop...
explode_data.jsonl/65123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 526 }
[ 2830, 3393, 48663, 4153, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 34597, 480, 85647, 1669, 4094, 66, 564, 8787, 287, 11084, 85647, 741, 16867, 11156, 85647, 741, 18388, 1669, 10652, 50133, 16451, 28678,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLike(t *testing.T) { fmt.Println("===== Like =====") var l = Like("a", "%", "haha", "%") fmt.Println(l.ToSQL()) var nl = NotLike("a", "%", "hehe", "%") fmt.Println(nl.ToSQL()) }
explode_data.jsonl/1265
{ "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, 12949, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 445, 46725, 8909, 30742, 1138, 2405, 326, 284, 8909, 445, 64, 497, 5962, 497, 330, 71, 13546, 497, 5962, 1138, 11009, 12419, 2333, 3274, 6688, 12367, 2405, 20216, 284, 2806,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFindResourcesFiles(t *testing.T) { type want struct { found []string err error } tests := []struct { name string fs afero.Fs resourcesDir string want want }{ { // unpack should fail to find the install.yaml file name: "EmptyDir", fs: func() afero.Fs { ...
explode_data.jsonl/74162
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 924 }
[ 2830, 3393, 9885, 11277, 10809, 1155, 353, 8840, 836, 8, 341, 13158, 1366, 2036, 341, 197, 58102, 3056, 917, 198, 197, 9859, 256, 1465, 198, 197, 630, 78216, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 53584, 1843, 264, 802...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListCommandRunEClosureWithErr(t *testing.T) { assert := assert.New(t) cli := test.NewCLI() client := cli.Client.(*client.MockClient) client.On("ListAssets", mock.Anything).Return([]types.Asset{}, errors.New("fire")) cmd := ListCommand(cli) out, err := test.RunCmd(cmd, []string{}) assert.Empty(out) a...
explode_data.jsonl/78034
{ "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, 852, 4062, 6727, 7498, 11653, 2354, 7747, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 86448, 1669, 1273, 7121, 63959, 741, 25291, 1669, 21348, 11716, 41399, 2972, 24664, 2959, 340, 25291, 8071, 445, 852, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestX5C_AuthorizeSSHSign(t *testing.T) { x5cCerts, err := pemutil.ReadCertificateBundle("./testdata/certs/x5c-leaf.crt") assert.FatalError(t, err) x5cJWK, err := jose.ReadKey("./testdata/secrets/x5c-leaf.key") assert.FatalError(t, err) _, fn := mockNow() defer fn() type test struct { p *X5C token ...
explode_data.jsonl/44607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3132 }
[ 2830, 3393, 55, 20, 34, 1566, 1553, 551, 62419, 7264, 1155, 353, 8840, 836, 8, 341, 10225, 20, 66, 34, 15546, 11, 1848, 1669, 54184, 1314, 6503, 33202, 8409, 13988, 92425, 2899, 15546, 10776, 20, 66, 12, 24153, 93869, 1138, 6948, 2613...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDelete_Run(t *testing.T) { ctrl := gomock.NewController(t) mockStore := mocks.NewMockUserDeleter(ctrl) defer ctrl.Finish() mockStore. EXPECT(). DeleteUser(gomock.Eq("5a0a1e7e0f2912c554080adc")). Return(nil). Times(1) opts := &DeleteOpts{ store: mockStore, DeleteOpts: &cli.DeleteOpts{ Entr...
explode_data.jsonl/51577
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 6435, 84158, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 77333, 6093, 1669, 68909, 7121, 11571, 1474, 1912, 273, 465, 62100, 340, 16867, 23743, 991, 18176, 2822, 77333, 6093, 624, 197, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetCertificate_wrongCacheKeyType(t *testing.T) { cache := newMemCache(t) man := &Manager{Prompt: AcceptTOS, Cache: cache} defer man.stopRenew() url, finish := startACMEServerStub(t, getCertificateFromManager(man, true), exampleDomain) defer finish() man.Client = &acme.Client{DirectoryURL: url} // Make ...
explode_data.jsonl/65052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 529 }
[ 2830, 3393, 1949, 33202, 75198, 8233, 97964, 1155, 353, 8840, 836, 8, 341, 52680, 1669, 501, 18816, 8233, 1155, 340, 197, 1515, 1669, 609, 2043, 90, 54615, 25, 20829, 51, 3126, 11, 19479, 25, 6500, 532, 16867, 883, 13227, 34625, 365, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJoin152(t *testing.T) { var jsonStr = `{ "distance": 1374.0, "validFrom": "2005-11-14", "historical": { "type": "Day", "name": "last25Hours", "summary": { "units": { "temperature": "C", "wind": "m/s", "snow": "cm", "precipitation": "mm" }, "days": [ { "t...
explode_data.jsonl/43479
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1268 }
[ 2830, 3393, 12292, 16, 20, 17, 1155, 353, 8840, 836, 8, 341, 2405, 2951, 2580, 284, 1565, 515, 197, 197, 1, 19348, 788, 220, 16, 18, 22, 19, 13, 15, 345, 197, 197, 1, 1891, 3830, 788, 330, 17, 15, 15, 20, 12, 16, 16, 12, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUintUintInvalid(t *testing.T) { ti := Uint{ ValidFlag: false, uint: 123456789, } if ti.Uint() != 0 { t.Errorf("actual:%d, expected:0", ti.Uint()) } }
explode_data.jsonl/13396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 21570, 21570, 7928, 1155, 353, 8840, 836, 8, 341, 72859, 1669, 27883, 515, 197, 197, 4088, 12135, 25, 895, 345, 197, 8254, 25, 414, 220, 16, 17, 18, 19, 20, 21, 22, 23, 24, 345, 197, 532, 743, 8988, 71869, 368, 961, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteModule_Interdependent(t *testing.T) { t.Skip("Skipping due to golang/go#46375: race due to orphaned file reloading") const multiModule = ` -- moda/a/go.mod -- module a.com require b.com v1.2.3 -- moda/a/go.sum -- b.com v1.2.3 h1:tXrlXP0rnjRpKNmkbLYoWBdq0ikb3C3bKK9//moAWBI= b.com v1.2.3/go.mod h1:D+J7...
explode_data.jsonl/37364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 805 }
[ 2830, 3393, 6435, 3332, 79717, 37555, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 85945, 4152, 311, 342, 37287, 25525, 2, 19, 21, 18, 22, 20, 25, 6957, 4152, 311, 12746, 291, 1034, 85630, 5130, 4777, 7299, 3332, 284, 22074, 313, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStream_RmqTtMsgStream_Insert(t *testing.T) { producerChannels := []string{"insert1", "insert2"} consumerChannels := []string{"insert1", "insert2"} consumerSubName := "subInsert" msgPack0 := MsgPack{} msgPack0.Msgs = append(msgPack0.Msgs, getTimeTickMsg(0)) msgPack1 := MsgPack{} msgPack1.Msgs = append(...
explode_data.jsonl/55304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 441 }
[ 2830, 3393, 3027, 2568, 27674, 51, 83, 6611, 3027, 76417, 1155, 353, 8840, 836, 8, 341, 197, 58912, 35925, 1669, 3056, 917, 4913, 4208, 16, 497, 330, 4208, 17, 16707, 37203, 11761, 35925, 1669, 3056, 917, 4913, 4208, 16, 497, 330, 420...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoOp_ExecuteInbound(t *testing.T) { followup, _, err := (&noOp{}).ExecuteInbound(nil, &metaData{}) require.Error(t, err) require.Nil(t, followup) }
explode_data.jsonl/66235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 2753, 7125, 83453, 641, 10891, 1155, 353, 8840, 836, 8, 341, 1166, 1544, 454, 11, 8358, 1848, 1669, 15899, 2152, 7125, 6257, 568, 17174, 641, 10891, 27907, 11, 609, 5490, 1043, 37790, 17957, 6141, 1155, 11, 1848, 340, 17957,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRandomlySelectAlternateColor(t *testing.T) { for i := 0; i < 1000; i++ { currentColor := Color(i % 7) color := RandomlySelectAlternateColor(currentColor, 7) NotEqual(t, Grey, color, "Grey randomly selected") NotEqual(t, currentColor, color, "Existing Color randomly selected") } }
explode_data.jsonl/77940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 13999, 398, 3379, 83042, 1636, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 15, 15, 26, 600, 1027, 341, 197, 20121, 1636, 1669, 3478, 1956, 1018, 220, 22, 340, 197, 21481, 1669, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMarshalRowChannel(t *testing.T) { ch := make(chan *Row) writer := bytes.NewBuffer([]byte{}) go func(c chan *Row) { for i := 0; i != 3; i++ { row := &Row{ ColumnNames: []string{"col1", "col2", "col3"}, Values: []string{"1", "2.0", "three"}, } c <- row } close(c) }(ch) err := w...
explode_data.jsonl/25319
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 55438, 3102, 9629, 1155, 353, 8840, 836, 8, 1476, 23049, 1669, 1281, 35190, 353, 3102, 340, 38959, 1669, 5820, 7121, 4095, 10556, 3782, 37790, 30680, 2915, 1337, 26023, 353, 3102, 8, 341, 197, 2023, 600, 1669, 220, 15, 26, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCollectTags(t *testing.T) { img := &mockImage{} tests := []struct { name string labels map[string]string imageName string runtime string expected []string err error }{ { "all functioning", map[string]string{"foo": "bar"}, "redis", "containerd", []string{"runtime...
explode_data.jsonl/1856
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 581 }
[ 2830, 3393, 47504, 15930, 1155, 353, 8840, 836, 8, 341, 39162, 1669, 609, 16712, 1906, 16094, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 95143, 262, 2415, 14032, 30953, 198, 197, 31426, 675, 914, 198, 197, 7000, 4466,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlerServeCSPHeader(t *testing.T) { t.Run("non-static", func(t *testing.T) { th := SetupWithStoreMock(t) defer th.TearDown() web := New(th.Server, th.Server.AppOptions, th.Server.Router) handler := Handler{ GetGlobalAppOptions: web.GetGlobalAppOptions, HandleFunc: handlerForCSPHeade...
explode_data.jsonl/11785
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1648 }
[ 2830, 3393, 3050, 60421, 34, 4592, 4047, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 6280, 49730, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 70479, 1669, 18626, 2354, 6093, 11571, 1155, 340, 197, 16867, 270, 836, 682, 4454, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResponseMetaHeader_StableMarshal(t *testing.T) { metaHeaderOrigin := generateResponseMetaHeader(10) metaHeaderFrom := generateResponseMetaHeader(20) metaHeaderFrom.SetOrigin(metaHeaderOrigin) t.Run("non empty", func(t *testing.T) { wire, err := metaHeaderFrom.StableMarshal(nil) require.NoError(t, err)...
explode_data.jsonl/79976
{ "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, 2582, 12175, 4047, 70645, 480, 55438, 1155, 353, 8840, 836, 8, 341, 84004, 4047, 13298, 1669, 6923, 2582, 12175, 4047, 7, 16, 15, 340, 84004, 4047, 3830, 1669, 6923, 2582, 12175, 4047, 7, 17, 15, 340, 84004, 4047, 3830, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportResponseCancelRace(t *testing.T) { defer afterTest(t) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { // important that this response has a body. var b [1024]byte w.Write(b[:]) })) defer ts.Close() tr := &Transport{} defer tr.CloseIdleConnections() req, err :=...
explode_data.jsonl/4923
{ "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, 27560, 2582, 9269, 55991, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 692, 57441, 1669, 54320, 70334, 7121, 5475, 7, 3050, 9626, 18552, 3622, 5949, 6492, 11, 435, 353, 1900, 8, 341, 197, 197, 322, 2989, 429, 419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_findLatestTag(t *testing.T) { stdout.Out.SetVerbose() tests := []struct { name string tags []string want string }{ { "base", []string{"v3.25.2", "12345_2022-01-01_abcdefghijkl"}, "12345_2022-01-01_abcdefghijkl", }, { "higher_build_first", []string{"99981_2022-01-15_999999a", "99...
explode_data.jsonl/3436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 299 }
[ 2830, 3393, 21814, 31992, 5668, 1155, 353, 8840, 836, 8, 341, 6736, 411, 47178, 4202, 63404, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 3244, 2032, 3056, 917, 198, 197, 50780, 914, 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...
2
func TestAuthService_ResetPassword(t *testing.T) { user := createTestUser() code := "267483" hashedCode := "$2a$04$c12NAkAi9nOxkYM5vO7eUur2fd9M23M4roKPbroOvNhsBVF0mOmS." dao := dao.MockUserDao{} dao.On("GetByUsername", user.Username).Return(&user, nil) dao.On("GetResettingCode", user.ID).Return(hashedCode, nil)...
explode_data.jsonl/18900
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 90466, 67771, 4876, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 1855, 2271, 1474, 741, 43343, 1669, 330, 17, 21, 22, 19, 23, 18, 698, 50333, 291, 2078, 1669, 5201, 17, 64, 3, 15, 19, 29835, 16, 17, 7326, 74, 69667, 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
func TestURLParsing(t *testing.T) { contentsOfURLToken := func(expected T, contents string) string { t.Helper() kind, text := lexToken(contents) test.AssertEqual(t, kind, expected) return text } test.AssertEqual(t, contentsOfURLToken(TURL, "url(foo)"), "foo") test.AssertEqual(t, contentsOfURLToken(TURL, "ur...
explode_data.jsonl/47975
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 3144, 68839, 1155, 353, 8840, 836, 8, 341, 197, 17610, 2124, 3144, 3323, 1669, 2915, 15253, 350, 11, 8794, 914, 8, 914, 341, 197, 3244, 69282, 741, 197, 197, 15314, 11, 1467, 1669, 22429, 3323, 46964, 340, 197, 18185, 1171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfigureSecurityGroupsErrLookupExist(t *testing.T) { groups := []string{"group"} recorder := fakeEC2SecurityGroupTestRecorder{} lookupExistErr := errors.New("lookup failed") recorder.On("DescribeSecurityGroups", mock.MatchedBy(matchGroupLookup(groups))).Return( nil, lookupExistErr) driver := NewCusto...
explode_data.jsonl/7426
{ "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, 28560, 15352, 22173, 7747, 34247, 25613, 1155, 353, 8840, 836, 8, 341, 44260, 82, 1669, 3056, 917, 4913, 4074, 16707, 67904, 1358, 1669, 12418, 7498, 17, 15352, 2808, 2271, 47023, 31483, 197, 21020, 25613, 7747, 1669, 5975, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_selectActivityQuery(t *testing.T) { testcases := []struct { version int want string }{ {version: PostgresV95, want: postgresActivityQuery95}, {version: PostgresV96, want: postgresActivityQuery96}, {version: PostgresV10, want: postgresActivityQueryLatest}, } for _, tc := range testcases { a...
explode_data.jsonl/74547
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 13051, 4052, 2859, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 74954, 526, 198, 197, 50780, 262, 914, 198, 197, 59403, 197, 197, 90, 4366, 25, 3877, 17818, 53, 24, 20, 11, 1366, 25, 59826, 405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogEventBatch_sortLogEvents(t *testing.T) { totalEvents := 10 logEventBatch := &LogEventBatch{ PutLogEventsInput: &cloudwatchlogs.PutLogEventsInput{ LogEvents: make([]*cloudwatchlogs.InputLogEvent, 0, totalEvents)}} for i := 0; i < totalEvents; i++ { timestamp := rand.Int() logEvent := NewLogEvent...
explode_data.jsonl/61460
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 2201, 1556, 21074, 18435, 2201, 7900, 1155, 353, 8840, 836, 8, 341, 34493, 7900, 1669, 220, 16, 15, 198, 6725, 1556, 21074, 1669, 609, 2201, 1556, 21074, 515, 197, 10025, 332, 2201, 7900, 2505, 25, 609, 12361, 14321, 22081, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetNodeInfoFromNode(t *testing.T) { clientset := test.New(1) node, err := clientset.CoreV1().Nodes().Get("node0", metav1.GetOptions{}) assert.Nil(t, err) assert.NotNil(t, node) node.Status = v1.NodeStatus{} node.Status.Addresses = []v1.NodeAddress{ { Type: v1.NodeExternalIP, Address: "1.1.1.1...
explode_data.jsonl/39536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 314 }
[ 2830, 3393, 1949, 1955, 1731, 3830, 1955, 1155, 353, 8840, 836, 8, 341, 25291, 746, 1669, 1273, 7121, 7, 16, 340, 20831, 11, 1848, 1669, 2943, 746, 12777, 53, 16, 1005, 12288, 1005, 1949, 445, 3509, 15, 497, 77520, 16, 2234, 3798, 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 TestPasswordInvalid(t *testing.T) { if os.Getenv("TEST_PWD_REDIS_URI") == "" { t.Skipf("TEST_PWD_REDIS_URI not set - skipping") } testPwd := "redis-password" uri := strings.Replace(os.Getenv("TEST_PWD_REDIS_URI"), testPwd, "wrong-pwd", -1) e, _ := NewRedisExporter(uri, Options{Namespace: "test", Registry:...
explode_data.jsonl/47004
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 4876, 7928, 1155, 353, 8840, 836, 8, 341, 743, 2643, 64883, 445, 10033, 1088, 17563, 2192, 21202, 23116, 899, 621, 1591, 341, 197, 3244, 57776, 69, 445, 10033, 1088, 17563, 2192, 21202, 23116, 537, 738, 481, 42659, 1138, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMarshalSlicePointer(t *testing.T) { m := make([]int, 1) m[0] = 1 var buf bytes.Buffer err := NewEncoder(&buf).Encode(m) if err == nil { t.Error("expected error, got nil") return } if err.Error() != "Only a struct or map can be marshaled to TOML" { t.Fail() } }
explode_data.jsonl/46343
{ "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, 55438, 33236, 9084, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1281, 10556, 396, 11, 220, 16, 340, 2109, 58, 15, 60, 284, 220, 16, 271, 2405, 6607, 5820, 22622, 198, 9859, 1669, 1532, 19921, 2099, 5909, 568, 32535, 1255, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPkiService_SignServerCertificate(t *testing.T) { mc := InitMockEnvironment(t) defer mc.Close() cn := "test" altNames := models.AltNames{} rootId := "12345678" certId := "132" certPem := []byte("pem") ps, err := NewPKIService(mc.conf) assert.NoError(t, err) // good case mc.pki.EXPECT().GetRootCert...
explode_data.jsonl/66999
{ "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, 47, 6642, 1860, 1098, 622, 5475, 33202, 1155, 353, 8840, 836, 8, 341, 97662, 1669, 15690, 11571, 12723, 1155, 340, 16867, 19223, 10421, 2822, 1444, 77, 1669, 330, 1944, 698, 197, 3145, 7980, 1669, 4119, 875, 4832, 7980, 1609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKibanaObjects_ImportWithBadResponseStatus(t *testing.T) { underTest, err, teardown := setupKibanaObjectsTest() assert.NoError(t, err) defer teardown() mux.HandleFunc("/v1/kibana/import", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusInternalServerError) fmt.Fprint(w, "bad res...
explode_data.jsonl/42856
{ "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, 42, 579, 3362, 11543, 62, 11511, 2354, 17082, 92663, 1155, 353, 8840, 836, 8, 341, 197, 7995, 2271, 11, 1848, 11, 49304, 1669, 6505, 42, 579, 3362, 11543, 2271, 741, 6948, 35699, 1155, 11, 1848, 340, 16867, 49304, 2822, 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 TestTreeIndicesBug(t *testing.T) { router := New() testTable := [][]string{ {"/", "/"}, {"/books", "/books"}, {"/source", "/source"}, } for _, v := range testTable { v := v router.AddRoute("GET", v[0], func(w http.ResponseWriter, r *http.Request, vp Parameter) { for i := 1; i < len(v); i++ { ...
explode_data.jsonl/45455
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 345 }
[ 2830, 3393, 6533, 31941, 46773, 1155, 353, 8840, 836, 8, 341, 67009, 1669, 1532, 741, 18185, 2556, 1669, 52931, 917, 515, 197, 197, 90, 3115, 497, 3521, 7115, 197, 197, 90, 3115, 12110, 497, 3521, 12110, 7115, 197, 197, 90, 3115, 2427...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransformImportedTypesFromSamePackage(t *testing.T) { schema := []byte(` syntax = "proto3"; package test; import "any.proto"; message ErrorStatus { string message = 1; repeated Any details = 2; } `) input := new(bytes.Buffer) input.Write(schema) output := new(bytes.Buffer) transform...
explode_data.jsonl/2073
{ "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, 8963, 11511, 291, 4173, 3830, 19198, 13100, 1155, 353, 8840, 836, 8, 341, 1903, 3416, 1669, 3056, 3782, 61528, 197, 1903, 13662, 284, 330, 15110, 18, 876, 197, 197, 1722, 1273, 401, 197, 21918, 330, 3767, 57322, 3302, 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 TestContext2Plan_moduleCycle(t *testing.T) { m := testModule(t, "plan-module-cycle") p := testProvider("aws") p.GetSchemaReturn = &ProviderSchema{ ResourceTypes: map[string]*configschema.Block{ "aws_instance": { Attributes: map[string]*configschema.Attribute{ "id": {Type: cty.String, Compu...
explode_data.jsonl/28643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 726 }
[ 2830, 3393, 1972, 17, 20485, 10750, 44820, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 46718, 77690, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 2234, 8632, 5598, 284, 609, 5179, 8632, 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...
8
func TestCfg_SetPath(t *testing.T) { gtest.Case(t, func() { c := gcfg.New("config.yml") err := c.SetPath("tmp") gtest.AssertNE(err, nil) err = c.SetPath("gcfg.go") gtest.AssertNE(err, nil) gtest.Assert(c.Get("name"), nil) }) }
explode_data.jsonl/24452
{ "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, 42467, 14812, 1820, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 519, 1155, 11, 2915, 368, 341, 197, 1444, 1669, 342, 14072, 7121, 445, 1676, 33936, 1138, 197, 9859, 1669, 272, 4202, 1820, 445, 5173, 1138, 197, 3174, 194...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealth(t *testing.T) { client, err := shiroclient.NewMock(nil) require.NoError(t, err) defer func() { err := client.Close() require.NoError(t, err) }() initClient(t, client) version, err := client.ShiroPhylum() require.NoError(t, err) require.Equal(t, "test", version) hcBytes, err := call(client,...
explode_data.jsonl/72061
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 14542, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 557, 8698, 2972, 7121, 11571, 27907, 340, 17957, 35699, 1155, 11, 1848, 340, 16867, 2915, 368, 341, 197, 9859, 1669, 2943, 10421, 741, 197, 17957, 35699, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMaintainUnreadMentionsInThread(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() th.LinkUserToTeam(th.SystemAdminUser, th.BasicTeam) defer th.UnlinkUserFromTeam(th.SystemAdminUser, th.BasicTeam) th.AddUserToChannel(th.SystemAdminUser, th.BasicChannel) defer th.RemoveUserFromChannel(th.System...
explode_data.jsonl/47577
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1115 }
[ 2830, 3393, 66734, 466, 1806, 878, 44, 63701, 641, 6855, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 70479, 22534, 1474, 1249, 14597, 24365, 16620, 7210, 1474, 11, 270,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlers_GetMessage(t *testing.T) { t.Parallel() path := "/api/v3/messages/{messageId}" env := Setup(t, common1) user := env.CreateUser(t, rand) user2 := env.CreateUser(t, rand) user3 := env.CreateUser(t, rand) ch := env.CreateChannel(t, rand) dm := env.CreateDMChannel(t, user2.GetID(), user3.GetID())...
explode_data.jsonl/40148
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 574 }
[ 2830, 3393, 39949, 13614, 2052, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 26781, 1669, 3521, 2068, 5457, 18, 71753, 9388, 1994, 764, 11195, 57538, 1669, 18626, 1155, 11, 4185, 16, 340, 19060, 1669, 6105, 7251, 1474, 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...
1
func TestRPCQueryACL(t *testing.T) { codec.UpgradeHeight = 7000 _, _, cleanup := NewInMemoryTendermintNode(t, oneValTwoNodeGenesisState()) _, stopCli, evtChan := subscribeTo(t, tmTypes.EventNewBlock) <-evtChan // Wait for block var params = HeightParams{ Height: 0, } q := newQueryRequest("ACL", newBody(params)...
explode_data.jsonl/44723
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 303 }
[ 2830, 3393, 29528, 2859, 55393, 1155, 353, 8840, 836, 8, 341, 43343, 66, 13, 43861, 3640, 284, 220, 22, 15, 15, 15, 198, 197, 6878, 8358, 21290, 1669, 1532, 641, 10642, 51, 1659, 67791, 1955, 1155, 11, 825, 2208, 11613, 1955, 84652, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWindowHandles(t *testing.T) { ctx := context.Background() driver, err := CreateSession(ctx, wdAddress(), 3, nil) if err != nil { t.Fatal(err) } defer driver.Quit(ctx) if windows, err := driver.WindowHandles(ctx); err != nil { t.Fatal(err) } else if len(windows) != 1 { t.Fatalf("Got %v handles, e...
explode_data.jsonl/68738
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 4267, 65928, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 33652, 11, 1848, 1669, 4230, 5283, 7502, 11, 45404, 4286, 1507, 220, 18, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 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 TestStarRequest(t *testing.T) { u, err := Parse("*") if err != nil { t.Fatal(err) } if got, want := u.RequestURI(), "*"; got != want { t.Errorf("RequestURI = %q; want %q", got, want) } }
explode_data.jsonl/71732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 12699, 1900, 1155, 353, 8840, 836, 8, 341, 10676, 11, 1848, 1669, 14775, 29592, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 743, 2684, 11, 1366, 1669, 575, 9659, 10301, 1507, 15630, 5123, 2684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessage(t *testing.T) { commands := []string{ CommandVersion, CommandVersionAck, CommandInventory, CommandGetData, CommandGetHeaders, CommandHeaders, CommandBlock, CommandTx, CommandReject, } for _, cmd := range commands { msg := makeEmptyMessage(cmd) assert.NotNil(t, msg) } }
explode_data.jsonl/62974
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 2052, 1155, 353, 8840, 836, 8, 341, 197, 24270, 1669, 3056, 917, 515, 197, 97493, 5637, 345, 197, 97493, 5637, 55559, 345, 197, 97493, 22319, 345, 197, 97493, 68957, 345, 197, 97493, 1949, 10574, 345, 197, 97493, 10574, 345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSearchSourceWithString(t *testing.T) { client := setupTestClientAndCreateIndex(t) tweet1 := tweet{ User: "olivere", Retweets: 108, Message: "Welcome to Golang and Elasticsearch.", Created: time.Date(2012, 12, 12, 17, 38, 34, 0, time.UTC), } tweet2 := tweet{ User: "olivere", Retweets: 0, Message:...
explode_data.jsonl/37518
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 620 }
[ 2830, 3393, 5890, 3608, 52342, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 6505, 2271, 2959, 3036, 4021, 1552, 1155, 692, 3244, 4488, 16, 1669, 11809, 515, 197, 31672, 25, 330, 337, 344, 485, 497, 10392, 25415, 25, 220, 16, 15, 23, 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...
8
func TestLocalKMS_Success(t *testing.T) { // create a real (not mocked) master key and secret lock to test the KMS end to end sl := createMasterKeyAndSecretLock(t) storeDB := make(map[string][]byte) // test New() kmsService, err := New(testMasterKeyURI, &mockProvider{ storage: mockstorage.NewCustomMockStoreProv...
explode_data.jsonl/33100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1425 }
[ 2830, 3393, 7319, 42, 4826, 87161, 1155, 353, 8840, 836, 8, 341, 197, 322, 1855, 264, 1931, 320, 1921, 46149, 8, 7341, 1376, 323, 6234, 5296, 311, 1273, 279, 730, 4826, 835, 311, 835, 198, 78626, 1669, 1855, 18041, 1592, 3036, 19773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunStopUnits(t *testing.T) { unitPrefix := "stop" oldNoBlock := sharedFlags.NoBlock defer func() { sharedFlags.NoBlock = oldNoBlock }() results := []commandTestResults{ { "stop available units", []string{"stop1", "stop2", "stop3", "stop4", "stop5"}, 0, }, { "stop non-available units",...
explode_data.jsonl/23687
{ "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, 6727, 10674, 26314, 1155, 353, 8840, 836, 8, 341, 81189, 14335, 1669, 330, 9495, 698, 61828, 2753, 4713, 1669, 6094, 9195, 16766, 4713, 198, 16867, 2915, 368, 341, 197, 197, 6100, 9195, 16766, 4713, 284, 2310, 2753, 4713, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMarshalParams(t *testing.T) { got, err := MarshalParams("1", []string{"2", "3"}, "4", "5", "6") require.NoError(t, err) j, _ := json.MarshalIndent(got, "", " ") fmt.Println(string(j)) }
explode_data.jsonl/58248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 55438, 4870, 1155, 353, 8840, 836, 8, 341, 3174, 354, 11, 1848, 1669, 35667, 4870, 445, 16, 497, 3056, 917, 4913, 17, 497, 330, 18, 14345, 330, 19, 497, 330, 20, 497, 330, 21, 1138, 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 TestUpdate(t *testing.T) { storage, _, server := newStorage(t) defer server.Terminate(t) defer storage.Store.DestroyFunc() test := genericregistrytest.New(t, storage.Store) test.TestUpdate( // valid validIngress(), // updateFunc func(obj runtime.Object) runtime.Object { object := obj.(*networking.I...
explode_data.jsonl/47442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 405 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 197, 16172, 11, 8358, 3538, 1669, 501, 5793, 1155, 340, 16867, 3538, 836, 261, 34016, 1155, 340, 16867, 5819, 38047, 57011, 9626, 741, 18185, 1669, 13954, 29172, 1944, 7121, 1155, 11, 5819...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Ballots(t *testing.T) { goldenBallots := getResponse(ballots).(*Ballots) type want struct { wantErr bool containsErr string ballots Ballots } cases := []struct { name string inputHanler http.Handler want }{ { "handles RPC error", gtGoldenHTTPMock(ballotsHandlerMock(re...
explode_data.jsonl/48372
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 556 }
[ 2830, 3393, 1668, 541, 2412, 1155, 353, 8840, 836, 8, 341, 3174, 813, 268, 35907, 2412, 1669, 633, 2582, 79319, 2412, 568, 4071, 35907, 2412, 692, 13158, 1366, 2036, 341, 197, 50780, 7747, 257, 1807, 198, 197, 197, 13372, 7747, 914, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIgnoreDeadCapture(t *testing.T) { t.Parallel() ctx := cdcContext.NewBackendContext4Test(false) communicator := NewMockScheduleDispatcherCommunicator() dispatcher := NewBaseScheduleDispatcher("cf-1", communicator, 1000) dispatcher.captureStatus = map[model.CaptureID]*captureStatus{ "capture-1": { Syn...
explode_data.jsonl/28508
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 450 }
[ 2830, 3393, 12497, 28320, 27429, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 1669, 272, 7628, 1972, 7121, 29699, 1972, 19, 2271, 3576, 340, 197, 25579, 850, 1669, 1532, 11571, 32210, 21839, 80923, 850, 741, 60072, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetImageOK(t *testing.T) { testServer(func(s *core.Server) { headers := make(map[string]string) headers["X-Api-Token"] = apiToken headers["X-Api-Secret"] = apiSecret url := "/api/v1/files/" + fileName + "/" + fileID //make request res, err := testHTTPRequestWithHeaders("GET", url, ``, headers) ...
explode_data.jsonl/42222
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 454 }
[ 2830, 3393, 1949, 1906, 3925, 1155, 353, 8840, 836, 8, 1476, 18185, 5475, 18552, 1141, 353, 2153, 22997, 8, 1476, 197, 67378, 1669, 1281, 9147, 14032, 30953, 340, 197, 67378, 1183, 55, 12, 6563, 89022, 1341, 284, 6330, 3323, 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...
4
func TestNumUint64String(t *testing.T) { var i int64 = 9007199254740993 //2^53 + 1 j := fmt.Sprintf(`{"data": [ %d, "hello" ] }`, i) res := Get(j, "data.0") if res.String() != "9007199254740993" { t.Fatalf("expected '%v', got '%v'", "9007199254740993", res.String()) } }
explode_data.jsonl/43454
{ "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, 4651, 21570, 21, 19, 703, 1155, 353, 8840, 836, 8, 341, 2405, 600, 526, 21, 19, 284, 220, 24, 15, 15, 22, 16, 24, 24, 17, 20, 19, 22, 19, 15, 24, 24, 18, 442, 17, 61, 20, 18, 488, 220, 16, 198, 12428, 1669, 887...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHashAggregator(t *testing.T) { tcs := []aggregatorTestCase{ { // Test carry between output batches. input: tuples{ {0, 1}, {1, 5}, {0, 4}, {0, 2}, {2, 6}, {0, 3}, {0, 7}, }, colTypes: []types.T{types.Int64, types.Int64}, groupCols: []uint32{0}, aggCols: [][]u...
explode_data.jsonl/8886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1320 }
[ 2830, 3393, 6370, 9042, 58131, 1155, 353, 8840, 836, 8, 341, 3244, 4837, 1669, 3056, 351, 58131, 16458, 515, 197, 197, 515, 298, 197, 322, 3393, 6777, 1948, 2550, 44792, 624, 298, 22427, 25, 45225, 515, 571, 197, 90, 15, 11, 220, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestNotMatcher(t *testing.T) { for i, currCase := range []struct { m matcher.Matcher path string want bool }{ {matcher.Any(matcher.Name("foo")), "foo", false}, {matcher.Any(matcher.Name("foo")), "bar", true}, {matcher.Any(matcher.Name("foo"), matcher.Name("bar")), "bar", false}, {matcher.Any(mat...
explode_data.jsonl/81370
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 277 }
[ 2830, 3393, 2623, 37554, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 9804, 4207, 1669, 2088, 3056, 1235, 341, 197, 2109, 262, 36052, 76452, 198, 197, 26781, 914, 198, 197, 50780, 1807, 198, 197, 59403, 197, 197, 90, 70826, 13311, 254...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_EnvironmentAttributes(t *testing.T) { f := statefixtures.LoadFixture(statefixtures.Default, t) devEnv := f.Environment("dev") swatEnv := f.Environment("swatomation") hybridEnv := f.Environment("fiab-funky-chipmunk") assert.Equal(t, 8, len(devEnv.Releases())) assert.Equal(t, terra.Static, devEnv.Lifecy...
explode_data.jsonl/79309
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 62, 12723, 10516, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1584, 45247, 13969, 18930, 8390, 45247, 13275, 11, 259, 692, 27302, 14359, 1669, 282, 45651, 445, 3583, 1138, 1903, 58047, 14359, 1669, 282, 45651, 445, 2280, 21855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHostname(t *testing.T) { test.DropPrivilege(t) defer test.ResetPrivilege(t) _, err := Hostname("") if err == nil { t.Errorf("should have failed with empty hostname") } content, err := Hostname("mycontainer") if err != nil { t.Errorf("should have passed with correct hostname") } if !bytes.Equal(co...
explode_data.jsonl/74252
{ "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, 88839, 1155, 353, 8840, 836, 8, 341, 18185, 21688, 32124, 42769, 1155, 340, 16867, 1273, 36660, 32124, 42769, 1155, 692, 197, 6878, 1848, 1669, 16102, 606, 31764, 743, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 5445, 614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRouteConversionBadType(t *testing.T) { good, bad := &Route{}, &Service{} if err := good.ConvertUp(context.Background(), bad); err == nil { t.Errorf("ConvertUp() = %#v, wanted error", bad) } if err := good.ConvertDown(context.Background(), bad); err == nil { t.Errorf("ConvertDown() = %#v, wanted error...
explode_data.jsonl/39603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 4899, 48237, 17082, 929, 1155, 353, 8840, 836, 8, 341, 3174, 1386, 11, 3873, 1669, 609, 4899, 22655, 609, 1860, 31483, 743, 1848, 1669, 1661, 36179, 2324, 5378, 19047, 1507, 3873, 1215, 1848, 621, 2092, 341, 197, 3244, 13080...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFetchMessagesFirstPollingClockGetError(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ch := randomChannelID(t) keys := keyOfChannel(ch) sl := domain.SubscriberLocator{ChannelID: ch, SubscriberID: "sbsc-1"} s, redisCmd, _ := newMockedRedisStorageAndPubSubDispatcher(ctrl) // (1st f...
explode_data.jsonl/51708
{ "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, 20714, 15820, 5338, 49207, 287, 26104, 1949, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 23049, 1669, 4194, 9629, 915, 1155, 340, 80112, 1669, 1376, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddLabel(t *testing.T) { ts := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { t.Errorf("Bad method: %s", r.Method) } if r.URL.Path != "/repos/k8s/kuber/issues/5/labels" { t.Errorf("Bad request path: %s", r.URL.Path) } b, e...
explode_data.jsonl/6261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 384 }
[ 2830, 3393, 2212, 2476, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 743, 435, 20798, 961, 1758, 20798, 4133, 341, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestAddFeedShouldShowErrorMessageWhenErrorOccurredWhileAddingFeedInDataStore(t *testing.T) { expected := command.ErrorInDataStoreOperation failingPort := ":0000" actual := Add(config.Config{"redis", failingPort}, test.NonRssMockFeed) test.AssertFailure(t, expected, actual) }
explode_data.jsonl/75095
{ "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, 2212, 28916, 14996, 7812, 21349, 4498, 1454, 61685, 7983, 32308, 28916, 641, 1043, 6093, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 3210, 6141, 641, 1043, 6093, 8432, 198, 1166, 14277, 7084, 1669, 13022, 15, 15, 15, 15, 698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublicHeaders(t *testing.T) { key, err := rsa.GenerateKey(rand.Reader, 2048) if !assert.NoError(t, err, "GenerateKey should succeed") { return } signer, err := sign.New(jwa.RS256) if !assert.NoError(t, err, "rsasign.NewSigner should succeed") { return } _ = signer // TODO pubkey := key.PublicKey ...
explode_data.jsonl/1564
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 12676, 10574, 1155, 353, 8840, 836, 8, 341, 23634, 11, 1848, 1669, 68570, 57582, 1592, 37595, 47431, 11, 220, 17, 15, 19, 23, 340, 743, 753, 2207, 35699, 1155, 11, 1848, 11, 330, 31115, 1592, 1265, 11996, 899, 341, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestIntegrationAssignRandomPartitions(t *testing.T) { topic := createTopic(t) a := &RandomPartition{ Bootstrap: bootstrap, Topic: topic, } members := []JoinGroup.Member{JoinGroup.Member{MemberId: "foo"}} assignments, err := a.Assign(members) if err != nil { t.Fatal(err) } if len(assignments) != 1...
explode_data.jsonl/38179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 52464, 28933, 13999, 5800, 5930, 1155, 353, 8840, 836, 8, 341, 3244, 24810, 1669, 1855, 26406, 1155, 340, 11323, 1669, 609, 13999, 49978, 515, 197, 197, 45511, 25, 26925, 345, 197, 197, 26406, 25, 257, 8544, 345, 197, 532, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAddIssue(t *testing.T) { p := domain.Project{} i := &domain.Issue{ Title: "test-title", Description: "test-description", Status: 1, ProjectID: 1, } labels := map[string]domain.Label{ "test1": domain.Label{}, "test2": domain.Label{}, "test3": domain.Label{}, } cucm, iucm, lucm,...
explode_data.jsonl/60156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 2212, 42006, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 7947, 30944, 16094, 8230, 1669, 609, 12204, 2447, 83890, 515, 197, 92233, 25, 981, 330, 1944, 8816, 756, 197, 47414, 25, 330, 1944, 42830, 756, 197, 58321, 25, 414, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTemplatePrinterDefaultsAllowMissingKeysToTrue(t *testing.T) { testObject := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "foo"}} allowMissingKeys := false testCases := []struct { name string templateArg string expectedOutput string expectedError string allowMissingKeys *bool...
explode_data.jsonl/13187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 790 }
[ 2830, 3393, 7275, 45660, 16273, 18605, 25080, 8850, 1249, 2514, 1155, 353, 8840, 836, 8, 341, 18185, 1190, 1669, 609, 85, 16, 88823, 90, 1190, 12175, 25, 77520, 16, 80222, 63121, 25, 330, 7975, 9207, 630, 197, 7183, 25080, 8850, 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...
8
func TestParsePosix(t *testing.T) { t.Parallel() p := NewParser(Variant(LangPOSIX)) for i, c := range append(fileTests, fileTestsNoPrint...) { want := c.Posix if want == nil { continue } for j, in := range c.Strs { t.Run(fmt.Sprintf("%03d-%d", i, j), singleParse(p, in, want)) } } }
explode_data.jsonl/31428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 14463, 4859, 941, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1669, 1532, 6570, 12410, 15341, 4957, 524, 17456, 5396, 1171, 2023, 600, 11, 272, 1669, 2088, 8737, 4866, 18200, 11, 1034, 18200, 2753, 8994, 3257...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSliceGetPut(t *testing.T) { // new pool config := &Config{ Active: 1, Idle: 1, IdleTimeout: xtime.Duration(90 * time.Second), WaitTimeout: xtime.Duration(10 * time.Millisecond), Wait: false, } pool := NewSlice(config) pool.New = func(ctx context.Context) (io.Closer, error) { ...
explode_data.jsonl/55730
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 33236, 1949, 19103, 1155, 353, 8840, 836, 8, 341, 197, 322, 501, 7314, 198, 25873, 1669, 609, 2648, 515, 197, 197, 5728, 25, 414, 220, 16, 345, 197, 197, 41370, 25, 286, 220, 16, 345, 197, 197, 41370, 7636, 25, 856, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetMd5(t *testing.T) { md5, err := getMd5(filepath.Join(testdataDir, "test.conf")) assert.NoError(t, err) assert.Equal(t, "5a7e9b77fa25e7bb411dbd17cf403c1f", md5) md5, err = getMd5("/tmp/foo/bar/fooooo") assert.Error(t, err) }
explode_data.jsonl/59623
{ "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, 1949, 72529, 20, 1155, 353, 8840, 836, 8, 341, 84374, 20, 11, 1848, 1669, 633, 72529, 20, 34793, 22363, 8623, 691, 6184, 11, 330, 1944, 13937, 5455, 6948, 35699, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 330, 20, 64, 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 TestTree(t *testing.T) { var tree = &Tree{ 1, &Tree{ 2, &Tree{ 3, &Tree{ 4, nil, nil, }, nil, }, &Tree{ 5, &Tree{ 6, nil, nil, }, nil, }, }, &Tree{ 7, &Tree{ 8, &Tree{ 9, nil, nil, }, nil, }, &Tree{ 10, &Tree{ ...
explode_data.jsonl/41521
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 6533, 1155, 353, 8840, 836, 8, 341, 2405, 4916, 284, 609, 6533, 515, 197, 197, 16, 345, 197, 197, 5, 6533, 515, 298, 197, 17, 11, 609, 6533, 515, 571, 197, 18, 345, 571, 197, 5, 6533, 515, 464, 197, 19, 11, 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...
6
func TestValidateSign(t *testing.T) { testCases := []struct { inputSign string isValid bool }{ {"> ", true}, {"아", true}, {"😀", true}, {"", false}, {">>>", false}, {"\n", false}, {"\t", false}, } for _, testCase := range testCases { err := validateSign(testCase.inputSign, "") if testCase.i...
explode_data.jsonl/40874
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 17926, 7264, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 22427, 7264, 914, 198, 197, 19907, 4088, 256, 1807, 198, 197, 59403, 197, 197, 90, 755, 3670, 830, 1583, 197, 197, 4913, 52959, 497, 830,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNiceMD_ToIncoming(t *testing.T) { nmd := metautils.NiceMD(metadata.Pairs(testPairs...)) nCtx := nmd.ToIncoming(parentCtx) assertRetainsParentContext(t, nCtx) eCtx := metautils.ExtractIncoming(nCtx).Clone().Set("newvalue", "something").ToIncoming(nCtx) assertRetainsParentContext(t, eCtx) assert.NotEqual(...
explode_data.jsonl/48152
{ "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, 44978, 6076, 38346, 97564, 1155, 353, 8840, 836, 8, 341, 9038, 2277, 1669, 8823, 6031, 2067, 558, 6076, 54436, 1069, 4720, 8623, 54228, 1112, 1171, 9038, 23684, 1669, 308, 2277, 3274, 97564, 12489, 23684, 340, 6948, 12020, 173...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTensorflowDefaults(t *testing.T) { g := gomega.NewGomegaWithT(t) kfsvc := KFService{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: "default", }, Spec: KFServiceSpec{ Default: EndpointSpec{ Predictor: PredictorSpec{ Tensorflow: &TensorflowSpec{StorageURI: "gs://testbucket...
explode_data.jsonl/36099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 637 }
[ 2830, 3393, 25336, 4965, 16273, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 16463, 69, 58094, 1669, 730, 37, 1860, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewKeys_withStorage(t *testing.T) { fs := storage.NewFileStorage(testRootPath, testPrivateKey, testPublicKey) keys, err := NewKeys(Storage(fs)) require.NoError(t, err) assert.NotNil(t, keys) err = keys.Generate() require.NoError(t, err) require.NoError(t, keys.Save()) changeKeyFilesPermission(t) de...
explode_data.jsonl/11404
{ "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, 3564, 8850, 6615, 5793, 1155, 353, 8840, 836, 8, 1476, 53584, 1669, 5819, 7121, 1703, 5793, 8623, 8439, 1820, 11, 1273, 75981, 11, 1273, 61822, 340, 80112, 11, 1848, 1669, 1532, 8850, 7, 5793, 31856, 1171, 17957, 35699, 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 TestWrongDirsSearchNotFound(t *testing.T) { _, config, cleanup := initDirs(t) defer cleanup() v := New() v.SetConfigName(config) v.SetDefault(`key`, `default`) v.AddConfigPath(`whattayoutalkingbout`) v.AddConfigPath(`thispathaintthere`) err := v.ReadInConfig() assert.Equal(t, reflect.TypeOf(ConfigFile...
explode_data.jsonl/5579
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 29185, 97384, 5890, 10372, 1155, 353, 8840, 836, 8, 1476, 197, 6878, 2193, 11, 21290, 1669, 2930, 97384, 1155, 340, 16867, 21290, 2822, 5195, 1669, 1532, 741, 5195, 4202, 2648, 675, 8754, 340, 5195, 4202, 3675, 5809, 792, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1