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 TestHandlePasswordExpiring(t *testing.T) {
data, err := ioutil.ReadFile("example/password-expiring.html")
require.Nil(t, err)
doc, err := goquery.NewDocumentFromReader(bytes.NewReader(data))
require.Nil(t, err)
ac := Client{}
loginDetails := creds.LoginDetails{
Username: "fdsa",
Password: "secret",
U... | explode_data.jsonl/4336 | {
"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,
6999,
4876,
840,
78763,
1155,
353,
8840,
836,
8,
341,
8924,
11,
1848,
1669,
43144,
78976,
445,
8687,
59470,
18376,
6191,
2564,
1138,
17957,
59678,
1155,
11,
1848,
692,
59536,
11,
1848,
1669,
728,
1631,
7121,
7524,
3830,
5062... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCerts(t *testing.T) {
dynatraceServer, _ := createTestDynatraceClient(t, http.NotFoundHandler())
defer dynatraceServer.Close()
dtc := dynatraceClient{
url: dynatraceServer.URL,
apiToken: apiToken,
paasToken: paasToken,
httpClient: dynatraceServer.Client(),
hostCache: nil,
logger: ... | explode_data.jsonl/3776 | {
"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,
34,
15546,
1155,
353,
8840,
836,
8,
341,
2698,
1872,
266,
41183,
5475,
11,
716,
1669,
1855,
2271,
95709,
266,
41183,
2959,
1155,
11,
1758,
67255,
3050,
2398,
16867,
31070,
266,
41183,
5475,
10421,
2822,
2698,
10413,
1669,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestH12_Head_ImplicitLen(t *testing.T) {
h12Compare{
ReqFunc: (*Client).Head,
Handler: func(w ResponseWriter, r *Request) {
if r.Method != "HEAD" {
t.Errorf("unexpected method %q", r.Method)
}
io.WriteString(w, "foo")
},
}.run(t)
} | explode_data.jsonl/4748 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 118
} | [
2830,
3393,
39,
16,
17,
62,
12346,
7959,
1307,
6026,
11271,
1155,
353,
8840,
836,
8,
341,
9598,
16,
17,
27374,
515,
197,
197,
27234,
9626,
25,
4609,
2959,
568,
12346,
345,
197,
197,
3050,
25,
2915,
3622,
5949,
6492,
11,
435,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestSequenceKey(t *testing.T) {
actual := SystemSQLCodec.SequenceKey(55)
expected := []byte("\xbf\x89\x88\x88")
if !bytes.Equal(actual, expected) {
t.Errorf("expected %q (len %d), got %q (len %d)", expected, len(expected), actual, len(actual))
}
} | explode_data.jsonl/56592 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 105
} | [
2830,
3393,
14076,
1592,
1155,
353,
8840,
836,
8,
341,
88814,
1669,
739,
6688,
36913,
63537,
1592,
7,
20,
20,
340,
42400,
1669,
3056,
3782,
4921,
47659,
3462,
23,
24,
3462,
23,
23,
3462,
23,
23,
1138,
743,
753,
9651,
12808,
29721,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAccCirconusCheckStatsd_basic(t *testing.T) {
checkName := fmt.Sprintf("statsd test check - %s", acctest.RandString(5))
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDestroyCirconusCheckBundle,
Steps: []resou... | explode_data.jsonl/21351 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 756
} | [
2830,
3393,
14603,
34,
88276,
355,
3973,
16635,
67,
34729,
1155,
353,
8840,
836,
8,
341,
25157,
675,
1669,
8879,
17305,
445,
16260,
67,
1273,
1779,
481,
1018,
82,
497,
1613,
67880,
2013,
437,
703,
7,
20,
4390,
50346,
8787,
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 TestReconciler_StopOldCanaries(t *testing.T) {
job := mock.Job()
job.TaskGroups[0].Update = canaryUpdate
// Create an old deployment that has placed some canaries
d := structs.NewDeployment(job)
s := &structs.DeploymentState{
Promoted: false,
DesiredTotal: 10,
DesiredCanaries: 2,
PlacedAllo... | explode_data.jsonl/67260 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 922
} | [
2830,
3393,
693,
40446,
5769,
80308,
18284,
6713,
5431,
1155,
353,
8840,
836,
8,
341,
68577,
1669,
7860,
45293,
741,
68577,
28258,
22173,
58,
15,
936,
4289,
284,
646,
658,
4289,
271,
197,
322,
4230,
458,
2310,
23172,
429,
702,
9099,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestChangesetCountsOverTime(t *testing.T) {
if testing.Short() {
t.Skip()
}
ctx := backend.WithAuthzBypass(context.Background())
dbtesting.SetupGlobalTestDB(t)
rcache.SetupForTest(t)
cf, save := httptestutil.NewGitHubRecorderFactory(t, *update, "test-changeset-counts-over-time")
defer save()
userID :=... | explode_data.jsonl/27596 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1612
} | [
2830,
3393,
11317,
295,
63731,
1918,
1462,
1155,
353,
8840,
836,
8,
341,
743,
7497,
55958,
368,
341,
197,
3244,
57776,
741,
197,
630,
20985,
1669,
19163,
26124,
5087,
89,
33,
49911,
5378,
19047,
2398,
20939,
8840,
39820,
11646,
2271,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTemplateTimeoutDuration(t *testing.T) {
t.Run("Step Template Deadline", func(t *testing.T) {
wf := unmarshalWF(stepTimeoutWf)
cancel, controller := newController(wf)
defer cancel()
ctx := context.Background()
woc := newWorkflowOperationCtx(wf, controller)
woc.operate(ctx)
assert.Equal(t, wfv1.W... | explode_data.jsonl/71029 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 974
} | [
2830,
3393,
7275,
7636,
12945,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
8304,
14355,
61956,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
6692,
69,
1669,
650,
27121,
32131,
38436,
7636,
54,
69,
340,
197,
84441,
11,
6461,
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 TestUnitPostQueryHelperUsesToken(t *testing.T) {
accessor := getSimpleTokenAccessor()
token := "token123"
accessor.SetTokens(token, "", 0)
var err error
postQueryTest := func(_ context.Context, _ *snowflakeRestful, _ *url.Values, headers map[string]string, _ []byte, _ time.Duration, _ uuid.UUID, _ *Config) (... | explode_data.jsonl/44744 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 408
} | [
2830,
3393,
4562,
4133,
2859,
5511,
68965,
3323,
1155,
353,
8840,
836,
8,
341,
197,
5211,
269,
1669,
633,
16374,
3323,
29889,
741,
43947,
1669,
330,
5839,
16,
17,
18,
698,
197,
5211,
269,
4202,
29300,
13274,
11,
7342,
220,
15,
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... | 2 |
func TestQueryContextWait(t *testing.T) {
db := newTestDB(t, "people")
defer closeDB(t, db)
prepares0 := numPrepares(t, db)
// TODO(kardianos): convert this from using a timeout to using an explicit
// cancel when the query signals that it is "executing" the query.
ctx, cancel := context.WithTimeout(context.Back... | explode_data.jsonl/15952 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 366
} | [
2830,
3393,
2859,
1972,
14190,
1155,
353,
8840,
836,
8,
341,
20939,
1669,
501,
2271,
3506,
1155,
11,
330,
16069,
1138,
16867,
3265,
3506,
1155,
11,
2927,
340,
40346,
79,
5403,
15,
1669,
1629,
4703,
79,
5403,
1155,
11,
2927,
692,
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 TestRestoreSubscriptionMissingID(t *testing.T) {
assert := assert.New(t)
m := &mockSubMgr{err: fmt.Errorf("nope")}
testInfo := testSubInfo("")
testInfo.ID = ""
_, err := restoreSubscription(m.stream, nil, testInfo)
assert.EqualError(err, "No ID")
} | explode_data.jsonl/10786 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 101
} | [
2830,
3393,
56284,
33402,
25080,
915,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
340,
2109,
1669,
609,
16712,
3136,
25567,
90,
615,
25,
8879,
13080,
445,
2152,
375,
42132,
18185,
1731,
1669,
1273,
3136,
1731,
31764,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPairSearch(t *testing.T) {
// Limit runtime in case of deadlocks
lim := test.TimeOut(time.Second * 10)
defer lim.Stop()
var config AgentConfig
a, err := NewAgent(&config)
if err != nil {
t.Fatalf("Error constructing ice.Agent")
}
if len(a.checklist) != 0 {
t.Fatalf("TestPairSearch is only a vali... | explode_data.jsonl/50560 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 184
} | [
2830,
3393,
12443,
5890,
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,
16,
15,
340,
16867,
4568,
30213,
2822,
2405,
2193,
20713,
2648,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDriver_DecodeCoinID(t *testing.T) {
tests := []struct {
name string
coinID []byte
want string
wantErr bool
}{
{
"ok",
[]byte{
0x16, 0x8f, 0x34, 0x3a, 0xdf, 0x17, 0xe0, 0xc3,
0xa2, 0xe8, 0x88, 0x79, 0x8, 0x87, 0x17, 0xb8,
0xac, 0x93, 0x47, 0xb9, 0x66, 0xd, 0xa7, 0x4b,
0x... | explode_data.jsonl/71978 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 724
} | [
2830,
3393,
11349,
78668,
534,
41180,
915,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
262,
914,
198,
197,
197,
7160,
915,
220,
3056,
3782,
198,
197,
50780,
262,
914,
198,
197,
50780,
7747,
1807,
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... | 3 |
func TestNew(t *testing.T) {
lgr, err := newLogger()
if err != nil {
t.Fatal(err)
}
if err = lgr.Critical("test: %d", 99); err != nil {
t.Fatal(err)
}
if err = lgr.Close(); err != nil {
t.Fatal(err)
}
} | explode_data.jsonl/38614 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 105
} | [
2830,
3393,
3564,
1155,
353,
8840,
836,
8,
341,
8810,
901,
11,
1848,
1669,
501,
7395,
741,
743,
1848,
961,
2092,
341,
197,
3244,
26133,
3964,
340,
197,
532,
743,
1848,
284,
326,
901,
727,
14509,
445,
1944,
25,
1018,
67,
497,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestORCondition(t *testing.T) {
logp.TestingSetup()
configs := []ConditionConfig{
{
OR: []ConditionConfig{
{
Range: &ConditionFields{fields: map[string]interface{}{
"http.code.gte": 400,
"http.code.lt": 500,
}},
},
{
Range: &ConditionFields{fields: map[string]interfa... | explode_data.jsonl/21717 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 672
} | [
2830,
3393,
868,
10547,
1155,
353,
8840,
836,
8,
341,
6725,
79,
8787,
287,
21821,
2822,
25873,
82,
1669,
3056,
10547,
2648,
515,
197,
197,
515,
298,
197,
868,
25,
3056,
10547,
2648,
515,
571,
197,
515,
464,
197,
6046,
25,
609,
10547... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMultiRootDagTree(t *testing.T) {
t.Run("GetNameAndDependents", func(t *testing.T) {
treeNode1 := tree.NewTreeNode(models.JobSpec{
Name: "job1",
})
treeNode2 := tree.NewTreeNode(models.JobSpec{
Name: "job2",
})
multiRootTree := tree.NewMultiRootTree()
treeNode1.AddDependent(treeNode2)
treeN... | explode_data.jsonl/6310 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 831
} | [
2830,
3393,
20358,
8439,
35,
351,
6533,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
49403,
3036,
7839,
408,
805,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
3244,
31583,
16,
1669,
4916,
7121,
26597,
20289,
45293,
8327,
515,
298,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestFindIssuesProjectIDErr(t *testing.T) {
cucm, iucm, lucm, pucm, m := prepareMocksAndRUC()
c, _ := prepareHTTP(echo.GET, "/api/issues/find?title=test&projectId=test&labels=test1,test2", nil)
err := m.FindIssues(c)
assert.NotNil(t, err)
assert.Equal(t, fmt.Errorf("strconv.Atoi: parsing \"%s\": invalid syn... | explode_data.jsonl/60171 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 170
} | [
2830,
3393,
9885,
85828,
7849,
915,
7747,
1155,
353,
8840,
836,
8,
341,
1444,
1754,
76,
11,
600,
1754,
76,
11,
25927,
76,
11,
281,
1754,
76,
11,
296,
1669,
10549,
72577,
3036,
49,
5459,
2822,
1444,
11,
716,
1669,
10549,
9230,
2026,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTestJobs(t *testing.T) {
testedConfigurations := make(map[string]struct{})
repos := map[string]struct{}{}
for _, test := range tests {
t.Run(test.path, func(t *testing.T) {
opts := []jobsuite.Option{
jobsuite.Test(test.path, test.image),
jobsuite.KymaRepo(),
jobsuite.AllReleases(),
}
... | explode_data.jsonl/51386 | {
"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,
2271,
40667,
1155,
353,
8840,
836,
8,
341,
18185,
291,
2648,
21449,
1669,
1281,
9147,
14032,
60,
1235,
37790,
17200,
966,
1669,
2415,
14032,
60,
1235,
6257,
16094,
2023,
8358,
1273,
1669,
2088,
7032,
341,
197,
3244,
16708,
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... | 3 |
func TestMalformedBarExceptionCode(t *testing.T) {
var counter int = 0
gateway, err := testGateway.CreateGateway(t, nil, &testGateway.Options{
KnownHTTPBackends: []string{"bar"},
TestBinary: util.DefaultMainFile("example-gateway"),
ConfigFiles: util.DefaultConfigFiles("example-gateway"),
})
if !... | explode_data.jsonl/3149 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 411
} | [
2830,
3393,
29600,
10155,
3428,
1354,
2078,
1155,
353,
8840,
836,
8,
341,
2405,
5546,
526,
284,
220,
15,
271,
3174,
12043,
11,
1848,
1669,
1273,
40709,
7251,
40709,
1155,
11,
2092,
11,
609,
1944,
40709,
22179,
515,
197,
39340,
4169,
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... | 2 |
func TestInsertNode(t *testing.T) {
dir := testutils.InitTestEnv(ModuleName, t)
tbl := makeTable(t, dir, 2, common.K*6)
defer tbl.store.driver.Close()
tbl.GetSchema().PrimaryKey = 1
bat := compute.MockBatch(tbl.GetSchema().Types(), common.K, int(tbl.GetSchema().PrimaryKey), nil)
p, _ := ants.NewPool(5)
var wg s... | explode_data.jsonl/14638 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 681
} | [
2830,
3393,
13780,
1955,
1155,
353,
8840,
836,
8,
341,
48532,
1669,
1273,
6031,
26849,
2271,
14359,
75295,
675,
11,
259,
340,
3244,
2024,
1669,
1281,
2556,
1155,
11,
5419,
11,
220,
17,
11,
4185,
11352,
9,
21,
340,
16867,
21173,
16114,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestReverseScanWithSplitAndMerge(t *testing.T) {
defer leaktest.AfterTest(t)()
s, _ := startNoSplitMergeServer(t)
defer s.Stopper().Stop(context.TODO())
db := initReverseScanTestEnv(s, t)
// Case 1: An encounter with a range split.
// Split the range ["b", "e") at "c".
if err := db.AdminSplit(context.TODO(... | explode_data.jsonl/36466 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 422
} | [
2830,
3393,
45695,
26570,
2354,
20193,
3036,
52096,
1155,
353,
8840,
836,
8,
341,
16867,
23352,
1944,
36892,
2271,
1155,
8,
741,
1903,
11,
716,
1669,
1191,
2753,
20193,
52096,
5475,
1155,
340,
16867,
274,
7758,
18487,
1005,
10674,
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... | 7 |
func TestV1SetKeyWithTTL(t *testing.T) {
tests.RunServer(func(s *server.Server) {
t0 := time.Now()
v := url.Values{}
v.Set("value", "XXX")
v.Set("ttl", "20")
resp, _ := tests.PutForm(fmt.Sprintf("%s%s", s.URL(), "/v1/keys/foo/bar"), v)
assert.Equal(t, resp.StatusCode, http.StatusOK)
body := tests.ReadBod... | explode_data.jsonl/24835 | {
"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,
53,
16,
1649,
1592,
2354,
51,
13470,
1155,
353,
8840,
836,
8,
341,
78216,
16708,
5475,
18552,
1141,
353,
4030,
22997,
8,
341,
197,
3244,
15,
1669,
882,
13244,
741,
197,
5195,
1669,
2515,
35145,
16094,
197,
5195,
4202,
445,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestAddOrphanedIgnore(t *testing.T) {
fixture.EnsureCleanState(t)
projectName := "proj-" + strconv.FormatInt(time.Now().Unix(), 10)
_, err := fixture.AppClientset.ArgoprojV1alpha1().AppProjects(fixture.ArgoCDNamespace).Create(
context.Background(), &v1alpha1.AppProject{ObjectMeta: metav1.ObjectMeta{Name: pro... | explode_data.jsonl/58446 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 549
} | [
2830,
3393,
2212,
2195,
9943,
291,
12497,
1155,
353,
8840,
836,
8,
341,
1166,
12735,
22834,
19098,
27529,
1397,
1155,
692,
72470,
675,
1669,
330,
30386,
27651,
488,
33317,
9978,
1072,
9730,
13244,
1005,
55832,
1507,
220,
16,
15,
340,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestKeeperDB_EligibleUpkeeps_KeepersCycleAllUpkeeps(t *testing.T) {
t.Parallel()
store, orm, cleanup := setupKeeperDB(t)
defer cleanup()
db := store.DB
ethKeyStore := cltest.NewKeyStore(t, store.DB).Eth()
registry, _ := cltest.MustInsertKeeperRegistry(t, store, ethKeyStore)
registry.NumKeepers = 5
registr... | explode_data.jsonl/27012 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 539
} | [
2830,
3393,
77233,
3506,
2089,
7708,
1238,
2324,
440,
7124,
62,
19434,
388,
44820,
2403,
2324,
440,
7124,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
57279,
11,
67602,
11,
21290,
1669,
6505,
77233,
3506,
1155,
340,
16867,
2129... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInterpolateMSHDiverging(t *testing.T) {
type test struct {
start, end msh
convergeM, scalar, convergePoint float64
result msh
}
tests := []test{
{
start: msh{M: 80, S: 1.08, H: -1.1},
end: msh{M: 80, S: 1.08, H: 0.5},
converg... | explode_data.jsonl/422 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1230
} | [
2830,
3393,
3306,
45429,
4826,
19147,
1524,
3173,
1155,
353,
8840,
836,
8,
341,
13158,
1273,
2036,
341,
197,
21375,
11,
835,
5180,
296,
927,
198,
197,
37203,
423,
709,
44,
11,
17274,
11,
79767,
2609,
2224,
21,
19,
198,
197,
9559,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_printReport(t *testing.T) {
type args struct {
report Report
reportType string
reportFilePath string
}
tests := []struct {
name string
args args
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
})
}
} | explode_data.jsonl/49960 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 126
} | [
2830,
3393,
10064,
10361,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
69931,
260,
8259,
198,
197,
69931,
929,
257,
914,
198,
197,
69931,
19090,
914,
198,
197,
532,
78216,
1669,
3056,
1235,
341,
197,
11609,
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 |
func TestMultipleCompositeLiteralReturnStatement(t *testing.T) {
p := createParser(`return assetType{name:"OrderBookgo", age:"Five"}, OrderBook{name:"Katter"}`)
bvmUtils.Assert(t, isReturnStatement(p), "should detect return statement")
parseReturnStatement(p)
u := p.scope.Next()
bvmUtils.AssertNow(t, u.Type() == ... | explode_data.jsonl/49737 | {
"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,
32089,
41685,
17350,
5598,
8636,
1155,
353,
8840,
836,
8,
341,
3223,
1669,
1855,
6570,
5809,
689,
9329,
929,
47006,
2974,
4431,
7134,
3346,
497,
4231,
2974,
37020,
14345,
7217,
7134,
47006,
2974,
42,
1650,
1,
27085,
2233,
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 TestEndpointMalformed(t *testing.T) {
_, buildErr := Builder(openrtb_ext.BidderAMX, config.Adapter{
Endpoint: " http://leading.space.is.invalid"})
assert.Error(t, buildErr)
} | explode_data.jsonl/7170 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 73
} | [
2830,
3393,
27380,
29600,
10155,
1155,
353,
8840,
836,
8,
341,
197,
6878,
1936,
7747,
1669,
20626,
30981,
3342,
65,
9927,
1785,
307,
1107,
1402,
55,
11,
2193,
34190,
515,
197,
197,
27380,
25,
330,
1758,
1110,
20654,
35883,
2079,
55721,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestValidCycloneDX(t *testing.T) {
imageFixture := func(t *testing.T) string {
fixtureImageName := "image-pkg-coverage"
imagetest.GetFixtureImage(t, "docker-archive", fixtureImageName)
tarPath := imagetest.GetFixtureImageTarPath(t, fixtureImageName)
return "docker-archive:" + tarPath
}
// TODO update i... | explode_data.jsonl/6194 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 586
} | [
2830,
3393,
4088,
34,
6179,
603,
16591,
1155,
353,
8840,
836,
8,
341,
31426,
18930,
1669,
2915,
1155,
353,
8840,
836,
8,
914,
341,
197,
1166,
12735,
1906,
675,
1669,
330,
1805,
2268,
7351,
12,
54250,
698,
197,
197,
28016,
57824,
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 TestContentTypeCreateWithID(t *testing.T) {
var err error
assert := assert.New(t)
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
assert.Equal(r.Method, "PUT")
assert.Equal(r.RequestURI, "/spaces/id1/content_types/mycontenttype")
checkHeaders(r, assert)
w.WriteHeader(200)
... | explode_data.jsonl/66082 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 283
} | [
2830,
3393,
29504,
4021,
2354,
915,
1155,
353,
8840,
836,
8,
341,
2405,
1848,
1465,
198,
6948,
1669,
2060,
7121,
1155,
692,
53326,
1669,
1758,
89164,
18552,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
6948,
12808,
2601,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSortedGetter(t *testing.T) {
firstTime := timeutils.GetKeptnTimeStamp(t0.Add(-time.Second * 2))
secondTime := timeutils.GetKeptnTimeStamp(t0.Add(-time.Second))
thirdTime := timeutils.GetKeptnTimeStamp(t0)
events := []*models.KeptnContextExtendedCE{
{Time: t0.Add(-time.Second)},
{Time: t0},
{Time: t... | explode_data.jsonl/75647 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 270
} | [
2830,
3393,
51051,
31485,
1155,
353,
8840,
836,
8,
1476,
42190,
1462,
1669,
882,
6031,
2234,
6608,
417,
77,
66146,
1155,
15,
1904,
4080,
1678,
32435,
353,
220,
17,
1171,
197,
5569,
1462,
1669,
882,
6031,
2234,
6608,
417,
77,
66146,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestNewDifferentImageUpdate(t *testing.T) {
// this buildconfig references a different image than the one that will be updated
buildcfg := mockBuildConfig("registry.com/namespace/imagename1", "registry.com/namespace/imagename1", "testImageRepo1", "testTag1")
imageStream := mockImageStream("testImageRepo2", "reg... | explode_data.jsonl/69173 | {
"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,
3564,
69123,
1906,
4289,
1155,
353,
8840,
836,
8,
341,
197,
322,
419,
1936,
1676,
15057,
264,
2155,
2168,
1091,
279,
825,
429,
686,
387,
6049,
198,
69371,
14072,
1669,
7860,
11066,
2648,
445,
29172,
905,
14,
2231,
14,
2801... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_Section(t *testing.T) {
Convey("Test CRD sections", t, func() {
cfg, err := Load([]byte(_CONF_DATA), "testdata/conf.cfg")
So(err, ShouldBeNil)
So(cfg, ShouldNotBeNil)
Convey("Get section strings", func() {
So(strings.Join(cfg.SectionStrings(), ","), ShouldEqual, "DEFAULT")
})
Convey("Delete ... | explode_data.jsonl/55808 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 267
} | [
2830,
3393,
1098,
11915,
1155,
353,
8840,
836,
8,
341,
93070,
5617,
445,
2271,
12617,
35,
14158,
497,
259,
11,
2915,
368,
341,
197,
50286,
11,
1848,
1669,
8893,
10556,
3782,
2490,
38634,
7896,
701,
330,
92425,
59241,
30481,
1138,
197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestMsgCreateClass(t *testing.T) {
_, _, addr1 := testdata.KeyTestPubAddr()
_, _, addr2 := testdata.KeyTestPubAddr()
tests := map[string]struct {
src MsgCreateClass
expErr bool
}{
"valid msg": {
src: MsgCreateClass{
Admin: addr1.String(),
Issuers: []string{addr1.String(), ad... | explode_data.jsonl/65126 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 933
} | [
2830,
3393,
6611,
4021,
1957,
1155,
353,
8840,
836,
8,
341,
197,
6878,
8358,
10789,
16,
1669,
1273,
691,
9610,
2271,
29162,
13986,
741,
197,
6878,
8358,
10789,
17,
1669,
1273,
691,
9610,
2271,
29162,
13986,
741,
78216,
1669,
2415,
14032... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStartProcessStop(t *testing.T) {
c := BackendConfig{
"save_process": "HeadersParser|Debugger",
"log_received_mails": true,
"save_workers_size": 2,
}
gateway := &BackendGateway{}
err := gateway.Initialize(c)
mainlog, _ := log.GetLogger(log.OutputOff.String(), "debug")
Svc.SetMainlog(mainlog... | explode_data.jsonl/79604 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 611
} | [
2830,
3393,
3479,
7423,
10674,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
55260,
2648,
515,
197,
197,
1,
6628,
11305,
788,
981,
330,
10574,
6570,
91,
67239,
756,
197,
197,
47012,
40783,
717,
6209,
788,
830,
345,
197,
197,
1,
6628,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 9 |
func TestNoTwopc(t *testing.T) {
txe, tsv, db := newNoTwopcExecutor(t)
defer db.Close()
defer tsv.StopService()
testcases := []struct {
desc string
fun func() error
}{{
desc: "Prepare",
fun: func() error { return txe.Prepare(1, "aa") },
}, {
desc: "CommitPrepared",
fun: func() error { return txe.C... | explode_data.jsonl/25178 | {
"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,
2753,
22816,
67858,
1155,
353,
8840,
836,
8,
341,
3244,
8371,
11,
259,
3492,
11,
2927,
1669,
501,
2753,
22816,
67858,
25255,
1155,
340,
16867,
2927,
10421,
741,
16867,
259,
3492,
30213,
1860,
2822,
18185,
23910,
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 TestAccTest_update_test(t *testing.T) {
teamId := os.Getenv("RUNSCOPE_TEAM_ID")
bucketName := testAccRandomBucketName()
test1 := &runscope.Test{}
test2 := &runscope.Test{}
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
ProviderFactories: testAccProviderFactories,
C... | explode_data.jsonl/52177 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 842
} | [
2830,
3393,
14603,
2271,
8882,
4452,
1155,
353,
8840,
836,
8,
341,
197,
9196,
764,
1669,
2643,
64883,
445,
47390,
76365,
1740,
71198,
3450,
1138,
2233,
11152,
675,
1669,
1273,
14603,
13999,
36018,
675,
741,
18185,
16,
1669,
609,
6108,
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 TestServiceOptions(t *testing.T) {
t.Parallel()
test := NewE2eTest(t)
test.Setup(t)
defer test.Teardown(t)
t.Run("create and validate service with concurrency options", func(t *testing.T) {
test.serviceCreateWithOptions(t, "svc1", []string{"--concurrency-limit", "250", "--concurrency-target", "300"})
tes... | explode_data.jsonl/20856 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 881
} | [
2830,
3393,
1860,
3798,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
18185,
1669,
1532,
36,
17,
68,
2271,
1155,
340,
18185,
39820,
1155,
340,
16867,
1273,
94849,
37496,
1155,
692,
3244,
16708,
445,
3182,
323,
9593,
2473,
448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestApiTest_Intercept(t *testing.T) {
handler := http.NewServeMux()
handler.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) {
if r.URL.RawQuery != "a[]=xxx&a[]=yyy" {
w.WriteHeader(http.StatusOK)
return
}
if r.Header.Get("Auth-Token") != "12345" {
w.WriteHeader(http.StatusOK)
... | explode_data.jsonl/54814 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 294
} | [
2830,
3393,
6563,
2271,
79717,
1484,
1155,
353,
8840,
836,
8,
341,
53326,
1669,
1758,
7121,
60421,
44,
2200,
741,
53326,
63623,
4283,
14990,
497,
2915,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
743,
435,
20893,
50575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTest(t *testing.T) {
RegisterFailHandler(Fail)
rr := []Reporter{}
if ginkgo_reporters.Polarion.Run {
rr = append(rr, &ginkgo_reporters.Polarion)
}
if *junitPath != "" {
junitFile := path.Join(*junitPath, "setup_junit.xml")
rr = append(rr, reporters.NewJUnitReporter(junitFile))
}
if *reportPath !... | explode_data.jsonl/52116 | {
"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,
2271,
1155,
353,
8840,
836,
8,
341,
79096,
19524,
3050,
7832,
604,
692,
197,
634,
1669,
3056,
52766,
16094,
743,
342,
766,
3346,
14813,
388,
1069,
7417,
290,
16708,
341,
197,
197,
634,
284,
8737,
80818,
11,
609,
70,
766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDriver(t *testing.T) {
if v := drv.String(); v != "rpi" {
t.Fatal(v)
}
if v := drv.Prerequisites(); v != nil {
t.Fatal(v)
}
if v := drv.After(); reflect.DeepEqual(v, []string{"bcm2835-gpio"}) {
t.Fatal(v)
}
} | explode_data.jsonl/11568 | {
"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,
11349,
1155,
353,
8840,
836,
8,
341,
743,
348,
1669,
68770,
6431,
2129,
348,
961,
330,
81,
2493,
1,
341,
197,
3244,
26133,
3747,
340,
197,
532,
743,
348,
1669,
68770,
17947,
82301,
2129,
348,
961,
2092,
341,
197,
3244,
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... | 4 |
func TestCoinin(t *testing.T) {
client := v1.New(&v1.Config{
Key: os.Getenv("BFKEY"),
Secret: os.Getenv("BFSECRET"),
})
coin, err := client.Coinin(coins.NewForIn().SetPagination(10, 0, 0))
assert.NoError(t, err)
for i, v := range *coin {
fmt.Printf("%d: %+v\n", i, v)
}
} | explode_data.jsonl/41204 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 138
} | [
2830,
3393,
41180,
258,
1155,
353,
8840,
836,
8,
341,
25291,
1669,
348,
16,
7121,
2099,
85,
16,
10753,
515,
197,
55242,
25,
262,
2643,
64883,
445,
19883,
4784,
4461,
197,
7568,
50856,
25,
2643,
64883,
445,
19883,
65310,
4461,
197,
351... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPageWithSummaryParameter(t *testing.T) {
t.Parallel()
assertFunc := func(t *testing.T, ext string, pages page.Pages) {
p := pages[0]
checkPageTitle(t, p, "SimpleWithSummaryParameter")
checkPageContent(t, p, normalizeExpected(ext, "<p>Some text.</p>\n\n<p>Some more text.</p>\n"), ext)
// Summary is no... | explode_data.jsonl/60610 | {
"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,
2665,
2354,
19237,
4971,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
6948,
9626,
1669,
2915,
1155,
353,
8840,
836,
11,
1303,
914,
11,
6816,
2150,
68829,
8,
341,
197,
3223,
1669,
6816,
58,
15,
921,
197,
25157,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestFindFitAllError(t *testing.T) {
nodes := makeNodeList([]string{"3", "2", "1"})
scheduler := makeScheduler(
nodes,
st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New),
st.RegisterFilterPlugin("TrueFilter", NewTrueFilterPlugin),
st.RegisterFilterPlugin("MatchFilter", NewMatchFilterPlugin),
st.R... | explode_data.jsonl/2390 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 396
} | [
2830,
3393,
9885,
23346,
2403,
1454,
1155,
353,
8840,
836,
8,
341,
79756,
1669,
1281,
1955,
852,
10556,
917,
4913,
18,
497,
330,
17,
497,
330,
16,
23625,
1903,
15222,
1669,
1281,
38878,
1006,
197,
79756,
345,
197,
18388,
19983,
7554,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestApp(t *testing.T) {
container, err := gnomock.Start(
kafka.Preset(kafka.WithTopics("events")),
gnomock.WithDebugMode(), gnomock.WithLogWriter(os.Stdout),
gnomock.WithContainerName("kafka"),
)
require.NoError(t, err)
defer func() {
require.NoError(t, gnomock.Stop(container))
}()
ctx, cancel := c... | explode_data.jsonl/70585 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 567
} | [
2830,
3393,
2164,
1155,
353,
8840,
836,
8,
341,
53290,
11,
1848,
1669,
342,
16687,
1176,
12101,
1006,
197,
16463,
21883,
1069,
9716,
5969,
21883,
26124,
45003,
445,
12389,
30154,
197,
3174,
16687,
1176,
26124,
7939,
3636,
1507,
342,
16687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestHighLevelEncoder_isDigit(t *testing.T) {
if HighLevelEncoder_isDigit('/') != false {
t.Fatalf("isDigit('/') must false")
}
if HighLevelEncoder_isDigit('0') != true {
t.Fatalf("isDigit('0') must true")
}
if HighLevelEncoder_isDigit('9') != true {
t.Fatalf("isDigit('9') must true")
}
if HighLevelEnc... | explode_data.jsonl/32224 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 168
} | [
2830,
3393,
11976,
4449,
19921,
6892,
36420,
1155,
353,
8840,
836,
8,
341,
743,
5124,
4449,
19921,
6892,
36420,
47729,
961,
895,
341,
197,
3244,
30762,
445,
285,
36420,
47729,
1969,
895,
1138,
197,
532,
743,
5124,
4449,
19921,
6892,
364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCompileSourceOfInvalidSyntax(t *testing.T) {
f, err := ioutil.TempFile("", "")
assert.Nil(t, err)
f.WriteString(`(print "Hello, world!"`)
err = f.Close()
assert.Nil(t, err)
_, err = Compile(f.Name())
assert.NotNil(t, err)
} | explode_data.jsonl/24272 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 107
} | [
2830,
3393,
46126,
3608,
2124,
7928,
33890,
1155,
353,
8840,
836,
8,
341,
1166,
11,
1848,
1669,
43144,
65009,
1703,
19814,
14676,
6948,
59678,
1155,
11,
1848,
692,
1166,
44747,
5809,
7,
1350,
330,
9707,
11,
1879,
8958,
63,
692,
9859,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRemittanceOriginatorBuildingNumberAlphaNumeric(t *testing.T) {
ro := mockRemittanceOriginator()
ro.RemittanceData.BuildingNumber = "®"
err := ro.Validate()
require.EqualError(t, err, fieldError("BuildingNumber", ErrNonAlphanumeric, ro.RemittanceData.BuildingNumber).Error())
} | explode_data.jsonl/32927 | {
"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,
6590,
87191,
13298,
850,
30133,
2833,
19384,
36296,
1155,
353,
8840,
836,
8,
341,
197,
299,
1669,
7860,
6590,
87191,
13298,
850,
741,
197,
299,
11398,
87191,
1043,
25212,
287,
2833,
284,
330,
11909,
1837,
9859,
1669,
926,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLateInitialize(t *testing.T) {
type args struct {
spec *v1beta1.QueueParameters
in map[string]string
tags map[string]string
}
cases := map[string]struct {
args args
want *v1beta1.QueueParameters
}{
"AllFilledNoDiff": {
args: args{
spec: sqsParams(),
in: attributes(),
},
wan... | explode_data.jsonl/82680 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 595
} | [
2830,
3393,
61457,
9928,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
98100,
353,
85,
16,
19127,
16,
50251,
9706,
198,
197,
17430,
256,
2415,
14032,
30953,
198,
197,
3244,
2032,
2415,
14032,
30953,
198,
197,
532,
1444,
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 TestFiles(t *testing.T) {
var sources = []string{
"package p; type T struct{}; func (T) m1() {}",
"package p; func (T) m2() {}; var x interface{ m1(); m2() } = T{}",
"package p; func (T) m3() {}; var y interface{ m1(); m2(); m3() } = T{}",
"package p",
}
var conf Config
fset := token.NewFileSet()
pkg... | explode_data.jsonl/55545 | {
"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,
10809,
1155,
353,
8840,
836,
8,
341,
2405,
8173,
284,
3056,
917,
515,
197,
197,
1,
1722,
281,
26,
943,
350,
2036,
6257,
26,
2915,
320,
51,
8,
296,
16,
368,
4687,
756,
197,
197,
1,
1722,
281,
26,
2915,
320,
51,
8,
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... | 7 |
func TestTickMultipleExpiredDepositPeriod(t *testing.T) {
app := simapp.Setup(false)
ctx := app.BaseApp.NewContext(false, abci.Header{})
addrs := simapp.AddTestAddrs(app, ctx, 10, valTokens)
header := abci.Header{Height: app.LastBlockHeight() + 1}
app.BeginBlock(abci.RequestBeginBlock{Header: header})
govHandle... | explode_data.jsonl/51028 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 959
} | [
2830,
3393,
22213,
32089,
54349,
78982,
23750,
1155,
353,
8840,
836,
8,
341,
28236,
1669,
1643,
676,
39820,
3576,
340,
20985,
1669,
906,
13018,
2164,
7121,
1972,
3576,
11,
668,
5855,
15753,
37790,
12718,
5428,
1669,
1643,
676,
1904,
2271,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInvalidFlagDefaultCanBeOverridden(t *testing.T) {
app := New("test", "")
app.Flag("a", "").Default("invalid").Bool()
_, err := app.Parse([]string{})
assert.Error(t, err)
} | explode_data.jsonl/74860 | {
"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,
7928,
12135,
3675,
69585,
1918,
42185,
1155,
353,
8840,
836,
8,
341,
28236,
1669,
1532,
445,
1944,
497,
14676,
28236,
80911,
445,
64,
497,
35229,
3675,
445,
11808,
1827,
11233,
741,
197,
6878,
1848,
1669,
906,
8937,
10556,
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 |
func TestVolumeTypesList(t *testing.T) {
client, err := clients.NewBlockStorageV1Client()
if err != nil {
t.Fatalf("Unable to create a blockstorage client: %v", err)
}
allPages, err := volumetypes.List(client).AllPages()
if err != nil {
t.Fatalf("Unable to retrieve volume types: %v", err)
}
allVolumeTypes,... | explode_data.jsonl/32332 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 191
} | [
2830,
3393,
18902,
4173,
852,
1155,
353,
8840,
836,
8,
341,
25291,
11,
1848,
1669,
8239,
7121,
4713,
5793,
53,
16,
2959,
741,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
17075,
311,
1855,
264,
2504,
16172,
2943,
25,
1018,
85,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 5 |
func TestDeleteServiceConnections(t *testing.T) {
fcmd := exec.FakeCmd{
CombinedOutputScript: []exec.FakeCombinedOutputAction{
func() ([]byte, error) { return []byte("1 flow entries have been deleted"), nil },
func() ([]byte, error) { return []byte("1 flow entries have been deleted"), nil },
func() ([]byte,... | explode_data.jsonl/9289 | {
"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,
6435,
1860,
54751,
1155,
353,
8840,
836,
8,
341,
1166,
8710,
1669,
3883,
991,
726,
15613,
515,
197,
197,
94268,
5097,
5910,
25,
3056,
11748,
991,
726,
94268,
5097,
2512,
515,
298,
29244,
368,
34923,
3782,
11,
1465,
8,
314,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPaintClippedRect(t *testing.T) {
run(t, func(o *op.Ops) {
clip.RRect{Rect: f32.Rect(25, 25, 60, 60)}.Add(o)
paint.FillShape(o, colornames.Red, clip.Rect(image.Rect(0, 0, 50, 50)).Op())
}, func(r result) {
r.expect(0, 0, colornames.White)
r.expect(24, 35, colornames.White)
r.expect(25, 35, colorname... | explode_data.jsonl/18103 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 197
} | [
2830,
3393,
18098,
5066,
6450,
4415,
1155,
353,
8840,
836,
8,
341,
56742,
1155,
11,
2915,
10108,
353,
453,
8382,
1690,
8,
341,
197,
197,
7974,
2013,
4415,
90,
4415,
25,
282,
18,
17,
32153,
7,
17,
20,
11,
220,
17,
20,
11,
220,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestServerListenerClosed(t *testing.T) {
var (
ctx = context.Background()
server = mustServer(t)(NewServer())
_, listener = newTestListener(t)
errs = make(chan error, 1)
)
go func() {
errs <- server.Serve(ctx, listener)
}()
if err := listener.Close(); err != nil {
t.Fatal(err... | explode_data.jsonl/41077 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 169
} | [
2830,
3393,
5475,
2743,
26884,
1155,
353,
8840,
836,
8,
341,
2405,
2399,
197,
20985,
260,
284,
2266,
19047,
741,
197,
41057,
414,
284,
1969,
5475,
1155,
2376,
3564,
5475,
2398,
197,
197,
6878,
11446,
284,
501,
2271,
2743,
1155,
340,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestWriteMultipartDocument(t *testing.T) {
rt := NewRestTester(t, nil)
defer rt.Close()
reqHeaders := map[string]string{
"MIME-Version": "1.0",
"Content-Type": "multipart/related; boundary=0123456789"}
bodyText := `--0123456789
Content-Type: application/json
{"key":"foo","value":"bar"}
--0123456789--`
... | explode_data.jsonl/56944 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 239
} | [
2830,
3393,
7985,
44,
18204,
7524,
1155,
353,
8840,
836,
8,
341,
55060,
1669,
1532,
12416,
58699,
1155,
11,
2092,
340,
16867,
16677,
10421,
2822,
24395,
10574,
1669,
2415,
14032,
30953,
515,
197,
197,
73527,
5660,
83902,
788,
330,
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... | 1 |
func TestDeriveSecretsAndChallengeGolden(t *testing.T) {
goldenFilepath := filepath.Join("testdata", t.Name()+".golden")
if *update {
t.Logf("Updating golden test vector file %s", goldenFilepath)
data := createGoldenTestVectors(t)
cmn.WriteFile(goldenFilepath, []byte(data), 0644)
}
f, err := os.Open(goldenFil... | explode_data.jsonl/39913 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 497
} | [
2830,
3393,
22171,
533,
19773,
82,
3036,
62078,
59790,
1155,
353,
8840,
836,
8,
341,
3174,
813,
268,
1703,
2343,
1669,
26054,
22363,
445,
92425,
497,
259,
2967,
17140,
3263,
97235,
1138,
743,
353,
2386,
341,
197,
3244,
98954,
445,
46910... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetNodeIDFromNode(t *testing.T) {
tests := []struct {
name string
annotations map[string]string
expectedID string
expectError bool
}{
{
name: "single key",
annotations: map[string]string{"csi.volume.kubernetes.io/nodeid": "{\"foo/bar\": \"MyNodeID\"}"},
expectedID: "MyNodeI... | explode_data.jsonl/53369 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 750
} | [
2830,
3393,
1949,
1955,
915,
3830,
1955,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
286,
914,
198,
197,
197,
39626,
2415,
14032,
30953,
198,
197,
42400,
915,
220,
914,
198,
197,
24952,
1454,
1807,
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... | 8 |
func TestSuccessfulWearAndTakeOff(t *testing.T) {
ctrl := gomock.NewController(t)
char := character.New()
item := mock_character.NewMockItem(ctrl)
char.AddItem(item)
item.EXPECT().Wear(char).Times(1).Return(nil)
assert.NoError(t, char.WearOrTakeOff(0))
assert.Equal(t, item, char.Wearing())
item.EXPECT().Take... | explode_data.jsonl/20227 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 174
} | [
2830,
3393,
36374,
54,
682,
3036,
17814,
4596,
1155,
353,
8840,
836,
8,
341,
84381,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
7450,
1669,
3668,
7121,
2822,
22339,
1669,
7860,
40988,
7121,
11571,
1234,
62100,
340,
7450,
91402,
5393,
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 TestDownloadStats(t *testing.T) {
when := time.Date(2022, time.May, 21, 9, 4, 0, 0, time.UTC)
bs, err := json.Marshal(&DownloadStats{
SDNs: 1,
Errors: []error{
errors.New("bad thing"),
},
RefreshedAt: when,
})
require.NoError(t, err)
var wrapper struct {
SDNs int
Errors []string
Time... | explode_data.jsonl/29461 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 231
} | [
2830,
3393,
11377,
16635,
1155,
353,
8840,
836,
8,
341,
60180,
1669,
882,
8518,
7,
17,
15,
17,
17,
11,
882,
1321,
352,
11,
220,
17,
16,
11,
220,
24,
11,
220,
19,
11,
220,
15,
11,
220,
15,
11,
882,
87069,
340,
93801,
11,
1848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestChanAlloc(t *testing.T) {
// Note: for a chan int, the return Value must be allocated, so we
// use a chan *int instead.
c := ValueOf(make(chan *int, 1))
v := ValueOf(new(int))
allocs := testing.AllocsPerRun(100, func() {
c.Send(v)
_, _ = c.Recv()
})
if allocs < 0.5 || allocs > 1.5 {
t.Errorf("all... | explode_data.jsonl/29635 | {
"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,
46019,
25154,
1155,
353,
8840,
836,
8,
341,
197,
322,
7036,
25,
369,
264,
26023,
526,
11,
279,
470,
5162,
1969,
387,
20204,
11,
773,
582,
198,
197,
322,
990,
264,
26023,
353,
396,
4518,
624,
1444,
1669,
5162,
2124,
36944... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGeneratePredictStmt(t *testing.T) {
if test.GetEnv("SQLFLOW_TEST_DB", "mysql") == "hive" {
t.Skip(fmt.Sprintf("%s: skip Hive test", test.GetEnv("SQLFLOW_TEST_DB", "mysql")))
}
a := assert.New(t)
predSQL := `SELECT * FROM iris.test
TO PREDICT iris.predict.class
USING sqlflow_models.mymodel;`
r, e := par... | explode_data.jsonl/45949 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 513
} | [
2830,
3393,
31115,
53544,
31063,
1155,
353,
8840,
836,
8,
341,
743,
1273,
2234,
14359,
445,
6688,
46060,
11641,
16310,
497,
330,
12272,
899,
621,
330,
88568,
1,
341,
197,
3244,
57776,
28197,
17305,
4430,
82,
25,
10706,
68178,
1273,
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 TestSDKInitiatorCreate(t *testing.T) {
sdk, err := dsdk.NewSDK(nil, true)
if err != nil {
t.Error(err)
}
ctxt := sdk.NewContext()
ro := &dsdk.InitiatorsCreateRequest{
Ctxt: ctxt,
Id: fmt.Sprintf("iqn.1993-08.org.debian:01:%s", dsdk.RandString(12)),
Name: dsdk.RandString(12),
}
var init *dsdk.Initi... | explode_data.jsonl/19680 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 249
} | [
2830,
3393,
31534,
3803,
36122,
4021,
1155,
353,
8840,
836,
8,
341,
1903,
7584,
11,
1848,
1669,
11472,
7584,
7121,
31534,
27907,
11,
830,
340,
743,
1848,
961,
2092,
341,
197,
3244,
6141,
3964,
340,
197,
532,
197,
77492,
1669,
45402,
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... | 4 |
func TestOverrideReminder(t *testing.T) {
t.Run("override data", func(t *testing.T) {
testActorsRuntime := newTestActorsRuntime()
actorType, actorID := getTestActorTypeAndID()
reminder := createReminder(actorID, actorType, "reminder1", "1s", "1s", "a")
err := testActorsRuntime.CreateReminder(&reminder)
asser... | explode_data.jsonl/12878 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 664
} | [
2830,
3393,
2177,
95359,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
9199,
821,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
18185,
2414,
1087,
15123,
1669,
501,
2271,
2414,
1087,
15123,
741,
197,
93410,
929,
11,
12089,
915,
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 TestBroadcastInvokeFailed(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
invokers := make([]*mock.MockInvoker, 0)
mockResult := &protocol.RPCResult{Rest: clusterpkg.Rest{Tried: 0, Success: true}}
mockFailedResult := &protocol.RPCResult{Err: errors.New("just failed")}
for i := 0; i < 10... | explode_data.jsonl/80725 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 380
} | [
2830,
3393,
43362,
17604,
9408,
1155,
353,
8840,
836,
8,
341,
84381,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
16867,
23743,
991,
18176,
2822,
197,
14057,
40681,
1669,
1281,
85288,
16712,
24664,
47668,
11,
220,
15,
692,
77333,
2077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNewNode(t *testing.T) {
n := NewNode("graphite010-g5", "a")
if n.KeyValue() != "('graphite010-g5', 'a')" {
t.Error("NewNode() did not produce a tuple string format")
}
if NewNode("graphite011-g5", "").KeyValue() != "('graphite011-g5', None)" {
t.Error("NewNode() did not handle a None instance value")
... | explode_data.jsonl/51136 | {
"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,
3564,
1955,
1155,
353,
8840,
836,
8,
341,
9038,
1669,
1532,
1955,
445,
4439,
632,
15,
16,
15,
2371,
20,
497,
330,
64,
1138,
743,
308,
9610,
1130,
368,
961,
82368,
4439,
632,
15,
16,
15,
2371,
20,
516,
364,
64,
44307,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestProcessFeeUpdate(t *testing.T) {
const (
// height is a non-zero height that can be used for htlcs
// heights.
height = 200
// nextHeight is a constant that we use for the next height in
// all unit tests.
nextHeight = 400
// feePerKw is the fee we start all of our unit tests with.
feePerKw ... | explode_data.jsonl/72517 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2063
} | [
2830,
3393,
7423,
41941,
4289,
1155,
353,
8840,
836,
8,
341,
4777,
2399,
197,
197,
322,
2608,
374,
264,
2477,
36929,
2608,
429,
646,
387,
1483,
369,
305,
11544,
4837,
198,
197,
197,
322,
35294,
624,
197,
30500,
284,
220,
17,
15,
15,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestRunningCodeInContextAfterThrowingError(t *testing.T) {
t.Parallel()
ctx := NewIsolate().NewContext()
_, err := ctx.Eval(`
function fail(a,b) {
this.c = a+b;
throw "some failure";
}
function work(a,b) {
this.c = a+b+2;
}
x = new fail(3,5);`, "file1.js")
if err == nil {
t.Fatal("Expected... | explode_data.jsonl/81555 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 260
} | [
2830,
3393,
18990,
2078,
641,
1972,
6025,
23079,
287,
1454,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
20985,
1669,
1532,
3872,
33066,
1005,
3564,
1972,
741,
197,
6878,
1848,
1669,
5635,
5142,
831,
61528,
197,
7527,
3690,
287... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDurationIsFinishedFunc(t *testing.T) {
lastSyncDate, _ := time.Parse("2006-01-02", "2819-07-01")
generator := &DurationHttpRequestGenerator{
Duration: Day,
Offset: 0,
LastTime: lastSyncDate,
IgnoreWeekend: true,
ParametersFunc: getDurationHttpRequestParametersFunc(),
Duration... | explode_data.jsonl/25571 | {
"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,
12945,
3872,
24890,
9626,
1155,
353,
8840,
836,
8,
341,
33096,
12154,
1916,
11,
716,
1669,
882,
8937,
445,
17,
15,
15,
21,
12,
15,
16,
12,
15,
17,
497,
330,
17,
23,
16,
24,
12,
15,
22,
12,
15,
16,
1138,
3174,
15312... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 Test0001KCP(t *testing.T) {
c, err := NewConn("kcp")
if err != nil {
fmt.Println(err)
return
}
cc, err := c.Listen("127.0.0.1:58080")
if err != nil {
fmt.Println(err)
return
}
go func() {
_, err := cc.Accept()
if err != nil {
fmt.Println(err)
return
}
fmt.Println("accept done")
}()
... | explode_data.jsonl/19977 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 197
} | [
2830,
3393,
15,
15,
15,
16,
42,
7123,
1155,
353,
8840,
836,
8,
341,
1444,
11,
1848,
1669,
1532,
9701,
445,
74,
4672,
1138,
743,
1848,
961,
2092,
341,
197,
11009,
12419,
3964,
340,
197,
853,
198,
197,
630,
63517,
11,
1848,
1669,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSchedulerErrorWithLongBinding(t *testing.T) {
stop := make(chan struct{})
defer close(stop)
firstPod := podWithPort("foo", "", 8080)
conflictPod := podWithPort("bar", "", 8080)
pods := map[string]*v1.Pod{firstPod.Name: firstPod, conflictPod.Name: conflictPod}
for _, test := range []struct {
name ... | explode_data.jsonl/24712 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 902
} | [
2830,
3393,
38878,
1454,
2354,
6583,
15059,
1155,
353,
8840,
836,
8,
341,
62644,
1669,
1281,
35190,
2036,
37790,
16867,
3265,
60170,
692,
42190,
23527,
1669,
7509,
2354,
7084,
445,
7975,
497,
7342,
220,
23,
15,
23,
15,
340,
67850,
21242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTerragruntAfterHook(t *testing.T) {
t.Parallel()
cleanupTerraformFolder(t, TEST_FIXTURE_HOOKS_AFTER_ONLY_PATH)
tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_HOOKS_AFTER_ONLY_PATH)
rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_HOOKS_AFTER_ONLY_PATH)
runTerragrunt(t, fmt.Sprintf("terragrunt apply -au... | explode_data.jsonl/10066 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 202
} | [
2830,
3393,
51402,
68305,
3850,
6025,
31679,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
1444,
60639,
51,
13886,
627,
13682,
1155,
11,
13602,
42635,
41486,
82251,
50,
72339,
31263,
7944,
340,
20082,
14359,
1820,
1669,
2975,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestProtocol_HandleCreateStake(t *testing.T) {
require := require.New(t)
ctrl := gomock.NewController(t)
defer ctrl.Finish()
sm := newMockStateManager(ctrl)
_, err := sm.PutState(
&totalBucketCount{count: 0},
protocol.NamespaceOption(StakingNameSpace),
protocol.KeyOption(TotalBucketKey),
)
require.No... | explode_data.jsonl/64529 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1850
} | [
2830,
3393,
20689,
42714,
4021,
623,
726,
1155,
353,
8840,
836,
8,
341,
17957,
1669,
1373,
7121,
1155,
692,
84381,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
16867,
23743,
991,
18176,
741,
72023,
1669,
501,
11571,
83132,
62100,
340,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestAttachTagsToSpan(t *testing.T) {
o := &Options{Provider: "zipkin", Tags: map[string]string{"test": "test"}}
if o.AttachTagsToSpan() {
t.Error("expected false")
}
o.setAttachTags()
if !o.AttachTagsToSpan() {
t.Error("expected true")
}
} | explode_data.jsonl/63661 | {
"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,
30485,
15930,
1249,
12485,
1155,
353,
8840,
836,
8,
1476,
22229,
1669,
609,
3798,
90,
5179,
25,
330,
9964,
7989,
497,
27683,
25,
2415,
14032,
30953,
4913,
1944,
788,
330,
1944,
95642,
743,
297,
88284,
15930,
1249,
12485,
368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestAddTransceiver(t *testing.T) {
lim := test.TimeOut(time.Second * 30)
defer lim.Stop()
report := test.CheckRoutines(t)
defer report()
for _, testCase := range []struct {
expectSender, expectReceiver bool
direction RTPTransceiverDirection
}{
{true, true, RTPTransceiverDirectionSe... | explode_data.jsonl/8655 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 453
} | [
2830,
3393,
2212,
3167,
12862,
1155,
353,
8840,
836,
8,
341,
197,
4659,
1669,
1273,
16299,
2662,
9730,
32435,
353,
220,
18,
15,
340,
16867,
4568,
30213,
2822,
69931,
1669,
1273,
10600,
49,
28628,
1155,
340,
16867,
1895,
2822,
2023,
8358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMarshalCmd(t *testing.T) {
t.Parallel()
tests := []struct {
name string
id interface{}
cmd interface{}
expected string
}{
{
name: "include all parameters",
id: 1,
cmd: btcjson.NewGetNetworkHashPSCmd(btcjson.Int(100), btcjson.Int(2000)),
expected: `{"jsonr... | explode_data.jsonl/54007 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 686
} | [
2830,
3393,
55438,
15613,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
78216,
1669,
3056,
1235,
341,
197,
11609,
257,
914,
198,
197,
15710,
981,
3749,
16094,
197,
25920,
414,
3749,
16094,
197,
42400,
914,
198,
197,
59403,
197,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestNamespaceFetchWideEntryShardNotOwned(t *testing.T) {
ctx := context.NewBackground()
defer ctx.Close()
ns, closer := newTestNamespace(t)
defer closer()
for i := range ns.shards {
ns.shards[i] = nil
}
_, err := ns.FetchWideEntry(ctx, ident.StringID("foo"), xtime.Now(), nil)
require.Error(t, err)
} | explode_data.jsonl/35345 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 126
} | [
2830,
3393,
22699,
20714,
60970,
5874,
2016,
567,
2623,
57641,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
7121,
8706,
741,
16867,
5635,
10421,
2822,
84041,
11,
12128,
1669,
501,
2271,
22699,
1155,
340,
16867,
12128,
2822,
2023,
600,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestConfigParseFromMultipleDirs(t *testing.T) {
f := NewFixture(t, model.UserConfigState{})
defer f.TearDown()
f.File("Tiltfile", `
config.define_string_list('foo')
cfg = config.parse()
include('inc/Tiltfile')
`)
f.File("inc/Tiltfile", `
cfg = config.parse()
`)
_, err := f.ExecFile("Tiltfile")
require.Err... | explode_data.jsonl/65240 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 203
} | [
2830,
3393,
2648,
14463,
3830,
32089,
97384,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
1532,
18930,
1155,
11,
1614,
7344,
2648,
1397,
37790,
16867,
282,
836,
682,
4454,
2822,
1166,
8576,
445,
51,
2963,
1192,
497,
22074,
1676,
16756,
390... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_info_Measurement(t *testing.T) {
t.Parallel()
type args struct {
ctx context.Context
}
type fields struct {
name string
fullname string
info metrics.Int64Measure
kvs map[metrics.Key]string
}
type want struct {
want []metrics.Measurement
err error
}
type test struct {
name... | explode_data.jsonl/70578 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 891
} | [
2830,
3393,
3109,
1245,
68,
24359,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
13158,
2827,
2036,
341,
197,
20985,
2266,
9328,
198,
197,
532,
13158,
5043,
2036,
341,
197,
11609,
257,
914,
198,
197,
94042,
606,
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... | 3 |
func TestPostgresRole_CreateRole(t *testing.T) {
srv := setupVaultServer()
defer srv.Close()
cfg := vaultapi.DefaultConfig()
cfg.Address = srv.URL
cl, err := vaultapi.NewClient(cfg)
if !assert.Nil(t, err, "failed to create vault client") {
return
}
testData := []struct {
testName string
pgClient ... | explode_data.jsonl/24984 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 705
} | [
2830,
3393,
4133,
17818,
9030,
34325,
9030,
1155,
353,
8840,
836,
8,
341,
1903,
10553,
1669,
6505,
79177,
5475,
741,
16867,
43578,
10421,
2822,
50286,
1669,
34584,
2068,
13275,
2648,
741,
50286,
26979,
284,
43578,
20893,
271,
39407,
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... | 2 |
func TestPrepareBadSQLFailure(t *testing.T) {
t.Parallel()
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
defer closeConn(t, conn)
if _, err := conn.Prepare(context.Background(), "badSQL", "select foo"); err == nil {
t.Fatal("Prepare should have failed with syntax error")
}
ensureConnValid(t, c... | explode_data.jsonl/40014 | {
"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,
50590,
17082,
6688,
17507,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
32917,
1669,
1969,
14611,
703,
1155,
11,
2643,
64883,
445,
11383,
55,
11641,
45510,
5455,
16867,
3265,
9701,
1155,
11,
4534,
692,
743,
8358,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDefineThis(t *testing.T) {
defines := config.ProcessDefines(map[string]config.DefineData{
"this": {
DefineFunc: func(args config.DefineArgs) js_ast.E {
return &js_ast.ENumber{Value: 1}
},
},
"this.foo": {
DefineFunc: func(args config.DefineArgs) js_ast.E {
return &js_ast.ENumber{Value: ... | explode_data.jsonl/38593 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 665
} | [
2830,
3393,
35338,
1986,
1155,
353,
8840,
836,
8,
341,
7452,
1543,
1669,
2193,
29012,
73816,
9147,
14032,
60,
1676,
49947,
482,
1043,
515,
197,
197,
1,
574,
788,
341,
298,
197,
35338,
9626,
25,
2915,
7356,
2193,
49947,
482,
4117,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func Test_NotSupport(t *testing.T) {
func() {
defer func() {
if r := recover(); r == nil {
t.Fail()
}
}()
NewIter(testIter{})
}()
func() {
defer func() {
if r := recover(); r == nil {
t.Fail()
}
}()
NewIter(&struct {
}{})
}()
} | explode_data.jsonl/52936 | {
"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,
60816,
7916,
1155,
353,
8840,
836,
8,
341,
29244,
368,
341,
197,
16867,
2915,
368,
341,
298,
743,
435,
1669,
11731,
2129,
435,
621,
2092,
341,
571,
3244,
57243,
741,
298,
197,
532,
197,
197,
69826,
197,
197,
3564,
8537,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseIgnoredWords(t *testing.T) {
deck := `
Deck
Commander
Sideboard
1 Llanowar Elves (WAR) 223
Deck
Commander
2 Elf Scout (WAR) 224
`
r := strings.NewReader(deck)
cards, err := parseDeck(r)
if err != nil {
t.Fatalf("failed to parse deck: %v", err)
}
if len(cards) > 2 {
t.Fatalf("Wrong amou... | explode_data.jsonl/64510 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 155
} | [
2830,
3393,
14463,
43337,
3018,
23489,
1155,
353,
8840,
836,
8,
341,
197,
33425,
1669,
22074,
197,
39368,
198,
97493,
261,
198,
7568,
577,
2482,
271,
197,
16,
444,
10715,
363,
277,
97604,
320,
45458,
8,
220,
17,
17,
18,
198,
197,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestWithError_SetsSpecifiedErrorOnPipe(t *testing.T) {
t.Parallel()
fakeErr := errors.New("oh no")
p := script.NewPipe().WithError(fakeErr)
if p.Error() != fakeErr {
t.Errorf("want %q, got %q", fakeErr, p.Error())
}
} | explode_data.jsonl/51530 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 99
} | [
2830,
3393,
66102,
1098,
1415,
8327,
1870,
1454,
1925,
34077,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
1166,
726,
7747,
1669,
5975,
7121,
445,
2267,
902,
1138,
3223,
1669,
5316,
7121,
34077,
1005,
66102,
74138,
7747,
340,
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... | 2 |
func TestNewTemplateContext(t *testing.T) {
context, _ := newTemplateContext([]string{"test/values.yaml"}, []string{"Foo=baz"}, []string{})
if context["Foo"] != "baz" {
t.Errorf("Got %v, expected baz", context["foo"])
}
} | explode_data.jsonl/73839 | {
"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,
3564,
7275,
1972,
1155,
353,
8840,
836,
8,
341,
28413,
11,
716,
1669,
501,
7275,
1972,
10556,
917,
4913,
1944,
96985,
33406,
14345,
3056,
917,
4913,
40923,
22086,
1370,
14345,
3056,
917,
37790,
743,
2266,
1183,
40923,
1341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLiveUpdateInSecondImageOfImageDependency(t *testing.T) {
f := newBDFixture(t, k8s.EnvDockerDesktop, container.RuntimeDocker)
defer f.TearDown()
steps := []model.LiveUpdateSyncStep{model.LiveUpdateSyncStep{
Source: f.JoinPath("sancho"),
Dest: "/go/src/github.com/tilt-dev/sancho",
}}
lu := assembleL... | explode_data.jsonl/35181 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 318
} | [
2830,
3393,
20324,
4289,
641,
15666,
1906,
2124,
1906,
36387,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
501,
33,
5262,
12735,
1155,
11,
595,
23,
82,
81214,
35,
13659,
23597,
11,
5476,
16706,
35,
13659,
340,
16867,
282,
836,
682,
4454,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestWorkflowStatusMetric(t *testing.T) {
ctx := context.Background()
wf := unmarshalWF(workflowStatusMetric)
woc := newWoc(*wf)
woc.operate(ctx)
// Must only be two (completed: true), (podRunning: true)
assert.Len(t, woc.wf.Status.Conditions, 2)
} | explode_data.jsonl/71015 | {
"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,
62768,
2522,
54310,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
741,
6692,
69,
1669,
650,
27121,
32131,
31470,
4965,
2522,
54310,
340,
6692,
509,
1669,
501,
54,
509,
4071,
43083,
340,
6692,
509,
71521,
349,
7502,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_Pagination_PrevNext_2NextLinksWithSameHref(t *testing.T) {
doc := testutil.CreateHTML()
body := dom.QuerySelector(doc, "body")
root := testutil.CreateDiv(0)
dom.AppendChild(body, root)
anchor1 := testutil.CreateAnchor("page2", "dummy link")
anchor2 := testutil.CreateAnchor("page2", "next page")
dom.A... | explode_data.jsonl/10826 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 203
} | [
2830,
3393,
1088,
10353,
1088,
7282,
5847,
62,
17,
5847,
3939,
16056,
19198,
64919,
1155,
353,
8840,
836,
8,
341,
59536,
1669,
1273,
1314,
7251,
5835,
741,
35402,
1669,
4719,
15685,
5877,
19153,
11,
330,
2599,
5130,
33698,
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,
1... | 1 |
func Test_Resolve_Operations_Pass_BuiltinType(t *testing.T) {
data := `
http:
test:
some_url:
endpoint: GET /some/url/{id:string}
query:
the_query: string
header:
The-Header: string
response:
ok: empty
`
old, e... | explode_data.jsonl/79846 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 233
} | [
2830,
3393,
62,
56808,
2232,
712,
804,
1088,
395,
1668,
25628,
929,
1155,
353,
8840,
836,
8,
341,
8924,
1669,
22074,
1254,
510,
262,
1273,
510,
286,
1045,
2903,
510,
310,
14887,
25,
7890,
608,
14689,
57254,
9388,
307,
22423,
532,
310,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseEventHubMetadata(t *testing.T) {
// Test first with valid resolved environment
for _, testData := range parseEventHubMetadataDataset {
_, err := parseAzureEventHubMetadata(&ScalerConfig{TriggerMetadata: testData.metadata, ResolvedEnv: sampleEventHubResolvedEnv, AuthParams: map[string]string{}})
if ... | explode_data.jsonl/13466 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 174
} | [
2830,
3393,
14463,
1556,
19316,
14610,
1155,
353,
8840,
836,
8,
341,
197,
322,
3393,
1156,
448,
2697,
19673,
4573,
198,
2023,
8358,
67348,
1669,
2088,
4715,
1556,
19316,
14610,
33363,
341,
197,
197,
6878,
1848,
1669,
4715,
78107,
1556,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSingleSQLError(t *testing.T) {
//Reset
streamList := []string{"ldemo"}
handleStream(false, streamList, t)
//Data setup
var tests = []ruleTest{
{
name: `TestSingleSQLErrorRule1`,
sql: `SELECT color, ts FROM ldemo where size >= 3`,
r: [][]map[string]interface{}{
{{
"color": "red",
... | explode_data.jsonl/76172 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1374
} | [
2830,
3393,
10888,
64308,
94618,
1155,
353,
8840,
836,
8,
341,
197,
322,
14828,
198,
44440,
852,
1669,
3056,
917,
4913,
507,
6726,
16707,
53822,
3027,
3576,
11,
4269,
852,
11,
259,
340,
197,
322,
1043,
6505,
198,
2405,
7032,
284,
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 TestAutoOrientation(t *testing.T) {
toBW := func(img image.Image) []byte {
b := img.Bounds()
data := make([]byte, 0, b.Dx()*b.Dy())
for x := b.Min.X; x < b.Max.X; x++ {
for y := b.Min.Y; y < b.Max.Y; y++ {
c := color.GrayModel.Convert(img.At(x, y)).(color.Gray)
if c.Y < 128 {
data = append(d... | explode_data.jsonl/2438 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 706
} | [
2830,
3393,
13253,
22332,
1155,
353,
8840,
836,
8,
341,
31709,
77563,
1669,
2915,
11022,
2168,
7528,
8,
3056,
3782,
341,
197,
2233,
1669,
4964,
72133,
741,
197,
8924,
1669,
1281,
10556,
3782,
11,
220,
15,
11,
293,
909,
87,
25010,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestConfirmECS(t *testing.T) {
t.Parallel()
ECStest := []byte(EncryptConfirmString)
if !ConfirmECS(ECStest) {
t.Errorf("Test failed. TestConfirmECS: Error finding ECS.")
}
} | explode_data.jsonl/11028 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 77
} | [
2830,
3393,
16728,
36,
6412,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
197,
7498,
623,
477,
1669,
3056,
3782,
7,
61520,
16728,
703,
340,
743,
753,
16728,
36,
6412,
86062,
623,
477,
8,
341,
197,
3244,
13080,
445,
2271,
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
] | 2 |
func TestConfigTxContext_UpdateAdmin(t *testing.T) {
t.Skip("Update admin is a config update, TODO in issue: https://github.com/hyperledger-labs/orion-server/issues/148")
clientCryptoDir := testutils.GenerateTestClientCrypto(t, []string{"admin", "admin2", "adminUpdated", "server"})
testServer, _, _, err := SetupTes... | explode_data.jsonl/65329 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1012
} | [
2830,
3393,
2648,
31584,
1972,
47393,
7210,
1155,
353,
8840,
836,
8,
341,
3244,
57776,
445,
4289,
3986,
374,
264,
2193,
2647,
11,
5343,
304,
4265,
25,
3703,
1110,
5204,
905,
7530,
39252,
50704,
2852,
3435,
5144,
290,
26300,
38745,
14,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMatCheckRange(t *testing.T) {
mat1 := NewMatWithSize(101, 102, MatTypeCV8U)
ret := CheckRange(mat1)
if !ret {
t.Error("TestCheckRange error.")
}
} | explode_data.jsonl/81732 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 66
} | [
2830,
3393,
11575,
3973,
6046,
1155,
353,
8840,
836,
8,
341,
59874,
16,
1669,
1532,
11575,
2354,
1695,
7,
16,
15,
16,
11,
220,
16,
15,
17,
11,
6867,
929,
19589,
23,
52,
340,
11262,
1669,
4248,
6046,
33397,
16,
340,
743,
753,
2122,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestFilter_LoadNetWordDict(t *testing.T) {
type fields struct {
trie *Trie
noise *regexp.Regexp
}
type args struct {
url string
}
tests := []struct {
name string
fields fields
args args
wantErr bool
}{
// TODO: Add test cases.
}
for _, tt := range tests {
t.Run(tt.name, func(t *te... | explode_data.jsonl/81001 | {
"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,
5632,
19553,
6954,
10879,
13448,
1155,
353,
8840,
836,
8,
341,
13158,
5043,
2036,
341,
197,
197,
8927,
220,
353,
51,
7231,
198,
197,
197,
52218,
353,
55796,
8989,
4580,
198,
197,
532,
13158,
2827,
2036,
341,
197,
19320,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDeleteCredentialsError(t *testing.T) {
c := &internal.MockedConnection{
MockSend: func(query []byte, options types.QueryOptions) *types.KuzzleResponse {
return &types.KuzzleResponse{Error: types.KuzzleError{Message: "Unit test error"}}
},
}
k, _ := kuzzle.NewKuzzle(c, nil)
err := k.Security.DeleteC... | explode_data.jsonl/58818 | {
"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,
6435,
27025,
1454,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
609,
10481,
24664,
291,
4526,
515,
197,
9209,
1176,
11505,
25,
2915,
10741,
3056,
3782,
11,
2606,
4494,
15685,
3798,
8,
353,
9242,
11352,
14945,
2582,
341,
298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func Test_instance_isReadyToAttach(t *testing.T) {
//now := time.Now()
tenMinutesAgo := time.Now().Add(-10 * time.Minute)
tests := []struct {
name string
instance instance
asg *autoScalingGroup
want bool
}{
{
name: "pending instance",
instance: instance{
Instance: &ec2.Instance{
... | explode_data.jsonl/55208 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 836
} | [
2830,
3393,
11904,
6892,
19202,
1249,
30485,
1155,
353,
8840,
836,
8,
341,
197,
322,
3328,
1669,
882,
13244,
741,
197,
1960,
27720,
32,
3346,
1669,
882,
13244,
1005,
2212,
4080,
16,
15,
353,
882,
75770,
692,
78216,
1669,
3056,
1235,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.