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 TestProtocolVersionValidation(t *testing.T) {
// Limit runtime in case of deadlocks
lim := test.TimeOut(time.Second * 20)
defer lim.Stop()
// Check for leaking routines
report := test.CheckRoutines(t)
defer report()
cookie := make([]byte, 20)
if _, err := rand.Read(cookie); err != nil {
t.Fatal(err)
}... | explode_data.jsonl/40942 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 3498
} | [
2830,
3393,
20689,
5637,
13799,
1155,
353,
8840,
836,
8,
341,
197,
322,
28008,
15592,
304,
1142,
315,
5593,
34936,
198,
197,
4659,
1669,
1273,
16299,
2662,
9730,
32435,
353,
220,
17,
15,
340,
16867,
4568,
30213,
2822,
197,
322,
4248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNewMonitor(t *testing.T) {
maxRecieves := 5
var receiveCount int
m := NewMonitor()
m.Comm = testComm{func() ([]Stats, error) {
s := []Stats{
{Container: strconv.Itoa(receiveCount)},
}
receiveCount++
return s, nil
}}
for i := 0; i < maxRecieves; i++ {
s := <-m.Stream
if s.Error != nil {
... | explode_data.jsonl/74153 | {
"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,
3564,
30098,
1155,
353,
8840,
836,
8,
341,
22543,
3820,
38135,
1669,
220,
20,
198,
2405,
5258,
2507,
526,
271,
2109,
1669,
1532,
30098,
741,
2109,
90852,
284,
1273,
17977,
90,
2830,
368,
34923,
16635,
11,
1465,
8,
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... | 1 |
func TestFib(t *testing.T) {
session, client, err := RunValidators(t)
if err != nil {
t.Errorf("Validator setup error %v", err)
t.FailNow()
}
t.Run("TestFibResult", func(t *testing.T) {
fibsize := 15
fibnum := 11
tx, err := session.GenerateFib(big.NewInt(int64(fibsize)))
if err != nil {
t.Errorf("Ge... | explode_data.jsonl/53144 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 751
} | [
2830,
3393,
37,
579,
1155,
353,
8840,
836,
8,
341,
25054,
11,
2943,
11,
1848,
1669,
6452,
31748,
1155,
340,
743,
1848,
961,
2092,
341,
197,
3244,
13080,
445,
14256,
6505,
1465,
1018,
85,
497,
1848,
340,
197,
3244,
57243,
7039,
741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNewOrQuery2(t *testing.T) {
sl := datastruct.NewSkipList(datastruct.DefaultMaxLevel)
sl.Add(document.DocId(1), [1]byte{})
sl.Add(document.DocId(3), [1]byte{})
sl.Add(document.DocId(6), [1]byte{})
sl.Add(document.DocId(10), [1]byte{})
sl1 := datastruct.NewSkipList(datastruct.DefaultMaxLevel)
sl1.Add(d... | explode_data.jsonl/43261 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 779
} | [
2830,
3393,
3564,
2195,
2859,
17,
1155,
353,
8840,
836,
8,
341,
78626,
1669,
821,
1235,
7121,
35134,
852,
2592,
1235,
13275,
5974,
4449,
692,
78626,
1904,
15290,
42452,
764,
7,
16,
701,
508,
16,
90184,
37790,
78626,
1904,
15290,
42452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestServiceMetrics_BootstrapHandler(t *testing.T) {
tests := []struct {
Name string
Interval string
ExpectedResult bool
}{
{"Happy Path", "5s", true},
{"Invalid Interval", "five seconds", false},
}
for _, test := range tests {
t.Run(test.Name, func(t *testing.T) {
target := NewS... | explode_data.jsonl/18901 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 635
} | [
2830,
3393,
1860,
27328,
62,
45511,
3050,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
21297,
1843,
914,
198,
197,
197,
10256,
981,
914,
198,
197,
197,
18896,
2077,
1807,
198,
197,
59403,
197,
197,
4913,
32847,
793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestExecutorSingle(t *testing.T) {
demo := &demoTaskSingle{}
single := SingleExecutor{
worker: &TaskWorker{
data: make(chan interface{}, 100),
},
task: demo,
}
single.worker.data <- 1
single.worker.data <- 2
single.worker.data <- 3
single.worker.data <- 4
single.worker.data <- 5
demo.succ = true
... | explode_data.jsonl/3591 | {
"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,
25255,
10888,
1155,
353,
8840,
836,
8,
341,
2698,
6726,
1669,
609,
25762,
6262,
10888,
16094,
1903,
2173,
1669,
11327,
25255,
515,
197,
197,
21462,
25,
609,
6262,
21936,
515,
298,
8924,
25,
1281,
35190,
3749,
22655,
220,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestKubeConfigSubCommandsThatWritesToOut(t *testing.T) {
// Temporary folders for the test case
tmpdir := testutil.SetupTempDir(t)
defer os.RemoveAll(tmpdir)
// Adds a pki folder with a ca cert to the temp folder
pkidir := testutil.SetupPkiDirWithCertificateAuthorithy(t, tmpdir)
outputdir := tmpdir
// R... | explode_data.jsonl/9521 | {
"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,
42,
3760,
2648,
3136,
30479,
4792,
93638,
1249,
2662,
1155,
353,
8840,
836,
8,
1476,
197,
322,
54448,
29242,
369,
279,
1273,
1142,
198,
20082,
3741,
1669,
1273,
1314,
39820,
12151,
6184,
1155,
340,
16867,
2643,
84427,
10368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestKMSProviderCacheSize(t *testing.T) {
cacheField := root.Index(0).Child("kms").Child("cachesize")
negativeCacheSize := int32(-1)
positiveCacheSize := int32(10)
zeroCacheSize := int32(0)
testCases := []struct {
desc string
in *config.KMSConfiguration
want field.ErrorList
}{
{
desc: "valid pos... | explode_data.jsonl/75104 | {
"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,
42,
4826,
5179,
8233,
1695,
1155,
353,
8840,
836,
8,
341,
52680,
1877,
1669,
3704,
18338,
7,
15,
568,
3652,
445,
74,
1011,
1827,
3652,
445,
66,
14242,
551,
1138,
9038,
15060,
8233,
1695,
1669,
526,
18,
17,
4080,
16,
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... | 2 |
func TestYouonI(t *testing.T) {
const want = "ye"
for _, v := range [2]string{"いぇ", "イェ"} {
got, err := KanaToRomaji(v)
assert.Equal(t, want, got)
assert.Nil(t, err)
}
} | explode_data.jsonl/11312 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 89
} | [
2830,
3393,
2610,
263,
40,
1155,
353,
8840,
836,
8,
341,
4777,
1366,
284,
330,
9011,
1837,
2023,
8358,
348,
1669,
2088,
508,
17,
30953,
4913,
16586,
128219,
497,
330,
24218,
77249,
9207,
341,
197,
3174,
354,
11,
1848,
1669,
730,
3362,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func Test_Session(t *testing.T) {
p := ports.PopRand()
s := g.Server(p)
s.BindHandler("/set", func(r *ghttp.Request) {
r.Session.Set(r.Get("k"), r.Get("v"))
})
s.BindHandler("/get", func(r *ghttp.Request) {
r.Response.Write(r.Session.Get(r.Get("k")))
})
s.BindHandler("/remove", func(r *ghttp.Request) {
r.S... | explode_data.jsonl/2410 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 668
} | [
2830,
3393,
84664,
1155,
353,
8840,
836,
8,
341,
3223,
1669,
20325,
47424,
56124,
741,
1903,
1669,
342,
22997,
1295,
340,
1903,
32451,
3050,
4283,
746,
497,
2915,
2601,
353,
70,
1254,
9659,
8,
341,
197,
7000,
20674,
4202,
2601,
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 TestLogsExporter_InvalidName(t *testing.T) {
le, err := NewLogsExporter(nil, componenttest.NewNopExporterCreateSettings(), newPushLogsData(nil))
require.Nil(t, le)
require.Equal(t, errNilConfig, err)
} | explode_data.jsonl/59601 | {
"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,
51053,
88025,
62,
7928,
675,
1155,
353,
8840,
836,
8,
341,
197,
273,
11,
1848,
1669,
1532,
51053,
88025,
27907,
11,
3692,
1944,
7121,
45,
453,
88025,
4021,
6086,
1507,
501,
16644,
51053,
1043,
27907,
1171,
17957,
59678,
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 |
func TestHDWalletSignerBadAddress(t *testing.T) {
assert := assert.New(t)
svr := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
res.WriteHeader(200)
res.Write([]byte(`{"address": 12345}`))
}))
defer svr.Close()
hdr := IsHDWalletRequest("hd-testinst-testwallet-1234")
a... | explode_data.jsonl/33506 | {
"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,
19147,
38259,
7264,
261,
17082,
4286,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
692,
1903,
18920,
1669,
54320,
70334,
7121,
5475,
19886,
89164,
18552,
4590,
1758,
37508,
11,
4232,
353,
1254,
9659,
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... | 1 |
func TestRouteBadServiceInNodePort(t *testing.T) {
g := gomega.NewGomegaWithT(t)
integrationtest.SetNodePortMode()
defer integrationtest.SetClusterIPMode()
nodeIP := "10.1.1.2"
integrationtest.CreateNode(t, "testNodeNP", nodeIP)
defer integrationtest.DeleteNode(t, "testNodeNP")
SetUpTestForRouteInNodePort(t, D... | explode_data.jsonl/46177 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 377
} | [
2830,
3393,
4899,
17082,
1860,
641,
1955,
7084,
1155,
353,
8840,
836,
8,
341,
3174,
1669,
342,
32696,
7121,
38,
32696,
2354,
51,
1155,
692,
2084,
17376,
1944,
4202,
1955,
7084,
3636,
741,
16867,
17590,
1944,
4202,
28678,
3298,
3636,
741... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestJsonFile(t *testing.T) {
generateTestFiles(t)
defer deleteTestFiles(t)
type testConfig struct {
StringParam string `json:"jsonStringParam"`
IntParam int `json:"jsonIntParam"`
FloatParam float64 `json:"jsonFloatParam"`
TimeParam time.Duration `json:"jsonTimeParam"`
Boo... | explode_data.jsonl/67478 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 370
} | [
2830,
3393,
5014,
1703,
1155,
353,
8840,
836,
8,
341,
3174,
13220,
2271,
10809,
1155,
340,
16867,
3698,
2271,
10809,
1155,
692,
13158,
1273,
2648,
2036,
341,
197,
4980,
2001,
914,
286,
1565,
2236,
2974,
2236,
703,
2001,
8805,
197,
57152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSyncModeForNotifications(t *testing.T) {
ctx := context.Background()
cfg := initTest()
cfg.Ios.Enabled = true
cfg.Ios.KeyPath = "../certificate/certificate-valid.pem"
err := notify.InitAPNSClient(cfg)
assert.Nil(t, err)
cfg.Android.Enabled = true
cfg.Android.APIKey = os.Getenv("ANDROID_API_KEY")
//... | explode_data.jsonl/67623 | {
"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,
12154,
3636,
2461,
34736,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
741,
50286,
1669,
2930,
2271,
2822,
50286,
2447,
436,
13690,
284,
830,
198,
50286,
2447,
436,
9610,
1820,
284,
7005,
63586,
2899,
20962,
84810,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGet(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
resourceID := "/subscriptions/subscriptionID/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm1"
response := &http.Response{
StatusCode: http.StatusOK,
Body: ioutil.NopCloser(bytes.NewReader([]byte("{}"))),
}... | explode_data.jsonl/16680 | {
"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,
1949,
1155,
353,
8840,
836,
8,
341,
84381,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
16867,
23743,
991,
18176,
2822,
50346,
915,
1669,
3521,
72560,
14,
34404,
915,
53100,
22173,
14,
1984,
82543,
10270,
3929,
89237,
5457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestStartAndWaitSuccess(t *testing.T) {
handlerRegistry := NewHandlerRegistry(false)
fakeRuntime := &mock.Runtime{}
fakeRuntime.StartStub = func(_ *ccprovider.ChaincodeContainerInfo, _ []byte) error {
handlerRegistry.Ready("testcc:0")
return nil
}
code := getTarGZ(t, "src/dummy/dummy.go", []byte("code"))... | explode_data.jsonl/74175 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 372
} | [
2830,
3393,
3479,
92812,
7188,
1155,
353,
8840,
836,
8,
341,
53326,
15603,
1669,
1532,
3050,
15603,
3576,
340,
1166,
726,
15123,
1669,
609,
16712,
16706,
16094,
1166,
726,
15123,
12101,
33838,
284,
2915,
2490,
353,
638,
19979,
98269,
1851... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGetPartitionSize(t *testing.T) {
table := GetValidTable()
request := 1
size := table.Partitions[request].GetSize()
expected := int64(table.Partitions[request].Size)
if size != expected {
t.Errorf("Received size %d instead of %d", size, expected)
}
} | explode_data.jsonl/61028 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 91
} | [
2830,
3393,
1949,
49978,
1695,
1155,
353,
8840,
836,
8,
341,
26481,
1669,
2126,
4088,
2556,
741,
23555,
1669,
220,
16,
198,
13832,
1669,
1965,
52250,
5930,
58,
2035,
936,
95379,
741,
42400,
1669,
526,
21,
19,
15761,
52250,
5930,
58,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestRemoteDcrwalletCSDriver(t *testing.T) {
miner, vw, tearDownMiner := setupTestChain(t, "remotewallet-csd")
defer tearDownMiner()
rpcConfig := miner.RPCConfig()
conn, tearDownWallet := testutils.NewTestRemoteDcrwallet(t, &rpcConfig)
wsvc := walletrpc.NewWalletServiceClient(conn)
nsvc := walletrpc.NewNetwo... | explode_data.jsonl/23641 | {
"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,
24703,
35,
5082,
35735,
34,
5491,
5469,
1155,
353,
8840,
836,
8,
341,
25320,
261,
11,
74086,
11,
32825,
6217,
261,
1669,
6505,
2271,
18837,
1155,
11,
330,
1826,
354,
365,
7464,
1786,
13446,
1138,
16867,
32825,
6217,
261,
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 TestIngressE2E(t *testing.T) {
t.Run("Reject", func(t *testing.T) {
err := applyManifest("test/manifests/ingress-valid.yaml", true)
if assert.Nil(t, err, "ingress-valid.yaml should be applied") {
err := applyManifest("test/manifests/ingress-collision-tls.yaml", true)
assert.Error(t, err, "ingress-collis... | explode_data.jsonl/42906 | {
"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,
641,
2483,
36,
17,
36,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
78413,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
9859,
1669,
3796,
38495,
445,
1944,
14,
42315,
82,
14,
287,
673,
84810,
33406,
497,
830,
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... | 2 |
func Test_Chains(t *testing.T) {
var (
chainID = *utils.NewBigI(1)
nodeID = int32(200)
query = `
query GetChains {
chains {
id
enabled
createdAt
nodes {
id
}
}
}`
)
testCases := []GQLTestCase{
unauthorizedTestCase(GQLTestCase{query: query}, "chains"),
{
na... | explode_data.jsonl/48068 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 602
} | [
2830,
3393,
27588,
1735,
1155,
353,
8840,
836,
8,
341,
2405,
2399,
197,
197,
8819,
915,
284,
353,
6031,
7121,
15636,
40,
7,
16,
340,
197,
20831,
915,
220,
284,
526,
18,
17,
7,
17,
15,
15,
692,
197,
27274,
284,
22074,
298,
27274,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestEmptyValidationChainPassesAllValidations(t *testing.T) {
v := NewChain()
results := helpers.NewDetectionResults(talismanrc.HookMode)
v.Test(nil, &talismanrc.TalismanRC{}, results)
assert.False(t, results.HasFailures(), "Empty validation chain is expected to always pass")
} | explode_data.jsonl/49103 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 91
} | [
2830,
3393,
3522,
13799,
18837,
12187,
288,
2403,
4088,
804,
1155,
353,
8840,
836,
8,
341,
5195,
1669,
1532,
18837,
741,
55497,
1669,
30187,
7121,
54817,
9801,
1155,
34865,
1515,
1287,
3839,
1941,
3636,
340,
5195,
8787,
27907,
11,
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 TestApplicationContext_Invoke(t *testing.T) {
t.Run("not run", func(t *testing.T) {
c, ch := container()
c.Provide(func() int { return 3 })
c.Property("version", "v0.0.1")
err := c.Refresh()
assert.Nil(t, err)
p := <-ch
_, _ = p.BeanRegistry().Invoke(func(i *int, version string) {
fmt.Println... | explode_data.jsonl/17435 | {
"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,
19736,
79143,
1155,
353,
8840,
836,
8,
1476,
3244,
16708,
445,
1921,
1598,
497,
2915,
1155,
353,
8840,
836,
8,
1476,
197,
1444,
11,
521,
1669,
5476,
741,
197,
1444,
7763,
19448,
18552,
368,
526,
314,
470,
220,
18,
2751,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestInteg_00_ListWebACLs(t *testing.T) {
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()
cfg, _ := integrationtest.LoadConfigWithDefaultRegion("us-east-1")
svc := wafv2.NewFromConfig(cfg)
input := &wafv2.ListWebACLsInput{
Limit: aws.Int32(20),
Scope: types.Scop... | explode_data.jsonl/13570 | {
"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,
1072,
791,
62,
15,
15,
27104,
5981,
55393,
82,
1155,
353,
8840,
836,
8,
341,
20985,
11,
9121,
24911,
1669,
2266,
26124,
7636,
5378,
19047,
1507,
220,
20,
77053,
32435,
340,
16867,
9121,
24911,
2822,
50286,
11,
716,
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... | 2 |
func TestInvalidCrossSignature(t *testing.T) {
// This public key has a signing subkey, and the subkey has an
// embedded cross-signature. However, the cross-signature does
// not correctly validate over the primary and subkey.
keys, err := ReadArmoredKeyRing(bytes.NewBufferString(invalidCrossSignatureKey))
if len... | explode_data.jsonl/14735 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 259
} | [
2830,
3393,
7928,
28501,
25088,
1155,
353,
8840,
836,
8,
341,
197,
322,
1096,
584,
1376,
702,
264,
15971,
1186,
792,
11,
323,
279,
1186,
792,
702,
458,
198,
197,
322,
22864,
5312,
27953,
1568,
13,
4354,
11,
279,
5312,
27953,
1568,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestOriginPoint(t *testing.T) {
if math.Abs(OriginPoint().Norm()-1) > 1e-15 {
t.Errorf("Origin point norm = %v, want 1", OriginPoint().Norm())
}
// The point chosen below is about 66km from the north pole towards the East
// Siberian Sea. The purpose of the stToUV(2/3) calculation is to keep the
// origin ... | explode_data.jsonl/52179 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 305
} | [
2830,
3393,
13298,
2609,
1155,
353,
8840,
836,
8,
341,
743,
6888,
33255,
7,
13298,
2609,
1005,
24993,
15694,
16,
8,
861,
220,
16,
68,
12,
16,
20,
341,
197,
3244,
13080,
445,
13298,
1459,
7465,
284,
1018,
85,
11,
1366,
220,
16,
497... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestMetricLabelSanitize(t *testing.T) {
var label KeyValues
label.Append("_test", "key_test")
label.Append("0test", "key_0test")
label.Append("test_normal", "test_normal")
label.Append("0test", "key_0test")
assert.Equal(t, label.String(), "key_test#$#key_test|key_0test#$#key_0test|test_normal#$#test_normal|k... | explode_data.jsonl/48129 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 201
} | [
2830,
3393,
54310,
2476,
23729,
26310,
1155,
353,
8840,
836,
8,
341,
2405,
2383,
5309,
6227,
198,
29277,
8982,
16975,
1944,
497,
330,
792,
4452,
1138,
29277,
8982,
445,
15,
1944,
497,
330,
792,
62,
15,
1944,
1138,
29277,
8982,
445,
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 TestConfigWithoutJIRAAddressFailsToLoad(t *testing.T) {
data := `
src_glob_patterns: ["path/*", "another/path/*.ext"]
warning_age_days: 5
`
_, err := LoadFromYAMLData([]byte(data))
require.Error(t, err)
} | explode_data.jsonl/24922 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 87
} | [
2830,
3393,
2648,
26040,
41,
60556,
4286,
37,
6209,
1249,
5879,
1155,
353,
8840,
836,
8,
341,
8924,
1669,
22074,
3548,
95133,
64923,
25,
4383,
2343,
1057,
497,
330,
41963,
50976,
23540,
427,
7026,
18928,
32053,
28353,
25,
220,
20,
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 |
func TestTraceGetEventID(t *testing.T) {
_, err := getTraceEventID("syscalls", "sys_enter_openat")
if err != nil {
t.Fatal("Can't read trace event ID:", err)
}
_, err = getTraceEventID("totally", "bogus")
if !errors.Is(err, os.ErrNotExist) {
t.Fatal("Expected os.ErrNotExist, got", err)
}
} | explode_data.jsonl/27670 | {
"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,
6550,
1949,
1556,
915,
1155,
353,
8840,
836,
8,
341,
197,
6878,
1848,
1669,
633,
6550,
1556,
915,
445,
7791,
44620,
497,
330,
7791,
37480,
11311,
266,
1138,
743,
1848,
961,
2092,
341,
197,
3244,
26133,
445,
6713,
944,
1349... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRedeemWinningTickets_InvalidSessionID(t *testing.T) {
_, b, v, ts, faceValue, winProb, _ := newRecipientFixtureOrFatal(t)
r := newRecipientOrFatal(t, RandAddress(), b, v, ts, faceValue, winProb)
// Config stub ticket store to fail load
ts.loadShouldFail = true
err := r.RedeemWinningTickets([]string{"foo... | explode_data.jsonl/44762 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 187
} | [
2830,
3393,
6033,
68,
336,
16970,
1229,
55321,
62,
7928,
5283,
915,
1155,
353,
8840,
836,
8,
341,
197,
6878,
293,
11,
348,
11,
10591,
11,
3579,
1130,
11,
3164,
36980,
11,
716,
1669,
501,
74432,
18930,
2195,
62396,
1155,
340,
7000,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestJSONFormat(t *testing.T) {
diff := digest.Differences{
Additions: []digest.Addition{[]string{"additions"}},
Modifications: []digest.Modification{{Original: []string{"original"}, Current: []string{"modification"}}},
Deletions: []digest.Deletion{[]string{"deletions"}},
}
expected := `{
"Additi... | explode_data.jsonl/40609 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 279
} | [
2830,
3393,
5370,
4061,
1155,
353,
8840,
836,
8,
341,
80564,
1669,
20882,
909,
58326,
515,
197,
37972,
5930,
25,
257,
3056,
36339,
1904,
680,
90,
1294,
917,
4913,
718,
5930,
48085,
197,
197,
4459,
7029,
25,
3056,
36339,
23127,
2404,
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 TestPeerIDBasic(t *testing.T) {
// from ckb mannet config
ids := []string{
"QmXS4Kbc9HEeykHUTJCm2tNmqghbvWyYpUp6BtE5b6VrAU",
"QmUaSuEdXNGJEKvkE4rCn3cwBrpRFUm5TsouF4M3Sjursv",
"QmbT7QimcrcD5k2znoJiWpxoESxang6z1Gy9wof1rT1LKR",
"QmShw2vtVt49wJagc1zGQXGS6LkQTcHxnEV3xs6y8MAmQN",
"QmRHqhSGMGm5FtnkW8D6T83X7Yw... | explode_data.jsonl/54174 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 749
} | [
2830,
3393,
30888,
915,
15944,
1155,
353,
8840,
836,
8,
341,
197,
322,
504,
272,
21310,
883,
4711,
2193,
198,
197,
3365,
1669,
3056,
917,
515,
197,
197,
1,
48,
76,
49498,
19,
42,
8904,
24,
1799,
1195,
74,
39,
1381,
58367,
76,
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... | 3 |
func TestOwnerClear(t *testing.T) {
// Only enable this if you know what you're doing.
t.Skip()
rwc := openTPMOrSkip(t)
defer rwc.Close()
// This test code assumes that the owner auth is the well-known value.
ownerAuth := getAuth(ownerAuthEnvVar)
if err := OwnerClear(rwc, ownerAuth); err != nil {
t.Fatal("Cou... | explode_data.jsonl/75358 | {
"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,
13801,
14008,
1155,
353,
8840,
836,
8,
341,
197,
322,
8278,
7283,
419,
421,
498,
1414,
1128,
498,
2299,
3730,
624,
3244,
57776,
741,
7000,
24028,
1669,
1787,
4239,
44,
2195,
35134,
1155,
340,
16867,
435,
24028,
10421,
2822,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestICMP(t *testing.T) {
p := gopacket.NewPacket(testICMP, LinkTypeEthernet, testDecodeOptions)
if p.ErrorLayer() != nil {
t.Error("Failed to decode packet:", p.ErrorLayer().Error())
}
checkLayers(p, []gopacket.LayerType{LayerTypeEthernet, LayerTypeIPv4, LayerTypeICMPv4, gopacket.LayerTypePayload}, t)
testS... | explode_data.jsonl/42260 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 136
} | [
2830,
3393,
1317,
5781,
1155,
353,
8840,
836,
8,
341,
3223,
1669,
342,
453,
5709,
7121,
16679,
8623,
1317,
5781,
11,
5948,
929,
98006,
11,
1273,
32564,
3798,
340,
743,
281,
6141,
9188,
368,
961,
2092,
341,
197,
3244,
6141,
445,
9408,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStorageClassDeviceSetCreationForArbiter(t *testing.T) {
sc1 := &api.StorageCluster{}
sc1.Spec.Arbiter.Enable = true
sc1.Spec.NodeTopologies = &api.NodeTopologyMap{
ArbiterLocation: "zone3",
}
sc1.Spec.StorageDeviceSets = getMockDeviceSets("mock", 1, 4, true)
sc1.Status.NodeTopologies = &api.NodeTopolo... | explode_data.jsonl/16369 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1013
} | [
2830,
3393,
5793,
1957,
6985,
1649,
32701,
2461,
6953,
65,
2015,
1155,
353,
8840,
836,
8,
1476,
29928,
16,
1669,
609,
2068,
43771,
28678,
16094,
29928,
16,
36473,
875,
10681,
2015,
32287,
284,
830,
198,
29928,
16,
36473,
21714,
5366,
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... | 3 |
func TestQueryByPromQL(t *testing.T) {
ctx := context.Background()
matchers := []storepb.LabelMatcher{
{Type: storepb.LabelMatcher_EQ, Name: "bcs_cluster_id", Value: "BCS-K8S-00000"},
{Type: storepb.LabelMatcher_EQ, Name: "__name__", Value: "container_network_receive_bytes_total"},
{Type: storepb.LabelMatcher_... | explode_data.jsonl/63657 | {
"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,
2859,
1359,
35186,
3588,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
2822,
47706,
388,
1669,
3056,
4314,
16650,
4679,
37554,
515,
197,
197,
90,
929,
25,
3553,
16650,
4679,
37554,
9168,
11,
3988,
25,
330,
65,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_Upload(t *testing.T) {
tests := []struct {
path string
namespace string
upstreamURI string
expectedUpdateCursor string
expectedVersionLabel string
expectedLicense string
newAppName string
}{
{
path: "kitchen-sink",
name... | explode_data.jsonl/25783 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 565
} | [
2830,
3393,
62,
13844,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
26781,
338,
914,
198,
197,
56623,
310,
914,
198,
197,
59810,
4027,
10301,
688,
914,
198,
197,
42400,
4289,
14543,
914,
198,
197,
42400,
5637,
2476... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestDownstreamTLSContext(t *testing.T) {
const subjectName = "client-subject-name"
ca := []byte("client-ca-cert")
serverSecret := &dag.Secret{
Object: &v1.Secret{
ObjectMeta: metav1.ObjectMeta{
Name: "tls-cert",
Namespace: "default",
},
Data: map[string][]byte{
v1.TLSCertKey: ... | explode_data.jsonl/74895 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2081
} | [
2830,
3393,
4454,
4027,
45439,
1972,
1155,
353,
8840,
836,
8,
341,
4777,
3832,
675,
284,
330,
2972,
17967,
583,
11494,
698,
197,
924,
1669,
3056,
3782,
445,
2972,
50777,
61034,
5130,
41057,
19773,
1669,
609,
50641,
74779,
515,
197,
2381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestStatSymlink(t *testing.T) {
testenv.MustHaveSymlink(t)
initOverlay(t, `{
"Replace": {"file.go": "symlink"}
}
-- to.go --
0123456789
`)
// Create symlink
if err := os.Symlink("to.go", "symlink"); err != nil {
t.Error(err)
}
f := "file.go"
fi, err := Stat(f)
if err != nil {
t.Errorf("Stat(%q): go... | explode_data.jsonl/56058 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 255
} | [
2830,
3393,
15878,
34667,
44243,
1155,
353,
8840,
836,
8,
341,
18185,
3160,
50463,
12116,
34667,
44243,
1155,
692,
28248,
32755,
1155,
11,
1565,
515,
197,
1,
23107,
788,
5212,
1192,
18002,
788,
330,
22860,
44243,
16707,
532,
313,
311,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 5 |
func Test_a(t *testing.T) {
targetCaseNum := 0 // -1
if err := testutil.RunLeetCodeFuncWithFile(t, digitSum, "a.txt", targetCaseNum); err != nil {
t.Fatal(err)
}
} | explode_data.jsonl/727 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 72
} | [
2830,
3393,
4306,
1155,
353,
8840,
836,
8,
341,
28861,
4207,
4651,
1669,
220,
15,
442,
481,
16,
198,
743,
1848,
1669,
1273,
1314,
16708,
2304,
89260,
9626,
2354,
1703,
1155,
11,
15723,
9190,
11,
330,
64,
3909,
497,
2169,
4207,
4651,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIPFSWithLazyPullingCommit(t *testing.T) {
requiresIPFS(t)
// cgroup is required for nerdctl commit
if rootlessutil.IsRootless() && infoutil.CgroupsVersion() == "1" {
t.Skip("test skipped for rootless containers on cgroup v1")
}
testutil.DockerIncompatible(t)
base := testutil.NewBase(t)
requiresStargz(... | explode_data.jsonl/28113 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 490
} | [
2830,
3393,
3298,
8485,
2354,
39766,
36068,
287,
33441,
1155,
353,
8840,
836,
8,
341,
197,
41375,
3298,
8485,
1155,
340,
197,
322,
272,
4074,
374,
2567,
369,
72187,
12373,
5266,
198,
743,
3704,
1717,
1314,
4506,
8439,
1717,
368,
1009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAddProwConfig(t *testing.T) {
t.Parallel()
o := TestOptions{}
o.Setup()
o.Kind = prowconfig.Environment
o.EnvironmentNamespace = "jx-staging"
o.Repos = append(o.Repos, "test/repo2")
data := make(map[string]string)
data["domain"] = "dummy.domain.nip.io"
data["tls"] = "false"
cm := &v1.ConfigMap{
... | explode_data.jsonl/222 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 309
} | [
2830,
3393,
2212,
47,
651,
2648,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
22229,
1669,
3393,
3798,
16094,
22229,
39820,
741,
22229,
54199,
284,
47558,
1676,
45651,
198,
22229,
45651,
22699,
284,
330,
73,
87,
5477,
4118,
183... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNotFound(t *testing.T) {
r := New()
r.GET("/foo", func(rw http.ResponseWriter, r *http.Request) {
rw.Write([]byte("bar"))
})
rec := request(t, r, "GET", "/bar")
if rec.Code != http.StatusNotFound {
t.Errorf("expected status 404, got: %d", rec.Code)
}
} | explode_data.jsonl/10767 | {
"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,
10372,
1155,
353,
8840,
836,
8,
341,
7000,
1669,
1532,
741,
7000,
17410,
4283,
7975,
497,
2915,
2601,
86,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
7000,
86,
4073,
10556,
3782,
445,
2257,
5455,
197,
8824,
67904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestUpdateReplicaSetOrphanWithNewLabels(t *testing.T) {
f := newFixture(t)
d1 := newDeployment("d1", 1, nil, nil, nil, map[string]string{"foo": "bar"})
d2 := newDeployment("d2", 1, nil, nil, nil, map[string]string{"foo": "bar"})
// RS matches both, but is an orphan.
rs := newReplicaSet(d1, "rs1", 1)
rs.Own... | explode_data.jsonl/66050 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 369
} | [
2830,
3393,
4289,
18327,
15317,
1649,
2195,
9943,
2354,
3564,
23674,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
501,
18930,
1155,
692,
2698,
16,
1669,
501,
75286,
445,
67,
16,
497,
220,
16,
11,
2092,
11,
2092,
11,
2092,
11,
2415,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDidPanicWrapper(t *testing.T) {
if funcDidPanic, _ := didPanic(func() {
panic("Panic!")
}); !funcDidPanic {
t.Error("didPanic should return true")
}
if funcDidPanic, _ := didPanic(func() {
}); funcDidPanic {
t.Error("didPanic should return false")
}
} | explode_data.jsonl/54974 | {
"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,
6986,
47,
31270,
11542,
1155,
353,
8840,
836,
8,
1476,
743,
2915,
6986,
47,
31270,
11,
716,
1669,
1521,
47,
31270,
18552,
368,
341,
197,
30764,
445,
47,
31270,
22988,
197,
14088,
753,
2830,
6986,
47,
31270,
341,
197,
3244,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestExportResourceArrayValue(t *testing.T) {
t.Parallel()
script := `
access(all) resource Foo {
access(all) let bar: Int
init(bar: Int) {
self.bar = bar
}
}
access(all) fun main(): @[Foo] {
return <- [<- create Foo(bar: ... | explode_data.jsonl/4627 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 352
} | [
2830,
3393,
16894,
4783,
1857,
1130,
1155,
353,
8840,
836,
8,
1476,
3244,
41288,
7957,
2822,
86956,
1669,
22074,
286,
2615,
20388,
8,
5101,
33428,
341,
310,
2615,
20388,
8,
1077,
3619,
25,
1333,
271,
310,
2930,
54630,
25,
1333,
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 TestTextSet(t *testing.T) {
successfulTests := []struct {
source interface{}
result pgtype.Text
}{
{source: "foo", result: pgtype.Text{String: "foo", Status: pgtype.Present}},
{source: _string("bar"), result: pgtype.Text{String: "bar", Status: pgtype.Present}},
{source: (*string)(nil), result: pgtype.T... | explode_data.jsonl/5974 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 255
} | [
2830,
3393,
1178,
1649,
1155,
353,
8840,
836,
8,
341,
30553,
1262,
18200,
1669,
3056,
1235,
341,
197,
47418,
3749,
16094,
197,
9559,
17495,
1313,
1979,
198,
197,
59403,
197,
197,
90,
2427,
25,
330,
7975,
497,
1102,
25,
17495,
1313,
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... | 4 |
func TestDelete(t *testing.T) {
t.Run("Topic delete test", func(t *testing.T) {
Init(clientId)
_, err := Delete(topicName)
if err != nil {
t.Error(err)
} else {
log.Println("Delete topic test is successful.")
}
})
} | explode_data.jsonl/4854 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 98
} | [
2830,
3393,
6435,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
26406,
3698,
1273,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
98762,
12805,
764,
692,
197,
197,
6878,
1848,
1669,
10428,
43839,
675,
692,
197,
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... | 2 |
func TestUpdatePluginResources(t *testing.T) {
pod := &v1.Pod{}
pod.UID = types.UID("testPod")
resourceName1 := "domain1.com/resource1"
devID1 := "dev1"
resourceName2 := "domain2.com/resource2"
devID2 := "dev2"
as := assert.New(t)
monitorCallback := func(resourceName string, devices []pluginapi.Device) {}
t... | explode_data.jsonl/82151 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 657
} | [
2830,
3393,
4289,
11546,
11277,
1155,
353,
8840,
836,
8,
341,
3223,
347,
1669,
609,
85,
16,
88823,
16094,
3223,
347,
5255,
915,
284,
4494,
5255,
915,
445,
1944,
23527,
5130,
50346,
675,
16,
1669,
330,
12204,
16,
905,
53100,
16,
698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestSelectIntoAndLoadFrom(t *testing.T) {
// Test is skipped because it requires secure-file-priv variable to be set to not NULL or empty.
t.Skip()
defer cluster.PanicHandler(t)
ctx := context.Background()
vtParams := mysql.ConnParams{
Host: "localhost",
Port: clusterInstance.VtgateMySQLPort,
}
conn, er... | explode_data.jsonl/70820 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 638
} | [
2830,
3393,
3379,
26591,
3036,
5879,
3830,
1155,
353,
8840,
836,
8,
341,
197,
322,
3393,
374,
35157,
1576,
432,
7460,
9767,
14203,
12,
11887,
3890,
311,
387,
738,
311,
537,
1770,
476,
4287,
624,
3244,
57776,
741,
16867,
10652,
1069,
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 TestFlush(t *testing.T) {
tc := New(DefaultExpiration, 0)
tc.Set(v1, v2, DefaultExpiration)
tc.Set(v3, v4, DefaultExpiration)
tc.Flush()
x, found := tc.Get(v1)
if found {
t.Error("foo was found, but it should have been deleted")
}
if x != nil {
t.Error("x is not nil:", x)
}
x, found = tc.Get(v3)
if ... | explode_data.jsonl/63763 | {
"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,
46874,
1155,
353,
8840,
836,
8,
341,
78255,
1669,
1532,
87874,
66301,
11,
220,
15,
340,
78255,
4202,
3747,
16,
11,
348,
17,
11,
7899,
66301,
340,
78255,
4202,
3747,
18,
11,
348,
19,
11,
7899,
66301,
340,
78255,
61559,
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... | 5 |
func TestRequired(t *testing.T) {
validate := New()
validate.RegisterTagNameFunc(func(fld reflect.StructField) string {
name := strings.SplitN(fld.Tag.Get("json"), ",", 2)[0]
if name == "-" {
return ""
}
return name
})
type Test struct {
Value interface{} `validate:"required"`
}
var test Test
... | explode_data.jsonl/77339 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 179
} | [
2830,
3393,
8164,
1155,
353,
8840,
836,
8,
1476,
197,
7067,
1669,
1532,
741,
197,
7067,
19983,
22616,
9626,
18552,
955,
507,
8708,
51445,
1877,
8,
914,
341,
197,
11609,
1669,
9069,
19823,
45,
955,
507,
23676,
2234,
445,
2236,
3975,
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... | 2 |
func TestUnmarshal_WithPointers(t *testing.T) {
type Inline struct {
Key1 string
Key2 *string
Key3 **string
}
type Table struct {
Key1 *string
Key2 **string
Key3 ***string
}
type testStruct struct {
Inline *Inline
Tables []*Table
}
type testStruct2 struct {
Inline **Inline
Tables []**Table
}... | explode_data.jsonl/52966 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 480
} | [
2830,
3393,
1806,
27121,
62,
2354,
2609,
388,
1155,
353,
8840,
836,
8,
341,
13158,
54235,
2036,
341,
197,
55242,
16,
914,
198,
197,
55242,
17,
353,
917,
198,
197,
55242,
18,
3070,
917,
198,
197,
532,
13158,
6633,
2036,
341,
197,
552... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestStuckPodDetector_DoesNothingIfNoPodsAreFound(t *testing.T) {
_, mockLeaseService, stuckPodDetector := makeStuckPodDetectorWithTestDoubles()
stuckPodDetector.HandleStuckPods()
assert.Zero(t, mockLeaseService.returnLeaseCalls)
mockLeaseService.assertReportDoneCalledOnceWith(t, []*v1.Pod{})
} | explode_data.jsonl/64398 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 110
} | [
2830,
3393,
623,
1942,
23527,
31606,
1557,
7072,
23780,
2679,
2753,
23527,
82,
11526,
6650,
1155,
353,
8840,
836,
8,
341,
197,
6878,
7860,
2304,
519,
1860,
11,
15700,
23527,
31606,
1669,
1281,
623,
1942,
23527,
31606,
2354,
2271,
35,
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... | 1 |
func TestExamplesStacks(t *testing.T) {
t.Parallel()
terraformOptions := &terraform.Options{
// The path to where our Terraform code is located
TerraformDir: "../../examples/stacks",
Upgrade: true,
// Variables to pass to our Terraform code using -var-file options
VarFiles: []string{"fixtures.tfvars"}... | explode_data.jsonl/19379 | {
"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,
40381,
4336,
82,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
197,
61385,
3798,
1669,
609,
61385,
22179,
515,
197,
197,
322,
576,
1815,
311,
1380,
1039,
49426,
627,
2038,
374,
7407,
198,
197,
10261,
13886,
627,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestAlreadyPinnedPathSpec(t *testing.T) {
assert := assert.New(t)
unpinned, err := ForPath("mem::#imgp9mp1h3b9nv0gna6mri53dlj9f4ql.value")
assert.NoError(err)
pinned, ok := unpinned.Pin(context.Background())
assert.True(ok)
assert.Equal(unpinned, pinned)
} | explode_data.jsonl/49598 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 114
} | [
2830,
3393,
38370,
47,
20561,
1820,
8327,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
692,
20479,
79,
20561,
11,
1848,
1669,
1752,
1820,
445,
10536,
486,
2,
1892,
79,
24,
1307,
16,
71,
18,
65,
24,
36941,
15,
70,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestUnsuccessfulCreate(t *testing.T) {
ctx := testhelper.Context(t)
cfg, repo, _, _, client := setup(ctx, t, testserver.WithDisablePraefect())
storageName := repo.GetStorageName()
pool := initObjectPool(t, cfg, cfg.Storages[0])
validPoolPath := pool.GetRelativePath()
testCases := []struct {
desc strin... | explode_data.jsonl/31591 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 949
} | [
2830,
3393,
1806,
30950,
4021,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
1273,
18764,
9328,
1155,
340,
50286,
11,
15867,
11,
8358,
8358,
2943,
1669,
6505,
7502,
11,
259,
11,
1273,
4030,
26124,
25479,
47,
956,
823,
439,
12367,
197,
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 TestIssue15790(t *testing.T) {
store, clean := testkit.CreateMockStore(t)
defer clean()
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test;")
tk.MustExec("drop table if exists t0")
tk.MustExec("CREATE TABLE t0(c0 INT);")
tk.MustExec("INSERT INTO t0(c0) VALUES (0);")
tk.MustQuery("SELECT * FROM t0 WH... | explode_data.jsonl/65523 | {
"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,
42006,
16,
20,
22,
24,
15,
1155,
353,
8840,
836,
8,
341,
57279,
11,
4240,
1669,
1273,
8226,
7251,
11571,
6093,
1155,
340,
16867,
4240,
2822,
3244,
74,
1669,
1273,
8226,
7121,
2271,
7695,
1155,
11,
3553,
340,
3244,
74,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGetTriggerOrderHistory(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() {
t.Skip()
}
_, err := f.GetTriggerOrderHistory(context.Background(),
"", time.Time{}, time.Time{}, "", "", "")
if err != nil {
t.Error(err)
}
_, err = f.GetTriggerOrderHistory(context.Background(),
spotPair, time.Time{}... | explode_data.jsonl/15188 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 372
} | [
2830,
3393,
1949,
17939,
4431,
13424,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
743,
753,
546,
2271,
7082,
8850,
1649,
368,
341,
197,
3244,
57776,
741,
197,
532,
197,
6878,
1848,
1669,
282,
2234,
17939,
4431,
13424,
5378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCanStartWhenPendingOperationsIgnored(t *testing.T) {
dbfile := tests.Tempfile()
defer os.Remove(dbfile)
// create a app that will only be used to set up the test
app := NewTestApp(dbfile)
tests.Assert(t, app != nil)
// populate the db with a "dummy" pending op entry.
// without the environment var we'... | explode_data.jsonl/51875 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 303
} | [
2830,
3393,
6713,
3479,
4498,
32027,
35120,
43337,
3018,
1155,
353,
8840,
836,
8,
341,
20939,
1192,
1669,
7032,
65009,
1192,
741,
16867,
2643,
13270,
9791,
1192,
692,
197,
322,
1855,
264,
906,
429,
686,
1172,
387,
1483,
311,
738,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGithubTemplate_WithTemplateInHome(t *testing.T) {
repo := fixtures.SetupTestRepo()
defer repo.TearDown()
addGithubTemplates(repo, map[string]string{})
assert.Equal(t, prContent, GetPullRequestTemplate())
assert.Equal(t, issueContent, GetIssueTemplate())
} | explode_data.jsonl/73961 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 93
} | [
2830,
3393,
78717,
7275,
62,
2354,
7275,
641,
7623,
1155,
353,
8840,
836,
8,
341,
17200,
5368,
1669,
37664,
39820,
2271,
25243,
741,
16867,
15867,
836,
682,
4454,
2822,
12718,
78717,
51195,
50608,
11,
2415,
14032,
30953,
6257,
692,
6948,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
func TestStatefulPodControlUpdatePodConflictSuccess(t *testing.T) {
recorder := record.NewFakeRecorder(10)
set := newStatefulSet(3)
pod := newStatefulSetPod(set, 0)
fakeClient := &fake.Clientset{}
indexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexF... | explode_data.jsonl/17907 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 506
} | [
2830,
3393,
1397,
1262,
23527,
3273,
4289,
23527,
57974,
7188,
1155,
353,
8840,
836,
8,
341,
67904,
1358,
1669,
3255,
7121,
52317,
47023,
7,
16,
15,
340,
8196,
1669,
36848,
1262,
1649,
7,
18,
340,
3223,
347,
1669,
36848,
1262,
1649,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestGetSELinuxSupport(t *testing.T) {
info :=
`62 0 253:0 / / rw,relatime shared:1 - ext4 /dev/mapper/ssd-root rw,seclabel,data=ordered
78 62 0:41 / /tmp rw,nosuid,nodev shared:30 - tmpfs tmpfs rw,seclabel
83 63 0:44 / /var/lib/bar rw,relatime - tmpfs tmpfs rw
227 62 253:0 /var/lib/docker/devicemapper /var/lib/... | explode_data.jsonl/76956 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 626
} | [
2830,
3393,
1949,
29365,
19559,
7916,
1155,
353,
8840,
836,
8,
341,
27043,
19687,
197,
197,
63,
21,
17,
220,
15,
220,
17,
20,
18,
25,
15,
608,
608,
25991,
11,
3748,
266,
545,
6094,
25,
16,
481,
1303,
19,
608,
3583,
3183,
3106,
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... | 5 |
func TestFileGetOperation(t *testing.T) {
tcs := []struct {
want string
values url.Values
}{
// https://github.com/elastic/apm/blob/main/specs/agents/tracing-instrumentation-azure.md#determining-operations-3
{
want: "Download",
values: url.Values{},
},
{
want: "GetProperties",
values: ur... | explode_data.jsonl/35218 | {
"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,
1703,
1949,
8432,
1155,
353,
8840,
836,
8,
341,
3244,
4837,
1669,
3056,
1235,
341,
197,
50780,
256,
914,
198,
197,
45939,
2515,
35145,
198,
197,
59403,
197,
197,
322,
3703,
1110,
5204,
905,
14,
61964,
24670,
76,
34827,
153... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestT(t *testing.T) {
CustomVerboseFlag = true
*CustomParallelSuiteFlag = true
logLevel := os.Getenv("log_level")
err := logutil.InitLogger(logutil.NewLogConfig(logLevel, "", "", logutil.EmptyFileLogConfig, false))
if err != nil {
t.Fatal(err)
}
autoid.SetStep(5000)
ReorgWaitTimeout = 30 * time.Milliseco... | explode_data.jsonl/50901 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 308
} | [
2830,
3393,
51,
1155,
353,
8840,
836,
8,
341,
6258,
1450,
63404,
12135,
284,
830,
198,
197,
9,
10268,
16547,
28000,
12135,
284,
830,
198,
6725,
4449,
1669,
2643,
64883,
445,
839,
8274,
1138,
9859,
1669,
1487,
1314,
26849,
7395,
12531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestHistogram(t *testing.T) {
tick = fakeTick
defer func() { tick = time.Tick }()
buf := &bytes.Buffer{}
c := New(buf, time.Second)
c.Histogram("metric1", 1, "tag1")
c.Histogram("metric2", 2, "tag1", "tag2")
wait(buf)
assert.Equal(t, "metric1:1.000000|h|#tag1\nmetric2:2.000000|h|#tag1,tag2\n", buf.Strin... | explode_data.jsonl/59255 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 150
} | [
2830,
3393,
77210,
1155,
353,
8840,
836,
8,
341,
3244,
865,
284,
12418,
22213,
198,
16867,
2915,
368,
314,
9341,
284,
882,
66858,
335,
2822,
26398,
1669,
609,
9651,
22622,
16094,
1444,
1669,
1532,
10731,
11,
882,
32435,
692,
1444,
3839,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestDeb(t *testing.T) {
debs := getFiles(t, regexp.MustCompile(`\.deb$`))
buf := new(bytes.Buffer)
for _, deb := range debs {
checkDeb(t, deb, buf)
}
} | explode_data.jsonl/2318 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 72
} | [
2830,
3393,
1912,
65,
1155,
353,
8840,
836,
8,
341,
58351,
1279,
1669,
633,
10809,
1155,
11,
41877,
98626,
5809,
18831,
37935,
3,
63,
1171,
26398,
1669,
501,
23158,
22622,
340,
2023,
8358,
4222,
1669,
2088,
409,
1279,
341,
197,
25157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestHgGetCommit(t *testing.T) {
assert := assert.New(t)
repo, client := helpers.CreateHgRepo(t, "hg-repo")
defer helpers.CleanupHgRepo(t, client)
helpers.SeedHgRepo(t, repo, client)
helpers.SeedHgBookmark(t, repo, client)
commit, err := repo.GetCommit("1")
assert.Nil(err)
output, err := client.ExecCmd(... | explode_data.jsonl/57192 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 201
} | [
2830,
3393,
39,
70,
1949,
33441,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
692,
17200,
5368,
11,
2943,
1669,
30187,
7251,
39,
70,
25243,
1155,
11,
330,
66602,
5504,
5368,
1138,
16867,
30187,
727,
60639,
39,
70,
25243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestParser(t *testing.T) {
mgr := tmp2.NewManager()
mgr.RegisterFile("./sql.tpl")
var param = TestTable{Id: 1, UserName: "user", Password: "pw", Time: time.Now()}
t.Run("select", func(t *testing.T) {
tmp, _ := mgr.FindSqlParser("selectTestTable")
md, err := tmp.ParseMetadata(driverName, param)
if err !=... | explode_data.jsonl/60506 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 576
} | [
2830,
3393,
6570,
1155,
353,
8840,
836,
8,
341,
2109,
901,
1669,
4174,
17,
7121,
2043,
741,
2109,
901,
19983,
1703,
13988,
3544,
34066,
1138,
2405,
1685,
284,
3393,
2556,
90,
764,
25,
220,
16,
11,
47398,
25,
330,
872,
497,
12362,
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 TestListCmdComplete(t *testing.T) {
g := NewGomegaWithT(t)
mockCtrl := gomock.NewController(t)
kubeFlags := genericclioptions.NewConfigFlags(false)
testCases := []struct {
title string
option *listOptions
errExpected bool
}{
{
title: "succeed",
option: &listOptions{
flags: kubeF... | explode_data.jsonl/15693 | {
"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,
852,
15613,
12548,
1155,
353,
8840,
836,
8,
341,
3174,
1669,
1532,
38,
32696,
2354,
51,
1155,
340,
77333,
15001,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
16463,
3760,
9195,
1669,
13954,
564,
815,
1300,
7121,
2648,
9195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestWsTradeUpdate(t *testing.T) {
t.Parallel()
pressXToJSON := []byte(`{"stream":"btcusdt@trade","data":{
"e": "trade",
"E": 123456789,
"s": "BNBBTC",
"t": 12345,
"p": "0.001",
"q": "100",
"b": 88,
"a": 50,
"T": 123456785,
"m": t... | explode_data.jsonl/76685 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 257
} | [
2830,
3393,
74733,
39173,
4289,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
197,
1873,
55,
1249,
5370,
1669,
3056,
3782,
5809,
4913,
4027,
3252,
92634,
355,
8047,
31,
36071,
2198,
691,
12602,
3677,
330,
68,
788,
330,
36071,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBatchMetricsProcessor_Timeout(t *testing.T) {
cfg := Config{
ProcessorSettings: config.NewProcessorSettings(config.NewComponentID(typeStr)),
Timeout: 100 * time.Millisecond,
SendBatchSize: 101,
}
requestCount := 5
metricsPerRequest := 10
sink := new(consumertest.MetricsSink)
creation... | explode_data.jsonl/25028 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 590
} | [
2830,
3393,
21074,
27328,
22946,
39080,
411,
1155,
353,
8840,
836,
8,
341,
50286,
1669,
5532,
515,
197,
197,
22946,
6086,
25,
2193,
7121,
22946,
6086,
8754,
7121,
2189,
915,
5808,
2580,
6965,
197,
197,
7636,
25,
1843,
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... | 6 |
func TestCommandUseErrorWhenMissingSubcommand(t *testing.T) {
c := &Command{Usage: "foo"}
s := &Command{Usage: "bar"}
c.Use(s)
args := NewArgs([]string{"foo", "baz"})
_, err := c.lookupSubCommand(args)
assert.NotEqual(t, nil, err)
} | explode_data.jsonl/60582 | {
"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,
4062,
10253,
1454,
4498,
25080,
3136,
5631,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
609,
4062,
90,
14783,
25,
330,
7975,
16707,
1903,
1669,
609,
4062,
90,
14783,
25,
330,
2257,
16707,
1444,
9046,
1141,
692,
31215,
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 TestFactoryERC20Address(t *testing.T) {
factoryAddress := common.HexToAddress("0xabcd")
erc20Address := common.HexToAddress("0xeffff")
factory := chequebook.NewFactory(
backendmock.New(),
transactionmock.New(
transactionmock.WithABICall(
&factoryABI,
erc20Address.Hash().Bytes(),
"ERC20Address... | explode_data.jsonl/50287 | {
"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,
4153,
27434,
17,
15,
4286,
1155,
353,
8840,
836,
8,
341,
1166,
2919,
4286,
1669,
4185,
91538,
1249,
4286,
445,
15,
52616,
4385,
1138,
197,
2962,
17,
15,
4286,
1669,
4185,
91538,
1249,
4286,
445,
15,
87,
6445,
542,
1138,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestValSetUpdatesOtherErrors(t *testing.T) {
testCases := []valSetErrTestCase{
{ // update with negative voting power
testValSet(2, 10),
[]testVal{{"v1", -123}},
},
{ // update with negative voting power
testValSet(2, 10),
[]testVal{{"v2", -123}},
},
{ // remove non-existing validator
tes... | explode_data.jsonl/28330 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 263
} | [
2830,
3393,
2208,
1649,
37091,
11409,
13877,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
831,
1649,
7747,
16458,
515,
197,
197,
90,
442,
2647,
448,
8225,
15668,
2355,
198,
298,
18185,
2208,
1649,
7,
17,
11,
220,
16,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestServeTLS(t *testing.T) {
ln, err := net.Listen("tcp", "localhost:0")
require.NoError(t, err)
defer ln.Close()
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "some body")
})
go ServeTLS(ln, mux, "test.crt", "test.key", log.TestingLogger(), D... | explode_data.jsonl/35289 | {
"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,
60421,
45439,
1155,
353,
8840,
836,
8,
341,
197,
2261,
11,
1848,
1669,
4179,
68334,
445,
27161,
497,
330,
8301,
25,
15,
1138,
17957,
35699,
1155,
11,
1848,
340,
16867,
29390,
10421,
2822,
2109,
2200,
1669,
1758,
7121,
60421,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestClientManyServers(t *testing.T) {
t.Parallel()
var addrs []string
for i := 0; i < 10; i++ {
s := startEchoServer(t, "tcp", "127.0.0.1:")
defer s.Stop()
addrs = append(addrs, s.Addr())
}
var wg sync.WaitGroup
for i := 0; i < 4; i++ {
wg.Add(1)
addr := "http://" + addrs[i]
go func() {
defe... | explode_data.jsonl/79377 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 215
} | [
2830,
3393,
2959,
8441,
78139,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
2405,
912,
5428,
3056,
917,
198,
2023,
600,
1669,
220,
15,
26,
600,
366,
220,
16,
15,
26,
600,
1027,
341,
197,
1903,
1669,
1191,
74994,
5475,
1155... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestPruneWithDamagedRepository(t *testing.T) {
env, cleanup := withTestEnvironment(t)
defer cleanup()
datafile := filepath.Join("testdata", "backup-data.tar.gz")
testRunInit(t, env.gopts)
rtest.SetupTarTestFixture(t, env.testdata, datafile)
opts := BackupOptions{}
// create and delete snapshot to create ... | explode_data.jsonl/43570 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 536
} | [
2830,
3393,
3533,
2886,
2354,
47957,
3279,
4624,
1155,
353,
8840,
836,
8,
341,
57538,
11,
21290,
1669,
448,
2271,
12723,
1155,
340,
16867,
21290,
2822,
8924,
1192,
1669,
26054,
22363,
445,
92425,
497,
330,
31371,
13945,
28048,
20963,
1138... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestTopNPushDown(t *testing.T) {
var input, output []string
planSuiteUnexportedData.GetTestCases(t, &input, &output)
s := createPlannerSuite()
ctx := context.TODO()
for i, tt := range input {
comment := fmt.Sprintf("case:%v sql:%s", i, tt)
stmt, err := s.p.ParseOneStmt(tt, "", "")
require.NoError(t, err... | explode_data.jsonl/50225 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 368
} | [
2830,
3393,
5366,
45,
16644,
4454,
1155,
353,
8840,
836,
8,
341,
2405,
1946,
11,
2550,
3056,
917,
198,
197,
10393,
28000,
1806,
1533,
291,
1043,
2234,
2271,
37302,
1155,
11,
609,
1355,
11,
609,
3006,
340,
1903,
1669,
1855,
2120,
4887,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestShouldNotHashPasswordDueToSaltLength(t *testing.T) {
hash, err := HashPassword("password", "", HashingAlgorithmArgon2id,
schema.DefaultCIPasswordConfiguration.Iterations, schema.DefaultCIPasswordConfiguration.Memory*1024,
schema.DefaultCIPasswordConfiguration.Parallelism, schema.DefaultCIPasswordConfigura... | explode_data.jsonl/40175 | {
"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,
14996,
2623,
6370,
4876,
33060,
1249,
47318,
4373,
1155,
353,
8840,
836,
8,
341,
50333,
11,
1848,
1669,
6531,
4876,
445,
3833,
497,
7342,
6531,
287,
27847,
2735,
263,
17,
307,
345,
197,
1903,
3416,
13275,
34,
3298,
1938,
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 TestParallelHashAggClose(t *testing.T) {
store, clean := testkit.CreateMockStore(t)
defer clean()
tk := testkit.NewTestKit(t, store)
tk.MustExec(`use test`)
tk.MustExec(`drop table if exists t`)
tk.MustExec("create table t(a int, b int)")
tk.MustExec("insert into t values(1,1),(2,2)")
// desc select sum(a)... | explode_data.jsonl/38138 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 556
} | [
2830,
3393,
16547,
6370,
9042,
70,
7925,
1155,
353,
8840,
836,
8,
341,
57279,
11,
4240,
1669,
1273,
8226,
7251,
11571,
6093,
1155,
340,
16867,
4240,
741,
3244,
74,
1669,
1273,
8226,
7121,
2271,
7695,
1155,
11,
3553,
340,
3244,
74,
504... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestFindCgroupMountpointAndRoot(t *testing.T) {
fakeMountInfo := `35 27 0:29 / /foo rw,nosuid,nodev,noexec,relatime shared:18 - cgroup cgroup rw,devices
35 27 0:29 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:18 - cgroup cgroup rw,devices`
testCases := []struct {
cgroupPath string
output ... | explode_data.jsonl/34405 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 326
} | [
2830,
3393,
9885,
34,
4074,
16284,
2768,
3036,
8439,
1155,
353,
8840,
836,
8,
341,
1166,
726,
16284,
1731,
1669,
1565,
18,
20,
220,
17,
22,
220,
15,
25,
17,
24,
608,
608,
7975,
25991,
10128,
436,
2423,
71372,
85,
84198,
11748,
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... | 4 |
func TestSliceSortFunc(t *testing.T) {
tests := []struct {
name string
input []int
less func(a, b int) bool
want []int
}{
{
name: "case",
input: []int{1, 2, 1, 5},
less: func(a, b int) bool { return a > b },
want: []int{5, 2, 1, 1},
},
{
name: "case",
input: []int{1, 2, 1, 5},
... | explode_data.jsonl/55757 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 555
} | [
2830,
3393,
33236,
10231,
9626,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
220,
914,
198,
197,
22427,
3056,
396,
198,
197,
197,
1717,
220,
2915,
2877,
11,
293,
526,
8,
1807,
198,
197,
50780,
220,
3056,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestMainOutput(t *testing.T) {
var buf bytes.Buffer
out = &buf
main()
expected := strconv.Quote("[a11y K8s abc]\n")
actual := strconv.Quote(buf.String())
assert.Equalf(t, expected, actual, "Unexpected output in main()\nexpected: %q\nactual: %q", expected, actual)
} | explode_data.jsonl/48790 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 103
} | [
2830,
3393,
6202,
5097,
1155,
353,
8840,
836,
8,
341,
2405,
6607,
5820,
22622,
198,
13967,
284,
609,
5909,
271,
36641,
2822,
42400,
1669,
33317,
13,
19466,
10937,
64,
16,
16,
88,
730,
23,
82,
39022,
17960,
77,
1138,
88814,
1669,
33317... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGetFills(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() {
t.Skip()
}
// optional params
_, err := f.GetFills(context.Background(), "", "", time.Time{}, time.Time{})
if err != nil {
t.Error(err)
}
_, err = f.GetFills(context.Background(), spotPair, "", time.Time{}, time.Time{})
if err != nil ... | explode_data.jsonl/15196 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 302
} | [
2830,
3393,
1949,
37,
3305,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
743,
753,
546,
2271,
7082,
8850,
1649,
368,
341,
197,
3244,
57776,
741,
197,
532,
197,
322,
10101,
3628,
198,
197,
6878,
1848,
1669,
282,
2234,
37,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAccounts(t *testing.T) {
// Create a provider client for making the HTTP requests.
// See common.go in this directory for more information.
client := newClient(t)
// Update an account's metadata.
updateres := accounts.Update(client, accounts.UpdateOpts{Metadata: metadata})
th.AssertNoErr(t, updateres.Er... | explode_data.jsonl/27636 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 344
} | [
2830,
3393,
41369,
1155,
353,
8840,
836,
8,
341,
197,
322,
4230,
264,
9109,
2943,
369,
3259,
279,
10130,
7388,
624,
197,
322,
3496,
4185,
18002,
304,
419,
6220,
369,
803,
1995,
624,
25291,
1669,
501,
2959,
1155,
692,
197,
322,
5549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestQueryParser(t *testing.T) {
tests := []struct {
name string
inputQuery string
expectedSLOID string
expectError bool
expectedErrorMessage string
}{
{
name: "valid",
inputQuery: "SLO;524ca177-849b-3e8c-8175-42b93fbc33c5",
expectedSLOID:... | explode_data.jsonl/13287 | {
"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,
2859,
6570,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
338,
914,
198,
197,
22427,
2859,
1843,
914,
198,
197,
42400,
50,
1593,
915,
286,
914,
198,
197,
24952,
1454,
688,
1807,
198,
197,
42400,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLogPanic(t *testing.T) {
defer func() {
v := recover()
if kvs, ok := v.(xlog.KeyValues); ok {
t.Log("recover panic !", kvs.GetAll())
} else {
t.Fatal("panic type is not string")
}
}()
xlog.Panic("this ", "is ", "a ", "test")
} | explode_data.jsonl/58083 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 115
} | [
2830,
3393,
2201,
47,
31270,
1155,
353,
8840,
836,
8,
341,
16867,
2915,
368,
341,
197,
5195,
1669,
11731,
741,
197,
743,
595,
11562,
11,
5394,
1669,
348,
12832,
87,
839,
9610,
6227,
1215,
5394,
341,
298,
3244,
5247,
445,
74283,
21975,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSimpleDaemonSetLaunchesPods(t *testing.T) {
forEachStrategy(t, func(t *testing.T, strategy *apps.DaemonSetUpdateStrategy) {
closeFn, dc, informers, clientset := setup(t)
defer closeFn()
ns := framework.CreateNamespaceOrDie(clientset, "simple-daemonset-test", t)
defer framework.DeleteNamespaceOrDie(cli... | explode_data.jsonl/70040 | {
"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,
16374,
89177,
1649,
32067,
288,
23527,
82,
1155,
353,
8840,
836,
8,
341,
2023,
4854,
19816,
1155,
11,
2915,
1155,
353,
8840,
836,
11,
8282,
353,
27635,
909,
64,
7291,
1649,
4289,
19816,
8,
341,
197,
27873,
24911,
11,
19402... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseScriptTemplate(t *testing.T) {
const (
// these are only used in text; no access to qf101 organization or user is needed
qfTestOrg = "qf101"
image = "quickfeed:go"
scriptTemplate = `#image/quickfeed:go
AssignmentName: {{ .AssignmentName }}
RandomSecret: {{ .RandomSecret }}
`
githu... | explode_data.jsonl/23305 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 450
} | [
2830,
3393,
14463,
5910,
7275,
1155,
353,
8840,
836,
8,
341,
4777,
2399,
197,
197,
322,
1493,
525,
1172,
1483,
304,
1467,
26,
902,
2615,
311,
2804,
69,
16,
15,
16,
7321,
476,
1196,
374,
4362,
198,
197,
18534,
69,
2271,
42437,
414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 6 |
func Test_ConvertFromSqlType(t *testing.T) {
Convey("Should convert correctly", t, func() {
So(convertFromSQLType("datetime"), ShouldEqual, "date")
So(convertFromSQLType("bigint"), ShouldEqual, "integer")
So(convertFromSQLType("float"), ShouldEqual, "float")
So(convertFromSQLType("bit"), ShouldEqual, "b... | explode_data.jsonl/23287 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 150
} | [
2830,
3393,
15100,
1621,
3830,
8269,
929,
1155,
353,
8840,
836,
8,
8022,
93070,
5617,
445,
14996,
5508,
12440,
497,
259,
11,
2915,
368,
972,
197,
76912,
60808,
3830,
6688,
929,
445,
15450,
3975,
12260,
2993,
11,
330,
1028,
6060,
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 TestCreateToken(t *testing.T) {
secret, errTokenSecret := generateRandomByteArray(128, nil)
token, errTokenPayload := CreateToken(&testClaims, secret, errTokenSecret)
if token == nil {
t.Fail()
t.Logf("token should not be nil")
}
if errTokenPayload != nil {
t.Fail()
t.Logf(errTokenPayload.Error())
}... | explode_data.jsonl/11050 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 119
} | [
2830,
3393,
4021,
3323,
1155,
353,
8840,
836,
8,
341,
197,
20474,
11,
1848,
3323,
19773,
1669,
6923,
13999,
18394,
7,
16,
17,
23,
11,
2092,
340,
43947,
11,
1848,
3323,
29683,
1669,
4230,
3323,
2099,
1944,
51133,
11,
6234,
11,
1848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestJoin(t *testing.T) {
assert(t, Get(`[{},{}]`, "@join").String() == `{}`)
assert(t, Get(`[{"a":1},{"b":2}]`, "@join").String() == `{"a":1,"b":2}`)
assert(t, Get(`[{"a":1,"b":1},{"b":2}]`, "@join").String() == `{"a":1,"b":2}`)
assert(t, Get(`[{"a":1,"b":1},{"b":2},5,{"c":3}]`, "@join").String() == `{"a":1,"b... | explode_data.jsonl/43477 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 326
} | [
2830,
3393,
12292,
1155,
353,
8840,
836,
8,
341,
6948,
1155,
11,
2126,
5809,
58,
22655,
78134,
7808,
8428,
5987,
1827,
703,
368,
621,
53692,
27085,
6948,
1155,
11,
2126,
5809,
58,
4913,
64,
788,
16,
36828,
65,
788,
17,
25439,
7808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestBearerAuthRoundTripper(t *testing.T) {
rt := &testRoundTripper{}
req := &http.Request{}
NewBearerAuthRoundTripper("test", rt).RoundTrip(req)
if rt.Request == nil {
t.Fatalf("unexpected nil request: %v", rt)
}
if rt.Request == req {
t.Fatalf("round tripper should have copied request object: %#v", rt.R... | explode_data.jsonl/27366 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 178
} | [
2830,
3393,
26399,
5087,
27497,
21884,
6922,
1155,
353,
8840,
836,
8,
341,
55060,
1669,
609,
1944,
27497,
21884,
6922,
16094,
24395,
1669,
609,
1254,
9659,
16094,
197,
3564,
26399,
5087,
27497,
21884,
6922,
445,
1944,
497,
16677,
568,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_Openshift(t *testing.T) {
// Common Tests
t.Run("Test_LogIngestion", Test_LogIngestion)
t.Run("Test_LogForwarding", Test_LogForwarding)
t.Run("Test_SequenceState", Test_SequenceState)
t.Run("Test_SequenceState_RetrieveMultipleSequence", Test_SequenceState_RetrieveMultipleSequence)
t.Run("Test_SequenceSt... | explode_data.jsonl/78085 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 679
} | [
2830,
3393,
2232,
79,
724,
47833,
1155,
353,
8840,
836,
8,
341,
197,
322,
7718,
20150,
198,
3244,
16708,
445,
2271,
44083,
641,
6969,
290,
497,
3393,
44083,
641,
6969,
290,
340,
3244,
16708,
445,
2271,
44083,
25925,
287,
497,
3393,
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... | 3 |
func TestServerWriteFastError(t *testing.T) {
s := &Server{
Name: "foobar",
}
var buf bytes.Buffer
expectedBody := "access denied"
s.writeFastError(&buf, StatusForbidden, expectedBody)
br := bufio.NewReader(&buf)
var resp Response
if err := resp.Read(br); err != nil {
t.Fatalf("unexpected error: %s", err)
... | explode_data.jsonl/73274 | {
"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,
5475,
7985,
32174,
1454,
1155,
353,
8840,
836,
8,
341,
1903,
1669,
609,
5475,
515,
197,
21297,
25,
330,
50267,
756,
197,
532,
2405,
6607,
5820,
22622,
198,
42400,
5444,
1669,
330,
5211,
14820,
698,
1903,
3836,
32174,
1454,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDependencyOutputRegression854(t *testing.T) {
t.Parallel()
cleanupTerraformFolder(t, TEST_FIXTURE_GET_OUTPUT)
tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_GET_OUTPUT)
rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_GET_OUTPUT, "regression-854", "root")
stdout := bytes.Buffer{}
stderr := bytes.Buffe... | explode_data.jsonl/10143 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 257
} | [
2830,
3393,
36387,
5097,
45200,
23,
20,
19,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
1444,
60639,
51,
13886,
627,
13682,
1155,
11,
13602,
42635,
41486,
12702,
23981,
340,
20082,
14359,
1820,
1669,
2975,
12723,
1155,
11,
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 TestValidateHost(t *testing.T) {
validHosts := []string{
"hello",
"example.com",
"hello-world-1",
}
for _, h := range validHosts {
allErrs := validateHost(h, field.NewPath("host"))
if len(allErrs) > 0 {
t.Errorf("validateHost(%q) returned errors %v for valid input", h, allErrs)
}
}
invalidHos... | explode_data.jsonl/65819 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 256
} | [
2830,
3393,
17926,
9296,
1155,
353,
8840,
836,
8,
341,
56322,
9296,
82,
1669,
3056,
917,
515,
197,
197,
1,
14990,
756,
197,
197,
1,
8687,
905,
756,
197,
197,
1,
14990,
30084,
12,
16,
756,
197,
630,
2023,
8358,
305,
1669,
2088,
269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 5 |
func TestTransactionFetcherFuzzCrash01(t *testing.T) {
testTransactionFetcherParallel(t, txFetcherTest{
init: func() *TxFetcher {
return NewTxFetcher(
func(common.Hash) bool { return false },
func(txs []*types.Transaction) []error {
return make([]error, len(txs))
},
func(string, []common.Hash... | explode_data.jsonl/52228 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 325
} | [
2830,
3393,
8070,
97492,
37,
8889,
16001,
988,
15,
16,
1155,
353,
8840,
836,
8,
341,
18185,
8070,
97492,
16547,
1155,
11,
259,
9770,
2995,
261,
2271,
515,
197,
28248,
25,
2915,
368,
353,
51,
9770,
2995,
261,
341,
298,
853,
1532,
51,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestCreateDeveloperEmailUnique(t *testing.T) {
testServer(func(s *core.Server) {
headers := make(map[string]string)
k := fernet.MustDecodeKeys("YI1ZYdopn6usnQ/5gMAHg8+pNh6D0DdaJkytdoLWUj0=")
tok, err := fernet.EncryptAndSign([]byte("mysharedtoken"), k[0])
if err != nil {
t.Fatalf("fernet encryption fai... | explode_data.jsonl/42207 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 346
} | [
2830,
3393,
4021,
44911,
4781,
22811,
1155,
353,
8840,
836,
8,
341,
18185,
5475,
18552,
1141,
353,
2153,
22997,
8,
341,
197,
67378,
1669,
1281,
9147,
14032,
30953,
340,
197,
16463,
1669,
282,
13845,
50463,
32564,
8850,
445,
56,
40,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.