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 TestDefaultLemParsGet(t *testing.T) {
keeper, ctx := keepertest.PmKeeper(t)
items := createNDefaultLemPars(keeper, ctx, 10)
for _, item := range items {
rst, found := keeper.GetDefaultLemPars(ctx,
item.Index,
)
require.True(t, found)
require.Equal(t, item, rst)
}
} | explode_data.jsonl/71392 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 124
} | [
2830,
3393,
3675,
43,
336,
47,
1561,
1949,
1155,
353,
8840,
836,
8,
341,
197,
18861,
11,
5635,
1669,
2506,
83386,
1069,
76,
77233,
1155,
340,
46413,
1669,
1855,
45,
3675,
43,
336,
47,
1561,
7,
18861,
11,
5635,
11,
220,
16,
15,
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 TestNamespaceAutoFunc(t *testing.T) {
r, _ := http.NewRequest("GET", "/v1/test/list", nil)
w := httptest.NewRecorder()
ns := NewNamespace("/v1")
ns.AutoRouter(&TestController{})
AddNamespace(ns)
BeeApp.Handlers.ServeHTTP(w, r)
if w.Body.String() != "i am list" {
t.Errorf("user define func can't run")
}
... | explode_data.jsonl/12609 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 134
} | [
2830,
3393,
22699,
13253,
9626,
1155,
353,
8840,
836,
8,
341,
7000,
11,
716,
1669,
1758,
75274,
445,
3806,
497,
3521,
85,
16,
12697,
20936,
497,
2092,
340,
6692,
1669,
54320,
70334,
7121,
47023,
2822,
84041,
1669,
1532,
22699,
4283,
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... | 2 |
func TestTombstonesLoader(t *testing.T) {
deleteRequestSelectors := []string{"foo"}
metric, err := promql.ParseMetric(deleteRequestSelectors[0])
require.NoError(t, err)
for _, tc := range []struct {
name string
deleteRequestIntervals []model.Interval
queryForInterval model.Interval
... | explode_data.jsonl/10274 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1684
} | [
2830,
3393,
51,
2855,
32510,
9181,
1155,
353,
8840,
836,
8,
341,
15618,
1900,
96995,
1669,
3056,
917,
4913,
7975,
16707,
2109,
16340,
11,
1848,
1669,
2706,
1470,
8937,
54310,
59712,
1900,
96995,
58,
15,
2546,
17957,
35699,
1155,
11,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRefGetterForGitHubPullRequest(t *testing.T) {
testCases := []struct {
name string
rg *RefGetterForGitHubPullRequest
verify func(*RefGetterForGitHubPullRequest) error
}{
{
name: "Existing PullRequest is returned",
rg: &RefGetterForGitHubPullRequest{pr: &github.PullRequest{ID: 123456}},
... | explode_data.jsonl/8091 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1152
} | [
2830,
3393,
3945,
31485,
2461,
75615,
36068,
1900,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
11609,
256,
914,
198,
197,
197,
1984,
257,
353,
3945,
31485,
2461,
75615,
36068,
1900,
198,
197,
93587,
2915,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestECDSAWycheproofCases(t *testing.T) {
testutil.SkipTestIfTestSrcDirIsNotSet(t)
vectors := []struct {
Filename string
Encoding string
}{
{"ecdsa_test.json", "DER"},
{"ecdsa_secp256r1_sha256_p1363_test.json", "IEEE_P1363"},
{"ecdsa_secp384r1_sha512_p1363_test.json", "IEEE_P1363"},
{"ecdsa_secp521r... | explode_data.jsonl/77794 | {
"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,
7498,
5936,
14419,
5641,
747,
75636,
37302,
1155,
353,
8840,
836,
8,
341,
18185,
1314,
57776,
2271,
2679,
2271,
20360,
6184,
3872,
2623,
1649,
1155,
692,
5195,
10605,
1669,
3056,
1235,
341,
197,
12727,
4033,
914,
198,
197,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 6 |
func TestApplicationRouterGivenCallbackBinding(t *testing.T) {
router := createApplicationRouter(ctx, testSettings)
for _, verb := range verbs {
req, err := http.NewRequest(verb, "/callback", nil)
req.Header.Set(AssuredCallbackKey, "call-key")
req.Header.Set(AssuredCallbackTarget, "http://faketarget.com/")
r... | explode_data.jsonl/20247 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 195
} | [
2830,
3393,
4988,
9523,
22043,
7494,
15059,
1155,
353,
8840,
836,
8,
341,
67009,
1669,
1855,
4988,
9523,
7502,
11,
1273,
6086,
692,
2023,
8358,
18607,
1669,
2088,
61846,
341,
197,
24395,
11,
1848,
1669,
1758,
75274,
7,
22328,
11,
3521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAddExchangeAddress(t *testing.T) {
newbase := Base{}
newbase.AddExchangeAddress("ANX", "BTC", 100)
newbase.AddExchangeAddress("ANX", "BTC", 200)
if !newbase.ExchangeAddressExists("ANX", "BTC") {
t.Error("Test Failed - TestExchangeAddressExists address doesn't exist")
}
} | explode_data.jsonl/33736 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 104
} | [
2830,
3393,
2212,
31564,
4286,
1155,
353,
8840,
836,
8,
341,
8638,
3152,
1669,
5351,
16094,
8638,
3152,
1904,
31564,
4286,
445,
1093,
55,
497,
330,
59118,
497,
220,
16,
15,
15,
340,
8638,
3152,
1904,
31564,
4286,
445,
1093,
55,
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... | 2 |
func TestResolvedTimestampNoClosedTimestamp(t *testing.T) {
defer leaktest.AfterTest(t)()
rts := makeResolvedTimestamp()
rts.Init()
// Add a value. No closed timestamp so no resolved timestamp.
fwd := rts.ConsumeLogicalOp(writeValueOp(hlc.Timestamp{WallTime: 1}))
require.False(t, fwd)
require.Equal(t, hlc.Times... | explode_data.jsonl/2009 | {
"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,
65394,
20812,
2753,
26884,
20812,
1155,
353,
8840,
836,
8,
341,
16867,
23352,
1944,
36892,
2271,
1155,
8,
741,
7000,
2576,
1669,
1281,
65394,
20812,
741,
7000,
2576,
26849,
2822,
197,
322,
2691,
264,
897,
13,
2308,
7877,
114... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestProposalTxID(t *testing.T) {
nonce := []byte{1}
creator := []byte{2}
txid, err := utils.ComputeTxID(nonce, creator)
assert.NotEmpty(t, txid, "TxID cannot be empty.")
assert.NoError(t, err, "Failed computing txID")
assert.Nil(t, utils.CheckTxID(txid, nonce, creator))
assert.Error(t, utils.CheckTxID("", ... | explode_data.jsonl/39993 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 193
} | [
2830,
3393,
98637,
31584,
915,
1155,
353,
8840,
836,
8,
341,
197,
39593,
1669,
3056,
3782,
90,
16,
532,
197,
32398,
1669,
3056,
3782,
90,
17,
630,
46237,
307,
11,
1848,
1669,
12439,
89237,
31584,
915,
1445,
13184,
11,
19919,
340,
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... | 1 |
func TestGraph_SetTargetNew(t *testing.T) {
var (
target1 = Target{
RefID: "A",
Datasource: "Sample Source 1",
Expr: "sample request 1"}
target2 = Target{
RefID: "B",
Datasource: "Sample Source 2",
Expr: "sample request 2"}
)
graph := NewGraph("")
graph.AddTarget(&target1... | explode_data.jsonl/31048 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 314
} | [
2830,
3393,
11212,
14812,
6397,
3564,
1155,
353,
8840,
836,
8,
341,
2405,
2399,
197,
28861,
16,
284,
13483,
515,
298,
197,
3945,
915,
25,
414,
330,
32,
756,
298,
10957,
19346,
919,
25,
330,
17571,
8748,
220,
16,
756,
298,
197,
16041... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestArrayStack(t *testing.T) {
stack := Default()
stack.Push(1)
stack.Push(23)
stack.Push(3)
stack.Push("jack")
peek, _ := stack.Peek()
fmt.Println(peek)
fmt.Println(len(stack.data))
fmt.Println(cap(stack.data))
fmt.Println(stack.Size())
stack.PrintData()
pop, _ := stack.Pop()
pop, _ = stack.Pop(... | explode_data.jsonl/49151 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 225
} | [
2830,
3393,
1857,
4336,
1155,
353,
8840,
836,
8,
341,
48227,
1669,
7899,
2822,
48227,
34981,
7,
16,
340,
48227,
34981,
7,
17,
18,
340,
48227,
34981,
7,
18,
340,
48227,
34981,
445,
27134,
5130,
197,
29107,
11,
716,
1669,
5611,
94279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPullStreamGet(t *testing.T) {
// Test that we retry on the initial Send call from pullstream.get. We don't do this
// test with the server in fake_test.go because there's no clear way to get Send
// to fail from the server.
for _, test := range []struct {
desc string
errors []error
wantCode cod... | explode_data.jsonl/8676 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 514
} | [
2830,
3393,
36068,
3027,
1949,
1155,
353,
8840,
836,
8,
341,
197,
322,
3393,
429,
582,
22683,
389,
279,
2856,
11000,
1618,
504,
6815,
4027,
670,
13,
1205,
1513,
944,
653,
419,
198,
197,
322,
1273,
448,
279,
3538,
304,
12418,
4452,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRegisterAndExecute(t *testing.T) {
buf := bytes.NewBuffer(nil)
if Executed() {
t.Errorf("expect unexecuted, but got executed")
}
RegisterWithPriority(1, func() { buf.WriteString("1") })
RegisterWithPriority(2, func() { buf.WriteString("2") })
RegisterWithPriority(3, func() { buf.WriteString("3") })
... | explode_data.jsonl/26521 | {
"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,
8690,
3036,
17174,
1155,
353,
8840,
836,
8,
341,
26398,
1669,
5820,
7121,
4095,
27907,
692,
743,
10290,
2774,
368,
341,
197,
3244,
13080,
445,
17119,
650,
11748,
2774,
11,
714,
2684,
15695,
1138,
197,
630,
79096,
2354,
20555... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetPodQOS(t *testing.T) {
testCases := []struct {
pod *api.Pod
expected api.PodQOSClass
}{
{
pod: newPod("guaranteed", []api.Container{
newContainer("guaranteed", getResourceList("100m", "100Mi"), getResourceList("100m", "100Mi")),
}),
expected: api.PodQOSGuaranteed,
},
{
pod: ... | explode_data.jsonl/34740 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 404
} | [
2830,
3393,
1949,
23527,
48,
3126,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
3223,
347,
414,
353,
2068,
88823,
198,
197,
42400,
6330,
88823,
48,
3126,
1957,
198,
197,
59403,
197,
197,
515,
298,
3223,
347,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBatchCreateAutoRenewRules(t *testing.T) {
bccAutoRenewArgs := &BbcCreateAutoRenewArgs{
InstanceId: BBC_TestBbcId,
RenewTimeUnit: "month",
RenewTime: 1,
}
err := BBC_CLIENT.BatchCreateAutoRenewRules(bccAutoRenewArgs)
ExpectEqual(t.Errorf, err, nil)
} | explode_data.jsonl/4090 | {
"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,
21074,
4021,
13253,
34625,
365,
26008,
1155,
353,
8840,
836,
8,
341,
2233,
638,
13253,
34625,
365,
4117,
1669,
609,
33,
8904,
4021,
13253,
34625,
365,
4117,
515,
197,
197,
65918,
25,
262,
18096,
32541,
33,
8904,
764,
345,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestNilPtrDerefInBreakInstr(t *testing.T) {
// Checks that having a breakpoint on the exact instruction that causes a
// nil pointer dereference does not cause problems.
var asmfile string
switch runtime.GOARCH {
case "amd64":
asmfile = "main_amd64.s"
case "arm64":
asmfile = "main_arm64.s"
case "386":
... | explode_data.jsonl/56364 | {
"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,
19064,
5348,
35,
43970,
641,
22524,
74375,
1155,
353,
8840,
836,
8,
341,
197,
322,
24843,
429,
3432,
264,
52745,
389,
279,
4734,
7600,
429,
11137,
264,
198,
197,
322,
2092,
7445,
25277,
2202,
1558,
537,
5240,
5322,
382,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 7 |
func TestHiddenOptionsDefaults(t *testing.T) {
testtype.SkipUnlessTestType(t, testtype.UnitTestType)
Convey("With a new mongoimport with empty options", t, func() {
imp := NewMockMongoImport()
imp.ToolOptions = options.New("", "", "", "", true, options.EnabledOptions{})
Convey("Then parsing should fill args wit... | explode_data.jsonl/78462 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 250
} | [
2830,
3393,
17506,
3798,
16273,
1155,
353,
8840,
836,
8,
341,
18185,
1313,
57776,
35587,
2271,
929,
1155,
11,
1273,
1313,
25159,
2271,
929,
340,
93070,
5617,
445,
2354,
264,
501,
33814,
474,
448,
4287,
2606,
497,
259,
11,
2915,
368,
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 TestDoNothingWithNonexistentMPIJob(t *testing.T) {
f := newFixture(t)
startTime := metav1.Now()
completionTime := metav1.Now()
mpiJob := newMPIJob("test", int32Ptr(64), 1, gpuResourceName, &startTime, &completionTime)
f.run(getKey(mpiJob, t))
} | explode_data.jsonl/29949 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 104
} | [
2830,
3393,
5404,
23780,
2354,
8121,
64085,
56369,
12245,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
501,
18930,
1155,
340,
21375,
1462,
1669,
77520,
16,
13244,
741,
32810,
14386,
1462,
1669,
77520,
16,
13244,
741,
197,
39479,
12245,
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 TestAdmitUpdates(t *testing.T) {
tests := []struct {
name string
setup func(context.Context, *Resource)
mutate func(context.Context, *Resource)
rejection string
}{{
name: "test simple update (no diff)",
setup: func(ctx context.Context, r *Resource) {
r.SetDefaults(ctx)
},
mutate: f... | explode_data.jsonl/18335 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 700
} | [
2830,
3393,
2589,
1763,
37091,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
414,
914,
198,
197,
84571,
257,
2915,
5378,
9328,
11,
353,
4783,
340,
197,
2109,
332,
349,
262,
2915,
5378,
9328,
11,
353,
4783,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBytesCloneToSvmByteArray(t *testing.T) {
req := require.New(t)
ba := bytesCloneToSvmByteArray(nil)
req.Equal("<nil>", fmt.Sprintf("%v", ba.bytes))
req.Equal("0", fmt.Sprintf("%v", ba.length))
req.Equal("", fmt.Sprintf("%v", ba.String()))
ba = bytesCloneToSvmByteArray(make([]byte, 0))
req.Equal("<nil>"... | explode_data.jsonl/52022 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 290
} | [
2830,
3393,
7078,
37677,
1249,
50,
7338,
18394,
1155,
353,
8840,
836,
8,
341,
24395,
1669,
1373,
7121,
1155,
692,
2233,
64,
1669,
5820,
37677,
1249,
50,
7338,
18394,
27907,
340,
24395,
12808,
9639,
8385,
21156,
8879,
17305,
4430,
85,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestLegacyContractState(t *testing.T) {
input := CreateTestInput(t)
ctx, accKeeper, bankKeeper, keeper := input.Ctx, input.AccKeeper, input.BankKeeper, input.WasmKeeper
deposit := sdk.NewCoins(sdk.NewInt64Coin("denom", 100000))
topUp := sdk.NewCoins(sdk.NewInt64Coin("denom", 5000))
creator := createFakeFunde... | explode_data.jsonl/20774 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 972
} | [
2830,
3393,
77415,
14067,
1397,
1155,
353,
8840,
836,
8,
341,
22427,
1669,
4230,
2271,
2505,
1155,
340,
20985,
11,
1029,
77233,
11,
6073,
77233,
11,
53416,
1669,
1946,
727,
3998,
11,
1946,
77538,
77233,
11,
1946,
1785,
1180,
77233,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestRuleCantBeNull(t *testing.T) {
common.Log.Debug("Entering function: %s", common.GetFunctionName())
sqls := [][]string{
{
"CREATE TABLE `tb`(`c` longblob NOT NULL);",
},
{
"CREATE TABLE `tbl` (`c` longblob);",
"alter TABLE `tbl` add column `c` longblob;",
"alter TABLE `tbl` add column `c` te... | explode_data.jsonl/76827 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 443
} | [
2830,
3393,
11337,
34,
517,
60360,
1155,
353,
8840,
836,
8,
341,
83825,
5247,
20345,
445,
82867,
729,
25,
1018,
82,
497,
4185,
2234,
5152,
675,
2398,
30633,
82,
1669,
52931,
917,
515,
197,
197,
515,
298,
197,
1,
22599,
14363,
1565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEchoIP(t *testing.T) {
is := is.New(t)
req := httptest.NewRequest("GET", "/ip", nil)
req.RemoteAddr = "127.0.0.1:56789"
res := httptest.NewRecorder()
svc.ServeHTTP(res, req)
is.Equal("127.0.0.1\n", res.Body.String())
} | explode_data.jsonl/46787 | {
"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,
74994,
3298,
1155,
353,
8840,
836,
8,
341,
19907,
1669,
374,
7121,
1155,
340,
24395,
1669,
54320,
70334,
75274,
445,
3806,
497,
3521,
573,
497,
2092,
340,
24395,
51434,
13986,
284,
330,
16,
17,
22,
13,
15,
13,
15,
13,
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 TestVppArpTerminationTableEntryIpError(t *testing.T) {
ctx, bdHandler, _ := bdTestSetup(t)
defer ctx.TeardownTestCtx()
ctx.MockVpp.MockReply(&l2ba.BdIPMacAddDelReply{})
err := bdHandler.AddArpTerminationTableEntry(4, "FF:FF:FF:FF:FF:FF", "")
Expect(err).Should(HaveOccurred())
err = bdHandler.RemoveArpTerm... | explode_data.jsonl/39718 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 172
} | [
2830,
3393,
53,
602,
6953,
79,
21209,
32096,
2556,
5874,
23378,
1454,
1155,
353,
8840,
836,
8,
341,
20985,
11,
21486,
3050,
11,
716,
1669,
21486,
2271,
21821,
1155,
340,
16867,
5635,
94849,
37496,
2271,
23684,
2822,
20985,
24664,
53,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_expandEnv(t *testing.T) {
tests := []struct {
name string
data string
want string
}{
{
name: "test 1",
data: "${TEST}",
want: "",
}, {
name: "test 2",
data: "${TEST:-val}",
want: "val",
}, {
name: "test 3",
data: "${TEST:-val} ${TEST2:-}",
want: "val ",
}, {
name:... | explode_data.jsonl/17653 | {
"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,
67875,
14359,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
914,
198,
197,
8924,
914,
198,
197,
50780,
914,
198,
197,
59403,
197,
197,
515,
298,
11609,
25,
330,
1944,
220,
16,
756,
298,
8924,
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 TestECDSASigner(t *testing.T) {
s := newCustomSigner(t, testECDSACaFile, testECDSACaKeyFile)
hostname := "cloudflare.com"
for _, test := range csrTests {
csr, err := ioutil.ReadFile(test.file)
if err != nil {
t.Fatal("CSR loading error:", err)
}
// Try all ECDSA SignatureAlgorithm
SigAlgos := []x50... | explode_data.jsonl/71280 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 423
} | [
2830,
3393,
7498,
5936,
1911,
77656,
1155,
353,
8840,
836,
8,
341,
1903,
1669,
501,
10268,
7264,
261,
1155,
11,
1273,
7498,
5936,
1706,
64,
1703,
11,
1273,
7498,
5936,
1706,
64,
1592,
1703,
340,
197,
27806,
1669,
330,
12361,
31605,
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... | 7 |
func TestValidateV1Beta1InvalidChartSourceType(t *testing.T) {
manifest := `---
apiVersion: manifests/v1beta1
metadata:
name: test-manifest
spec:
sources:
charts:
- type: invalid
name: local
location: ./charts
charts:
- name: chart1
source: local
namespace: default
version: 1.0.... | explode_data.jsonl/80480 | {
"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,
17926,
53,
16,
64811,
16,
7928,
14488,
93363,
1155,
353,
8840,
836,
8,
341,
197,
42315,
1669,
1565,
10952,
2068,
5637,
25,
83232,
5457,
16,
19127,
16,
198,
17637,
510,
220,
829,
25,
1273,
20477,
6962,
198,
9535,
510,
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... | 3 |
func TestStateFullRound1(t *testing.T) {
cs, vss := randState(1)
height, round := cs.Height, cs.Round
// NOTE: buffer capacity of 0 ensures we can validate prevote and last commit
// before consensus can move to the next height (and cause a race condition)
cs.eventBus.Stop()
eventBus := types.NewEventBusWithBuff... | explode_data.jsonl/81645 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 392
} | [
2830,
3393,
1397,
9432,
27497,
16,
1155,
353,
8840,
836,
8,
341,
71899,
11,
348,
778,
1669,
10382,
1397,
7,
16,
340,
30500,
11,
4778,
1669,
10532,
17743,
11,
10532,
37646,
271,
197,
322,
16743,
25,
4147,
8654,
315,
220,
15,
25351,
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... | 1 |
func TestGetChannelInfo(t *testing.T) {
InitMSP()
resetFlags()
mockBlockchainInfo := &cb.BlockchainInfo{
Height: 1,
CurrentBlockHash: []byte("CurrentBlockHash"),
PreviousBlockHash: []byte("PreviousBlockHash"),
}
mockPayload, err := proto.Marshal(mockBlockchainInfo)
assert.NoError(t, err)
mock... | explode_data.jsonl/82665 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 339
} | [
2830,
3393,
1949,
9629,
1731,
1155,
353,
8840,
836,
8,
341,
98762,
44,
4592,
741,
70343,
9195,
2822,
77333,
98898,
1731,
1669,
609,
7221,
28477,
8819,
1731,
515,
197,
197,
3640,
25,
310,
220,
16,
345,
197,
197,
5405,
4713,
6370,
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 TestDefaultFixtureHasCorrectVersions(t *testing.T) {
thelmaBuilder := builder.NewBuilder().WithTestDefaults(t)
app, err := thelmaBuilder.Build()
require.NoError(t, err)
state, err := app.State()
require.NoError(t, err)
// test we have correct app and chart version for sam in 4 types of envs
devSam, err :=... | explode_data.jsonl/79307 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1036
} | [
2830,
3393,
3675,
18930,
10281,
33092,
69015,
1155,
353,
8840,
836,
8,
341,
70479,
301,
1728,
3297,
1669,
7363,
7121,
3297,
1005,
2354,
2271,
16273,
1155,
340,
28236,
11,
1848,
1669,
279,
75,
1728,
3297,
25212,
741,
17957,
35699,
1155,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestReuseConnection(t *testing.T) {
ctx, cancel := NewContext(time.Second)
defer cancel()
// Since we're specifically testing that connections between hosts are re-used,
// we can't interpose a relay in this test.
s1Opts := testutils.NewOpts().SetServiceName("s1").NoRelay()
testutils.WithTestServer(t, s1Op... | explode_data.jsonl/78178 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 835
} | [
2830,
3393,
38081,
4526,
1155,
353,
8840,
836,
8,
341,
20985,
11,
9121,
1669,
1532,
1972,
9730,
32435,
340,
16867,
9121,
2822,
197,
322,
8704,
582,
2299,
11689,
7497,
429,
13234,
1948,
18432,
525,
312,
68521,
345,
197,
322,
582,
646,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestShowJobs(t *testing.T) {
defer leaktest.AfterTest(t)()
params, _ := createTestServerParams()
s, rawSQLDB, _ := serverutils.StartServer(t, params)
sqlDB := sqlutils.MakeSQLRunner(t, rawSQLDB)
defer s.Stopper().Stop(context.TODO())
// row represents a row returned from crdb_internal.jobs or SHOW JOBS, bu... | explode_data.jsonl/34579 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1367
} | [
2830,
3393,
7812,
40667,
1155,
353,
8840,
836,
8,
341,
16867,
23352,
1944,
36892,
2271,
1155,
8,
2822,
25856,
11,
716,
1669,
1855,
2271,
5475,
4870,
741,
1903,
11,
7112,
6688,
3506,
11,
716,
1669,
3538,
6031,
12101,
5475,
1155,
11,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInviteUsersToTeam(t *testing.T) {
th := Setup(t).InitBasic()
defer th.TearDown()
user1 := th.GenerateTestEmail()
user2 := th.GenerateTestEmail()
emailList := []string{user1, user2}
//Delete all the messages before check the sample email
mailservice.DeleteMailBox(user1)
mailservice.DeleteMailBox(user... | explode_data.jsonl/70738 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2156
} | [
2830,
3393,
93540,
7137,
1249,
14597,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
18626,
1155,
568,
3803,
15944,
741,
16867,
270,
836,
682,
4454,
2822,
19060,
16,
1669,
270,
57582,
2271,
4781,
741,
19060,
17,
1669,
270,
57582,
2271,
4781... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSplitDomain(t *testing.T) {
provider := &DNSProvider{
findZoneByFqdn: func(fqdn string) (string, error) {
return "example.com.", nil
},
}
testCases := []struct {
desc string
fqdn string
subdomain string
domain string
}{
{
desc: "single subdomain",
fqdn: "subdo... | explode_data.jsonl/66975 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 421
} | [
2830,
3393,
20193,
13636,
1155,
353,
8840,
836,
8,
341,
197,
19979,
1669,
609,
61088,
5179,
515,
197,
80603,
15363,
1359,
37,
80,
17395,
25,
2915,
955,
80,
17395,
914,
8,
320,
917,
11,
1465,
8,
341,
298,
853,
330,
8687,
905,
10465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestApp_ParseSliceFlagsWithMissingValue(t *testing.T) {
var parsedIntSlice []int
var parsedStringSlice []string
app := &App{
Commands: []*Command{
{
Name: "cmd",
Flags: []Flag{
&IntSliceFlag{Name: "a", Usage: "set numbers"},
&StringSliceFlag{Name: "str", Usage: "set strings"},
},
... | explode_data.jsonl/52573 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 378
} | [
2830,
3393,
2164,
77337,
33236,
9195,
2354,
25080,
1130,
1155,
353,
8840,
836,
8,
341,
2405,
15676,
1072,
33236,
3056,
396,
198,
2405,
15676,
703,
33236,
3056,
917,
271,
28236,
1669,
609,
2164,
515,
197,
197,
30479,
25,
29838,
4062,
515... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestInstanceCredentialUpdate(t *testing.T) {
cases := []struct {
name string
older *servicecatalog.ServiceBinding
newer *servicecatalog.ServiceBinding
shouldGenerationIncrement bool
}{
{
name: "no spec change",
older: getTestInstanceCr... | explode_data.jsonl/80700 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 509
} | [
2830,
3393,
2523,
48265,
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,
15059,
198,
197,
8638,
261,
3824,
353,
7936,
26539,
13860,
15059,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCreateListenerObjectMeta(t *testing.T) {
validObjectMeta := metav1.ObjectMeta{
Name: "sample",
Namespace: "testing",
}
objectMeta := createListenerObjectMeta("sample", "testing")
if diff := cmp.Diff(validObjectMeta, objectMeta); diff != "" {
t.Fatalf("createListenerObjectMeta() failed:\n%s", dif... | explode_data.jsonl/66344 | {
"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,
4021,
2743,
1190,
12175,
1155,
353,
8840,
836,
8,
341,
56322,
1190,
12175,
1669,
77520,
16,
80222,
515,
197,
21297,
25,
414,
330,
13611,
756,
197,
90823,
25,
330,
8840,
756,
197,
532,
35798,
12175,
1669,
1855,
2743,
1190,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_getSelectQuery(t *testing.T) {
config.Load()
expected := "SELECT * FROM prest_users WHERE username=$1 AND password=$2 LIMIT 1"
query := getSelectQuery()
if query != expected {
t.Errorf("expected query: %s, got: %s", expected, query)
}
} | explode_data.jsonl/35849 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 86
} | [
2830,
3393,
3062,
3379,
2859,
1155,
353,
8840,
836,
8,
341,
25873,
13969,
2822,
42400,
1669,
330,
4858,
353,
4295,
22298,
16348,
5288,
5934,
3186,
16,
3567,
3552,
3186,
17,
10376,
220,
16,
698,
27274,
1669,
633,
3379,
2859,
2822,
743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestRuleValuesInDefinition(t *testing.T) {
common.Log.Debug("Entering function: %s", common.GetFunctionName())
sqls := []string{
`create table tab1(status ENUM('new', 'in progress', 'fixed'))`,
`alter table tab1 add column status ENUM('new', 'in progress', 'fixed')`,
}
for _, sql := range sqls {
q, err ... | explode_data.jsonl/76784 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 241
} | [
2830,
3393,
11337,
6227,
641,
10398,
1155,
353,
8840,
836,
8,
341,
83825,
5247,
20345,
445,
82867,
729,
25,
1018,
82,
497,
4185,
2234,
5152,
675,
2398,
30633,
82,
1669,
3056,
917,
515,
197,
197,
63,
3182,
1965,
5651,
16,
13838,
68404,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTransportIgnore1xxResponses(t *testing.T) {
setParallel(t)
defer afterTest(t)
cst := newClientServerTest(t, h1Mode, HandlerFunc(func(w ResponseWriter, r *Request) {
conn, buf, _ := w.(Hijacker).Hijack()
buf.Write([]byte("HTTP/1.1 123 OneTwoThree\r\nFoo: bar\r\n\r\nHTTP/1.1 200 OK\r\nBar: baz\r\nContent-... | explode_data.jsonl/14118 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 488
} | [
2830,
3393,
27560,
12497,
16,
4146,
70743,
1155,
353,
8840,
836,
8,
341,
8196,
16547,
1155,
340,
16867,
1283,
2271,
1155,
340,
1444,
267,
1669,
501,
2959,
5475,
2271,
1155,
11,
305,
16,
3636,
11,
19954,
9626,
18552,
3622,
5949,
6492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNotEnoughRequests(t *testing.T) {
notEnoughPodsTests := []struct {
pod *v1.Pod
nodeInfo *framework.NodeInfo
fits bool
name string
wantStatus *framework.Status
}{
{
pod: &v1.Pod{},
nodeInfo: framework.NewNodeInfo(newResourcePod(framework.Resource{MilliCPU: 10, M... | explode_data.jsonl/15792 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 969
} | [
2830,
3393,
2623,
95801,
35295,
1155,
353,
8840,
836,
8,
341,
97266,
95801,
23527,
82,
18200,
1669,
3056,
1235,
341,
197,
3223,
347,
286,
353,
85,
16,
88823,
198,
197,
20831,
1731,
256,
353,
3794,
21714,
1731,
198,
197,
1166,
1199,
98... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSortedSetRem(t *testing.T) {
testRaw(t, func(c *client) {
c.Do("ZADD", "z",
"1", "aap",
"2", "noot",
"3", "mies",
"2", "nootagain",
"3", "miesagain",
"+Inf", "the stars",
"+Inf", "more stars",
"-Inf", "big bang",
)
c.Do("ZREM", "z", "nosuch")
c.Do("ZREM", "z", "mies", "nootagai... | explode_data.jsonl/23343 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 276
} | [
2830,
3393,
51051,
1649,
6590,
1155,
353,
8840,
836,
8,
341,
18185,
20015,
1155,
11,
2915,
1337,
353,
2972,
8,
341,
197,
1444,
33596,
445,
57,
15665,
497,
330,
89,
756,
298,
197,
1,
16,
497,
330,
64,
391,
756,
298,
197,
1,
17,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestFilter_Error(t *testing.T) {
t.Parallel()
testCases := []struct {
name string
filter string
want error
}{
{
name: "empty filter",
filter: "",
want: nil,
},
{
name: "or filter",
filter: "labels",
want: nil,
},
{
name: "or filter error",
filter: "labels("... | explode_data.jsonl/57443 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 493
} | [
2830,
3393,
5632,
28651,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
18185,
37302,
1669,
3056,
1235,
341,
197,
11609,
256,
914,
198,
197,
50108,
914,
198,
197,
50780,
256,
1465,
198,
197,
59403,
197,
197,
515,
298,
11609,
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 TestTradeEffectOfferID(t *testing.T) {
hmock := httptest.NewClient()
client := &Client{
AuroraURL: "https://localhost/",
HTTP: hmock,
}
effectRequest := EffectRequest{ForAccount: "GCDIZFWLOTBWHTPODXCBH6XNXPFMSQFRVIDRP3JLEKQZN66G7NF3ANOD"}
testCases := []struct {
desc string
payload string
}{... | explode_data.jsonl/28815 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 426
} | [
2830,
3393,
39173,
7738,
39462,
915,
1155,
353,
8840,
836,
8,
341,
9598,
16712,
1669,
54320,
70334,
7121,
2959,
741,
25291,
1669,
609,
2959,
515,
197,
22985,
324,
6215,
3144,
25,
330,
2428,
1110,
8301,
35075,
197,
197,
9230,
25,
981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRoutes_codesRoutes(t *testing.T) {
t.Parallel()
m := mux.NewRouter()
codesRoutes(m, nil)
cases := []struct {
req *http.Request
vars map[string]string
}{
{
req: httptest.NewRequest("GET", "/status", nil),
},
{
req: httptest.NewRequest("GET", "/aaa-aaa-aaa-aaa", nil),
},
{
req: htt... | explode_data.jsonl/41245 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 213
} | [
2830,
3393,
26653,
38482,
26653,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
2109,
1669,
59807,
7121,
9523,
741,
1444,
2539,
26653,
1255,
11,
2092,
692,
1444,
2264,
1669,
3056,
1235,
341,
197,
24395,
220,
353,
1254,
9659,
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... | 2 |
func TestUndent(t *testing.T) {
text := `# title
func f(x)
# does stuff
print "hello,"
# more stuff
"world!"
read
const x = 5
`
source := &Source{Path: "tst", Text: []byte(text)}
tree := Undent(source)
buf := new(bytes.Buffer)
tree.Dump(buf, "undent> ", false)
... | explode_data.jsonl/15692 | {
"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,
19957,
306,
1155,
353,
8840,
836,
8,
341,
15425,
1669,
1565,
2,
2265,
271,
262,
2915,
282,
2075,
340,
414,
671,
1558,
6259,
198,
414,
1173,
330,
14990,
42252,
310,
671,
803,
6259,
198,
310,
330,
14615,
24734,
414,
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... | 2 |
func TestDisco_CreatePersistentEphemeralNode(t *testing.T) {
Convey("test creation of emphemeral nodes", t, func() {
s2 := zktest.New()
z, ch, _ := s2.Connect()
zkConnFunc := ZkConnCreatorFunc(func() (ZkConn, <-chan zk.Event, error) {
zkp, err := zkplus.NewBuilder().PathPrefix("/test").Connector(&zkplus.Stati... | explode_data.jsonl/46871 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 399
} | [
2830,
3393,
4839,
1015,
34325,
53194,
36,
59941,
3253,
1955,
1155,
353,
8840,
836,
8,
341,
93070,
5617,
445,
1944,
9688,
315,
13155,
336,
3253,
7798,
497,
259,
11,
2915,
368,
341,
197,
1903,
17,
1669,
94528,
1944,
7121,
741,
197,
2083... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNearestInterpretationField(t *testing.T) {
t.Run("should generate interpretation argument properly", func(t *testing.T) {
// given
classname := "Class"
// when
interpretation := additionalInterpretationField(classname)
// then
// the built graphQL field needs to support this structure:
// Type... | explode_data.jsonl/40507 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 485
} | [
2830,
3393,
8813,
15432,
3306,
8043,
367,
1877,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
5445,
6923,
22845,
5693,
10277,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
197,
322,
2661,
198,
197,
15487,
606,
1669,
330,
1957,
1837,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestExportAppNonAdminSuperTenant(t *testing.T) {
subscriberUserName := subscriber.UserName
subscriberPassword := subscriber.Password
dev := apimClients[0]
app := addApp(t, dev, subscriberUserName, subscriberPassword)
args := &appImportExportTestArgs{
appOwner: credentials{username: subscriberUserName,... | explode_data.jsonl/42430 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 161
} | [
2830,
3393,
16894,
2164,
8121,
7210,
19284,
71252,
1155,
353,
8840,
836,
8,
341,
28624,
20351,
18856,
1669,
32115,
43672,
198,
28624,
20351,
4876,
1669,
32115,
25690,
271,
27302,
1669,
1443,
318,
47174,
58,
15,
2533,
28236,
1669,
912,
216... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMultiplePatchesWithOnePatchDeleteDirective(t *testing.T) {
additivePatch := `apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: nginx
spec:
template:
spec:
containers:
- name: nginx
env:
- name: SOME_NAME
value: somevalue
`
deletePatch := `apiVersion: apps... | explode_data.jsonl/51163 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1236
} | [
2830,
3393,
32089,
47,
9118,
2354,
3966,
43622,
6435,
62076,
1155,
353,
8840,
836,
8,
341,
12718,
3404,
43622,
1669,
1565,
2068,
5637,
25,
10500,
5457,
16,
19127,
17,
198,
15314,
25,
66292,
198,
17637,
510,
220,
829,
25,
70482,
198,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestIncident_Manage_priority(t *testing.T) {
setup()
defer teardown()
mux.HandleFunc("/incidents", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "PUT")
_, _ = w.Write([]byte(`{"incidents": [{"title": "foo", "id": "1", "priority": {"id": "PRIORITY_ID_HERE", "type": "priority_reference"}}]}... | explode_data.jsonl/76388 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 472
} | [
2830,
3393,
39245,
1713,
71628,
424,
38161,
1155,
353,
8840,
836,
8,
341,
84571,
741,
16867,
49304,
2822,
2109,
2200,
63623,
4283,
2840,
6880,
497,
2915,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
18185,
3523,
1155,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestRandomLength(t *testing.T) {
s, c := makeTestServer()
defer s.Shutdown()
r := rand.New(rand.NewSource(42))
for i := 0; i < 100; i++ {
testSendReceive(t, c, r.Int63n(100000))
}
} | explode_data.jsonl/17552 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 86
} | [
2830,
3393,
13999,
4373,
1155,
353,
8840,
836,
8,
341,
1903,
11,
272,
1669,
1281,
2271,
5475,
741,
16867,
274,
10849,
18452,
741,
7000,
1669,
10382,
7121,
37595,
7121,
3608,
7,
19,
17,
1171,
2023,
600,
1669,
220,
15,
26,
600,
366,
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 TestMatch_And(t *testing.T) {
var testData = []struct {
rawYql string
data map[string]interface{}
out bool
}{
{
rawYql: `a=10 and b>'2' and c<9 and d!=2`,
data: map[string]interface{}{
"a": int64(10),
"b": int64(3),
"c": int64(-1),
"d": int64(2),
},
out: false,
},
{
... | explode_data.jsonl/65941 | {
"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,
8331,
93846,
1155,
353,
8840,
836,
8,
341,
2405,
67348,
284,
3056,
1235,
341,
197,
76559,
56,
1470,
914,
198,
197,
8924,
256,
2415,
14032,
31344,
16094,
197,
13967,
262,
1807,
198,
197,
59403,
197,
197,
515,
298,
76559,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGet(t *testing.T) {
ctx := context.Background()
t.Run("invalid input", func(t *testing.T) {
m := NewManager(nil)
_, err := m.Get(ctx, &hub.GetPackageInput{})
assert.True(t, errors.Is(err, hub.ErrInvalidInput))
})
t.Run("database error", func(t *testing.T) {
db := &tests.DBMock{}
db.On("QueryRow... | explode_data.jsonl/74679 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2465
} | [
2830,
3393,
1949,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
2822,
3244,
16708,
445,
11808,
1946,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
2109,
1669,
1532,
2043,
27907,
340,
197,
197,
6878,
1848,
1669,
296,
2234,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestWRBlockToDisk(t *testing.T) {
testDirPath, err := initTestEnv(t)
if err != nil {
t.Fatalf("init test environment failed: %s", err)
}
defer os.RemoveAll(testDirPath)
//init block header
blkHeader := block.NewBlockHeader()
//bitcoin-cli getblock 000000003c6cbebb51b3733fe2804b5a348f9a6d56f98aaee237022e14... | explode_data.jsonl/39297 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1552
} | [
2830,
3393,
17925,
4713,
1249,
47583,
1155,
353,
8840,
836,
8,
341,
18185,
6184,
1820,
11,
1848,
1669,
2930,
2271,
14359,
1155,
340,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
2327,
1273,
4573,
4641,
25,
1018,
82,
497,
1848,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 5 |
func Test_service_FindByConfigName(t *testing.T) {
repo := NewRepository(store.LoadDBConnection())
type fields struct {
repo Repository
ch cache.Cache
}
type args struct {
aspspId string
configName string
}
tests := []struct {
name string
fields fields
args args
want string
wantE... | explode_data.jsonl/6758 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 477
} | [
2830,
3393,
12267,
95245,
1359,
2648,
675,
1155,
353,
8840,
836,
8,
341,
17200,
5368,
1669,
1532,
4624,
31200,
13969,
3506,
4526,
12367,
13158,
5043,
2036,
341,
197,
17200,
5368,
26377,
198,
197,
23049,
256,
6500,
46130,
198,
197,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestFindByIdWithExistingRecord(t *testing.T) {
setupDataFileForTest()
_, err := findById("notes", "1")
if err != nil {
t.Errorf("Record exists but was not found")
}
} | explode_data.jsonl/81915 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 65
} | [
2830,
3393,
9885,
2720,
2354,
53067,
6471,
1155,
353,
8840,
836,
8,
1476,
84571,
1043,
1703,
2461,
2271,
741,
197,
6878,
1848,
1669,
59525,
445,
18286,
497,
330,
16,
5130,
743,
1848,
961,
2092,
341,
197,
3244,
13080,
445,
6471,
6724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAPI(t *testing.T) {
key := bytes.Repeat([]byte("a"), 32)
context := strings.Repeat("c", 32)
cases := []struct {
name string
new func() (*Hasher, error)
data string
result string
size int
}{
{
name: "New",
new: func() (*Hasher, error) { return New(), nil },
data: "",
... | explode_data.jsonl/44524 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2464
} | [
2830,
3393,
7082,
1155,
353,
8840,
836,
8,
341,
23634,
1669,
5820,
2817,
10979,
10556,
3782,
445,
64,
3975,
220,
18,
17,
340,
28413,
1669,
9069,
2817,
10979,
445,
66,
497,
220,
18,
17,
692,
1444,
2264,
1669,
3056,
1235,
341,
197,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestDel(t *testing.T) {
s, err := Run()
ok(t, err)
defer s.Close()
c, err := redis.Dial("tcp", s.Addr())
ok(t, err)
s.Set("foo", "bar")
s.HSet("aap", "noot", "mies")
s.Set("one", "two")
s.SetExpire("one", 1234)
s.Set("three", "four")
r, err := redis.Int(c.Do("DEL", "one", "aap", "nosuch"))
ok(t, err)
... | explode_data.jsonl/23146 | {
"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,
16532,
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,
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... | 1 |
func TestAdd(t *testing.T) {
u := Vec3{5, 6, 2}
v := Vec3{15, -2, 12}
assert.Equal(t, Vec3{20, 4, 14}, Add(u, v))
assert.Equal(t, Add(u, v), Add(v, u))
assert.Equal(t, ScalarMult(u, 2), Add(u, u))
assert.Equal(t, ScalarMult(v, 2), Add(v, v))
} | explode_data.jsonl/33710 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 131
} | [
2830,
3393,
2212,
1155,
353,
8840,
836,
8,
341,
10676,
1669,
11312,
18,
90,
20,
11,
220,
21,
11,
220,
17,
532,
5195,
1669,
11312,
18,
90,
16,
20,
11,
481,
17,
11,
220,
16,
17,
630,
6948,
12808,
1155,
11,
11312,
18,
90,
17,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestVerifyChallengeTxThreshold_matchesHomeDomain(t *testing.T) {
serverKP := newKeypair0()
clientKP := newKeypair1()
txSource := NewSimpleAccount(serverKP.Address(), -1)
op1 := ManageData{
SourceAccount: clientKP.Address(),
Name: "testanchor.stellar.org auth",
Value: []byte(base64.StdEnc... | explode_data.jsonl/20735 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 564
} | [
2830,
3393,
32627,
62078,
31584,
37841,
38344,
7623,
13636,
1155,
353,
8840,
836,
8,
341,
41057,
65036,
1669,
501,
6608,
1082,
1310,
15,
741,
25291,
65036,
1669,
501,
6608,
1082,
1310,
16,
741,
46237,
3608,
1669,
1532,
16374,
7365,
21421,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMultiple(t *testing.T) {
var args struct {
Foo []int
Bar []string
}
err := parse("--foo 1 2 3 --bar x y z", &args)
require.NoError(t, err)
assert.Equal(t, []int{1, 2, 3}, args.Foo)
assert.Equal(t, []string{"x", "y", "z"}, args.Bar)
} | explode_data.jsonl/13005 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 113
} | [
2830,
3393,
32089,
1155,
353,
8840,
836,
8,
341,
2405,
2827,
2036,
341,
197,
12727,
2624,
3056,
396,
198,
197,
197,
3428,
3056,
917,
198,
197,
532,
9859,
1669,
4715,
21549,
7975,
220,
16,
220,
17,
220,
18,
1177,
2257,
856,
379,
1147... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBucketColumnParser(t *testing.T) {
a := assert.New(t)
a.NoError(bucketColumnParserTestMain("DENSE(petal_length, 1), [0, 10]"))
a.NoError(bucketColumnParserTestMain("DENSE(petal_length, 1), [-10, -5, 10]"))
a.NoError(bucketColumnParserTestMain("petal_length, [10, 20]"))
a.NoError(bucketColumnParserTestMain... | explode_data.jsonl/45946 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 251
} | [
2830,
3393,
36018,
2933,
6570,
1155,
353,
8840,
836,
8,
341,
11323,
1669,
2060,
7121,
1155,
340,
11323,
35699,
58934,
2933,
6570,
2271,
6202,
445,
35,
6367,
1295,
21323,
5118,
11,
220,
16,
701,
508,
15,
11,
220,
16,
15,
60,
5455,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestSuObjectSlice(t *testing.T) {
assert := assert.T(t)
ob := SuObject{}
ob.Add(SuInt(12))
ob.Add(SuInt(34))
ob.Add(SuInt(56))
ob.Set(SuStr("a"), SuInt(123))
assert.This(ob.String()).Is("#(12, 34, 56, a: 123)")
ob2 := ob.Slice(0)
assert.True(ob.Equal(ob2))
ob2 = ob.Slice(1)
assert.This(ob2.String()).Is(... | explode_data.jsonl/7119 | {
"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,
36459,
1190,
33236,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
836,
1155,
340,
63353,
1669,
16931,
1190,
16094,
63353,
1904,
3759,
84,
1072,
7,
16,
17,
1171,
63353,
1904,
3759,
84,
1072,
7,
18,
19,
1171,
63353,
1904,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestOrderBy(t *testing.T) {
catalogStore, err := store.Open("catalog_orderby", store.DefaultOptions())
require.NoError(t, err)
defer os.RemoveAll("catalog_orderby")
dataStore, err := store.Open("sqldata_orderby", store.DefaultOptions())
require.NoError(t, err)
defer os.RemoveAll("sqldata_orderby")
engine,... | explode_data.jsonl/64073 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1842
} | [
2830,
3393,
34605,
1155,
353,
8840,
836,
8,
341,
1444,
7750,
6093,
11,
1848,
1669,
3553,
12953,
445,
26539,
7869,
1694,
497,
3553,
13275,
3798,
2398,
17957,
35699,
1155,
11,
1848,
340,
16867,
2643,
84427,
445,
26539,
7869,
1694,
5130,
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 TestScanNext(t *testing.T) {
const BOM = '\uFEFF'
BOMs := string(BOM)
s := new(Scanner).Init(strings.NewReader(BOMs + "if a == bcd /* com" + BOMs + "ment */ {\n\ta += c\n}" + BOMs + "// line comment ending in eof"))
checkTok(t, s, 1, s.Scan(), Ident, "if") // the first BOM is ignored
checkTok(t, s, 1, s.Scan(... | explode_data.jsonl/56533 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 438
} | [
2830,
3393,
26570,
5847,
1155,
353,
8840,
836,
8,
341,
4777,
425,
1898,
284,
5196,
84,
11419,
1748,
1248,
12791,
1898,
82,
1669,
914,
5349,
1898,
340,
1903,
1669,
501,
7,
31002,
568,
3803,
51442,
68587,
5349,
1898,
82,
488,
330,
333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCmdRequirementsEdit(t *testing.T) {
t.Parallel()
type testData struct {
name string
args []string
callback func(t *testing.T, req *jxcore.RequirementsConfig)
fail bool
initialFile string
}
gitOpsEnabled := filepath.Join("test_data", "gitops-enabled.yml")
tests := []test... | explode_data.jsonl/7182 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1163
} | [
2830,
3393,
15613,
59202,
4036,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
13158,
67348,
2036,
341,
197,
11609,
286,
914,
198,
197,
31215,
286,
3056,
917,
198,
197,
43350,
262,
2915,
1155,
353,
8840,
836,
11,
4232,
353,
73... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestOriginatorRun(t *testing.T) {
topoProvider := itopotest.TopoProviderFromFile(t, topoCore)
priv, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
require.NoError(t, err)
pub := priv.Public()
signer := testSigner(t, priv, topoProvider.Get().IA())
var originationFilter func(intf *ifstate.Interface) bo... | explode_data.jsonl/23725 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1690
} | [
2830,
3393,
13298,
850,
6727,
1155,
353,
8840,
836,
8,
341,
42118,
78,
5179,
1669,
432,
88390,
477,
17557,
78,
5179,
43633,
1155,
11,
72519,
5386,
340,
71170,
11,
1848,
1669,
384,
4385,
9081,
57582,
1592,
7,
613,
11442,
292,
1069,
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 TestTrackFunctionsGET(t *testing.T) {
assert := assert.New(t)
httpmock.Activate()
defer httpmock.DeactivateAndReset()
httpmock.RegisterResponder(
"GET",
"http://com.acme.collector/i",
httpmock.NewStringResponder(200, ""),
)
tracker := InitTracker(
RequireEmitter(InitEmitter(
RequireCollectorUri(... | explode_data.jsonl/37649 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 822
} | [
2830,
3393,
15667,
25207,
3806,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
340,
28080,
16712,
14140,
731,
741,
16867,
1758,
16712,
8934,
16856,
3036,
14828,
2822,
28080,
16712,
19983,
30884,
1006,
197,
197,
1,
3806,
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,
1,
1,
1,
1,
1,
1... | 1 |
func TestAccAWSGlacierVault_importBasic(t *testing.T) {
resourceName := "aws_glacier_vault.full"
rInt := acctest.RandInt()
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckGlacierVaultDestroy,
Steps: []resource.TestSte... | explode_data.jsonl/27830 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 227
} | [
2830,
3393,
14603,
36136,
31541,
53453,
79177,
18434,
15944,
1155,
353,
8840,
836,
8,
341,
50346,
675,
1669,
330,
8635,
34569,
53453,
2273,
945,
21534,
698,
7000,
1072,
1669,
1613,
67880,
2013,
437,
1072,
2822,
50346,
8787,
1155,
11,
5101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestReceiverWithManyResources(t *testing.T) {
client := fake.NewSimpleClientset()
consumer := new(consumertest.MetricsSink)
r := setupReceiver(client, consumer, 10*time.Second)
numPods := 1000
createPods(t, client, numPods)
ctx := context.Background()
require.NoError(t, r.Start(ctx, componenttest.NewNopH... | explode_data.jsonl/1922 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 177
} | [
2830,
3393,
25436,
78747,
11277,
1155,
353,
8840,
836,
8,
341,
25291,
1669,
12418,
7121,
16374,
2959,
746,
741,
37203,
11761,
1669,
501,
17868,
1242,
83386,
1321,
13468,
45094,
692,
7000,
1669,
6505,
25436,
12805,
11,
11502,
11,
220,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func Test_defaultModelBuildTask_buildPathPatternsForExactPathType(t *testing.T) {
type args struct {
path string
}
tests := []struct {
name string
args args
want []string
wantErr error
}{
{
name: "/ with exact pathType",
args: args{
path: "/",
},
want: []string{"/"},
},
{
... | explode_data.jsonl/63631 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 675
} | [
2830,
3393,
9993,
1712,
11066,
6262,
20801,
1820,
57656,
2461,
57954,
1820,
929,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
26781,
914,
198,
197,
532,
78216,
1669,
3056,
1235,
341,
197,
11609,
262,
914,
198,
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... | 2 |
func TestEncode_NonPtr(t *testing.T) {
pod := Pod{
Labels: map[string]string{"name": "foo"},
}
obj := interface{}(pod)
data, err := Encode(obj)
obj2, err2 := Decode(data)
if err != nil || err2 != nil {
t.Fatalf("Failure: '%v' '%v'", err, err2)
}
if _, ok := obj2.(*Pod); !ok {
t.Fatalf("Got wrong type")
}... | explode_data.jsonl/54712 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 198
} | [
2830,
3393,
32535,
1604,
263,
5348,
1155,
353,
8840,
836,
8,
341,
3223,
347,
1669,
16821,
515,
197,
197,
23674,
25,
2415,
14032,
30953,
4913,
606,
788,
330,
7975,
7115,
197,
532,
22671,
1669,
3749,
6257,
7,
39073,
340,
8924,
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... | 5 |
func TestValidateCustomResourceDefinitionValidation(t *testing.T) {
tests := []struct {
name string
input apiextensions.CustomResourceValidation
statusEnabled bool
wantError bool
}{
{
name: "empty",
input: apiextensions.CustomResourceValidation{},
wantError: false,
}... | explode_data.jsonl/75621 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1549
} | [
2830,
3393,
17926,
10268,
4783,
10398,
13799,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
688,
914,
198,
197,
22427,
260,
6330,
27609,
27649,
4783,
13799,
198,
197,
23847,
5462,
1807,
198,
197,
50780,
1454,
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... | 5 |
func TestLogicRunner(t *testing.T) {
// Hello my friend! I bet you would like to place t.Parallel() here.
// Of course this may sound as a good idea. This will run multiple
// test in parallel which will make them execute faster. Right?
// Wrong! You see, by historical reasons LogicRunnerTestSuite
// is in fact 4 ... | explode_data.jsonl/67708 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 213
} | [
2830,
3393,
26751,
19486,
1155,
353,
8840,
836,
8,
341,
197,
322,
21927,
847,
4238,
0,
358,
1274,
498,
1035,
1075,
311,
1992,
259,
41288,
7957,
368,
1588,
624,
197,
322,
4940,
3308,
419,
1231,
5112,
438,
264,
1661,
4522,
13,
1096,
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 TestKVGetCancel(t *testing.T) {
defer testutil.AfterTest(t)
clus := integration.NewClusterV3(t, &integration.ClusterConfig{Size: 1})
defer clus.Terminate(t)
oldconn := clus.Client(0).ActiveConnection()
kv := clus.Client(0)
ctx, cancel := context.WithCancel(context.TODO())
cancel()
resp, err := kv.Get(c... | explode_data.jsonl/16411 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 208
} | [
2830,
3393,
82707,
1949,
9269,
1155,
353,
8840,
836,
8,
341,
16867,
1273,
1314,
36892,
2271,
1155,
692,
197,
4163,
1669,
17590,
7121,
28678,
53,
18,
1155,
11,
609,
60168,
72883,
2648,
90,
1695,
25,
220,
16,
3518,
16867,
1185,
355,
836... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUpdateError(t *testing.T) {
ctx := kapi.WithUser(kapi.WithNamespace(kapi.NewContext(), "unittest"), &user.DefaultInfo{Name: "system:admin"})
storage := makeTestStorage()
storage.Create(ctx, &authorizationapi.RoleBinding{
ObjectMeta: kapi.ObjectMeta{Name: "my-different"},
RoleRef: kapi.ObjectReferenc... | explode_data.jsonl/9644 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 291
} | [
2830,
3393,
4289,
1454,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
595,
2068,
26124,
1474,
5969,
2068,
26124,
22699,
5969,
2068,
7121,
1972,
1507,
330,
91005,
3975,
609,
872,
13275,
1731,
63121,
25,
330,
8948,
25,
2882,
1,
8824,
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 TestParseDockerRef(t *testing.T) {
testcases := []struct {
name string
input string
expected string
}{
{
name: "nothing",
input: "busybox",
expected: "docker.io/library/busybox:latest",
},
{
name: "tag only",
input: "busybox:latest",
expected: "docker.io/library... | explode_data.jsonl/43091 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1073
} | [
2830,
3393,
14463,
35,
13659,
3945,
1155,
353,
8840,
836,
8,
341,
18185,
23910,
1669,
3056,
1235,
341,
197,
11609,
257,
914,
198,
197,
22427,
262,
914,
198,
197,
42400,
914,
198,
197,
59403,
197,
197,
515,
298,
11609,
25,
257,
330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestDeliverGroupConnect(t *testing.T) {
defer resetFlags()
g := NewGomegaWithT(t)
// success
mockDeliverClients := []*DeliverClient{
{
Client: getMockDeliverClientResponseWithTxStatusAndID(pb.TxValidationCode_VALID, "txid0"),
Address: "peer0",
},
{
Client: getMockDeliverClientResponseWithTxSt... | explode_data.jsonl/46377 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1077
} | [
2830,
3393,
16532,
1524,
2808,
14611,
1155,
353,
8840,
836,
8,
341,
16867,
7585,
9195,
741,
3174,
1669,
1532,
38,
32696,
2354,
51,
1155,
692,
197,
322,
2393,
198,
77333,
16532,
1524,
47174,
1669,
29838,
16532,
1524,
2959,
515,
197,
197,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestExecRunsGoWithNoArgsAndGetsUsageMessagePlusErrorExitStatus2(t *testing.T) {
t.Parallel()
// We can't make many cross-platform assumptions about what external
// commands will be available, but it seems logical that 'go' would be
// (though it may not be in the user's path)
p := script.Exec("go")
output, ... | explode_data.jsonl/51502 | {
"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,
10216,
73920,
10850,
2354,
2753,
4117,
3036,
49358,
14783,
2052,
21807,
1454,
15339,
2522,
17,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
197,
322,
1205,
646,
944,
1281,
1657,
5312,
54025,
31846,
911,
1128,
9250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStream_ReadNil(t *testing.T) {
t.Run("test ok", func(t *testing.T) {
assert := base.NewAssert(t)
testRange := getTestRange(streamPosBody, 3*streamBlockSize, 80, 80, 61)
for _, testData := range streamTestSuccessCollections["nil"] {
for _, i := range testRange {
stream := NewStream()
stream.Se... | explode_data.jsonl/21217 | {
"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,
3027,
38381,
19064,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
1944,
5394,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
6948,
1669,
2331,
7121,
8534,
1155,
340,
197,
18185,
6046,
1669,
633,
2271,
6046,
20574,
4859,
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... | 3 |
func Test_dkTags_addOtherTags(t *testing.T) {
type fields struct {
tags map[string]string
}
type args struct {
span *tracepb.Span
}
tests := []struct {
name string
fields fields
args args
want *dkTags
}{
{
name: "case",
fields: fields{
tags: map[string]string{},
},
args: args{
... | explode_data.jsonl/14400 | {
"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,
814,
74,
15930,
2891,
11409,
15930,
1155,
353,
8840,
836,
8,
341,
13158,
5043,
2036,
341,
197,
3244,
2032,
2415,
14032,
30953,
198,
197,
532,
13158,
2827,
2036,
341,
197,
197,
1480,
353,
15067,
16650,
85309,
198,
197,
532,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestQuery(t *testing.T) {
key, value := []byte("hello"), []byte("goodbye")
anteOpt := func(bapp *BaseApp) {
bapp.SetAnteHandler(func(ctx sdk.Context, tx sdk.Tx, simulate bool) (newCtx sdk.Context, err error) {
store := ctx.KVStore(capKey1)
store.Set(key, value)
return
})
}
routerOpt := func(bapp ... | explode_data.jsonl/67063 | {
"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,
1155,
353,
8840,
836,
8,
341,
23634,
11,
897,
1669,
3056,
3782,
445,
14990,
3975,
3056,
3782,
445,
18536,
28374,
1138,
197,
4942,
21367,
1669,
2915,
1883,
676,
353,
3978,
2164,
8,
341,
197,
2233,
676,
4202,
17117,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGateway(t *testing.T) {
if os.Getenv("KUBE2E_TESTS") != "gateway" {
log.Warnf("This test is disabled. " +
"To enable, set KUBE2E_TESTS to 'gateway' in your env.")
return
}
helpers.RegisterGlooDebugLogPrintHandlerAndClearLogs()
skhelpers.RegisterCommonFailHandlers()
skhelpers.SetupLog()
RunSpecs(t,... | explode_data.jsonl/44145 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 139
} | [
2830,
3393,
40709,
1155,
353,
8840,
836,
8,
341,
743,
2643,
64883,
445,
42,
42389,
17,
36,
80312,
899,
961,
330,
46473,
1,
341,
197,
6725,
68465,
69,
445,
1986,
1273,
374,
8386,
13,
330,
3610,
298,
197,
65120,
7283,
11,
738,
730,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSimpleConditionMatch(t *testing.T) {
sc := NewSimpleCondition("/abc/s")
req := httplib.Post("http://localhost:8080/abc/s")
assert.True(t, sc.Match(context.Background(), req))
sc = NewSimpleCondition("/abc/s", WithMethod("POST"))
assert.True(t, sc.Match(context.Background(), req))
sc = NewSimpleConditi... | explode_data.jsonl/63454 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 139
} | [
2830,
3393,
16374,
10547,
8331,
1155,
353,
8840,
836,
8,
341,
29928,
1669,
1532,
16374,
10547,
4283,
13683,
2687,
1138,
24395,
1669,
54320,
81682,
23442,
445,
1254,
1110,
8301,
25,
23,
15,
23,
15,
14,
13683,
2687,
5130,
6948,
32443,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCnsShouldReturnErrorForRepeatedNumber(t *testing.T) {
number := "111111111111111"
_, err := brdocs.NewCns(number)
internal_test.AssertNotValidDocument(t, number, err, "Cns(111111111111111) is invalid")
} | explode_data.jsonl/52274 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 76
} | [
2830,
3393,
34,
4412,
14996,
5598,
1454,
2461,
90989,
2833,
1155,
353,
8840,
836,
8,
341,
57135,
1669,
330,
16,
16,
16,
16,
16,
16,
16,
16,
16,
16,
16,
16,
16,
16,
16,
698,
197,
6878,
1848,
1669,
1411,
14120,
7121,
34,
4412,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNexus(t *testing.T) {
nexusList := &v1alpha1.NexusList{}
err := framework.AddToFrameworkScheme(apis.AddToScheme, nexusList)
if err != nil {
t.Fatalf("failed to add custom resource scheme to framework: %v", err)
}
// run subtests
t.Run("nexus-group", func(t *testing.T) {
t.Run("Cluster", NexusCluster)... | explode_data.jsonl/70808 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 130
} | [
2830,
3393,
45,
23666,
1155,
353,
8840,
836,
8,
341,
9038,
23666,
852,
1669,
609,
85,
16,
7141,
16,
2067,
23666,
852,
16094,
9859,
1669,
12626,
1904,
1249,
14837,
28906,
7,
13725,
1904,
1249,
28906,
11,
81401,
852,
340,
743,
1848,
961... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestKubernetai_AutoPath(t *testing.T) {
type fields struct {
Zones []string
Next plugin.Handler
Kubernetes []*kubernetes.Kubernetes
autoPathSearch []string
p *k8iPodHandlerTester
}
type args struct {
state request.Request
}
w := &responseWriterTest{}
k8sClust... | explode_data.jsonl/2657 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1704
} | [
2830,
3393,
42,
76259,
1915,
72,
1566,
1535,
1820,
1155,
353,
8840,
836,
8,
341,
13158,
5043,
2036,
341,
197,
35853,
3154,
688,
3056,
917,
198,
197,
197,
5847,
1843,
9006,
31010,
198,
197,
39340,
29827,
257,
29838,
74,
29827,
11352,
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 TestDumpCatalogTo(t *testing.T) {
catalogStore, err := store.Open("dump_catalog_catalog", store.DefaultOptions())
require.NoError(t, err)
defer os.RemoveAll("dump_catalog_catalog")
dataStore, err := store.Open("dump_catalog_data", store.DefaultOptions())
require.NoError(t, err)
defer os.RemoveAll("dump_cata... | explode_data.jsonl/64055 | {
"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,
51056,
41606,
1249,
1155,
353,
8840,
836,
8,
341,
1444,
7750,
6093,
11,
1848,
1669,
3553,
12953,
445,
27660,
47310,
47310,
497,
3553,
13275,
3798,
2398,
17957,
35699,
1155,
11,
1848,
340,
16867,
2643,
84427,
445,
27660,
47310,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSuObjectString(t *testing.T) {
DefaultSingleQuotes = true
defer func() { DefaultSingleQuotes = false }()
ob := SuObject{}
assert.T(t).This(ob.String()).Is("#()")
ob.Add(Zero)
assert.T(t).This(ob.String()).Is("#(0)")
ob.Add(One)
assert.T(t).This(ob.String()).Is("#(0, 1)")
ob = SuObject{}
ob.Set(SuInt... | explode_data.jsonl/7112 | {
"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,
36459,
1190,
703,
1155,
353,
8840,
836,
8,
341,
91084,
10888,
43780,
284,
830,
198,
16867,
2915,
368,
314,
7899,
10888,
43780,
284,
895,
335,
2822,
63353,
1669,
16931,
1190,
16094,
6948,
836,
1155,
568,
1986,
49595,
6431,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCollectRequest(t *testing.T) {
t.Parallel()
ctx := context.Background()
cancelCtx, cancel := context.WithCancel(ctx)
defer cancel()
originalStatsTimer := statsTimer
statsTimer = 100 * time.Millisecond
defer func() {
statsTimer = originalStatsTimer
}()
tests := map[string]struct {
ctx c... | explode_data.jsonl/58344 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1809
} | [
2830,
3393,
47504,
1900,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
20985,
1669,
2266,
19047,
741,
84441,
23684,
11,
9121,
1669,
2266,
26124,
9269,
7502,
340,
16867,
9121,
741,
197,
9889,
16635,
10105,
1669,
10472,
10105,
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 TestContext2Plan_moduleProviderInherit(t *testing.T) {
var l sync.Mutex
var calls []string
m := testModule(t, "plan-module-provider-inherit")
ctx := testContext2(t, &ContextOpts{
Config: m,
ProviderResolver: providers.ResolverFixed(
map[string]providers.Factory{
"aws": func() (providers.Interface, ... | explode_data.jsonl/28651 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 731
} | [
2830,
3393,
1972,
17,
20485,
10750,
5179,
641,
9263,
1155,
353,
8840,
836,
8,
341,
2405,
326,
12811,
99014,
198,
2405,
6738,
3056,
917,
271,
2109,
1669,
1273,
3332,
1155,
11,
330,
10393,
46718,
81532,
3419,
9263,
1138,
20985,
1669,
1273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDaoTagResCount(t *testing.T) {
var (
c = context.TODO()
tid = int64(0)
)
convey.Convey("TagResCount", t, func(ctx convey.C) {
count, err := d.TagResCount(c, tid)
ctx.Convey("Then err should be nil.count should not be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
ctx.So(count, c... | explode_data.jsonl/46396 | {
"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,
12197,
5668,
1061,
2507,
1155,
353,
8840,
836,
8,
341,
2405,
2399,
197,
1444,
256,
284,
2266,
90988,
741,
197,
3244,
307,
284,
526,
21,
19,
7,
15,
340,
197,
340,
37203,
5617,
4801,
5617,
445,
5668,
1061,
2507,
497,
259,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTimeoutConn(t *testing.T) {
_, conn := net.Pipe()
tconn := newTimeoutConn(conn, time.Minute)
t.Run(`set deadline`, func(t *testing.T) {
defer assertPanic(t, false)
deadline := time.Now().Add(time.Millisecond * 100)
err := tconn.SetDeadline(deadline)
if err != nil {
t.Fatalf(`SetDeadline should ... | explode_data.jsonl/67690 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 341
} | [
2830,
3393,
7636,
9701,
1155,
353,
8840,
836,
8,
341,
197,
6878,
4534,
1669,
4179,
1069,
3444,
2822,
3244,
5148,
1669,
501,
7636,
9701,
20571,
11,
882,
75770,
340,
3244,
16708,
5809,
746,
21428,
7808,
2915,
1155,
353,
8840,
836,
8,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestDefaultReceivers(t *testing.T) {
allFactories, err := Components()
assert.NoError(t, err)
rcvrFactories := allFactories.Receivers
tests := []struct {
receiver config.Type
skipLifecyle bool
getConfigFn getReceiverConfigFn
}{
{
receiver: "hostmetrics",
},
{
receiver: "jaeger",
},
... | explode_data.jsonl/44449 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 628
} | [
2830,
3393,
3675,
693,
346,
1945,
1155,
353,
8840,
836,
8,
341,
50960,
17417,
2433,
11,
1848,
1669,
34085,
741,
6948,
35699,
1155,
11,
1848,
692,
30295,
18920,
17417,
2433,
1669,
678,
17417,
2433,
2817,
346,
1945,
271,
78216,
1669,
3056... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestMarshalTransactionAndPack(t *testing.T) {
a := &eos.Action{
Account: eos.AccountName("eosio"),
Name: eos.ActionName("newaccount"),
Authorization: []eos.PermissionLevel{
{
Actor: eos.AccountName("eosio"),
Permission: eos.PermissionName("active"),
},
},
ActionData: eos.NewActionD... | explode_data.jsonl/3112 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 531
} | [
2830,
3393,
55438,
8070,
3036,
30684,
1155,
353,
8840,
836,
8,
341,
11323,
1669,
609,
84399,
11360,
515,
197,
197,
7365,
25,
61794,
30877,
675,
445,
84399,
815,
4461,
197,
21297,
25,
262,
61794,
11360,
675,
445,
931,
4608,
4461,
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 TestSpheroDriverName(t *testing.T) {
d := initTestSpheroDriver()
gobottest.Assert(t, strings.HasPrefix(d.Name(), "Sphero"), true)
d.SetName("NewName")
gobottest.Assert(t, d.Name(), "NewName")
} | explode_data.jsonl/7287 | {
"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,
50,
759,
2328,
11349,
675,
1155,
353,
8840,
836,
8,
341,
2698,
1669,
2930,
2271,
50,
759,
2328,
11349,
741,
3174,
674,
1716,
477,
11711,
1155,
11,
9069,
94357,
1500,
2967,
1507,
330,
50,
759,
2328,
3975,
830,
340,
2698,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTransactions(t *testing.T) {
br := "br04"
err := PrepareOVSBridge(br)
require.Nil(t, err, fmt.Sprintf("Failed to prepare OVS bridge: %v", err))
defer func() {
err = DeleteOVSBridge(br)
require.Nil(t, err, fmt.Sprintf("error while deleting OVS bridge: %v", err))
}()
bridge := binding.NewOFBridge(br)
... | explode_data.jsonl/23786 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 789
} | [
2830,
3393,
48761,
1155,
353,
8840,
836,
8,
341,
80255,
1669,
330,
1323,
15,
19,
698,
9859,
1669,
31166,
38957,
16680,
11183,
41237,
340,
17957,
59678,
1155,
11,
1848,
11,
8879,
17305,
445,
9408,
311,
10549,
506,
26050,
14164,
25,
1018,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestMakeStatsInfo(t *testing.T) {
reply := makeJSONReply([]byte(`[{"name":"q1", "FloatKey":14,"nes":{"ted":15}},{"name":"q2", "vhost":"foo", "FloatKey":24,"nes":{"ted":25}}]`))
qinfo := reply.MakeStatsInfo(queueLabelKeys)
t.Log(qinfo)
if qinfo[0].labels["name"] != "q1" {
t.Errorf("unexpected qinfo name: %v"... | explode_data.jsonl/23719 | {
"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,
8078,
16635,
1731,
1155,
353,
8840,
836,
8,
341,
86149,
1669,
1281,
5370,
20841,
10556,
3782,
5809,
58,
4913,
606,
3252,
80,
16,
497,
330,
5442,
1592,
788,
16,
19,
1335,
4873,
22317,
6565,
788,
16,
20,
92,
36828,
606,
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... | 4 |
func TestLocale(t *testing.T) {
trans := New()
expected := "sw"
if trans.Locale() != expected {
t.Errorf("Expected '%s' Got '%s'", expected, trans.Locale())
}
} | explode_data.jsonl/65080 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 78
} | [
2830,
3393,
19231,
1155,
353,
8840,
836,
8,
8022,
72453,
1669,
1532,
3568,
42400,
1669,
330,
2280,
18591,
743,
1356,
59094,
368,
961,
3601,
972,
197,
3244,
13080,
445,
18896,
7677,
82,
6,
24528,
7677,
82,
22772,
3601,
11,
1356,
59094,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.