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 TestServer_Response_Data_SniffLenType(t *testing.T) { const msg = "<html>this is HTML." testServerResponse(t, func(w http.ResponseWriter, r *http.Request) error { io.WriteString(w, msg) return nil }, func(st *serverTester) { getSlash(st) hf := st.wantHeaders() if hf.StreamEnded() { t.Fatal("don't w...
explode_data.jsonl/71667
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 5475, 65873, 17817, 1098, 77, 3092, 11271, 929, 1155, 353, 8840, 836, 8, 341, 4777, 3750, 284, 4055, 1551, 89810, 374, 9308, 10040, 18185, 5475, 2582, 1155, 11, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 1465, 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 TestOpenIdImplicitFlowRejectsTokenWithoutAnAllowedDomainInEmailClaim(t *testing.T) { clockTime := time.Date(2021, 12, 1, 0, 0, 0, 0, time.UTC) util.Clock = util.ClockMock{Time: clockTime} cfg := config.NewConfig() cfg.LoginToken.SigningKey = "kiali67890123456" cfg.LoginToken.ExpirationSeconds = 1 cfg.Auth.O...
explode_data.jsonl/72699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 833 }
[ 2830, 3393, 5002, 764, 59558, 18878, 78413, 82, 3323, 26040, 2082, 35382, 13636, 641, 4781, 45544, 1155, 353, 8840, 836, 8, 341, 84165, 1462, 1669, 882, 8518, 7, 17, 15, 17, 16, 11, 220, 16, 17, 11, 220, 16, 11, 220, 15, 11, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetDupSuppressProto(t *testing.T) { once.Do(testSetup) // Start two getters. The first should block (waiting reading // from stringc) and the second should latch on to the first // one. resc := make(chan *testpb.TestMessage, 2) for i := 0; i < 2; i++ { go func() { tm := new(testpb.TestMessage) if...
explode_data.jsonl/62842
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 1949, 85713, 17670, 31549, 1155, 353, 8840, 836, 8, 341, 197, 13184, 33596, 8623, 21821, 340, 197, 322, 5145, 1378, 52894, 13, 576, 1156, 1265, 2504, 320, 49534, 5290, 198, 197, 322, 504, 914, 66, 8, 323, 279, 2086, 1265, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPackageCompletion(t *testing.T) { testenv.NeedsGo1Point(t, 14) const files = ` -- go.mod -- module mod.com go 1.12 -- fruits/apple.go -- package apple fun apple() int { return 0 } -- fruits/testfile.go -- // this is a comment /* this is a multiline comment */ import "fmt" func test() {} -- fruits/te...
explode_data.jsonl/50188
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2281 }
[ 2830, 3393, 13100, 33190, 1155, 353, 8840, 836, 8, 341, 18185, 3160, 2067, 68, 6767, 10850, 16, 2609, 1155, 11, 220, 16, 19, 340, 4777, 3542, 284, 22074, 313, 728, 10929, 39514, 4352, 1463, 905, 271, 3346, 220, 16, 13, 16, 17, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestDiv(t *testing.T) { t.Parallel() s1 := []float64{5, 12, 27} s2 := []float64{1, 2, 3} ans := []float64{5, 6, 9} Div(s1, s2) if !EqualApprox(s1, ans, EqTolerance) { t.Errorf("Div doesn't give correct answer") } s1short := []float64{1} if !Panics(func() { Div(s1short, s2) }) { t.Errorf("Did not panic...
explode_data.jsonl/1216
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 12509, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 16, 1669, 3056, 3649, 21, 19, 90, 20, 11, 220, 16, 17, 11, 220, 17, 22, 532, 1903, 17, 1669, 3056, 3649, 21, 19, 90, 16, 11, 220, 17, 11, 220, 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 TestParseSnapListAllExeTest(t *testing.T) { baseDir, err := ioutil.TempDir("", t.Name()) require.NoError(t, err) defer os.RemoveAll(baseDir) repoDir, err := ioutil.TempDir(baseDir, "repo") require.NoError(t, err) sourceDir, err := ioutil.TempDir(baseDir, "source") require.NoError(t, err) ks, err := New...
explode_data.jsonl/21781
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 705 }
[ 2830, 3393, 14463, 61871, 852, 2403, 840, 68, 2271, 1155, 353, 8840, 836, 8, 341, 24195, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 259, 2967, 2398, 17957, 35699, 1155, 11, 1848, 692, 16867, 2643, 84427, 12663, 6184, 692, 17200, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestConnParameters(t *testing.T) { must := require.New(t) at := assert.New(t) tests := []struct { para ConnParameters out string }{ { ConnParameters{ time.Second * 10, time.Second * 5, "vCcJKmYQcIf801WDAAAB", []string{"websocket", "polling"}, }, "{\"sid\":\"vCcJKmYQcIf801WDAAAB...
explode_data.jsonl/67218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 319 }
[ 2830, 3393, 9701, 9706, 1155, 353, 8840, 836, 8, 341, 2109, 590, 1669, 1373, 7121, 1155, 340, 35447, 1669, 2060, 7121, 1155, 692, 78216, 1669, 3056, 1235, 341, 197, 197, 14794, 18213, 9706, 198, 197, 13967, 220, 914, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGeneralPredicates(t *testing.T) { resourceTests := []struct { pod *v1.Pod nodeInfo *schedulerframework.NodeInfo node *v1.Node fits bool name string wErr error reasons []PredicateFailureReason }{ { pod: &v1.Pod{}, nodeInfo: schedulerframework.NewNodeInfo( newRes...
explode_data.jsonl/42
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1288 }
[ 2830, 3393, 15415, 50925, 24821, 1155, 353, 8840, 836, 8, 341, 50346, 18200, 1669, 3056, 1235, 341, 197, 3223, 347, 414, 353, 85, 16, 88823, 198, 197, 20831, 1731, 353, 63122, 3794, 21714, 1731, 198, 197, 20831, 257, 353, 85, 16, 2171...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaoReportLogList(t *testing.T) { var ( c = context.TODO() sql = "" start = int32(0) end = int32(0) ) convey.Convey("ReportLogList", t, func(ctx convey.C) { res, tids, err := d.ReportLogList(c, sql, start, end) ctx.Convey("Then err should be nil.res,tids should not be nil.", func(ctx conv...
explode_data.jsonl/51304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 12197, 10361, 2201, 852, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 257, 284, 2266, 90988, 741, 197, 30633, 256, 284, 8389, 197, 21375, 284, 526, 18, 17, 7, 15, 340, 197, 6246, 256, 284, 526, 18, 17, 7, 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 TestMapProxy_KeySetWihPredicate(t *testing.T) { expected := "5" for i := 0; i < 10; i++ { mp.Put(strconv.Itoa(i), int32(i)) } keySet, _ := mp.KeySetWithPredicate(Equal("this", "5")) if len(keySet) != 1 || keySet[0].(string) != expected { t.Fatalf("map KeySetWithPredicate failed") } }
explode_data.jsonl/57016
{ "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, 2227, 16219, 35253, 1649, 54, 6996, 36329, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 330, 20, 698, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 26, 600, 1027, 341, 197, 53230, 39825, 4199, 12027, 64109, 1956, 70...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHappysMax(t *testing.T) { start := int64(math.MaxInt64 - 1000) happys := gomath.Happys(start) found := false happy, ok := happys.Next() for ; ok; happy, ok = happys.Next() { assertTrue(t, happy >= start) found = true } assertTrue(t, found) }
explode_data.jsonl/23247
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 39, 676, 1047, 5974, 1155, 353, 8840, 836, 8, 341, 21375, 1669, 526, 21, 19, 37270, 14535, 1072, 21, 19, 481, 220, 16, 15, 15, 15, 340, 9598, 676, 1047, 1669, 342, 316, 587, 3839, 676, 1047, 10639, 340, 58102, 1669, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestZscan(t *testing.T) { testRaw(t, func(c *client) { // No set yet c.Do("ZSCAN", "h", "0") c.Do("ZADD", "h", "1.0", "key1") c.Do("ZSCAN", "h", "0") c.Do("ZSCAN", "h", "0", "COUNT", "12") c.Do("ZSCAN", "h", "0", "cOuNt", "12") c.Do("ZADD", "h", "2.0", "anotherkey") c.Do("ZSCAN", "h", "0", "MATC...
explode_data.jsonl/23351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 553 }
[ 2830, 3393, 57, 16405, 1155, 353, 8840, 836, 8, 341, 18185, 20015, 1155, 11, 2915, 1337, 353, 2972, 8, 341, 197, 197, 322, 2308, 738, 3602, 198, 197, 1444, 33596, 445, 57, 92559, 497, 330, 71, 497, 330, 15, 5130, 197, 1444, 33596, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersionExtraBytes(t *testing.T) { extraBytes := []byte("junk") h1 := NewHeight(10, 100) b := h1.ToBytes() b1 := append(b, extraBytes...) h2, n := NewHeightFromBytes(b1) testutil.AssertEquals(t, h2, h1) testutil.AssertEquals(t, n, len(b)) testutil.AssertEquals(t, b1[n:], extraBytes) }
explode_data.jsonl/20999
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 5637, 11612, 7078, 1155, 353, 8840, 836, 8, 341, 8122, 2172, 7078, 1669, 3056, 3782, 445, 73, 3122, 1138, 9598, 16, 1669, 1532, 3640, 7, 16, 15, 11, 220, 16, 15, 15, 340, 2233, 1669, 305, 16, 3274, 7078, 741, 2233, 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 TestFQDNValidation(t *testing.T) { tests := []struct { param string expected bool }{ {"test.example.com", true}, {"example.com", true}, {"example24.com", true}, {"test.example24.com", true}, {"test24.example24.com", true}, {"test.example.com.", true}, {"example.com.", true}, {"example24.co...
explode_data.jsonl/77354
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 516 }
[ 2830, 3393, 37, 48, 31264, 13799, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 36037, 262, 914, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 4913, 1944, 7724, 905, 497, 830, 1583, 197, 197, 4913, 8687, 905, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRejectUnhealthyRemove(t *testing.T) { defer testutil.AfterTest(t) c := NewCluster(t, 5) for _, m := range c.Members { m.ServerConfig.StrictReconfigCheck = true } c.Launch(t) defer c.Terminate(t) // make cluster unhealthy and wait for downed peer; (3 up, 2 down) c.Members[0].Stop(t) c.Members[1].Sto...
explode_data.jsonl/16305
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 522 }
[ 2830, 3393, 78413, 1806, 37028, 13021, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1314, 36892, 2271, 1155, 340, 1444, 1669, 1532, 28678, 1155, 11, 220, 20, 340, 2023, 8358, 296, 1669, 2088, 272, 91758, 341, 197, 2109, 22997, 2648, 77428...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateCryptoKeyConfig(t *testing.T) { var testcases = []struct { name string config *CryptoKeyConfig shouldErr bool err error }{ { name: "default shared key in default context for verify", config: &CryptoKeyConfig{ ID: "0", Usage: "verify", Token...
explode_data.jsonl/49056
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1872 }
[ 2830, 3393, 17926, 58288, 1592, 2648, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 23910, 284, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 25873, 262, 353, 58288, 1592, 2648, 198, 197, 197, 5445, 7747, 1807, 198, 197, 9859, 981, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNonZero(t *testing.T) { var empty string tests := []struct { desc string v interface{} err error }{ {"nil", nil, errors.New(`"x" is nil`)}, {"zero bool", false, errors.New(`"x" is zero value`)}, {"zero string", "", errors.New(`"x" is zero value`)}, {"zero int", int(0), errors.New(`"x" is ...
explode_data.jsonl/67907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 823 }
[ 2830, 3393, 8121, 17999, 1155, 353, 8840, 836, 8, 341, 2405, 4287, 914, 271, 78216, 1669, 3056, 1235, 341, 197, 41653, 914, 198, 197, 5195, 262, 3749, 16094, 197, 9859, 220, 1465, 198, 197, 59403, 197, 197, 4913, 8385, 497, 2092, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMetaAddress_Receive_LegacySegwit_Address(t *testing.T) { path := NewDerivationPath(BaseCoinBip49MainNet, 0, 0) wallet := NewHDWalletFromWords(w, BaseCoinBip49MainNet) usableAddress, err := newUsableAddressWithDerivationPath(wallet, path) assert.Nil(t, err) meta, err := usableAddress.MetaAddress() asser...
explode_data.jsonl/64005
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 297 }
[ 2830, 3393, 12175, 4286, 62, 14742, 2351, 791, 2757, 10998, 88519, 64899, 1155, 353, 8840, 836, 8, 341, 26781, 1669, 1532, 22171, 39127, 1820, 22225, 41180, 33, 573, 19, 24, 6202, 6954, 11, 220, 15, 11, 220, 15, 340, 6692, 7464, 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 TestEncodeAssuredCalls(t *testing.T) { resp := httptest.NewRecorder() expected, err := ioutil.ReadFile("../testdata/calls.json") require.NoError(t, err) err = encodeAssuredCall(ctx, resp, []*Call{testCall1(), testCall2(), testCall3()}) require.NoError(t, err) require.Equal(t, "application/json", resp.Header...
explode_data.jsonl/20261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 32535, 5615, 3073, 55292, 1155, 353, 8840, 836, 8, 341, 34653, 1669, 54320, 70334, 7121, 47023, 741, 42400, 11, 1848, 1669, 43144, 78976, 17409, 92425, 2899, 5583, 4323, 1138, 17957, 35699, 1155, 11, 1848, 340, 9859, 284, 1616...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue26989(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("set names utf8mb4 collate utf8mb4_general_ci;") tk.MustQuery("select position('a' in 'AA');").Check(testkit.Rows("0")) tk.MustQuery("select locate('a', 'AA');").Check(testk...
explode_data.jsonl/65539
{ "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, 42006, 17, 21, 24, 23, 24, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestApiHandler(t *testing.T) { req, err := http.NewRequest("GET", "/api", nil) test.Assert(t, err == nil, "Unable to create request") rr := httptest.NewRecorder() handler := http.HandlerFunc(APIHandler) handler.ServeHTTP(rr, req) test.Assert(t, rr.Code == http.StatusOK, "Unexpected status code") test.Asser...
explode_data.jsonl/70906
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 254 }
[ 2830, 3393, 6563, 3050, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 445, 3806, 497, 3521, 2068, 497, 2092, 340, 18185, 11711, 1155, 11, 1848, 621, 2092, 11, 330, 17075, 311, 1855, 1681, 5130, 197, 634, 1669, 5432...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIncident_ResponderRequest(t *testing.T) { setup() defer teardown() id := "1" mux.HandleFunc("/incidents/"+id+"/responder_requests", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "POST") _, _ = w.Write([]byte(`{ "responder_request": { "requester": { "id": "PL1JMK5", "type": "...
explode_data.jsonl/76402
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 712 }
[ 2830, 3393, 39245, 1713, 62, 30884, 1900, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 15710, 1669, 330, 16, 698, 2109, 2200, 63623, 4283, 2840, 6880, 33778, 307, 27569, 416, 20328, 37216, 497, 2915, 3622, 1758, 37508, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSyncFileFromIndexErrorsInExportRoot(t *testing.T) { t.Parallel() ctx := project.TestContext(t) testDB, _ := testDatabaseInstance.NewDatabase(t) exportImportDB := exportimportdb.New(testDB) fromTime := time.Now().UTC().Add(-1 * time.Second) config := &model.ExportImport{ IndexFile: "index.txt", Exp...
explode_data.jsonl/15394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 12154, 1703, 3830, 1552, 13877, 641, 16894, 8439, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 1669, 2390, 8787, 1972, 1155, 340, 18185, 3506, 11, 716, 1669, 1273, 5988, 2523, 7121, 5988, 1155, 340, 59440, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReset(t *testing.T) { config := must.Config(rdb.ParseConfigURL(testConnectionString)) config.PoolInitCapacity = 1 config.PoolMaxCapacity = 1 config.ResetQuery = `set XACT_ABORT on;` db := must.Open(config) defer db.Close() cmd := &rdb.Command{Sql: `select 16384 & @@OPTIONS;`} for i := range [100]stru...
explode_data.jsonl/74086
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 14828, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1969, 10753, 2601, 1999, 8937, 2648, 3144, 8623, 40431, 1171, 25873, 89701, 3803, 29392, 284, 220, 16, 198, 25873, 89701, 5974, 29392, 284, 220, 16, 198, 25873, 36660, 2859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildConfigWithImageSource(t *testing.T) { source := &SourceRef{ Name: "binarybuild", SourceImage: &ImageRef{ Reference: reference.DockerImageReference{ Name: "foo", Registry: "bar", }, }, } build := &BuildRef{Source: source, Binary: false} config, err := build.BuildConfig() if err...
explode_data.jsonl/17584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 11066, 2648, 2354, 1906, 3608, 1155, 353, 8840, 836, 8, 341, 47418, 1669, 609, 3608, 3945, 515, 197, 21297, 25, 330, 25891, 5834, 756, 197, 197, 3608, 1906, 25, 609, 1906, 3945, 515, 298, 197, 8856, 25, 5785, 909, 13659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestAccessors(t *testing.T) { require := require.New(t) // Root domain name, err := NewName(".") require.Nil(err) require.True(name.IsRoot()) require.True(name.IsFQDN()) // Simple FQDN name, err = NewName("example.com.") require.Nil(err) require.False(name.IsRoot()) require.True(name.IsFQDN()) // Si...
explode_data.jsonl/47253
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 6054, 1087, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 197, 322, 18854, 7947, 198, 11609, 11, 1848, 1669, 1532, 675, 5680, 1138, 17957, 59678, 3964, 340, 17957, 32443, 3153, 4506, 8439, 2398, 17957, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMemoryStoreSequentialAccess(t *testing.T) { tests.TestStoreSequentialAccess(t, memory.NewStoreWithOptions(limiter.StoreOptions{ Prefix: "limiter:memory:sequential", CleanUpInterval: 30 * time.Second, })) }
explode_data.jsonl/1375
{ "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, 10642, 6093, 22046, 6054, 1155, 353, 8840, 836, 8, 341, 78216, 8787, 6093, 22046, 6054, 1155, 11, 4938, 7121, 6093, 74238, 2333, 17700, 38047, 3798, 515, 197, 10025, 5060, 25, 688, 330, 4659, 2015, 25, 17269, 25, 92350, 756,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUntarInvalidHardlink(t *testing.T) { // TODO Windows. There may be a way of running this, but turning off for now if runtime.GOOS == "windows" { t.Skip("hardlinks on Windows") } for i, headers := range [][]*tar.Header{ { // try reading victim/hello (../) { Name: "dotdot", Typeflag: tar.T...
explode_data.jsonl/82001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 930 }
[ 2830, 3393, 20250, 277, 7928, 26907, 2080, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 5515, 13, 2619, 1231, 387, 264, 1616, 315, 4303, 419, 11, 714, 13054, 1007, 369, 1431, 198, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 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...
4
func Test_wagerService_Buy(t *testing.T) { type fields struct { wagerRepository repositories.WagerRepository wagerTransactionRepository repositories.WagerTransactionRepository db database.DBAdapter } type args struct { ctx context.Context req *dtos.BuyWagerRequest } var...
explode_data.jsonl/47644
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2340 }
[ 2830, 3393, 1670, 1409, 1860, 1668, 4076, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 6692, 1409, 4624, 310, 49657, 1175, 1409, 4624, 198, 197, 6692, 1409, 8070, 4624, 49657, 1175, 1409, 8070, 4624, 198, 197, 20939, 5108,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstanceUpdate(t *testing.T) { cases := []struct { name string older *servicecatalog.ServiceInstance newer *servicecatalog.ServiceInstance shouldGenerationIncrement bool shouldPlanRefClear bool }{ { name: "no spec change", ...
explode_data.jsonl/67001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1275 }
[ 2830, 3393, 2523, 4289, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 2549, 914, 198, 197, 197, 2018, 3824, 353, 7936, 26539, 13860, 2523, 198, 197, 8638, 261, 3824, 353, 7936, 26539, 13860, 2523, 198, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNilParams(t *testing.T) { firstMember := createMember(t) _, err := signedRequestWithEmptyRequestRef(t, firstMember, "member.transfer", nil) require.Error(t, err) require.Contains(t, err.Error(), "call params are nil") }
explode_data.jsonl/26359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 19064, 4870, 1155, 353, 8840, 836, 8, 341, 42190, 9366, 1669, 1855, 9366, 1155, 692, 197, 6878, 1848, 1669, 8499, 1900, 2354, 3522, 1900, 3945, 1155, 11, 1156, 9366, 11, 330, 9597, 49428, 497, 2092, 340, 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
func TestServerBaseContext(t *testing.T) { r := NewRouter() r.Get("/", func(w http.ResponseWriter, r *http.Request) { baseYes := r.Context().Value(ctxKey{"base"}).(string) if _, ok := r.Context().Value(http.ServerContextKey).(*http.Server); !ok { panic("missing server context") } if _, ok := r.Context().Va...
explode_data.jsonl/42896
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 5475, 93824, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 9523, 741, 7000, 2234, 35460, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 24195, 9454, 1669, 435, 9328, 1005, 1130, 7502, 1592, 4913, 3152, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTabletServerConcludeTransaction(t *testing.T) { _, tsv, db := newTestTxExecutor(t) defer tsv.StopService() defer db.Close() target := querypb.Target{TabletType: topodatapb.TabletType_PRIMARY} db.AddQuery("delete from _vt.dt_state where dtid = 'aa'", &sqltypes.Result{}) db.AddQuery("delete from _vt.dt_pa...
explode_data.jsonl/79987
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 2556, 83, 5475, 1109, 857, 8070, 1155, 353, 8840, 836, 8, 341, 197, 6878, 259, 3492, 11, 2927, 1669, 501, 2271, 31584, 25255, 1155, 340, 16867, 259, 3492, 30213, 1860, 741, 16867, 2927, 10421, 741, 28861, 1669, 3239, 16650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MongoDataSource_GetData(t *testing.T) { mongoDs := mongodatasource.NewMongoDataSource("localhost", "data") security, err := entity.ParseSecurity("000001.SZ") util.Assert(err == nil, "") util.Assert(security != nil, "") err, period1 := period.PeriodFromString("M1") util.Assert(err == nil, "") start :=...
explode_data.jsonl/61192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 432 }
[ 2830, 3393, 1245, 6363, 17173, 13614, 1043, 1155, 353, 8840, 836, 8, 341, 2109, 6363, 66950, 1669, 74542, 347, 19346, 919, 7121, 54998, 17173, 445, 8301, 497, 330, 691, 1138, 197, 17039, 11, 1848, 1669, 5387, 8937, 15352, 445, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetIterator(t *testing.T) { s := New(WithGoroutineSafe(), WithKeyComparator(comparator.IntComparator)) for i := 0; i < 10; i++ { s.Insert(i) } iter := s.Begin() assert.True(t, iter.Equal(iter.Clone())) assert.False(t, iter.Equal(nil)) assert.False(t, iter.Equal(s.Last())) iter = s.Find(5) assert.E...
explode_data.jsonl/71964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 1649, 11951, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 7, 2354, 38, 269, 14159, 25663, 1507, 3085, 1592, 38658, 14094, 12356, 7371, 38658, 1171, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 16, 15, 26, 600, 1027, 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 TestResourceReconcile(t *testing.T) { t.Run("test resource reconcile without eventbus", func(t *testing.T) { cl := fake.NewClientBuilder().Build() args := &AdaptorArgs{ Image: testImage, Sensor: sensorObj, Labels: testLabels, } err := Reconcile(cl, nil, args, logging.NewArgoEventsLogger()) ass...
explode_data.jsonl/74851
{ "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, 4783, 693, 40446, 457, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 5101, 63408, 2041, 1538, 10338, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 39407, 1669, 12418, 7121, 2959, 3297, 1005, 11066, 741, 197, 31215, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMachingEndpointIndex(t *testing.T) { endpoints := Endpoints{ { Request: Request{ RegexRoute: regexp.MustCompile("GET/list/1/$"), }, }, { Request: Request{ RegexRoute: regexp.MustCompile("GET/list/[^/&]+?/name/$"), }, }, { Request: Request{ RegexRoute: regexp.MustCompile...
explode_data.jsonl/28344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 596 }
[ 2830, 3393, 1949, 44, 11829, 27380, 1552, 1155, 353, 8840, 836, 8, 341, 6246, 7706, 1669, 3972, 7706, 515, 197, 197, 515, 298, 73806, 25, 6145, 515, 571, 197, 32464, 4899, 25, 41877, 98626, 445, 3806, 20936, 14, 16, 10749, 4461, 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...
6
func TestShouldFailToConvertApplicationConfigStateToDataModelWhenMatchSpecificationIsNotValid(t *testing.T) { testHelper := NewTestHelper(t) resourceHandle := NewApplicationConfigResourceHandle() resourceData := testHelper.CreateEmptyResourceDataForResourceHandle(resourceHandle) resourceData.SetId(applicationConfi...
explode_data.jsonl/64948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 14996, 19524, 1249, 12012, 4988, 2648, 1397, 1249, 1043, 1712, 4498, 8331, 56139, 3872, 2623, 4088, 1155, 353, 8840, 836, 8, 341, 18185, 5511, 1669, 1532, 2271, 5511, 1155, 340, 50346, 6999, 1669, 1532, 4988, 2648, 4783, 6999,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_AssertExpectationsForObjects_Helper_Failed(t *testing.T) { var mockedService1 = new(TestExampleImplementation) var mockedService2 = new(TestExampleImplementation) var mockedService3 = new(TestExampleImplementation) mockedService1.On("Test_AssertExpectationsForObjects_Helper_Failed", 1).Return() ...
explode_data.jsonl/8598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 62222, 529, 17536, 804, 2461, 11543, 67828, 1400, 5687, 1155, 353, 8840, 836, 8, 8022, 2405, 46149, 1860, 16, 284, 501, 31159, 13314, 36850, 1218, 2405, 46149, 1860, 17, 284, 501, 31159, 13314, 36850, 1218, 2405, 46149, 1860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthenticationHook(t *testing.T) { defer leaktest.AfterTest(t)() testCases := []struct { insecure bool tls *tls.ConnectionState username string buildHookSuccess bool publicHookSuccess bool privateHookSuccess bool }{ // Insecure mode, empty username. {tr...
explode_data.jsonl/23538
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 609 }
[ 2830, 3393, 19297, 31679, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 17430, 25132, 1843, 1807, 198, 197, 3244, 4730, 394, 353, 34488, 17463, 1397, 198, 197, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKustomizeDeclarativeInvalidApp(t *testing.T) { Given(t). Path("invalid-kustomize"). When(). Declarative("declarative-apps/app.yaml"). Then(). Expect(Success("")). Expect(HealthIs(health.HealthStatusHealthy)). Expect(SyncStatusIs(SyncStatusCodeUnknown)). Expect(Condition(ApplicationConditionCom...
explode_data.jsonl/37134
{ "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, 42, 1450, 551, 1912, 12821, 1388, 7928, 2164, 1155, 353, 8840, 836, 8, 341, 9600, 2071, 1155, 4292, 197, 69640, 445, 11808, 12646, 1450, 551, 38609, 197, 197, 4498, 25829, 197, 197, 1912, 12821, 1388, 445, 56305, 1388, 20023...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTopologySelectorRequirementsAsSelector(t *testing.T) { mustParse := func(s string) labels.Selector { out, e := labels.Parse(s) if e != nil { panic(e) } return out } tc := []struct { in []v1.TopologySelectorLabelRequirement out labels.Selector expectErr bool }{ {in: nil, out:...
explode_data.jsonl/25712
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 704 }
[ 2830, 3393, 60954, 5877, 59202, 2121, 5877, 1155, 353, 8840, 836, 8, 341, 2109, 590, 14463, 1669, 2915, 1141, 914, 8, 9201, 14752, 269, 341, 197, 13967, 11, 384, 1669, 9201, 8937, 1141, 340, 197, 743, 384, 961, 2092, 341, 298, 30764, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseErrors(t *testing.T) { for _, th := range testParseErrors { v, err := StrToTime(th.in) assert.NotEqual(t, nil, err, "%v for %v", v, th.in) } }
explode_data.jsonl/32328
{ "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, 14463, 13877, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 270, 1669, 2088, 1273, 14463, 13877, 341, 197, 5195, 11, 1848, 1669, 4509, 1249, 1462, 24365, 1858, 340, 197, 6948, 15000, 2993, 1155, 11, 2092, 11, 1848, 11, 5962, 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 ]
2
func TestLoggingError(t *testing.T) { r := NewMock() err := errors.New("hello") got := r.Error(err, "", "context", "nothing") if got != err { t.Errorf("Error(%q, \"\") == %q but expected %q", err, got, err) } got = r.Error(err, "hey", "context", "nothing") expected := "hey: hello" if got.Error() != expecte...
explode_data.jsonl/82378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 34575, 1454, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 11571, 741, 9859, 1669, 5975, 7121, 445, 14990, 1138, 3174, 354, 1669, 435, 6141, 3964, 11, 7342, 330, 2147, 497, 330, 41212, 1138, 743, 2684, 961, 1848, 341, 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...
3
func TestResponseWriter(t *testing.T) { tests := []struct { format tchannel.Format apply func(responseWriter) arg2 []byte arg3 []byte applicationError bool headerCase headerCase }{ { format: tchannel.Raw, apply: func(w responseWriter) { header...
explode_data.jsonl/53839
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1474 }
[ 2830, 3393, 2582, 6492, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 59416, 1843, 259, 10119, 9978, 198, 197, 197, 10280, 310, 2915, 5684, 6492, 340, 197, 47903, 17, 1797, 3056, 3782, 198, 197, 47903, 18, 1797, 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 TestStdLogger(t *testing.T) { buf := bytes.NewBuffer(nil) DefaultLogger = NewLogger(buf, "prefix: ", log.Lshortfile, LvlTrace) Info("msg1", "k1", "v1") Log(LvlInfo, 0, "msg2", "k2", "v2") StdLogger("stdlog: ", LvlDebug).Print("msg3") Infof("msg4: %s=%s", "k3", "v3") IfErr(errors.New("error"), "msg5") exp...
explode_data.jsonl/75127
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 420 }
[ 2830, 3393, 22748, 7395, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 27907, 340, 91084, 7395, 284, 1532, 7395, 10731, 11, 330, 11849, 25, 3670, 1487, 1214, 8676, 1192, 11, 444, 14536, 6550, 692, 197, 1731, 445, 3236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMountUFS(t *testing.T) { type fields struct { runtime *datav1alpha1.GooseFSRuntime dataset *datav1alpha1.Dataset name string namespace string Log logr.Logger Client client.Client } tests := []struct { name string fields fields wantErr bool }{ { name: "test", ...
explode_data.jsonl/70302
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1182 }
[ 2830, 3393, 16284, 52, 8485, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 7000, 4466, 256, 353, 5911, 402, 16, 7141, 16, 1224, 13752, 8485, 15123, 198, 197, 2698, 8369, 256, 353, 5911, 402, 16, 7141, 16, 79356, 198, 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 TestGenesisGood(t *testing.T) { // test a good one by raw json genDocBytes := []byte( `{ "genesis_time": "0001-01-01T00:00:00Z", "chain_id": "test-chain-QDKdJr", "initial_height": "1000", "consensus_params": null, "validators": [{ "pub_key":{"type":"tendermint/PubKeyEd25519","value":"AT/+aaL...
explode_data.jsonl/61610
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 883 }
[ 2830, 3393, 84652, 15216, 1155, 353, 8840, 836, 8, 341, 197, 322, 1273, 264, 1661, 825, 553, 7112, 2951, 198, 82281, 9550, 7078, 1669, 3056, 3782, 1006, 197, 197, 63, 515, 298, 197, 1, 77894, 3009, 788, 330, 15, 15, 15, 16, 12, 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...
2
func TestDirMgrCollection_CopyOut_02(t *testing.T) { dMgrs := DirMgrCollection{} _, err := dMgrs.CopyOut() if err == nil { t.Errorf("Expected Error return from 'dMgrs' because the collection\n" + "has zero members in the collection. However, NO ERROR WAS RETURNED!!!") } }
explode_data.jsonl/61227
{ "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, 6184, 25567, 6482, 77637, 2662, 62, 15, 17, 1155, 353, 8840, 836, 8, 1476, 220, 294, 25567, 82, 1669, 30094, 25567, 6482, 31483, 220, 8358, 1848, 1669, 294, 25567, 82, 31770, 2662, 2822, 220, 421, 1848, 621, 2092, 341, 262...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDefaultVolumeSnapshotLocations(t *testing.T) { namespace := "heptio-ark" arkClient := fakeclientset.NewSimpleClientset() location := &v1.VolumeSnapshotLocation{ObjectMeta: metav1.ObjectMeta{Name: "location1"}, Spec: v1.VolumeSnapshotLocationSpec{Provider: "provider1"}} arkClient.ArkV1().VolumeSnapshotLoca...
explode_data.jsonl/40907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 903 }
[ 2830, 3393, 3675, 18902, 15009, 43037, 1155, 353, 8840, 836, 8, 341, 56623, 1669, 330, 383, 417, 815, 12, 838, 698, 197, 838, 2959, 1669, 12418, 2972, 746, 7121, 16374, 2959, 746, 2822, 53761, 1669, 609, 85, 16, 79106, 15009, 4707, 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 TestChunkStore_getMetricNameChunks(t *testing.T) { ctx := context.Background() now := model.Now() chunk1 := dummyChunkFor(now, labels.Labels{ {Name: labels.MetricName, Value: "foo"}, {Name: "bar", Value: "baz"}, {Name: "flip", Value: "flop"}, {Name: "toms", Value: "code"}, }) chunk2 := dummyChunkFor(n...
explode_data.jsonl/43819
{ "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, 28304, 6093, 3062, 54310, 675, 89681, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 80922, 1669, 1614, 13244, 741, 23049, 3122, 16, 1669, 17292, 28304, 2461, 32263, 11, 9201, 4679, 82, 515, 197, 197, 63121, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestUpdateJobs_WhenTransactionAlwaysFailsForOneBatch_ReturnsErrorForThatBatch_OtherChangesWork(t *testing.T) { withRepository(func(r *RedisJobRepository) { job1 := addTestJobWithClientId(t, r, "queue1", "my-job-1") job2 := addTestJobWithClientId(t, r, "queue2", "my-job-1") job3 := addTestJobWithClientId(t, ...
explode_data.jsonl/32072
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 801 }
[ 2830, 3393, 4289, 40667, 62, 4498, 8070, 37095, 37, 6209, 2461, 3966, 21074, 53316, 82, 1454, 2461, 4792, 21074, 2232, 696, 11317, 6776, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 18552, 2601, 353, 48137, 12245, 4624, 8, 341, 197, 68577...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPointBls12377G2Neg(t *testing.T) { bls12377G2 := BLS12377G1() g := bls12377G2.Point.Generator().Neg() require.True(t, g.Neg().Equal(bls12377G2.Point.Generator())) require.True(t, bls12377G2.Point.Identity().Neg().Equal(bls12377G2.Point.Identity())) }
explode_data.jsonl/15768
{ "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, 2609, 33, 4730, 16, 17, 18, 22, 22, 38, 17, 47800, 1155, 353, 8840, 836, 8, 341, 96421, 82, 16, 17, 18, 22, 22, 38, 17, 1669, 425, 7268, 16, 17, 18, 22, 22, 38, 16, 741, 3174, 1669, 1501, 82, 16, 17, 18, 22, 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 Test_setJavaExecutableFile(t *testing.T) { pipelineId := uuid.New() lc, _ := fs_tool.NewLifeCycle(pb.Sdk_SDK_JAVA, pipelineId, filepath.Join(os.Getenv("APP_WORK_DIR"), pipelinesFolder)) lc.Paths.ExecutableName = fakeExecutableName executorBuilder := executors.NewExecutorBuilder().WithRunner().WithCommand("fake...
explode_data.jsonl/27
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 732 }
[ 2830, 3393, 2602, 15041, 94772, 1703, 1155, 353, 8840, 836, 8, 341, 3223, 8790, 764, 1669, 16040, 7121, 741, 8810, 66, 11, 716, 1669, 8619, 22785, 7121, 25749, 44820, 76878, 97113, 84197, 10598, 35610, 11, 15301, 764, 11, 26054, 22363, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCounterWaitGroup(t *testing.T) { var mutex sync.Mutex var wait sync.WaitGroup counter := 0 for i := 0; i < 5000; i++ { wait.Add(1) go func() { defer func() { mutex.Unlock() }() mutex.Lock() counter++ wait.Done() }() } wait.Wait() t.Logf("counter = %d", counter) }
explode_data.jsonl/34247
{ "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, 14099, 14190, 2808, 1155, 353, 8840, 836, 8, 341, 2405, 30863, 12811, 99014, 198, 2405, 3783, 12811, 28384, 2808, 198, 58261, 1669, 220, 15, 198, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 20, 15, 15, 15, 26, 600, 1027...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMigrate_upApplyOne(t *testing.T) { db := dbtest.OpenWithoutMigrations(t) session, err := dbpkg.Open(db.DSN) require.NoError(t, err) n, err := Migrate(session, migrate.Up, 1) require.NoError(t, err) assert.Equal(t, 1, n) ids := []string{} err = session.Select(&ids, `SELECT id FROM gorp_migrations`) r...
explode_data.jsonl/39323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 44, 34479, 8237, 28497, 3966, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 1944, 12953, 26040, 44, 17824, 1155, 340, 25054, 11, 1848, 1669, 2927, 30069, 12953, 9791, 909, 18966, 340, 17957, 35699, 1155, 11, 1848, 692, 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 TestBatchStats(t *testing.T) { session := createSession(t) defer session.Close() if session.cfg.ProtoVersion == 1 { t.Skip("atomic batches not supported. Please use Cassandra >= 2.0") } if err := createTable(session, "CREATE TABLE gocql_test.batchStats (id int, PRIMARY KEY (id))"); err != nil { t.Fatalf...
explode_data.jsonl/11168
{ "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, 21074, 16635, 1155, 353, 8840, 836, 8, 341, 25054, 1669, 1855, 5283, 1155, 340, 16867, 3797, 10421, 2822, 743, 3797, 30481, 7763, 983, 5637, 621, 220, 16, 341, 197, 3244, 57776, 445, 6618, 44792, 537, 7248, 13, 5209, 990, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStreamGroup(t *testing.T) { s, err := Run() ok(t, err) defer s.Close() c, err := redis.Dial("tcp", s.Addr()) ok(t, err) defer c.Close() _, err = redis.String(c.Do("XGROUP", "CREATE", "s", "processing", "$")) mustFail(t, err, "ERR stream s not exists") _, err = redis.String(c.Do("XGROUP", "CREATE", "...
explode_data.jsonl/31883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 3027, 2808, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 6452, 741, 59268, 1155, 11, 1848, 340, 16867, 274, 10421, 741, 1444, 11, 1848, 1669, 20870, 98462, 445, 27161, 497, 274, 93626, 2398, 59268, 1155, 11, 1848, 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 TestMaxInactivityOnConnectionClose(t *testing.T) { o := GetDefaultOptions() o.MaxInactivity = 250 * time.Millisecond o.ClientHBInterval = 100 * time.Millisecond o.ClientHBTimeout = 50 * time.Millisecond o.ClientHBFailCount = 2 s := runServerWithOpts(t, o, nil) defer s.Shutdown() sc := NewDefaultConnection...
explode_data.jsonl/23100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 541 }
[ 2830, 3393, 5974, 641, 7175, 1925, 4526, 7925, 1155, 353, 8840, 836, 8, 341, 22229, 1669, 2126, 3675, 3798, 741, 22229, 14535, 641, 7175, 284, 220, 17, 20, 15, 353, 882, 71482, 198, 22229, 11716, 30725, 10256, 284, 220, 16, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTransportFlushesBodyChunks(t *testing.T) { defer afterTest(t) resBody := make(chan io.Reader, 1) connr, connw := io.Pipe() // connection pipe pair lw := &logWritesConn{ rch: resBody, w: connw, } tr := &Transport{ Dial: func(network, addr string) (net.Conn, error) { return lw, nil }, } body...
explode_data.jsonl/14140
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 693 }
[ 2830, 3393, 27560, 46874, 288, 5444, 89681, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 10202, 5444, 1669, 1281, 35190, 6399, 47431, 11, 220, 16, 340, 32917, 81, 11, 4534, 86, 1669, 6399, 1069, 3444, 368, 442, 3633, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestState_UpdateJoin(t *testing.T) { t.Parallel() st := setupNewState() ev := &irc.Event{ Name: irc.JOIN, Sender: users[0], Args: []string{channels[0]}, } st.addChannel(channels[0]) if st.IsOn(users[0], channels[0]) { t.Errorf("Expected %v to not be on %v", users[0], channels[0]) } u := st.Up...
explode_data.jsonl/32093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 1397, 47393, 12292, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18388, 1669, 6505, 3564, 1397, 741, 74837, 1669, 609, 2437, 6904, 515, 197, 21297, 25, 256, 79923, 3503, 46, 687, 345, 197, 7568, 1659, 25, 3847, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestErrors(t *testing.T) { initTest(ModeMulti, defaultTestOpts(), &testopts{}, t) tests := []struct { SQL string Err string }{ { SQL: "INVALID SQL", Err: "vtexplain execute error in 'INVALID SQL': syntax error at position 8 near 'INVALID'", }, { SQL: "SELECT * FROM THIS IS NOT SQL", Err:...
explode_data.jsonl/12769
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 371 }
[ 2830, 3393, 13877, 1155, 353, 8840, 836, 8, 341, 28248, 2271, 3189, 534, 20358, 11, 1638, 2271, 43451, 1507, 609, 1944, 10518, 22655, 259, 692, 78216, 1669, 3056, 1235, 341, 197, 197, 6688, 914, 198, 197, 197, 7747, 914, 198, 197, 594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNumericNormalize(t *testing.T) { testutil.TestSuccessfulNormalizeEqFunc(t, []testutil.NormalizeTest{ { SQL: "select '0'::numeric", Value: &shopspring.Numeric{Decimal: mustParseDecimal(t, "0"), Status: pgtype.Present}, }, { SQL: "select '1'::numeric", Value: &shopspring.Numeric{Decimal: m...
explode_data.jsonl/39593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1275 }
[ 2830, 3393, 36296, 87824, 1155, 353, 8840, 836, 8, 341, 18185, 1314, 8787, 36374, 87824, 27312, 9626, 1155, 11, 3056, 1944, 1314, 69523, 2271, 515, 197, 197, 515, 298, 197, 6688, 25, 256, 330, 1742, 364, 15, 6, 486, 19600, 756, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestManifestInitCorruptedBlock(t *testing.T) { ctx := testlogging.Context(t) data := blobtesting.DataMap{} st := blobtesting.NewMapStorage(data, nil, nil) f := &content.FormattingOptions{ Hash: "HMAC-SHA256-128", Encryption: encryption.NoneAlgorithm, MaxPackSize: 100000, Version: 1, } /...
explode_data.jsonl/77797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 855 }
[ 2830, 3393, 38495, 3803, 10580, 85954, 4713, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1273, 25263, 9328, 1155, 340, 8924, 1669, 23404, 8840, 3336, 2227, 16094, 18388, 1669, 23404, 8840, 7121, 2227, 5793, 2592, 11, 2092, 11, 2092, 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 TestUpdateBuilderIncludeDesiredInfoIfEnabled(t *testing.T) { var tests = map[string]struct { IncludeInfo map[types.IncludeInfoKey]bool expectedDesiredCount int }{ "include all": { IncludeInfo: map[types.IncludeInfoKey]bool{ types.IncludeAllInfo: true, }, expectedDesiredCount: 1, }, ...
explode_data.jsonl/54334
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 853 }
[ 2830, 3393, 4289, 3297, 22283, 4896, 2690, 1731, 2679, 5462, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 2415, 14032, 60, 1235, 341, 197, 197, 22283, 1731, 688, 2415, 58, 9242, 55528, 1731, 1592, 96436, 198, 197, 42400, 4896, 2690, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidAwsCredentialsAreAccepted(t *testing.T) { driver := NewCustomTestDriver(&fakeEC2WithLogin{}) driver.awsCredentialsFactory = NewValidAwsCredentials options := &commandstest.FakeFlagger{ Data: map[string]interface{}{ "name": "test", "amazonec2-region": "us-east-1", "amazonec2-zone"...
explode_data.jsonl/7419
{ "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, 4088, 47359, 27025, 11526, 65906, 1155, 353, 8840, 836, 8, 341, 33652, 1669, 1532, 10268, 2271, 11349, 2099, 30570, 7498, 17, 2354, 6231, 37790, 33652, 35166, 27025, 4153, 284, 1532, 4088, 47359, 27025, 198, 35500, 1669, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpgradeKymaOperationManager_OperationSucceeded(t *testing.T) { // given memory := storage.NewMemoryStorage() operations := memory.Operations() opManager := NewUpgradeKymaOperationManager(operations) op := fixUpgradeKymaOperation() err := operations.InsertUpgradeKymaOperation(op) require.NoError(t, err) ...
explode_data.jsonl/73200
{ "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, 43861, 42, 1600, 64, 8432, 2043, 2232, 91774, 50, 43805, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 2109, 4731, 1669, 5819, 7121, 10642, 5793, 741, 197, 38163, 1669, 4938, 13, 35120, 741, 39703, 2043, 1669, 1532, 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 TestWithoutPostings(t *testing.T) { var cases = []struct { base Postings drop Postings res Postings }{ { base: EmptyPostings(), drop: EmptyPostings(), res: EmptyPostings(), }, { base: EmptyPostings(), drop: newListPostings(1, 2), res: EmptyPostings(), }, { base: newListPos...
explode_data.jsonl/13133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 622 }
[ 2830, 3393, 26040, 4133, 819, 1155, 353, 8840, 836, 8, 341, 2405, 5048, 284, 3056, 1235, 341, 197, 24195, 3877, 819, 198, 197, 2698, 887, 3877, 819, 271, 197, 10202, 3877, 819, 198, 197, 59403, 197, 197, 515, 298, 24195, 25, 22228, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestX5C_Init(t *testing.T) { type ProvisionerValidateTest struct { p *X5C err error extraValid func(*X5C) error } tests := map[string]func(*testing.T) ProvisionerValidateTest{ "fail/empty": func(t *testing.T) ProvisionerValidateTest { return ProvisionerValidateTest{ p: &X5C{}, ...
explode_data.jsonl/44602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2119 }
[ 2830, 3393, 55, 20, 34, 15644, 1155, 353, 8840, 836, 8, 341, 13158, 71573, 261, 17926, 2271, 2036, 341, 197, 3223, 688, 353, 55, 20, 34, 198, 197, 9859, 286, 1465, 198, 197, 8122, 2172, 4088, 2915, 4071, 55, 20, 34, 8, 1465, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSplitComment_UnderMax(t *testing.T) { comment := "comment under max size" split := common.SplitComment(comment, len(comment)+1, "sepEnd", "sepStart") Equals(t, []string{comment}, split) }
explode_data.jsonl/67900
{ "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, 20193, 10677, 6665, 900, 5974, 1155, 353, 8840, 836, 8, 341, 96268, 1669, 330, 6182, 1212, 1932, 1379, 698, 1903, 2292, 1669, 4185, 19823, 10677, 39327, 11, 2422, 39327, 7257, 16, 11, 330, 28036, 3727, 497, 330, 28036, 3479,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMintTokensFromMobile(t *testing.T) { scriptHash := "9121e89e8a0849857262d67c8408601b5e8e0524" // encryptedKey := "" // passphrase := "" // wif, _ := neoutils.NEP2Decrypt(encryptedKey, passphrase) wif := "" wallet, err := neoutils.GenerateFromWIF(wif) if err != nil { log.Printf("%v", err) t.Fail() ...
explode_data.jsonl/22989
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 44, 396, 29300, 3830, 18370, 1155, 353, 8840, 836, 8, 341, 86956, 6370, 1669, 330, 24, 16, 17, 16, 68, 23, 24, 68, 23, 64, 15, 23, 19, 24, 23, 20, 22, 17, 21, 17, 67, 21, 22, 66, 23, 19, 15, 23, 21, 15, 16, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestQuotedStringArg(t *testing.T) { cl, err := client.NewURI(tcpAddr) require.Nil(t, err) // should NOT be unquoted val := "\"abc\"" got, err := echoViaHTTP(cl, val) require.Nil(t, err) assert.Equal(t, got, val) }
explode_data.jsonl/62869
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 2183, 9253, 703, 2735, 1155, 353, 8840, 836, 8, 341, 39407, 11, 1848, 1669, 2943, 7121, 10301, 98203, 13986, 340, 17957, 59678, 1155, 11, 1848, 340, 197, 322, 1265, 4183, 387, 650, 63725, 198, 19302, 1669, 15898, 13683, 2105...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecurseManifestsInDir(t *testing.T) { service := newService(".") src := argoappv1.ApplicationSource{Path: "./testdata/recurse", Directory: &argoappv1.ApplicationSourceDirectory{Recurse: true}} q := apiclient.ManifestRequest{Repo: &argoappv1.Repository{}, ApplicationSource: &src} res1, err := service.Gen...
explode_data.jsonl/5665
{ "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, 693, 2352, 325, 38495, 82, 641, 6184, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 501, 1860, 445, 31225, 41144, 1669, 1392, 78, 676, 85, 16, 17521, 3608, 90, 1820, 25, 5924, 92425, 10758, 2352, 325, 497, 18033, 25, 609, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestManageDataValidateName(t *testing.T) { kp0 := newKeypair0() sourceAccount := NewSimpleAccount(kp0.Address(), int64(3556091187167235)) manageData := ManageData{ Name: "This is a very long name for a field that only accepts 64 characters", Value: []byte(""), } _, err := NewTransaction( TransactionP...
explode_data.jsonl/62883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 33076, 1043, 17926, 675, 1155, 353, 8840, 836, 8, 341, 16463, 79, 15, 1669, 501, 6608, 1082, 1310, 15, 741, 47418, 7365, 1669, 1532, 16374, 7365, 5969, 79, 15, 26979, 1507, 526, 21, 19, 7, 18, 20, 20, 21, 15, 24, 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 TestConjInvolutiveInt64(t *testing.T) { f := func(x *Int64) bool { // t.Logf("x = %v", x) l := new(Int64) l.Conj(l.Conj(x)) return l.Equals(x) } if err := quick.Check(f, nil); err != nil { t.Error(err) } }
explode_data.jsonl/29671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 1109, 73, 641, 12536, 6704, 1072, 21, 19, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 2075, 353, 1072, 21, 19, 8, 1807, 341, 197, 197, 322, 259, 98954, 445, 87, 284, 1018, 85, 497, 856, 340, 197, 8810, 1669, 501, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNoProjectID(t *testing.T) { client, err := NewClient(context.Background(), &internal.MessagingConfig{}) if client != nil || err == nil { t.Errorf("NewClient() = (%v, %v); want = (nil, error)", client, err) } }
explode_data.jsonl/3627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 2753, 7849, 915, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1532, 2959, 5378, 19047, 1507, 609, 10481, 88969, 2648, 37790, 743, 2943, 961, 2092, 1369, 1848, 621, 2092, 341, 197, 3244, 13080, 445, 3564, 2959, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAssigningSubscriberPermanentError(t *testing.T) { const subscription = "projects/123456/locations/us-central1-b/subscriptions/my-sub" receiver := newTestMessageReceiver(t) msg1 := seqMsgWithOffsetAndSize(11, 100) msg2 := seqMsgWithOffsetAndSize(22, 200) serverErr := status.Error(codes.FailedPrecondition, ...
explode_data.jsonl/31656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 833 }
[ 2830, 3393, 28933, 287, 40236, 78793, 1454, 1155, 353, 8840, 836, 8, 341, 4777, 15142, 284, 330, 17161, 14, 16, 17, 18, 19, 20, 21, 14, 31309, 62431, 84081, 16, 1455, 37885, 29966, 34198, 17967, 698, 17200, 12862, 1669, 501, 2271, 205...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConcurrentT_StageN(t *testing.T) { t.Run("happy case", func(t *testing.T) { ct := test.NewConcurrent(t) var executed, returned sync.WaitGroup executed.Add(2) returned.Add(2) for i := 0; i < 2; i++ { go func() { ct.StageN("stage", 2, func(t test.ConcT) { executed.Done() }) return...
explode_data.jsonl/69826
{ "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, 1109, 3231, 51, 62, 19398, 45, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 56521, 1142, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 89216, 1669, 1273, 7121, 1109, 3231, 1155, 340, 197, 2405, 15695, 11, 5927, 12811, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcileResponsiveGC(t *testing.T) { table := TableTest{{ Name: "Update stale lastPinned", Ctx: setResponsiveGCFeature(context.Background(), cfgmap.Disabled), Objects: []runtime.Object{ Route("default", "stale-lastpinned", WithConfigTarget("config"), WithURL, WithAddress, WithRouteConditionsAut...
explode_data.jsonl/7814
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1940 }
[ 2830, 3393, 693, 40446, 457, 78795, 22863, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 6633, 2271, 90, 515, 197, 21297, 25, 330, 4289, 50351, 1537, 47, 20561, 756, 197, 6258, 3998, 25, 220, 738, 78795, 22863, 13859, 5378, 19047, 1507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestChequebookIssueErrorSend(t *testing.T) { address := common.HexToAddress("0xabcd") beneficiary := common.HexToAddress("0xdddd") ownerAdress := common.HexToAddress("0xfff") store := storemock.NewStateStore() amount := big.NewInt(20) sig := common.Hex2Bytes("0xffff") chequeSigner := &chequeSignerMock{} c...
explode_data.jsonl/41444
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 26843, 591, 2190, 42006, 1454, 11505, 1155, 353, 8840, 836, 8, 341, 63202, 1669, 4185, 91538, 1249, 4286, 445, 15, 52616, 4385, 1138, 2233, 50465, 26813, 1669, 4185, 91538, 1249, 4286, 445, 15, 53432, 631, 1138, 197, 8118, 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 TestRepeatableBatchSource(t *testing.T) { batch := coldata.NewMemBatch([]coltypes.T{coltypes.Int64}) batchLen := uint16(10) batch.SetLength(batchLen) input := NewRepeatableBatchSource(batch) b := input.Next(context.Background()) b.SetLength(0) b.SetSelection(true) b = input.Next(context.Background()) if...
explode_data.jsonl/63467
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 38718, 480, 21074, 3608, 1155, 353, 8840, 836, 8, 341, 2233, 754, 1669, 1375, 691, 7121, 18816, 21074, 10556, 2074, 9242, 836, 90, 2074, 9242, 7371, 21, 19, 3518, 2233, 754, 11271, 1669, 2622, 16, 21, 7, 16, 15, 340, 223...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsightStore_StampBackfill(t *testing.T) { timescale, cleanup := insightsdbtesting.TimescaleDB(t) defer cleanup() now := time.Now().Round(0).Truncate(time.Microsecond) ctx := context.Background() store := NewInsightStore(timescale) store.Now = func() time.Time { return now } series := types.Insight...
explode_data.jsonl/33316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 609 }
[ 2830, 3393, 15474, 491, 6093, 62, 20906, 3707, 7559, 1155, 353, 8840, 836, 8, 341, 3244, 1733, 2246, 11, 21290, 1669, 25709, 1999, 8840, 836, 1733, 2246, 3506, 1155, 340, 16867, 21290, 741, 80922, 1669, 882, 13244, 1005, 27497, 7, 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 TestAll(t *testing.T) { env := kubetest.New(t, kubetest.Config{ Clusters: []kubetest.ClusterConfig{ {Name: robotClusterName}, }, SchemeFunc: crcapps.AddToScheme, }) defer env.Teardown() env.InstallChartArchive( robotClusterName, "base-test", "default", "src/app_charts/base/base-test-0.0.1.tgz", ...
explode_data.jsonl/64747
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 461 }
[ 2830, 3393, 2403, 1155, 353, 8840, 836, 8, 341, 57538, 1669, 595, 392, 57824, 7121, 1155, 11, 595, 392, 57824, 10753, 515, 197, 197, 94992, 25, 3056, 74, 392, 57824, 72883, 2648, 515, 298, 197, 63121, 25, 12305, 28678, 675, 1583, 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 Test_CrawlerBadGet(t *testing.T) { t.Parallel() ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { switch r.Method { case http.MethodHead: w.Header().Add(contentType, contentHTML) case http.MethodGet: w.WriteHeader(http.StatusInternalServerError) } })) def...
explode_data.jsonl/2968
{ "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, 920, 33369, 17082, 1949, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 8961, 435, 20798, 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...
3
func TestInvokeNOKDuplicateNs(t *testing.T) { t.Run("1.2Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithV12Capabilities(t) defer cleanup() testInvokeNOKDuplicateNs(t, l, v) }) t.Run("1.3Capability", func(t *testing.T) { l, v, cleanup := setupLedgerAndValidatorWithV13Capabiliti...
explode_data.jsonl/47798
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 17604, 45, 3925, 53979, 47360, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 16, 13, 17, 63746, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 8810, 11, 348, 11, 21290, 1669, 6505, 60850, 1389, 3036, 14256, 2354, 53, 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 TestUnicast(t *testing.T) { ctx := context.Background() n := 10 agents := make([]*Agent, 0) defer func() { var err error for _, agent := range agents { err = agent.Stop(ctx) } require.NoError(t, err) }() counts := make(map[uint8]int) var src string var mutex sync.RWMutex b := func(_ context.Con...
explode_data.jsonl/64179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 824 }
[ 2830, 3393, 1806, 35446, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 9038, 1669, 220, 16, 15, 198, 197, 54875, 1669, 1281, 85288, 16810, 11, 220, 15, 340, 16867, 2915, 368, 341, 197, 2405, 1848, 1465, 198, 197, 2023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRenderNodeHookCode(t *testing.T) { t.Parallel() tests := []string{ "a\n```go\ncode\n```\nb", "<p>a</p>\ncode_replacement\n<p>b</p>\n", } opts := html.RendererOptions{ RenderNodeHook: renderHookCodeBlock, } params := TestParams{ RendererOptions: opts, extensions: parser.CommonExtensions, }...
explode_data.jsonl/72528
{ "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, 6750, 1955, 31679, 2078, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 78216, 1669, 3056, 917, 515, 197, 197, 56693, 1699, 73594, 3346, 59, 1016, 534, 1699, 13874, 61069, 18080, 756, 197, 197, 22476, 79, 43875, 522, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadURLFailure(t *testing.T) { contentTypes := []string{ "application/pdf", "application/json", "application/tlsrpt+gzip", "application/vnd.3gpp.pic-bw-small", "application/vnd.collabio.xodocuments.document-template", "application/vnd.ctc-posml", "application/vnd.gov.sk.e-form+zip", "audio/mp4...
explode_data.jsonl/18838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 5879, 3144, 17507, 1155, 353, 8840, 836, 8, 341, 27751, 4173, 1669, 3056, 917, 515, 197, 197, 1, 5132, 47751, 756, 197, 197, 1, 5132, 8931, 756, 197, 197, 1, 5132, 5523, 4730, 81, 417, 10, 70996, 756, 197, 197, 1, 5132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSm4Cipher_Encrypt(t *testing.T) { for _, data := range testData { c, err := NewCipher(data.key) if err != nil { t.Error(err.Error()) return } encrypter := cipher.NewCBCEncrypter(c, data.iv) result := make([]byte, len(data.out)) encrypter.CryptBlocks(result, util.PKCS5Padding(data.in, BlockS...
explode_data.jsonl/53523
{ "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, 10673, 19, 79460, 93529, 3571, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 821, 1669, 2088, 67348, 341, 197, 1444, 11, 1848, 1669, 1532, 79460, 2592, 4735, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 6141, 3964, 6141, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdate(t *testing.T) { dictionary := Dictionary{"test": "this is just a test"} t.Run("existing word", func(t *testing.T) { err := dictionary.Update("test", "new test") assert.Equal(t, err, nil) }) t.Run("not exist word", func(t *testing.T) { err := dictionary.Update("foo", "bar") assert.NotEqual(...
explode_data.jsonl/54104
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 2698, 3916, 1669, 10466, 4913, 1944, 788, 330, 574, 374, 1101, 264, 1273, 63159, 3244, 16708, 445, 36895, 3409, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 9859, 1669, 10997, 16689, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEventCallbacks(t *testing.T) { var ( order = &Order{} orderStateMachine = getStateMachine() prevState, afterState string ) orderStateMachine.Event("checkout").To("checkout").From("draft").Before(func(order interface{}, tx *gorm.DB) error { prevState = order.(*Order).State retu...
explode_data.jsonl/2615
{ "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, 1556, 44461, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 42245, 338, 284, 609, 4431, 16094, 197, 42245, 94666, 257, 284, 39070, 21605, 741, 197, 50728, 1397, 11, 1283, 1397, 914, 198, 197, 692, 42245, 94666, 6904, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLookupByKeyMin(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) ctx := context.Background() st := cluster.MakeTestingClusterSettings() stopper := stop.NewStopper() defer stopper.Stop(context.Background()) cache := NewRangeDescriptorCache(st, nil, staticSize(2<<10), stopper) st...
explode_data.jsonl/28184
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 356 }
[ 2830, 3393, 34247, 67749, 6217, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 340, 20985, 1669, 2266, 19047, 2822, 18388, 1669, 10652, 50133, 16451, 28678, 6086, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContext2Plan_emptyDiff(t *testing.T) { m := testModule(t, "plan-empty") p := testProvider("aws") p.DiffFn = func( info *InstanceInfo, s *InstanceState, c *ResourceConfig) (*InstanceDiff, error) { return nil, nil } ctx := testContext2(t, &ContextOpts{ Config: m, ProviderResolver: providers.Res...
explode_data.jsonl/28639
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 1972, 17, 20485, 15124, 21751, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 39433, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 98063, 24911, 284, 2915, 1006, 197, 27043, 353, 2523, 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 TestUpload(t *testing.T) { distroStruct := test_distro.New() arch, err := distroStruct.GetArch(test_distro.TestArchName) if err != nil { t.Fatalf("error getting arch from distro: %v", err) } imageType, err := arch.GetImageType(test_distro.TestImageTypeName) if err != nil { t.Fatalf("error getting image t...
explode_data.jsonl/1105
{ "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, 13844, 1155, 353, 8840, 836, 8, 341, 2698, 15561, 9422, 1669, 1273, 814, 15561, 7121, 741, 197, 1113, 11, 1848, 1669, 1582, 299, 9422, 2234, 18727, 8623, 814, 15561, 8787, 18727, 675, 340, 743, 1848, 961, 2092, 341, 197, 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...
4
func TestHandleLogin(t *testing.T) { ac := Client{} loginDetails := creds.LoginDetails{ Username: "fdsa", Password: "secret", URL: "https://example.com/foo", } ctx := context.WithValue(context.Background(), ctxKey("login"), &loginDetails) data, err := ioutil.ReadFile("example/login.html") require.Nil(...
explode_data.jsonl/4321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 6999, 6231, 1155, 353, 8840, 836, 8, 341, 81200, 1669, 8423, 16094, 75755, 7799, 1669, 73177, 32499, 7799, 515, 197, 197, 11115, 25, 330, 64834, 64, 756, 197, 197, 4876, 25, 330, 20474, 756, 197, 79055, 25, 414, 330, 2428,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTiFlashFallback(t *testing.T) { store, clean := testkit.CreateMockStore(t, mockstore.WithClusterInspector(func(c testutils.Cluster) { mockCluster := c.(*unistore.Cluster) _, _, region1 := mockstore.BootstrapWithSingleStore(c) store := c.AllocID() peer := c.AllocID() mockCluster.AddStore(store...
explode_data.jsonl/73156
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2579 }
[ 2830, 3393, 45351, 23876, 87206, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 345, 197, 77333, 4314, 26124, 28678, 46230, 18552, 1337, 1273, 6031, 72883, 8, 341, 298, 77333, 28678, 1669, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransformBlackboxesToUptos(t *testing.T) { // given bbs := map[string]*Upto{} m := [][]string{ {"keyA", "value A"}, } // when TransformBlackboxesToUptos(bbs, m, BBApplication) // then assert.Equal(t, m[0][1], bbs[m[0][0]].Comment) }
explode_data.jsonl/58727
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 8963, 14417, 22204, 1249, 52, 417, 436, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 2233, 1279, 1669, 2415, 14032, 8465, 52, 57991, 16094, 2109, 1669, 52931, 917, 515, 197, 197, 4913, 792, 32, 497, 330, 957, 362, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRenegotiateOnce(t *testing.T) { config := testConfig.Clone() config.Renegotiation = RenegotiateOnceAsClient test := &clientTest{ name: "RenegotiateOnce", args: []string{"-state"}, config: config, numRenegotiations: 1, } runClientTestTLS12(t, test) }
explode_data.jsonl/27722
{ "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, 34625, 65978, 6493, 12522, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1273, 2648, 64463, 741, 25873, 2013, 268, 65978, 7101, 284, 13775, 65978, 6493, 12522, 2121, 2959, 271, 18185, 1669, 609, 2972, 2271, 515, 197, 11609, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLambdaWrongApplicationId(t *testing.T) { skill := Skill{ ApplicationID: "amzn1.echo-sdk-ams.app.000000-d0ed-0000-ad00-000000d00ebe", SkipValidation: false, Verbose: false, } skillHandler := skill.GetLambdaSkillHandler() launchRequestReader, err := os.Open("../resources/lambda_launch_request....
explode_data.jsonl/29505
{ "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, 58266, 29185, 4988, 764, 1155, 353, 8840, 836, 8, 341, 1903, 10851, 1669, 27482, 515, 197, 78329, 915, 25, 220, 330, 309, 20308, 16, 68645, 35478, 12, 4122, 1601, 13, 15, 15, 15, 15, 15, 15, 1737, 15, 291, 12, 15, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestReversiAnz27(t *testing.T) { r := NewReversiAnz() r.SetOwnPointCnt(1) if r.GetOwnPointCnt() != 1 { t.Errorf("NG") } }
explode_data.jsonl/23050
{ "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, 693, 3004, 72, 2082, 89, 17, 22, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 7000, 4202, 14182, 2609, 33747, 7, 16, 340, 743, 435, 2234, 14182, 2609, 33747, 368, 961, 220, 16, 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 ]
2