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 TestAddOpenGame(t *testing.T) { Convey("When we have no open games", t, func() { server := mustSimonSays() defer server.Close() con := server.pool.Get() defer server.Close() _, err := con.Do("FLUSHDB") So(err, ShouldBeNil) result, err := redis.Values(con.Do("GET", openGames)) So(err, ShouldEqua...
explode_data.jsonl/3538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 426 }
[ 2830, 3393, 2212, 5002, 4868, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 4498, 582, 614, 902, 1787, 3868, 497, 259, 11, 2915, 368, 341, 197, 41057, 1669, 1969, 68781, 50, 942, 741, 197, 16867, 3538, 10421, 2822, 197, 37203, 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 TestProposalsQuery(t *testing.T) { kb, err := keys.NewKeyBaseFromDir(InitClientHome(t, "")) require.NoError(t, err) addrs, seeds, names, passwords := CreateAddrs(t, kb, 2) cleanup, _, _, port := InitializeTestLCD(t, 1, []sdk.AccAddress{addrs[0], addrs[1]}, true) defer cleanup() depositParam := getDepositPa...
explode_data.jsonl/25415
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1972 }
[ 2830, 3393, 2008, 85975, 2859, 1155, 353, 8840, 836, 8, 341, 16463, 65, 11, 1848, 1669, 6894, 7121, 1592, 3978, 3830, 6184, 7, 3803, 2959, 7623, 1155, 11, 77561, 17957, 35699, 1155, 11, 1848, 340, 12718, 5428, 11, 19056, 11, 5036, 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...
3
func Test_getWorkflowPullHandler(t *testing.T) { api, db, _, end := newTestAPI(t) defer end() u, pass := assets.InsertAdminUser(api.mustDB()) key := sdk.RandomString(10) proj := assets.InsertTestProject(t, api.mustDB(), api.Cache, key, key, u) group.InsertUserInGroup(api.mustDB(), proj.ProjectGroups[0].Group.ID, ...
explode_data.jsonl/70068
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1271 }
[ 2830, 3393, 3062, 62768, 36068, 3050, 1155, 353, 8840, 836, 8, 341, 54299, 11, 2927, 11, 8358, 835, 1669, 501, 2271, 7082, 1155, 340, 16867, 835, 741, 10676, 11, 1494, 1669, 11770, 23142, 7210, 1474, 24827, 69419, 3506, 2398, 23634, 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...
3
func TestProcessClusterLocal(t *testing.T) { removeArangodProcesses(t) needTestMode(t, testModeProcess) needStarterMode(t, starterModeCluster) dataDir := SetUniqueDataDir(t) defer os.RemoveAll(dataDir) start := time.Now() child := Spawn(t, "${STARTER} --starter.local "+createEnvironmentStarterOptions()) defer...
explode_data.jsonl/44678
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 7423, 28678, 7319, 1155, 353, 8840, 836, 8, 341, 47233, 6953, 524, 347, 92727, 1155, 340, 197, 17046, 2271, 3636, 1155, 11, 1273, 3636, 7423, 340, 197, 17046, 623, 5295, 3636, 1155, 11, 26697, 3636, 28678, 340, 8924, 6184, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInnerHTML(t *testing.T) { t.Parallel() ctx, cancel := testAllocate(t, "table.html") defer cancel() tests := []struct { sel string by QueryOption }{ {`/html/body/table/thead`, BySearch}, {`thead`, ByQueryAll}, {`thead`, ByQuery}, {`document.querySelector("#footer > td:nth-child(2)")`, ByJSPa...
explode_data.jsonl/59490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 97214, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 11, 9121, 1669, 1273, 75380, 1155, 11, 330, 2005, 2564, 1138, 16867, 9121, 2822, 78216, 1669, 3056, 1235, 341, 197, 1903, 301, 914, 198, 197, 197, 1694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func Test_snmpSession_Connect_Logger(t *testing.T) { config := checkconfig.CheckConfig{ IPAddress: "1.2.3.4", CommunityString: "abc", } s, err := NewGosnmpSession(&config) gosnmpSess := s.(*GosnmpSession) require.NoError(t, err) logger := gosnmp.NewLogger(stdlog.New(ioutil.Discard, "abc", 0)) gosnmpSe...
explode_data.jsonl/59176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 28022, 1307, 5283, 15100, 2321, 62, 7395, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1779, 1676, 10600, 2648, 515, 197, 197, 87976, 25, 981, 330, 16, 13, 17, 13, 18, 13, 19, 756, 197, 197, 33768, 703, 25, 330, 13683, 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 TestSeek(t *testing.T) { const N = 1 << 13 tr := TreeNew(cmp) for i := 0; i < N; i++ { k := 2*i + 1 tr.Set(k, nil) } for i := 0; i < N; i++ { k := 2 * i e, ok := tr.Seek(k) if ok { t.Fatal(k) } for j := i; j < N; j++ { k2, _, err := e.Next() if err != nil { t.Fatal(k, err) } ...
explode_data.jsonl/80517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 39350, 1155, 353, 8840, 836, 8, 341, 4777, 451, 284, 220, 16, 1115, 220, 16, 18, 198, 25583, 1669, 8942, 3564, 98665, 340, 2023, 600, 1669, 220, 15, 26, 600, 366, 451, 26, 600, 1027, 341, 197, 16463, 1669, 220, 17, 230...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReceiveIsSchema(t *testing.T) { ld := test.NewLoader() sto := newCond(t, ld, map[string]interface{}{ "write": map[string]interface{}{ "if": "isSchema", "then": "/good-schema/", "else": "/good-other/", }, "read": "/good-other/", }) otherBlob := &test.Blob{Contents: "stuff"} schemaBlob := &...
explode_data.jsonl/10994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 339 }
[ 2830, 3393, 14742, 3872, 8632, 1155, 353, 8840, 836, 8, 341, 197, 507, 1669, 1273, 7121, 9181, 741, 18388, 78, 1669, 501, 49696, 1155, 11, 26129, 11, 2415, 14032, 31344, 67066, 197, 197, 1, 4934, 788, 2415, 14032, 31344, 67066, 298, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestProgressReader_Read(t *testing.T) { t.Run("when we don't know the overall size, it doesn't invoke the callback function", func(t *testing.T) { called := false pr := &ProgressReader{ strings.NewReader("hi mom"), 0, 0, func(float64) { called = true }, } var buf []byte _, err := pr....
explode_data.jsonl/56820
{ "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, 9496, 5062, 38381, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 9309, 582, 1513, 944, 1414, 279, 8084, 1379, 11, 432, 3171, 944, 19873, 279, 4822, 729, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 4736, 1669, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSuFuncCall(t *testing.T) { fn := compile.Constant("function (a, b) { a - b }").(*SuFunc) th := NewThread() th.Push(SuInt(100)) th.Push(SuInt(1)) result := fn.Call(th, nil, &ArgSpec2) assert.T(t).This(result).Is(SuInt(99)) Global.Add("F", fn) fn = compile.Constant("function () { F(100, 1) }").(*SuFunc)...
explode_data.jsonl/39288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 36459, 9626, 7220, 1155, 353, 8840, 836, 8, 341, 40095, 1669, 19192, 58940, 445, 1688, 320, 64, 11, 293, 8, 314, 264, 481, 293, 335, 1827, 4071, 36459, 9626, 340, 70479, 1669, 1532, 6855, 741, 70479, 34981, 3759, 84, 1072,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllOrders(t *testing.T) { t.Parallel() _, err := b.AllOrders(context.Background(), currency.NewPair(currency.BTC, currency.USDT), "", "") switch { case areTestAPIKeysSet() && err != nil: t.Error("AllOrders() error", err) case !areTestAPIKeysSet() && err == nil && !mockTests: t.Error("AllOrders() expe...
explode_data.jsonl/76655
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 2403, 24898, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 16764, 24898, 5378, 19047, 1507, 11413, 7121, 12443, 90475, 1785, 7749, 11, 11413, 67672, 10599, 701, 7342, 14676, 8961, 341, 2722...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRawMessage_String(t *testing.T) { for _, tt := range rawMessageTestCases { if tt.bytes == nil { continue } t.Run(tt.name, func(t *testing.T) { got := tt.rawMessage.String() assert.Equal(t, string(tt.bytes), got) }) } }
explode_data.jsonl/14192
{ "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, 20015, 2052, 31777, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 7112, 2052, 2271, 37302, 341, 197, 743, 17853, 42697, 621, 2092, 341, 298, 11664, 198, 197, 197, 532, 197, 3244, 16708, 47152, 2644, 11, 2915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerWebserverHealthCheckPass(t *testing.T) { composeMock, docker, _ := getComposeMocks() mockCall := composeMock.On("Events", context.Background(), "test", mock.Anything) mockCall.RunFn = func(args mock.Arguments) { consumer := args.Get(2).(api.EventsOptions).Consumer err := consumer(api.Event{Status:...
explode_data.jsonl/50550
{ "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, 35, 13659, 5981, 4030, 14542, 3973, 12187, 1155, 353, 8840, 836, 8, 341, 32810, 2900, 11571, 11, 26588, 11, 716, 1669, 633, 70492, 72577, 741, 77333, 7220, 1669, 30335, 11571, 8071, 445, 7900, 497, 2266, 19047, 1507, 330, 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 TestLoadServerConfiguration(t *testing.T) { TestLoadConfiguration(t) helpers.FailOnError(t, os.Chdir("..")) serverCfg := conf.GetServerConfiguration() assert.Equal(t, ":8080", serverCfg.Address) assert.Equal(t, "/api/dbg/", serverCfg.APIdbgPrefix) assert.Equal(t, "/api/v1/", serverCfg.APIv1Prefix) assert....
explode_data.jsonl/61899
{ "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, 5879, 5475, 7688, 1155, 353, 8840, 836, 8, 341, 73866, 5879, 7688, 1155, 340, 197, 21723, 57243, 74945, 1155, 11, 2643, 6353, 3741, 95032, 28075, 41057, 42467, 1669, 2335, 2234, 5475, 7688, 2822, 6948, 12808, 1155, 11, 13022, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTerminateRun_DbFailure(t *testing.T) { store, manager, runDetail := initWithOneTimeRun(t) defer store.Close() store.DB().Close() err := manager.TerminateRun(runDetail.UUID) assert.Equal(t, codes.Internal, err.(*util.UserError).ExternalStatusCode()) assert.Contains(t, err.Error(), "database is closed") }
explode_data.jsonl/28374
{ "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, 62519, 6727, 60968, 17507, 1155, 353, 8840, 836, 8, 341, 57279, 11, 6645, 11, 1598, 10649, 1669, 13864, 3966, 1462, 6727, 1155, 340, 16867, 3553, 10421, 2822, 57279, 22537, 1005, 7925, 741, 9859, 1669, 6645, 836, 261, 34016, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTeamsService_RemoveTeamProjectByID(t *testing.T) { client, mux, _, teardown := setup() defer teardown() wantAcceptHeaders := []string{mediaTypeProjectsPreview} mux.HandleFunc("/organizations/1/team/1/projects/1", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "DELETE") testHeader(t, r...
explode_data.jsonl/4551
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 60669, 1860, 66843, 14597, 7849, 60572, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 50780, 16646, 10574, 1669, 3056, 917, 90, 7399, 929, 29958, 24625, 532, 2109, 2200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestForbiddenRole(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second*5) defer cancel() defer leaktest.Check(t)() r, _ := http.NewRequest("GET", "/latest/meta-data/iam/security-credentials/role", nil) rr := httptest.NewRecorder() valid := st.GetCredentialsResult{&sts.Creden...
explode_data.jsonl/19350
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 311 }
[ 2830, 3393, 69115, 9030, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 882, 32435, 9, 20, 340, 16867, 9121, 741, 16867, 23352, 1944, 10600, 1155, 8, 2822, 7000, 11, 716, 1669, 1758, 75274, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckIfCComIsInstalled1(t *testing.T) { // Mock functions commandExists = func(cmd string) bool { assert.Equal(t, "ccom", cmd) return true } logError = func(message string, exit bool) { assert.Fail(t, "Unexpected call of logError") } // Execute test EnsureCComIsInstalled() }
explode_data.jsonl/67931
{ "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, 3973, 2679, 34, 1092, 3872, 60800, 16, 1155, 353, 8840, 836, 8, 341, 197, 322, 14563, 5746, 198, 45566, 15575, 284, 2915, 14160, 914, 8, 1807, 341, 197, 6948, 12808, 1155, 11, 330, 638, 316, 497, 5439, 340, 197, 853, 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...
1
func TestFindKthLargest(t *testing.T) { arr := []int{3, 2, 1, 5, 6, 4} k := 2 result := FindKthLargest(arr, k) if result != 5 { t.Logf("except %d, actual %d", 5, result) t.FailNow() } }
explode_data.jsonl/10035
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 9885, 42, 339, 43, 32381, 1155, 353, 8840, 836, 8, 341, 36511, 1669, 3056, 396, 90, 18, 11, 220, 17, 11, 220, 16, 11, 220, 20, 11, 220, 21, 11, 220, 19, 532, 16463, 1669, 220, 17, 271, 9559, 1669, 7379, 42, 339, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetFloatValue(t *testing.T) { client := createMockApolloConfig(120) defaultValue := 100000.1 //test default v := client.GetFloatValue("joe", defaultValue) Assert(t, defaultValue, Equal(v)) //normal value v = client.GetFloatValue("float", defaultValue) Assert(t, 190.3, Equal(v)) //error type v = ...
explode_data.jsonl/17965
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 1949, 5442, 1130, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1855, 11571, 95909, 2648, 7, 16, 17, 15, 340, 11940, 1130, 1669, 220, 16, 15, 15, 15, 15, 15, 13, 16, 271, 197, 322, 1944, 1638, 198, 5195, 1669, 2943, 2234,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlattenShootAws(t *testing.T) { vpcCIDR := "10.250.0.0/16" EnableECRAccess := false awsConfig, _ := json.Marshal(awsAlpha1.InfrastructureConfig{ TypeMeta: v1.TypeMeta{ APIVersion: "aws.provider.extensions.gardener.cloud/v1alpha1", Kind: "InfrastructureConfig", }, EnableECRAccess: &EnableEC...
explode_data.jsonl/26240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1064 }
[ 2830, 3393, 3882, 14456, 85195, 47359, 1155, 353, 8840, 836, 8, 341, 5195, 3992, 54146, 49, 1669, 330, 16, 15, 13, 17, 20, 15, 13, 15, 13, 15, 14, 16, 21, 698, 197, 11084, 7498, 5609, 1322, 1669, 895, 198, 197, 8635, 2648, 11, 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...
3
func TestValidateUpstreamHealthCheckFails(t *testing.T) { tests := []struct { hc *v1.HealthCheck }{ { hc: &v1.HealthCheck{ Enable: true, Path: "/healthz//;", }, }, { hc: &v1.HealthCheck{ Enable: false, Path: "/healthz//;", }, }, } for _, test := range tests { allErrs := ...
explode_data.jsonl/65871
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 17926, 2324, 4027, 14542, 3973, 37, 6209, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 9598, 66, 353, 85, 16, 74980, 3973, 198, 197, 59403, 197, 197, 515, 298, 9598, 66, 25, 609, 85, 16, 74980, 3973, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResourcePermissionsCreate(t *testing.T) { d, err := qa.ResourceFixture{ Fixtures: []qa.HTTPFixture{ { Method: http.MethodPut, Resource: "/api/2.0/permissions/clusters/abc", ExpectedRequest: AccessControlChangeList{ AccessControlList: []AccessControlChange{ { UserName: ...
explode_data.jsonl/50879
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 858 }
[ 2830, 3393, 4783, 23851, 4021, 1155, 353, 8840, 836, 8, 341, 2698, 11, 1848, 1669, 88496, 20766, 18930, 515, 197, 12727, 941, 18513, 25, 3056, 15445, 27358, 18930, 515, 298, 197, 515, 571, 84589, 25, 256, 1758, 20798, 19103, 345, 571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStorageCreateSnapshot(t *testing.T) { ents := []pb.Entry{{Index: 3, Term: 3}, {Index: 4, Term: 4}, {Index: 5, Term: 5}} cs := &pb.ConfState{Nodes: []uint64{1, 2, 3}} data := []byte("data") tests := []struct { i uint64 werr error wsnap pb.Snapshot }{ {4, nil, pb.Snapshot{Data: data, Metadata: pb....
explode_data.jsonl/66756
{ "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, 5793, 4021, 15009, 1155, 353, 8840, 836, 8, 341, 197, 805, 1669, 3056, 16650, 22330, 2979, 1552, 25, 220, 18, 11, 17519, 25, 220, 18, 2137, 314, 1552, 25, 220, 19, 11, 17519, 25, 220, 19, 2137, 314, 1552, 25, 220, 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...
4
func TestKafkaClient_decodeMemberAssignmentV0(t *testing.T) { buf := bytes.NewBuffer([]byte("\x00\x00\x00\x01\x00\x06topic1\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00")) assignment, errorAt := decodeMemberAssignmentV0(buf) assert.Equalf(t, "", errorAt, "Expected decodeMemberAssignmentV0 to return empty errorAt...
explode_data.jsonl/34263
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 42, 21883, 2959, 15227, 9366, 41613, 53, 15, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 10556, 3782, 4921, 87, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 16, 3462, 15, 15, 3462, 15, 21, 16411, 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 TestScrubIntervals(t *testing.T) { tests := []struct { name string request *http.Request dbMock interfaces.DBClient expectedStatus int }{ { name: "OK", request: createScrubDeleteRequest(), dbMock: createMockScrubDeleterSuccess(), expectedSt...
explode_data.jsonl/51576
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 409 }
[ 2830, 3393, 3326, 59430, 1072, 42198, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, 198, 197, 23555, 286, 353, 1254, 9659, 198, 197, 20939, 11571, 260, 24099, 22537, 2959, 198, 197, 42400, 2522, 526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestParenExpr(t *testing.T) { nodes := map[string]Node{ `0x7fb0bc8b2308 <col:10, col:25> 'unsigned char'`: &ParenExpr{ Address: "0x7fb0bc8b2308", Position: "col:10, col:25", Type: "unsigned char", Children: []Node{}, }, } runNodeTests(t, nodes) }
explode_data.jsonl/41756
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 83997, 16041, 1155, 353, 8840, 836, 8, 341, 79756, 1669, 2415, 14032, 60, 1955, 515, 197, 197, 63, 15, 87, 22, 10798, 15, 8904, 23, 65, 17, 18, 15, 23, 366, 2074, 25, 16, 15, 11, 1375, 25, 17, 20, 29, 364, 3626, 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 TestFindUUID(t *testing.T) { output := `Disk /dev/sdb: 10485760 sectors, 5.0 GiB Logical sector size: 512 bytes Disk identifier (GUID): 31273B25-7B2E-4D31-BAC9-EE77E62EAC71 Partition table holds up to 128 entries First usable sector is 34, last usable sector is 10485726 Partitions will be aligned on 2048-sector b...
explode_data.jsonl/65039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 9885, 24754, 1155, 353, 8840, 836, 8, 341, 21170, 1669, 1565, 47583, 608, 3583, 2687, 1999, 25, 220, 16, 15, 19, 23, 20, 22, 21, 15, 25512, 11, 220, 20, 13, 15, 15392, 33, 198, 64312, 10486, 1379, 25, 220, 20, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEtcdSDBootstrapServer(t *testing.T) { t.Parallel() for _, table := range etcdSDTables { t.Run(table.server.ID, func(t *testing.T) { config := config.NewDefaultEtcdServiceDiscoveryConfig() c, cli := helpers.GetTestEtcd(t) defer c.Terminate(t) e := getEtcdSD(t, *config, table.server, cli) e.In...
explode_data.jsonl/61558
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 31860, 4385, 5491, 45511, 5475, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 1965, 1669, 2088, 1842, 4385, 5491, 21670, 341, 197, 3244, 16708, 15761, 12638, 9910, 11, 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 TestThrowFromNativeFunc(t *testing.T) { const SCRIPT = ` var thrown; try { f(); } catch (e) { thrown = e; } thrown; ` r := New() r.Set("f", func(call FunctionCall) Value { panic(r.ToValue("testError")) }) v, err := r.RunString(SCRIPT) if err != nil { t.Fatal(err) } if !v.Equals(asciiString(...
explode_data.jsonl/10462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 23079, 3830, 20800, 9626, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 2405, 14989, 280, 6799, 341, 197, 1166, 543, 197, 92, 2287, 320, 68, 8, 341, 197, 70479, 4830, 284, 384, 280, 197, 532, 70479, 4830, 280, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDataType(t *testing.T) { tts := []struct { typ oid.Oid kind reflect.Kind }{ {oid.T_int8, reflect.Int64}, {oid.T_int4, reflect.Int32}, {oid.T_int2, reflect.Int16}, {oid.T_varchar, reflect.String}, {oid.T_text, reflect.String}, {oid.T_bool, reflect.Bool}, {oid.T_date, reflect.Struct}, {oid...
explode_data.jsonl/24654
{ "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, 22653, 1155, 353, 8840, 836, 8, 341, 3244, 2576, 1669, 3056, 1235, 341, 197, 25314, 220, 48766, 8382, 307, 198, 197, 197, 15314, 8708, 54199, 198, 197, 59403, 197, 197, 90, 588, 836, 4042, 23, 11, 8708, 7371, 21, 19, 158...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNavigateToRepoRootDirectory(t *testing.T) { type scenario struct { testName string stat func(string) (os.FileInfo, error) chdir func(string) error test func(error) } scenarios := []scenario{ { "Navigate to git repository", func(string) (os.FileInfo, error) { return fileInfoMo...
explode_data.jsonl/38351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 534 }
[ 2830, 3393, 73282, 1249, 25243, 8439, 9310, 1155, 353, 8840, 836, 8, 341, 13158, 15048, 2036, 341, 197, 18185, 675, 914, 198, 197, 78085, 257, 2915, 3609, 8, 320, 436, 8576, 1731, 11, 1465, 340, 197, 23049, 3741, 262, 2915, 3609, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPostMedias_AppendIfMissing(t *testing.T) { tests := []struct { name string medias types.PostMedias newMedia types.PostMedia expMedias types.PostMedias expAppended bool }{ { name: "append a new media and returns true", medias: types.PostMedias{ types.PostMedia{ URI:...
explode_data.jsonl/47669
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 625 }
[ 2830, 3393, 4133, 13310, 3473, 36117, 408, 2679, 25080, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 197, 2061, 3473, 414, 4494, 23442, 13310, 3473, 198, 197, 8638, 12661, 262, 4494, 23442,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_NewStatus(t *testing.T) { g := NewGomegaWithT(t) account := createDummyResource() status, err := reflecthelpers.NewEmptyStatus(account) g.Expect(err).To(BeNil()) g.Expect(status).To(BeAssignableToTypeOf(&batch.BatchAccount_Status{})) }
explode_data.jsonl/45827
{ "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, 39582, 2522, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 38, 32696, 2354, 51, 1155, 692, 86866, 1669, 1855, 43344, 4783, 2822, 23847, 11, 1848, 1669, 8708, 21723, 7121, 3522, 2522, 23758, 340, 3174, 81893, 3964, 568, 124...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetadata(t *testing.T) { woc := newWoc() tmplCtx, err := woc.createTemplateContext(wfv1.ResourceScopeLocal, "") assert.NoError(t, err) ctx := context.Background() _, err = woc.executeContainer(ctx, woc.execWf.Spec.Entrypoint, tmplCtx.GetTemplateScope(), &woc.execWf.Spec.Templates[0], &wfv1.WorkflowStep{}...
explode_data.jsonl/75374
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 355 }
[ 2830, 3393, 14610, 1155, 353, 8840, 836, 8, 341, 6692, 509, 1669, 501, 54, 509, 741, 3244, 54010, 23684, 11, 1848, 1669, 289, 509, 2520, 7275, 1972, 3622, 27890, 16, 20766, 10803, 7319, 11, 14676, 6948, 35699, 1155, 11, 1848, 692, 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 TestGocloak_CreateDeleteClientScopeWithMappers(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) token := GetAdminToken(t, client) defer ClearRealmCache(t, client) id := GetRandomName("client-scope-id-") rolemapperID := GetRandomName("client-rolemapper-id-") audiencemapperID...
explode_data.jsonl/79573
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1093 }
[ 2830, 3393, 38, 509, 385, 585, 34325, 6435, 2959, 10803, 2354, 44, 27821, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 43947, 1669, 2126, 7210,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEncodeIntValue(t *testing.T) { testCases := []struct { Val interface{} Expected uint }{ { Val: 1, Expected: 1, }, // Neg int values should be positively encoded { Val: -1, Expected: 1, }, { Val: int8(1), Expected: 1, }, { Val: int16(10), Ex...
explode_data.jsonl/30503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1198 }
[ 2830, 3393, 32535, 1072, 1130, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 2208, 414, 3749, 16094, 197, 197, 18896, 2622, 198, 197, 59403, 197, 197, 515, 298, 197, 2208, 25, 414, 220, 16, 345, 298, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestNormalize(t *testing.T) { testCases := []struct { name string argument string want string }{ {"Hex strings, letters, version number", "0x1234 a 123.13.45.43 b 2e24e003-9ffd-4e78-852c-9dcb6cbef493-123", "UNIQ1 a UNIQ2 b UNIQ3"}, {"Date and time", "Mon, 12 January 2017 11:34:35 blah blah", "T...
explode_data.jsonl/11613
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 530 }
[ 2830, 3393, 87824, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 197, 14479, 914, 198, 197, 50780, 257, 914, 198, 197, 59403, 197, 197, 4913, 20335, 9069, 11, 11931, 11, 2319, 1372,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateOfferAnswer(t *testing.T) { offerPeerConn, err := NewPeerConnection(Configuration{}) assert.NoError(t, err) answerPeerConn, err := NewPeerConnection(Configuration{}) assert.NoError(t, err) _, err = offerPeerConn.CreateDataChannel("test-channel", nil) assert.NoError(t, err) offer, err := offerPe...
explode_data.jsonl/8647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 4021, 39462, 16141, 1155, 353, 8840, 836, 8, 341, 197, 25077, 30888, 9701, 11, 1848, 1669, 1532, 30888, 4526, 45443, 37790, 6948, 35699, 1155, 11, 1848, 692, 72570, 30888, 9701, 11, 1848, 1669, 1532, 30888, 4526, 45443, 37790,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRewriteWithYoutubeLink(t *testing.T) { output := Rewriter("https://www.youtube.com/watch?v=1234", "Video Description", ``) expected := `<iframe width="650" height="350" frameborder="0" src="https://www.youtube-nocookie.com/embed/1234" allowfullscreen></iframe><br>Video Description` if expected != output { ...
explode_data.jsonl/21470
{ "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, 58465, 1247, 2354, 91667, 3939, 1155, 353, 8840, 836, 8, 341, 21170, 1669, 31691, 2542, 445, 2428, 1110, 2136, 20145, 905, 26213, 22995, 28, 16, 17, 18, 19, 497, 330, 10724, 7662, 497, 9902, 340, 42400, 1669, 30586, 23207, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNamespaceAggregateQuery(t *testing.T) { ctrl := xtest.NewController(t) defer ctrl.Finish() idx := NewMockNamespaceIndex(ctrl) idx.EXPECT().Bootstrapped().Return(true) ns, closer := newTestNamespaceWithIndex(t, idx) defer closer() ctx := context.NewBackground() query := index.Query{ Query: xidx.New...
explode_data.jsonl/35378
{ "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, 22699, 64580, 2859, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 856, 1944, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 62077, 1669, 1532, 11571, 22699, 1552, 62100, 340, 62077, 22402, 7285, 1005, 17919, 495, 5677, 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...
1
func TestConfig_Validate(t *testing.T) { tests := map[string]struct { setup func(cfg *Config, limits *validation.Limits) expected error }{ "should pass by default": { setup: func(cfg *Config, limits *validation.Limits) {}, expected: nil, }, "should fail if the sharding strategy is invalid": { ...
explode_data.jsonl/57955
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 518 }
[ 2830, 3393, 2648, 62, 17926, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 84571, 262, 2915, 28272, 353, 2648, 11, 13388, 353, 12284, 1214, 22866, 340, 197, 42400, 1465, 198, 197, 59403, 197, 197, 1, 5445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTracing(t *testing.T) { tracer1, closer1, err := tracing.NewTracer(&tracing.Options{ Enabled: true, ServiceName: "aurora-test", }) if err != nil { t.Fatal(err) } defer closer1.Close() tracer2, closer2, err := tracing.NewTracer(&tracing.Options{ Enabled: true, ServiceName: "aurora-test"...
explode_data.jsonl/76165
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 728 }
[ 2830, 3393, 1282, 4527, 1155, 353, 8840, 836, 8, 341, 25583, 9584, 16, 11, 12128, 16, 11, 1848, 1669, 45415, 7121, 1282, 9584, 2099, 376, 4527, 22179, 515, 197, 197, 5462, 25, 257, 830, 345, 197, 91619, 675, 25, 330, 4110, 6215, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseResolvConf(t *testing.T) { testCases := []struct { data string nameservers []string searches []string }{ {"", []string{}, []string{}}, {" ", []string{}, []string{}}, {"\n", []string{}, []string{}}, {"\t\n\t", []string{}, []string{}}, {"#comment\n", []string{}, []string{}}, {"...
explode_data.jsonl/43313
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1109 }
[ 2830, 3393, 14463, 1061, 35315, 15578, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 8924, 286, 914, 198, 197, 93940, 18729, 3056, 917, 198, 197, 45573, 288, 262, 3056, 917, 198, 197, 59403, 197, 197, 4913, 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...
9
func TestSlicesEqualAtDepth(t *testing.T) { h, err := DefaultFactory.GetHasherWithSalt(SHA256, []byte("12345")) if err != nil { t.Fatal("Unable to retrieve SHA256 Hasher") } h1 := h.Hash([][][]int64{{}, {{1, 2, 3}, {4}}}).H h2 := h.Hash([][][]int64{{}, {{2, 1, 3}, {4}}}).H h3 := h.Hash([][][]int64{{{1, 2, 3},...
explode_data.jsonl/42616
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 50, 37414, 2993, 1655, 19776, 1155, 353, 8840, 836, 8, 1476, 9598, 11, 1848, 1669, 7899, 4153, 2234, 6370, 261, 2354, 47318, 3759, 17020, 17, 20, 21, 11, 3056, 3782, 445, 16, 17, 18, 19, 20, 5455, 743, 1848, 961, 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...
4
func TestTerragruntReportsTerraformErrorsWithPlanAll(t *testing.T) { cleanupTerraformFolder(t, TEST_FIXTURE_FAILED_TERRAFORM) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_FAILED_TERRAFORM) rootTerragruntConfigPath := util.JoinPath(tmpEnvPath, "fixture-failure") cmd := fmt.Sprintf("terragrunt plan-all --terragru...
explode_data.jsonl/10080
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 51402, 68305, 3850, 23748, 51, 13886, 627, 13877, 2354, 20485, 2403, 1155, 353, 8840, 836, 8, 1476, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 22775, 1139, 2650, 8276, 4365, 340, 20082, 14359, 1820, 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...
4
func TestStartOfYear(t *testing.T) { res := StartOfYear(testDate) str := Date(res, "Y-m-d H:i:s") require.Equal(t, "2020-01-01 00:00:00", str) }
explode_data.jsonl/45318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 3479, 82202, 1155, 353, 8840, 836, 8, 341, 10202, 1669, 5145, 82202, 8623, 1916, 340, 11355, 1669, 2631, 4590, 11, 330, 56, 1448, 1737, 472, 14665, 14495, 1138, 17957, 12808, 1155, 11, 330, 17, 15, 17, 15, 12, 15, 16, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestNewCors(t *testing.T) { t.Run("passed handler is called", func(t *testing.T) { var h testhandler wrapped := newCors(&h) req, _ := http.NewRequest("GET", "/", strings.NewReader("")) var rw testrwcors for range [134]struct{}{} { wrapped.ServeHTTP(rw, req) } if want, have := 134, int(h); want...
explode_data.jsonl/70409
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 629 }
[ 2830, 3393, 3564, 78063, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 35422, 7013, 374, 2598, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 2405, 305, 1273, 17905, 198, 197, 6692, 56289, 1669, 501, 78063, 2099, 71, 692, 197, 24395,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSSLVerifyFull(t *testing.T) { maybeSkipSSLTests(t) // Environment sanity check: should fail without SSL checkSSLSetup(t, "sslmode=disable user=pqgossltest") // Not OK according to the system CA _, err := openSSLConn(t, "host=postgres sslmode=verify-full user=pqgossltest") if err == nil { t.Fatal("expe...
explode_data.jsonl/1383
{ "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, 22594, 32627, 9432, 1155, 353, 8840, 836, 8, 341, 2109, 49791, 35134, 22594, 18200, 1155, 340, 197, 322, 11586, 46842, 1779, 25, 1265, 3690, 2041, 25316, 198, 25157, 22594, 21821, 1155, 11, 330, 24635, 8516, 28, 18015, 1196, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResourceNotFound(t *testing.T) { th := kusttest_test.NewKustTestHarness(t, "/whatever") th.WriteK("/whatever", kustomizationContent) _, err := th.MakeKustTarget().MakeCustomizedResMap() if err == nil { t.Fatalf("Didn't get the expected error for an unknown resource") } if !strings.Contains(err.Error(),...
explode_data.jsonl/78142
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 4783, 10372, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 595, 590, 1944, 4452, 7121, 42, 590, 2271, 74248, 1155, 11, 3521, 68286, 1138, 70479, 4073, 42, 4283, 68286, 497, 595, 1450, 2022, 2762, 340, 197, 6878, 1848, 1669, 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 TestConst(t *testing.T) { const SCRIPT = ` var v1 = true && true; var v2 = 1/(-1 * 0); var v3 = 1 == 2 || v1; var v4 = true && false v1 === true && v2 === -Infinity && v3 === v1 && v4 === false; ` testScript1(SCRIPT, valueTrue, t) }
explode_data.jsonl/75286
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 19167, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 1565, 271, 2405, 348, 16, 284, 830, 1009, 830, 280, 2405, 348, 17, 284, 220, 16, 14, 4080, 16, 353, 220, 15, 317, 2405, 348, 18, 284, 220, 16, 621, 220, 17, 1369...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetVersion(t *testing.T) { // Reset memory counters helpers.ResetMemoryStats() code := fmt.Sprintf(` with open(r'%s', 'w') as f: version = datadog_agent.get_version() if sys.version_info.major == 2: assert type(version) == type(b"") else: assert type(version) == type(u"") f.write(version) `...
explode_data.jsonl/24539
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 221 }
[ 2830, 3393, 1949, 5637, 1155, 353, 8840, 836, 8, 341, 197, 322, 16932, 4938, 31532, 198, 197, 21723, 36660, 10642, 16635, 2822, 43343, 1669, 8879, 17305, 61528, 46948, 1787, 2601, 36165, 82, 516, 364, 86, 863, 438, 282, 510, 197, 74954,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadOneShard(t *testing.T) { fakeShardID := "fake-shard-id" fakeIterator := "fake-iterator" cases := []struct { name string verbose bool mockClient kinesisiface.KinesisAPI expectAnyError bool }{ { name: "cannot get shard iterator", verbose: false, mockClient: &mo...
explode_data.jsonl/57242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 656 }
[ 2830, 3393, 4418, 3966, 2016, 567, 1155, 353, 8840, 836, 8, 341, 1166, 726, 2016, 567, 915, 1669, 330, 30570, 7514, 567, 12897, 698, 1166, 726, 11951, 1669, 330, 30570, 12, 6854, 1837, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewDeviantartAPIExpiredToken(t *testing.T) { testAccount := &models.Account{ Username: os.Getenv("DEVIANTART_USER"), Password: os.Getenv("DEVIANTART_PASS"), } // initialize the shared API instance api := NewDeviantartAPI("token expiration test", testAccount) client := api.Session.GetClient() // app...
explode_data.jsonl/78065
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 3564, 14592, 5372, 471, 7082, 54349, 3323, 1155, 353, 8840, 836, 8, 341, 18185, 7365, 1669, 609, 6507, 30877, 515, 197, 197, 11115, 25, 2643, 64883, 445, 1150, 25308, 2821, 2992, 9107, 4461, 197, 197, 4876, 25, 2643, 64883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFloat64ArrayValue(t *testing.T) { result, err := Float64Array(nil).Value() if err != nil { t.Fatalf("Expected no error for nil, got %v", err) } if result != nil { t.Errorf("Expected nil, got %q", result) } result, err = Float64Array([]float64{}).Value() if err != nil { t.Fatalf("Expected no err...
explode_data.jsonl/5324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 5442, 21, 19, 1857, 1130, 1155, 353, 8840, 836, 8, 341, 9559, 11, 1848, 1669, 13001, 21, 19, 1857, 27907, 568, 1130, 2822, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 18896, 902, 1465, 369, 2092, 11, 2684, 1018, 85...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateCode(t *testing.T) { def := stringenum.ParsedFile{ PackageName: "example", Enums: []stringenum.EnumDesc{ { Type: "Helvetica", Values: map[string]string{ "Neue": "neue", "Bold": "bold", }, }, { Type: "NotoSans", Values: map[string]string{ "Nerf": "nerf", ...
explode_data.jsonl/10280
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 31115, 2078, 1155, 353, 8840, 836, 8, 341, 7452, 1669, 914, 9018, 1069, 18112, 1703, 515, 197, 10025, 1434, 675, 25, 330, 8687, 756, 197, 197, 71586, 25, 3056, 917, 9018, 43225, 11065, 515, 298, 197, 515, 571, 27725, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestFloat64SetContains(t *testing.T) { z := NewFloat64() v := randString("") z.Add(1, v) assert.True(t, z.Contains(v)) assert.False(t, z.Contains("no-such-"+v)) }
explode_data.jsonl/24987
{ "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, 5442, 21, 19, 1649, 23805, 1155, 353, 8840, 836, 8, 341, 20832, 1669, 1532, 5442, 21, 19, 741, 5195, 1669, 10382, 703, 31764, 20832, 1904, 7, 16, 11, 348, 340, 6948, 32443, 1155, 11, 1147, 11545, 3747, 1171, 6948, 50757, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPessimisticUpdatePKLazyCheck(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") testUpdatePKLazyCheck(t, tk, variable.ClusteredIndexDefModeOn) testUpdatePKLazyCheck(t, tk, variable.ClusteredIndexDefModeOff) testUpdatePKLaz...
explode_data.jsonl/76268
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 47, 66733, 4532, 4289, 22242, 39766, 3973, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestServerResize(t *testing.T) { setup() defer teardown() var svr *server mux.HandleFunc(testlib.CloudServerURL(svr.itemActionPath("5767c20e-fba4-4b23-8045-31e641d10d57")), func(w http.ResponseWriter, r *http.Request) { assert.Equal(t, http.MethodPost, r.Method) var sa *ServerAction require.NoError(t, js...
explode_data.jsonl/35479
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 367 }
[ 2830, 3393, 5475, 30561, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 741, 2405, 13559, 81, 353, 4030, 198, 2109, 2200, 63623, 8623, 2740, 94492, 5475, 3144, 1141, 18920, 8984, 2512, 1820, 445, 20, 22, 21, 22, 66, 17, 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 TestExcludedByNonExistingPrefix(t *testing.T) { name := "carotte" ghLabel := &github.Label{ Name: &name, } prefixes := []string{"to", "cour"} assert.True(t, ExcludedBy(HasPrefix, prefixes)(ghLabel)) }
explode_data.jsonl/16591
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 840, 10181, 1359, 8121, 53067, 14335, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 330, 6918, 50011, 698, 197, 866, 2476, 1669, 609, 5204, 4679, 515, 197, 21297, 25, 609, 606, 345, 197, 630, 3223, 5060, 288, 1669, 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...
1
func TestResourcesGetByPrefix(t *testing.T) { c := qt.New(t) spec := newTestResourceSpec(specDescriptor{c: c}) resources := resource.Resources{ spec.newGenericResource(nil, nil, nil, "/a/foo1.css", "foo1.css", media.CSSType), spec.newGenericResource(nil, nil, nil, "/a/logo1.png", "logo1.png", pngType), spec.ne...
explode_data.jsonl/75613
{ "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, 11277, 1949, 1359, 14335, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 38949, 7121, 1155, 340, 98100, 1669, 501, 2271, 4783, 8327, 38209, 11709, 90, 66, 25, 272, 3518, 10202, 2360, 1669, 5101, 21703, 515, 197, 98100, 4618, 1996...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFromBundle(t *testing.T) { tests := []struct { name string rootPath string shouldFail bool expectedData []byte }{ { name: "valid kubeconfig", rootPath: "testdata", shouldFail: false, expectedData: []byte(testFullValidKubeconfig), }, { name: "wr...
explode_data.jsonl/31794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 436 }
[ 2830, 3393, 3830, 8409, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 33698, 1820, 257, 914, 198, 197, 197, 5445, 19524, 256, 1807, 198, 197, 42400, 1043, 3056, 3782, 198, 197, 59403, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNoOpState_Execute(t *testing.T) { _, followup, _, err := (&noOp{}).ExecuteInbound(&stateMachineMsg{}, "", &context{}) require.Error(t, err) require.Contains(t, err.Error(), "cannot execute no-op") require.Nil(t, followup) }
explode_data.jsonl/2093
{ "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, 2753, 7125, 1397, 83453, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1795, 454, 11, 8358, 1848, 1669, 15899, 2152, 7125, 6257, 568, 17174, 641, 10891, 2099, 2454, 21605, 6611, 22655, 7342, 609, 2147, 37790, 17957, 6141, 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 TestAdditionFieldsInGeneralSubtree(t *testing.T) { // Very rarely, certificates can include additional fields in the // GeneralSubtree structure. This tests that such certificates can be // parsed. block, _ := pem.Decode([]byte(additionalGeneralSubtreePEM)) if _, err := ParseCertificate(block.Bytes); IsFatal(...
explode_data.jsonl/68020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 2212, 680, 8941, 641, 15415, 3136, 9344, 1155, 353, 8840, 836, 8, 341, 197, 322, 15308, 18521, 11, 34437, 646, 2924, 5107, 5043, 304, 279, 198, 197, 322, 3251, 3136, 9344, 5944, 13, 1096, 7032, 429, 1741, 34437, 646, 387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMmapErrorSign(t *testing.T) { p, err := runtime.Mmap(nil, ^uintptr(0)&^(runtime.GetPhysPageSize()-1), 0, runtime.MAP_ANON|runtime.MAP_PRIVATE, -1, 0) if p != nil || err != runtime.ENOMEM { t.Errorf("mmap = %v, %v, want nil, %v", p, err, runtime.ENOMEM) } }
explode_data.jsonl/4471
{ "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, 44, 2186, 1454, 7264, 1155, 353, 8840, 836, 8, 341, 3223, 11, 1848, 1669, 15592, 1321, 2186, 27907, 11, 6306, 51380, 7, 15, 14669, 13268, 22255, 2234, 66071, 45917, 15694, 16, 701, 220, 15, 11, 15592, 1321, 2537, 23615, 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...
3
func TestEmitNewValidBlockEventOnCommitWithoutBlock(t *testing.T) { config := configSetup(t) ctx, cancel := context.WithCancel(context.Background()) defer cancel() cs1, vss := makeState(ctx, t, makeStateArgs{config: config}) vs2, vs3, vs4 := vss[1], vss[2], vss[3] height, round := cs1.Height, int32(1) incremen...
explode_data.jsonl/54288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 493 }
[ 2830, 3393, 36, 1763, 3564, 4088, 4713, 1556, 1925, 33441, 26040, 4713, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 2193, 21821, 1155, 340, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 71899, 16, 11, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRevListParsing(t *testing.T) { inp := "a74dbfea4d9daf37e39b23181d19020538e6f9ba\n" inp = inp + "57d6a4e06956fdc3e23e2684a2fd43e1c0b58445\n" inp = inp + "5065a57740dfc7ca06479aa1f6521763b0793636\n" latestCommitHash := "f25367f7692e3a2f3e1abed44597c8ceb3a9e218" pairs := ParseRevList(latestCommitHash, strin...
explode_data.jsonl/12449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 36184, 852, 68839, 1155, 353, 8840, 836, 8, 341, 17430, 79, 1669, 330, 64, 22, 19, 1999, 94214, 19, 67, 24, 85733, 18, 22, 68, 18, 24, 65, 17, 18, 16, 23, 16, 67, 16, 24, 15, 17, 15, 20, 18, 23, 68, 21, 69, 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...
2
func TestHistogram(t *testing.T) { r := metrics.NewRegistry() sample := metrics.NewUniformSample(1024) hist := metrics.GetOrRegisterHistogram("histogram", r, sample) hist.Update(50) hist.Update(100) hist.Update(150) g := apmgometrics.Wrap(r) metrics := gatherMetrics(g) for name := range metrics[0].Samples { ...
explode_data.jsonl/11599
{ "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, 77210, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 16734, 7121, 15603, 741, 1903, 1516, 1669, 16734, 7121, 20152, 17571, 7, 16, 15, 17, 19, 340, 9598, 380, 1669, 16734, 2234, 2195, 8690, 77210, 445, 21158, 12958, 497, 435, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAessivXray(t *testing.T) { expected, err := ioutil.ReadFile("aessiv_fs.xray.txt") if err != nil { t.Fatal(err) } cmd := exec.Command("../gocryptfs-xray", "-aessiv", "aessiv_fs/klepPXQJIaEDaIx-yurAqQ") out, err := cmd.CombinedOutput() if err != nil { t.Fatal(err) } if bytes.Compare(out, expected) !=...
explode_data.jsonl/39054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 32, 433, 344, 55, 11611, 1155, 353, 8840, 836, 8, 341, 42400, 11, 1848, 1669, 43144, 78976, 445, 64, 433, 344, 34470, 1993, 11611, 3909, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 25920, 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...
4
func TestConfiguration_FindCommandByName(t *testing.T) { nameA := commandNameA nameZ := commandNameC commandA := CommandDefinition{Name: &nameA, Command: stringP("A")} commandA1 := CommandDefinition{Name: &nameA, Command: stringP("A1")} commandZ := CommandDefinition{Name: &nameZ} cfg := Configuration{ osNameMa...
explode_data.jsonl/17910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 7688, 95245, 4062, 16898, 1155, 353, 8840, 836, 8, 341, 11609, 32, 1669, 3210, 675, 32, 198, 11609, 57, 1669, 3210, 675, 34, 198, 45566, 32, 1669, 7348, 10398, 63121, 25, 609, 606, 32, 11, 7348, 25, 914, 47, 445, 32, 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 TestPopulateCluster_NetworkCIDR_Required(t *testing.T) { c := buildMinimalCluster() c.Spec.NetworkCIDR = "" expectErrorFromPopulateCluster(t, c, "networkCIDR") }
explode_data.jsonl/75040
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 11598, 6334, 28678, 1604, 2349, 54146, 49, 62, 8164, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1936, 88328, 28678, 741, 1444, 36473, 30149, 54146, 49, 284, 35829, 24952, 1454, 3830, 11598, 6334, 28678, 1155, 11, 272, 11, 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
func TestClusterScope_GetVcnName(t *testing.T) { tests := []struct { name string spec infrastructurev1beta1.OCIClusterSpec want string }{ { name: "name not present", want: "bar", }, { name: "name present", spec: infrastructurev1beta1.OCIClusterSpec{ NetworkSpec: infrastructurev1beta1.Netwo...
explode_data.jsonl/52634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 28678, 10803, 13614, 53, 14271, 675, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 98100, 13737, 85, 16, 19127, 16, 13, 7612, 1317, 75, 4993, 8327, 198, 197, 50780, 914, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRest_Email(t *testing.T) { ts, srv, teardown := startupT(t) defer teardown() srv.privRest.templates = &MockFS{} // issue good token claims := token.Claims{ Handshake: &token.Handshake{ID: "dev::good@example.com"}, StandardClaims: jwt.StandardClaims{ Audience: "remark42", ExpiresAt: time.Now()...
explode_data.jsonl/37400
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1487 }
[ 2830, 3393, 12416, 83168, 1155, 353, 8840, 836, 8, 341, 57441, 11, 43578, 11, 49304, 1669, 20567, 51, 1155, 340, 16867, 49304, 2822, 1903, 10553, 82571, 12416, 76107, 284, 609, 11571, 8485, 31483, 197, 322, 4265, 1661, 3950, 198, 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...
4
func TestAuthVLC(t *testing.T) { for _, ca := range []struct { clientURL string serverURL string }{ { "rtsp://myhost/mypath/", "rtsp://myhost/mypath/trackID=0", }, { "rtsp://myhost/mypath/test?testing/", "rtsp://myhost/mypath/test?testing/trackID=0", }, } { va := NewValidator("testuser", "t...
explode_data.jsonl/50255
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 5087, 53, 8556, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 2162, 1669, 2088, 3056, 1235, 341, 197, 25291, 3144, 914, 198, 197, 41057, 3144, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 1, 3342, 2154, 1110, 2408, 3790, 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 TestUntarWithMaliciousSymlinks(t *testing.T) { dir, err := ioutil.TempDir("", t.Name()) assert.NilError(t, err) defer os.RemoveAll(dir) root := filepath.Join(dir, "root") err = os.MkdirAll(root, 0755) assert.NilError(t, err) // Add a file into a directory above root // Ensure that we can't access this f...
explode_data.jsonl/26418
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 755 }
[ 2830, 3393, 20250, 277, 2354, 29600, 9627, 34667, 1014, 15504, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 259, 2967, 2398, 6948, 59678, 1454, 1155, 11, 1848, 340, 16867, 2643, 84427, 14161, 692, 33698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHTTPSWithServerCertFetch(t *testing.T) { if runtime.GOOS == "nacl" || runtime.GOOS == "js" { t.Skip("test assumes tcp available") } saveHome := os.Getenv(homeEnv()) tempdir, err := ioutil.TempDir("", "home") if err != nil { t.Fatal("creating temp dir: ", err) } defer os.RemoveAll(tempdir) // pprof...
explode_data.jsonl/36300
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1324 }
[ 2830, 3393, 82354, 2354, 5475, 36934, 20714, 1155, 353, 8840, 836, 8, 341, 743, 15592, 97574, 3126, 621, 330, 3376, 564, 1, 1369, 15592, 97574, 3126, 621, 330, 2519, 1, 341, 197, 3244, 57776, 445, 1944, 21484, 28051, 2500, 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 TestStrArray_PopRight(t *testing.T) { gtest.C(t, func(t *gtest.T) { array := garray.NewStrArrayFrom(g.SliceStr{"1", "2", "3"}) v, ok := array.PopRight() t.Assert(v, 3) t.Assert(ok, true) t.Assert(array.Len(), 2) v, ok = array.PopRight() t.Assert(v, 2) t.Assert(ok, true) t.Assert(array.Len(), 1...
explode_data.jsonl/53086
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 2580, 1857, 1088, 453, 5979, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11923, 1669, 342, 1653, 7121, 2580, 1857, 3830, 3268, 95495, 2580, 4913, 16, 497, 330, 17, 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...
1
func TestMutableReset(t *testing.T) { t.Parallel() // Insert a few keys. numItems := 10 testTreap := NewMutable() for i := 0; i < numItems; i++ { key := serializeUint32(uint32(i)) testTreap.Put(key, key) } // Reset it. testTreap.Reset() // Ensure the treap length is now 0. if gotLen := testTreap.Len();...
explode_data.jsonl/70543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 515 }
[ 2830, 3393, 11217, 14828, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 17101, 264, 2421, 6894, 624, 22431, 4353, 1669, 220, 16, 15, 198, 18185, 65775, 391, 1669, 1532, 11217, 741, 2023, 600, 1669, 220, 15, 26, 600,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDownloadArchive(t *testing.T) { a, err := DownloadArchive(time.Date(2015, time.September, 6, 12, 0, 0, 0, time.UTC)) if err != nil { t.Fatal(err) } defer a.Close() s := sha256.New() io.Copy(s, a) if hex.EncodeToString(s.Sum(nil)) != "bd2e53db12d4b4d8a6d55adbccaf13891fcd861009689039e12e0e1593fceff0" { ...
explode_data.jsonl/11760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 11377, 42502, 1155, 353, 8840, 836, 8, 341, 11323, 11, 1848, 1669, 8577, 42502, 9730, 8518, 7, 17, 15, 16, 20, 11, 882, 5732, 417, 1377, 11, 220, 21, 11, 220, 16, 17, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 882,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHilbert(t *testing.T) { // generate source src := program(*H, *out) if *out != "" { ioutil.WriteFile(*out, src, 0666) return } // parse source fset := token.NewFileSet() f, err := parser.ParseFile(fset, "hilbert.go", src, 0) if err != nil { t.Fatal(err) } // type-check file DefPredeclaredTes...
explode_data.jsonl/22749
{ "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, 39, 321, 9160, 1155, 353, 8840, 836, 8, 341, 197, 322, 6923, 2530, 198, 41144, 1669, 2025, 4071, 39, 11, 353, 411, 340, 743, 353, 411, 961, 1591, 341, 197, 8230, 30158, 4073, 1703, 4071, 411, 11, 2286, 11, 220, 15, 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...
4
func TestEditService(t *testing.T) { r := newTestResolver(t) defer r.Close() ctx := viewertest.NewContext(context.Background(), r.client) mr, qr := r.Mutation(), r.Query() serviceType, err := mr.AddServiceType(ctx, models.ServiceTypeCreateData{ Name: "service_type_name", }) require.NoError(t, err) require.Eq...
explode_data.jsonl/7207
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 4036, 1860, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 501, 2271, 18190, 1155, 340, 16867, 435, 10421, 741, 20985, 1669, 1651, 83386, 7121, 1972, 5378, 19047, 1507, 435, 6581, 692, 2109, 81, 11, 49290, 1669, 435, 1321, 22705,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOrphanedResource(t *testing.T) { SkipOnEnv(t, "OPENSHIFT") Given(t). ProjectSpec(AppProjectSpec{ SourceRepos: []string{"*"}, Destinations: []ApplicationDestination{{Namespace: "*", Server: "*"}}, OrphanedResources: &OrphanedResourcesMonitorSettings{Warn: pointer.BoolPtr(true)}, }). ...
explode_data.jsonl/35654
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1244 }
[ 2830, 3393, 2195, 9943, 291, 4783, 1155, 353, 8840, 836, 8, 341, 7568, 13389, 1925, 14359, 1155, 11, 330, 30933, 45743, 1138, 9600, 2071, 1155, 4292, 197, 197, 7849, 8327, 23231, 7849, 8327, 515, 298, 197, 3608, 693, 966, 25, 981, 305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSubmitMeasurementGood(t *testing.T) { if testing.Short() { t.Skip("skip test in short mode") } sess, err := NewSession() if err != nil { t.Fatal(err) } ctx := sess.NewContext() if err := DoSubmission(ctx, sess); err != nil { t.Fatal(err) } }
explode_data.jsonl/78954
{ "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, 8890, 76548, 15216, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 20599, 1273, 304, 2805, 3856, 1138, 197, 532, 1903, 433, 11, 1848, 1669, 1532, 5283, 741, 743, 1848, 961, 2092, 341, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestFSGapsInSequence(t *testing.T) { opts := testFSGetOptionsForGapsTests() for _, o := range opts { t.Run(o.name, func(t *testing.T) { cleanupFSDatastore(t) defer cleanupFSDatastore(t) s := createDefaultFileStore(t, o.opt) defer s.Close() cs := storeCreateChannel(t, s, "foo") payload := ...
explode_data.jsonl/7781
{ "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, 37, 7783, 2625, 641, 14076, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 1273, 8485, 1949, 3798, 2461, 38, 2625, 18200, 741, 2023, 8358, 297, 1669, 2088, 12185, 341, 197, 3244, 16708, 10108, 2644, 11, 2915, 1155, 353, 8840, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestCountEntities(t *testing.T) { ts := httptest.NewServer( http.HandlerFunc( func(w http.ResponseWriter, r *http.Request) { if strings.HasSuffix(r.URL.Path, "/v2") { apiResourcesHandler(w, r) } else { if r.URL.Query().Get("limit") != "1" { t.Fatalf("Expected a limit value of '1', got...
explode_data.jsonl/64657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 519 }
[ 2830, 3393, 2507, 15828, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 1006, 197, 28080, 89164, 1006, 298, 29244, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 571, 743, 9069, 16152, 40177, 2601, 20893, 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...
3
func TestAddFeedShouldDisplayFeedWhenFeedIsValid(t *testing.T) { conf := config.Config{"redis", test.ValidRedisConnection} test.InitializeRedis(conf) Add(conf, test.NonRssMockFeed) actual := List(conf) assert.Equal(t, true, actual.Success) assert.Equal(t, test.NonRssMockFeed, actual.Data.([]common.Feed)[0]) }
explode_data.jsonl/75099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 2212, 28916, 14996, 7020, 28916, 4498, 28916, 55470, 1155, 353, 8840, 836, 8, 341, 67850, 1669, 2193, 10753, 4913, 21748, 497, 1273, 47156, 48137, 4526, 532, 18185, 45829, 48137, 29879, 340, 37972, 29879, 11, 1273, 30706, 49, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateSQSFifoQueueName(t *testing.T) { validNames := []string{ "valid-name.fifo", "valid02-name.fifo", "Valid-Name1.fifo", "_.fifo", "a.fifo", "A.fifo", "9.fifo", "-.fifo", fmt.Sprintf("%s.fifo", strings.Repeat("W", 75)), } for _, v := range validNames { if errors := validateSQSFifoQue...
explode_data.jsonl/78589
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 17926, 64308, 28667, 31497, 7554, 675, 1155, 353, 8840, 836, 8, 341, 56322, 7980, 1669, 3056, 917, 515, 197, 197, 1, 1891, 11494, 833, 31497, 756, 197, 197, 1, 1891, 15, 17, 11494, 833, 31497, 756, 197, 197, 1, 4088, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestNewEvt(t *testing.T) { // Given id := model.NewGreenhouseTestID() sensorId := id.Value traceId := testing2.TEST_TRACE_ID temperature := 15.0 humidity := 30.0 // When evt := NewEvt(id, traceId, temperature, humidity) // Then assert.NotNil(t, evt) assert.Equal(t, sensorId, evt.aggregateId.Id()) asse...
explode_data.jsonl/57226
{ "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, 3564, 89120, 1155, 353, 8840, 836, 8, 341, 197, 322, 16246, 198, 15710, 1669, 1614, 7121, 19576, 7675, 2271, 915, 741, 1903, 3805, 764, 1669, 877, 6167, 198, 65058, 764, 1669, 7497, 17, 73501, 24238, 3450, 198, 197, 34558, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMainMakeVersionStringNoOCIVersion(t *testing.T) { assert := assert.New(t) savedVersion := specs.Version specs.Version = "" defer func() { specs.Version = savedVersion }() v := makeVersionString() testVersionString(assert, v, version, commit, unknown) }
explode_data.jsonl/52201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 6202, 8078, 5637, 703, 2753, 7612, 3090, 1325, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 1903, 4141, 5637, 1669, 32247, 35842, 198, 98100, 82, 35842, 284, 35829, 16867, 2915, 368, 341, 197, 98100, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLogEventEmptyConfig(t *testing.T) { matches := LogEvent(&v1.Event{}, &EventRouter{}) require.Equal(t, 0, len(matches), "There should be no metrics returned") }
explode_data.jsonl/36673
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 2201, 1556, 3522, 2648, 1155, 353, 8840, 836, 8, 341, 2109, 9118, 1669, 2835, 1556, 2099, 85, 16, 6904, 22655, 609, 1556, 9523, 6257, 692, 17957, 12808, 1155, 11, 220, 15, 11, 2422, 58942, 701, 330, 3862, 1265, 387, 902, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestBuildTarPath(t *testing.T) { buildTarget := "//:skaffold_example.tar" tarPath := buildTarPath(buildTarget) testutil.CheckDeepEqual(t, "skaffold_example.tar", tarPath) }
explode_data.jsonl/125
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 11066, 62733, 1820, 1155, 353, 8840, 836, 8, 341, 69371, 6397, 1669, 35574, 25, 4886, 2649, 813, 39304, 28048, 1837, 3244, 277, 1820, 1669, 1936, 62733, 1820, 43333, 6397, 692, 18185, 1314, 10600, 33464, 2993, 1155, 11, 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
func TestCursor(t *testing.T) { cursor := NewCursor(make([]byte, 10, 20)) r := require.New(t) r.Len(cursor.Buffer(), 10) r.Equal(10, cursor.Len()) r.Equal(20, cursor.Cap()) cursor.LengthBitSize(16) r.Equal(16, cursor.defaultBitSize) cursor.SetBuffer(nil) r.Nil(cursor.buf) }
explode_data.jsonl/80970
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 14543, 1155, 353, 8840, 836, 8, 341, 55948, 1669, 1532, 14543, 36944, 10556, 3782, 11, 220, 16, 15, 11, 220, 17, 15, 4390, 7000, 1669, 1373, 7121, 1155, 340, 7000, 65819, 27676, 22622, 1507, 220, 16, 15, 340, 7000, 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 TestNearBlockLength(t *testing.T) { s, c := makeTestServer() defer s.Shutdown() for i := 450; i < 520; i++ { testSendReceive(t, c, int64(i)) } }
explode_data.jsonl/17550
{ "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, 51962, 4713, 4373, 1155, 353, 8840, 836, 8, 341, 1903, 11, 272, 1669, 1281, 2271, 5475, 741, 16867, 274, 10849, 18452, 741, 2023, 600, 1669, 220, 19, 20, 15, 26, 600, 366, 220, 20, 17, 15, 26, 600, 1027, 341, 197, 1818...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKVTraceDistSQL(t *testing.T) { defer leaktest.AfterTest(t)() // Test that kv tracing works in distsql. const numNodes = 2 cluster := serverutils.StartTestCluster(t, numNodes, base.TestClusterArgs{ ReplicationMode: base.ReplicationManual, ServerArgs: base.TestServerArgs{ UseDatabase: "test", }, }...
explode_data.jsonl/62997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 82707, 6550, 23356, 6688, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 197, 322, 3393, 429, 16178, 45415, 4278, 304, 1582, 3544, 624, 4777, 1629, 12288, 284, 220, 17, 198, 197, 18855, 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...
6
func TestDontServeHeadResponseToGetRequest(t *testing.T) { resetTest() url := s.server.URL + "/" req, err := http.NewRequest(http.MethodHead, url, nil) if err != nil { t.Fatal(err) } _, err = s.client.Do(req) if err != nil { t.Fatal(err) } req, err = http.NewRequest(http.MethodGet, url, nil) if err != nil...
explode_data.jsonl/77611
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 35, 544, 60421, 12346, 2582, 1249, 1949, 1900, 1155, 353, 8840, 836, 8, 341, 70343, 2271, 741, 19320, 1669, 274, 12638, 20893, 488, 80455, 24395, 11, 1848, 1669, 1758, 75274, 19886, 20798, 12346, 11, 2515, 11, 2092, 340, 743...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestDelete(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleDeleteSuccessfully(t) ports.Delete(client.ServiceClient(), "5e56a480-f337-4985-8ca4-98546cb4fdae") }
explode_data.jsonl/73553
{ "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, 6435, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 6435, 35959, 1155, 692, 197, 3394, 18872, 12805, 13860, 2959, 1507, 330, 20, 68, 20, 21, 64, 19, 23, 15, 2220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmpty(t *testing.T) { r := stringReader("") if _, err := r.ReadSentence(); err != io.EOF { t.Fatal("Parsing the empty string should return EOF") } r = stringReader("\n\n\n\n") if _, err := r.ReadSentence(); err != io.EOF { t.Fatal("Parsing the empty string should return EOF") } }
explode_data.jsonl/43877
{ "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, 3522, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 914, 5062, 31764, 743, 8358, 1848, 1669, 435, 6503, 84564, 2129, 1848, 961, 6399, 86492, 341, 197, 3244, 26133, 445, 68839, 279, 4287, 914, 1265, 470, 29457, 1138, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewMarkdown(t *testing.T) { msg, err := NewMarkdown(md.Title(md.MaximalTitle, "title"), "plain text", md.ColorGreen("end")) if err != nil { t.Fatal(err) } assert.Contains(t, msg.lines, "# title") assert.Contains(t, msg.lines, "plain text") assert.Contains(t, msg.lines, `<font color="info">end</font>`)...
explode_data.jsonl/57565
{ "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, 3564, 68005, 1155, 353, 8840, 836, 8, 341, 21169, 11, 1848, 1669, 1532, 68005, 48645, 22967, 48645, 14535, 2861, 3851, 11, 330, 2102, 3975, 330, 20772, 1467, 497, 10688, 6669, 19576, 445, 408, 5455, 743, 1848, 961, 2092, 341...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestOperator_Value(t *testing.T) { t.Run("with generics - float32", testOperatorValue[float32]) t.Run("with generics - float64", testOperatorValue[float64]) }
explode_data.jsonl/49576
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 58 }
[ 2830, 3393, 18461, 27867, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4197, 95545, 481, 2224, 18, 17, 497, 1273, 18461, 1130, 95381, 18, 17, 2546, 3244, 16708, 445, 4197, 95545, 481, 2224, 21, 19, 497, 1273, 18461, 1130, 95381, 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
func TestCalculateChecksum(t *testing.T) { tests := []struct { data []byte checksum byte }{ {[]byte{0x00}, 0xff}, {[]byte{0xf0, 0x0f}, 0x00}, } for _, tt := range tests { actual := calculateChecksum(tt.data) if actual != tt.checksum { t.Errorf("Expected %x, got %x for data %x.", tt.checksum, act...
explode_data.jsonl/7293
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 47866, 73190, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 8924, 257, 3056, 3782, 198, 197, 25157, 1242, 4922, 198, 197, 59403, 197, 197, 90, 1294, 3782, 90, 15, 87, 15, 15, 2137, 220, 15, 9020, 1583,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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