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 TestAssetUploadServiceJobPresubmit(t *testing.T) {
// WHEN
jobConfig, err := tester.ReadJobConfig("./../../../../prow/jobs/kyma/components/asset-upload-service/asset-upload-service.yaml")
// THEN
require.NoError(t, err)
expName := "pre-master-kyma-components-asset-upload-service"
actualPresubmit := tester.F... | explode_data.jsonl/61137 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 533
} | [
2830,
3393,
16604,
13844,
1860,
12245,
14367,
392,
1763,
1155,
353,
8840,
836,
8,
341,
197,
322,
33633,
198,
68577,
2648,
11,
1848,
1669,
37111,
6503,
12245,
2648,
13988,
84257,
79,
651,
4437,
5481,
14109,
1600,
64,
20261,
14,
9852,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCmdInitKubernetesVersion(t *testing.T) {
if *kubeadmCmdSkip {
t.Log("kubeadm cmd tests being skipped")
t.Skip()
}
initTest := []struct {
name string
args string
expected bool
}{
{
name: "invalid semantic version string is detected",
args: "--kubernetes-version=v1.1",
e... | explode_data.jsonl/75 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 433
} | [
2830,
3393,
15613,
3803,
42,
29827,
5637,
1155,
353,
8840,
836,
8,
341,
743,
353,
74,
392,
3149,
76,
15613,
35134,
341,
197,
3244,
5247,
445,
74,
392,
3149,
76,
5439,
7032,
1660,
35157,
1138,
197,
3244,
57776,
741,
197,
630,
28248,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTSDecorator(t *testing.T) {
// Tests of "declare class"
expectPrintedTS(t, "@dec(() => 0) declare class Foo {} {let foo}", "{\n let foo;\n}\n")
expectPrintedTS(t, "@dec(() => 0) declare abstract class Foo {} {let foo}", "{\n let foo;\n}\n")
expectPrintedTS(t, "@dec(() => 0) export declare class Foo {} {l... | explode_data.jsonl/82325 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1666
} | [
2830,
3393,
9951,
47951,
1155,
353,
8840,
836,
8,
341,
197,
322,
20150,
315,
330,
18471,
536,
698,
24952,
8994,
291,
9951,
1155,
11,
8428,
8169,
5065,
589,
220,
15,
8,
15913,
536,
33428,
4687,
314,
1149,
15229,
9545,
13868,
59,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSinglePartitionSubscriberAdminSeekWhileConnected(t *testing.T) {
subscription := subscriptionPartition{"projects/123456/locations/us-central1-b/subscriptions/my-sub", 0}
receiver := newTestMessageReceiver(t)
msg1 := seqMsgWithOffsetAndSize(1, 100)
msg2 := seqMsgWithOffsetAndSize(2, 100)
msg3 := seqMsgWith... | explode_data.jsonl/31650 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 692
} | [
2830,
3393,
10888,
49978,
40236,
7210,
39350,
7983,
21146,
1155,
353,
8840,
836,
8,
341,
28624,
12124,
1669,
15142,
49978,
4913,
17161,
14,
16,
17,
18,
19,
20,
21,
14,
31309,
62431,
84081,
16,
1455,
37885,
29966,
34198,
17967,
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... | 3 |
func TestMakeRequest(t *testing.T) {
actual := makeRequest(branchprotection.Policy{})
if actual.RequiredStatusChecks.Contexts == nil {
t.Errorf("contexts must be non-nil (use an empty list for nil)")
}
if actual.Restrictions.Teams == nil {
t.Errorf("users must be non-nil (use an empty list for nil)")
}
if act... | explode_data.jsonl/59185 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 149
} | [
2830,
3393,
8078,
1900,
1155,
353,
8840,
836,
8,
341,
88814,
1669,
1281,
1900,
77862,
776,
39141,
1069,
8018,
37790,
743,
5042,
67900,
2522,
49820,
9328,
82,
621,
2092,
341,
197,
3244,
13080,
445,
71927,
1969,
387,
2477,
83248,
320,
810... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRemittanceOriginatorContactFaxNumberAlphaNumeric(t *testing.T) {
ro := mockRemittanceOriginator()
ro.ContactFaxNumber = "®"
err := ro.Validate()
require.EqualError(t, err, fieldError("ContactFaxNumber", ErrNonAlphanumeric, ro.ContactFaxNumber).Error())
} | explode_data.jsonl/32943 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 85
} | [
2830,
3393,
6590,
87191,
13298,
850,
8732,
60309,
2833,
19384,
36296,
1155,
353,
8840,
836,
8,
341,
197,
299,
1669,
7860,
6590,
87191,
13298,
850,
741,
197,
299,
53975,
60309,
2833,
284,
330,
11909,
1837,
9859,
1669,
926,
47667,
2822,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestAuthorization_NegativeMatch(t *testing.T) {
framework.NewTest(t).
Run(func(ctx framework.TestContext) {
ns := namespace.NewOrFail(t, ctx, namespace.Config{
Prefix: "v1beta1-negative-match-1",
Inject: true,
})
ns2 := namespace.NewOrFail(t, ctx, namespace.Config{
Prefix: "v1beta1-negative... | explode_data.jsonl/41495 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1262
} | [
2830,
3393,
18124,
1604,
15060,
8331,
1155,
353,
8840,
836,
8,
341,
1166,
5794,
7121,
2271,
1155,
4292,
197,
85952,
18552,
7502,
12626,
8787,
1972,
8,
341,
298,
84041,
1669,
4473,
7121,
46059,
1155,
11,
5635,
11,
4473,
10753,
515,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestQueue_pop(t *testing.T) {
count := 4
expiredCount := 3
expired := make([]*preAllocatedBuffer, expiredCount)
queue := &queueAllocations{}
// Add expired 1
expired[0] = newPreAllocatedBuffer(make([]byte, 128))
_, ok := expired[0].allocate(16, time.Now())
require.True(t, ok)
queue.push(expired[0])
/... | explode_data.jsonl/8642 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 570
} | [
2830,
3393,
7554,
17061,
1155,
353,
8840,
836,
8,
341,
18032,
1669,
220,
19,
198,
48558,
2690,
2507,
1669,
220,
18,
198,
48558,
2690,
1669,
1281,
85288,
1726,
25154,
657,
4095,
11,
26391,
2507,
692,
46993,
1669,
609,
4584,
25154,
804,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_Finalizer_AddDefault(t *testing.T) {
// Arrange
handler, _ := newErrorsFakeHandler(mockErrorsArangoClientBackup{})
obj, deployment := newObjectSet(backupApi.ArangoBackupStateNone)
obj.Finalizers = nil
// Act
createArangoDeployment(t, handler, deployment)
createArangoBackup(t, handler, obj)
require... | explode_data.jsonl/5631 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 186
} | [
2830,
3393,
77072,
3135,
21346,
3675,
1155,
353,
8840,
836,
8,
341,
197,
322,
40580,
198,
53326,
11,
716,
1669,
501,
13877,
52317,
3050,
30389,
13877,
6953,
5170,
2959,
56245,
6257,
692,
22671,
11,
23172,
1669,
501,
1190,
1649,
7,
31371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDeliveryServices(t *testing.T) {
WithObjs(t, []TCObj{CDNs, Types, Tenants, Users, Parameters, Profiles, Statuses, Divisions, Regions, PhysLocations, CacheGroups, Servers, DeliveryServices}, func() {
UpdateTestDeliveryServices(t)
UpdateNullableTestDeliveryServices(t)
UpdateDeliveryServiceWithInvalidRemap... | explode_data.jsonl/79465 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 137
} | [
2830,
3393,
38121,
11025,
1155,
353,
8840,
836,
8,
341,
197,
2354,
4121,
2519,
1155,
11,
3056,
7749,
5261,
90,
6484,
47360,
11,
20768,
11,
17695,
1783,
11,
14627,
11,
13522,
11,
71727,
11,
8104,
288,
11,
8765,
6805,
11,
77347,
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... | 1 |
func TestPoolBorrowSize(t *testing.T) {
assert := assert.New(t)
pool := NewDecoderPool(1)
// borrow two decoders from the pool with a maximum size of 1
// doesn't hang the caller; a new decoder is created and discarded
decoder := pool.Borrow("application/msgpack")
anotherDecoder := pool.Borrow("application/msgpa... | explode_data.jsonl/35767 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 160
} | [
2830,
3393,
10551,
33,
7768,
1695,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
340,
85273,
1669,
1532,
20732,
10551,
7,
16,
692,
197,
322,
17193,
1378,
1622,
52498,
504,
279,
7314,
448,
264,
7192,
1379,
315,
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 TestWebHookCommit_String(t *testing.T) {
v := WebHookCommit{
Author: &WebHookAuthor{},
Committer: &WebHookAuthor{},
Distinct: Bool(false),
ID: String(""),
Message: String(""),
}
want := `github.WebHookCommit{Author:github.WebHookAuthor{}, Committer:github.WebHookAuthor{}, Distinct:false, ... | explode_data.jsonl/33302 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 186
} | [
2830,
3393,
5981,
31679,
33441,
31777,
1155,
353,
8840,
836,
8,
341,
5195,
1669,
4895,
31679,
33441,
515,
197,
197,
7133,
25,
262,
609,
5981,
31679,
7133,
38837,
197,
197,
1092,
16126,
25,
609,
5981,
31679,
7133,
38837,
197,
10957,
380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseCaseStatementDouble(t *testing.T) {
a, errs := ParseString(`
case x > 5:
break
case x == 10:
break
`)
bvmUtils.AssertNow(t, len(errs) == 0, errs.Format())
bvmUtils.AssertNow(t, a != nil, "nil scope")
bvmUtils.AssertLength(t, len(a.Sequence), 2)
one := a.Sequence[0]
bvmUtils.AssertNow(t, one.T... | explode_data.jsonl/49766 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 282
} | [
2830,
3393,
14463,
4207,
8636,
7378,
1155,
353,
8840,
836,
8,
341,
11323,
11,
70817,
1669,
14775,
703,
61528,
2722,
856,
861,
220,
20,
510,
197,
3388,
198,
2722,
856,
621,
220,
16,
15,
510,
197,
3388,
198,
197,
24183,
2233,
7338,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCustomBuildCmdFails(t *testing.T) {
f := newFakeCustomBuildFixture(t)
_, err := f.cb.Build(f.ctx, container.MustParseNamed("gcr.io/foo/bar"), "false")
// TODO(dmiller) better error message
assert.EqualError(t, err, "exit status 1")
} | explode_data.jsonl/76330 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 95
} | [
2830,
3393,
10268,
11066,
15613,
37,
6209,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
501,
52317,
10268,
11066,
18930,
1155,
692,
197,
6878,
1848,
1669,
282,
34757,
25212,
955,
30608,
11,
5476,
50463,
14463,
15810,
445,
70,
5082,
4245,
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 TestIPRule(t *testing.T) {
assert := assert.On(t)
rule := ParseRule([]byte(`{
"type": "field",
"ip": [
"10.0.0.0/8",
"192.0.0.0/24"
],
"network": "tcp",
"outboundTag": "direct"
}`))
assert.Pointer(rule).IsNotNil()
cond, err := rule.BuildCondition()
assert.Error(err).IsNil()
... | explode_data.jsonl/30777 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 391
} | [
2830,
3393,
3298,
11337,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
8071,
1155,
692,
7000,
1111,
1669,
14775,
11337,
10556,
3782,
5809,
515,
262,
330,
1313,
788,
330,
2566,
756,
262,
330,
573,
788,
2278,
414,
330,
16,
15,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestIntArray_PopRands(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
a1 := []int{100, 200, 300, 400, 500, 600}
array := garray.NewIntArrayFrom(a1)
ns1 := array.PopRands(2)
t.AssertIN(ns1, []int{100, 200, 300, 400, 500, 600})
t.Assert(len(ns1), 2)
ns2 := array.PopRands(7)
t.Assert(len(ns2), 4)
t.As... | explode_data.jsonl/47610 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 189
} | [
2830,
3393,
95338,
1088,
453,
49,
2844,
1155,
353,
8840,
836,
8,
341,
3174,
1944,
727,
1155,
11,
2915,
1155,
353,
82038,
836,
8,
341,
197,
11323,
16,
1669,
3056,
396,
90,
16,
15,
15,
11,
220,
17,
15,
15,
11,
220,
18,
15,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestSchemaGrantCreate(t *testing.T) {
r := require.New(t)
for _, test_priv := range []string{"USAGE", "MODIFY"} {
in := map[string]interface{}{
"schema_name": "test-schema",
"database_name": "test-db",
"privilege": test_priv,
"roles": []interface{}{"test-role-1", "tes... | explode_data.jsonl/74764 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 663
} | [
2830,
3393,
8632,
67971,
4021,
1155,
353,
8840,
836,
8,
341,
7000,
1669,
1373,
7121,
1155,
692,
2023,
8358,
1273,
24726,
1669,
2088,
3056,
917,
4913,
80333,
497,
330,
26459,
15189,
9207,
341,
197,
17430,
1669,
2415,
14032,
31344,
67066,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStreamClientInterceptor(t *testing.T) {
clientConn, err := grpc.Dial("fake:connection", grpc.WithInsecure())
if err != nil {
t.Fatalf("failed to create client connection: %v", err)
}
defer clientConn.Close()
// tracer
sr := NewSpanRecorder()
tp := oteltest.NewTracerProvider(oteltest.WithSpanRecorder(... | explode_data.jsonl/79675 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1056
} | [
2830,
3393,
3027,
2959,
32786,
1155,
353,
8840,
836,
8,
341,
25291,
9701,
11,
1848,
1669,
47900,
98462,
445,
30570,
25,
7742,
497,
47900,
26124,
641,
25132,
2398,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
16091,
311,
1855,
2943,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEnqueue(t *testing.T) {
queue := NewQueue()
t.Run("when item is enqueued", func(t *testing.T) {
expectedQueue := NewQueue()
expectedQueue.Enqueue(student{"Student 1", 1})
expectedQueue.Enqueue(student{"Student 2", 2})
expectedQueue.Enqueue(student{"Student 3", 3})
t.Run("queue should br updated",... | explode_data.jsonl/44139 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 192
} | [
2830,
3393,
1702,
4584,
1155,
353,
8840,
836,
8,
341,
46993,
1669,
1532,
7554,
2822,
3244,
16708,
445,
9309,
1509,
374,
662,
66547,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
42400,
7554,
1669,
1532,
7554,
741,
197,
42400,
7554,
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... | 1 |
func Test_SelectManyIdx_int_rune(t *testing.T) {
type args struct {
source Enumerator[int]
selector func(int, int) Enumerator[rune]
}
tests := []struct {
name string
args args
want Enumerator[rune]
}{
{name: "SimpleFlattenWithIndex",
args: args{
source: NewOnSlice(3, 5, 20, 15),
selector: f... | explode_data.jsonl/63898 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 373
} | [
2830,
3393,
58073,
8441,
11420,
4042,
1710,
2886,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
47418,
256,
76511,
18640,
921,
197,
197,
8925,
2915,
1548,
11,
526,
8,
76511,
16131,
2886,
921,
197,
532,
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 TestIntegrationsNewAwsCfgIntegrationWithCustomTemplateFile(t *testing.T) {
accountMappingJSON := []byte(`{
"defaultLaceworkAccountAws": "lw_account_1",
"integration_mappings": {
"lw_account_2": {
"aws_accounts": [
"234556677",
"774564564"
]
},
"lw_acco... | explode_data.jsonl/81112 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 557
} | [
2830,
3393,
1072,
14412,
804,
3564,
47359,
42467,
52464,
2354,
10268,
7275,
1703,
1155,
353,
8840,
836,
8,
341,
86866,
6807,
5370,
1669,
3056,
3782,
5809,
515,
262,
330,
2258,
43,
578,
1778,
7365,
47359,
788,
330,
57053,
13500,
62,
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 TestKubeletVersionCheck(t *testing.T) {
// TODO: Re-enable this test
// fakeexec.FakeCmd supports only combined output.
// Hence .Output() returns a "not supported" error and we cannot use it for the test ATM.
t.Skip()
cases := []struct {
kubeletVersion string
k8sVersion string
expectErrors bool
... | explode_data.jsonl/56070 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1302
} | [
2830,
3393,
42,
3760,
1149,
5637,
3973,
1155,
353,
8840,
836,
8,
341,
197,
322,
5343,
25,
1032,
64211,
419,
1273,
198,
197,
322,
12418,
11748,
991,
726,
15613,
11554,
1172,
10856,
2550,
624,
197,
322,
31040,
659,
5097,
368,
4675,
264,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCheckReference(t *testing.T) {
type TCheckRefData struct {
exp int
chrom uint8
pos uint32
sizeref uint8
ref string
}
var tdata = []TCheckRefData{
{0, 1, 0, 1, "A"},
{0, 1, 25, 1, "Z"},
{0, 25, 0, 1, "A"},
{0, 25, 1, 1, "B"},
{0, 2, 0, 25, "ABCDEFGHIJKLmnopqrstuvwxy"},
{-2... | explode_data.jsonl/40554 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 871
} | [
2830,
3393,
3973,
8856,
1155,
353,
8840,
836,
8,
341,
13158,
350,
3973,
3945,
1043,
2036,
341,
197,
48558,
257,
526,
198,
197,
23049,
441,
256,
2622,
23,
198,
197,
28164,
257,
2622,
18,
17,
198,
197,
1903,
449,
43970,
2622,
23,
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 TestConfigWithoutWarningAgeDaysFailsToLoad(t *testing.T) {
data := `
src_glob_patterns: ["path/*", "another/path/*.ext"]
jira_address: "https://my.jira.com"
`
_, err := LoadFromYAMLData([]byte(data))
require.Error(t, err)
} | explode_data.jsonl/24921 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 93
} | [
2830,
3393,
2648,
26040,
12087,
16749,
20557,
37,
6209,
1249,
5879,
1155,
353,
8840,
836,
8,
341,
8924,
1669,
22074,
3548,
95133,
64923,
25,
4383,
2343,
1057,
497,
330,
41963,
50976,
23540,
427,
7026,
73,
8832,
6744,
25,
330,
2428,
1110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestServer_Rejects_PushPromise(t *testing.T) {
testServerRejectsConn(t, func(st *serverTester) {
pp := PushPromiseParam{
StreamID: 1,
PromiseID: 3,
}
if err := st.fr.WritePushPromise(pp); err != nil {
t.Fatal(err)
}
})
} | explode_data.jsonl/71660 | {
"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,
5475,
50693,
583,
82,
1088,
1116,
21041,
1155,
353,
8840,
836,
8,
341,
18185,
5475,
78413,
82,
9701,
1155,
11,
2915,
5895,
353,
4030,
58699,
8,
341,
197,
65729,
1669,
22950,
21041,
2001,
515,
298,
197,
3027,
915,
25,
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... | 2 |
func TestMsgCreateGroupValidation(t *testing.T) {
_, _, myAddr := testdata.KeyTestPubAddr()
_, _, myOtherAddr := testdata.KeyTestPubAddr()
specs := map[string]struct {
src MsgCreateGroupRequest
expErr bool
}{
"all good with minimum fields set": {
src: MsgCreateGroupRequest{Admin: myAddr.String()},
},... | explode_data.jsonl/82398 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1038
} | [
2830,
3393,
6611,
4021,
2808,
13799,
1155,
353,
8840,
836,
8,
341,
197,
6878,
8358,
847,
13986,
1669,
1273,
691,
9610,
2271,
29162,
13986,
741,
197,
6878,
8358,
847,
11409,
13986,
1669,
1273,
691,
9610,
2271,
29162,
13986,
2822,
98100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStepOutDefer(t *testing.T) {
protest.AllowRecording(t)
withTestProcess("testnextdefer", t, func(p *proc.Target, fixture protest.Fixture) {
bp := setFileBreakpoint(p, t, fixture.Source, 9)
assertNoError(p.Continue(), t, "Continue()")
p.ClearBreakpoint(bp.Addr)
assertLineNumber(p, t, 9, "wrong line nu... | explode_data.jsonl/56273 | {
"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,
8304,
2662,
1912,
802,
1155,
353,
8840,
836,
8,
341,
197,
776,
1944,
29081,
52856,
1155,
340,
46948,
2271,
7423,
445,
1944,
3600,
62095,
497,
259,
11,
2915,
1295,
353,
15782,
35016,
11,
12507,
8665,
991,
12735,
8,
341,
197... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestPeekOnEmptyQueue(t *testing.T) {
q := queueint.NewQueueInt()
v := q.Peek()
assert.Equal(t, v, -1)
assert.Equal(t, "[]", q.Print())
} | explode_data.jsonl/77136 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 67
} | [
2830,
3393,
10197,
1225,
1925,
3522,
7554,
1155,
353,
8840,
836,
8,
341,
18534,
1669,
7177,
396,
7121,
7554,
1072,
741,
5195,
1669,
2804,
94279,
2822,
6948,
12808,
1155,
11,
348,
11,
481,
16,
340,
6948,
12808,
1155,
11,
330,
1294,
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 |
func TestGetTradeHistory(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() {
t.Skip("API keys required but not set, skipping test")
}
_, err := b.GetTradeHistory(ETHAUD, "", -1, -1, -1)
if err != nil {
t.Error(err)
}
_, err = b.GetTradeHistory(BTCAUD, "", -1, -1, 1)
if err != nil {
t.Error(err)
}
_, ... | explode_data.jsonl/33150 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 196
} | [
2830,
3393,
1949,
39173,
13424,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
743,
753,
546,
2271,
7082,
8850,
1649,
368,
341,
197,
3244,
57776,
445,
7082,
6894,
2567,
714,
537,
738,
11,
42659,
1273,
1138,
197,
532,
197,
6878,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCfg_Config(t *testing.T) {
gtest.Case(t, func() {
gcfg.SetContent("gf", "config.yml")
gtest.Assert(gcfg.GetContent("config.yml"), "gf")
gcfg.SetContent("gf1", "config.yml")
gtest.Assert(gcfg.GetContent("config.yml"), "gf1")
gcfg.RemoveConfig("config.yml")
gcfg.ClearContent()
gtest.Assert(gcfg.Ge... | explode_data.jsonl/24458 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 159
} | [
2830,
3393,
42467,
35412,
1155,
353,
8840,
836,
8,
341,
3174,
1944,
727,
519,
1155,
11,
2915,
368,
341,
197,
3174,
14072,
4202,
2762,
445,
45124,
497,
330,
1676,
33936,
1138,
197,
3174,
1944,
11711,
3268,
14072,
2234,
2762,
445,
1676,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestServerHappyPathSingleServer(t *testing.T) {
originServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("hey"))
}))
defer originServer.Close()
originURL, _ := url.Parse(originServer.URL)
handler := httptransport.NewSer... | explode_data.jsonl/15686 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 268
} | [
2830,
3393,
5475,
32847,
1820,
10888,
5475,
1155,
353,
8840,
836,
8,
341,
197,
8611,
5475,
1669,
54320,
70334,
7121,
5475,
19886,
89164,
18552,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
6692,
69794,
19886,
52989,
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... | 1 |
func TestMongoConnect(t *testing.T) {
ast := assert.New(t)
InitT(ast)
idx := Index{
Tenant: "MCS",
}
idx.Init()
ast.NotNil(idx.col)
b := model.BlobDescription{
BlobID: "123456789",
StoreID: "MCS",
TenantID: "MCS",
ContentLength: 22,
ContentType: "text/plain",
... | explode_data.jsonl/74254 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 471
} | [
2830,
3393,
54998,
14611,
1155,
353,
8840,
836,
8,
8022,
88836,
1669,
2060,
7121,
1155,
7229,
98762,
51,
52574,
7229,
62077,
1669,
8008,
1666,
197,
10261,
25121,
25,
330,
44,
6412,
4723,
197,
1771,
62077,
26849,
3568,
88836,
93882,
19778,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestClientRedirectError(t *testing.T) {
testcase := func(code int, clientMaker func(string, HTTPClient) Haberdasher) func(*testing.T) {
return func(t *testing.T) {
// Make a server that redirects all requests
redirecter := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w... | explode_data.jsonl/616 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 929
} | [
2830,
3393,
2959,
17725,
1454,
1155,
353,
8840,
836,
8,
341,
18185,
5638,
1669,
2915,
15842,
526,
11,
2943,
33259,
2915,
3609,
11,
10130,
2959,
8,
28876,
14348,
33767,
8,
2915,
4071,
8840,
836,
8,
341,
197,
853,
2915,
1155,
353,
8840,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestUnsignedNumericDecodingNegatives(t *testing.T) {
p := newValueProvider(-1)
conversions := map[string]func(p Provider) error{
"uint": func(p Provider) error {
var x uint
return p.Get(Root).Populate(&x)
},
"uint8": func(p Provider) error {
var x uint8
return p.Get(Root).Populate(&x)
},
"... | explode_data.jsonl/35432 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 403
} | [
2830,
3393,
56421,
36296,
4900,
3700,
47800,
5859,
1155,
353,
8840,
836,
8,
341,
3223,
1669,
24174,
5179,
4080,
16,
692,
37203,
28290,
1669,
2415,
14032,
60,
2830,
1295,
22916,
8,
1465,
515,
197,
197,
1,
2496,
788,
2915,
1295,
22916,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestApplyMockIO(t *testing.T) {
cmd := &cobra.Command{}
oldStdin := cmd.InOrStdin()
oldStdout := cmd.OutOrStdout()
oldStderr := cmd.ErrOrStderr()
testutil.ApplyMockIO(cmd)
require.NotEqual(t, cmd.InOrStdin(), oldStdin)
require.NotEqual(t, cmd.OutOrStdout(), oldStdout)
require.NotEqual(t, cmd.ErrOrStderr(... | explode_data.jsonl/77082 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 178
} | [
2830,
3393,
28497,
11571,
3810,
1155,
353,
8840,
836,
8,
341,
25920,
1669,
609,
59410,
12714,
16094,
61828,
22748,
258,
1669,
5439,
5337,
2195,
22748,
258,
741,
61828,
22748,
411,
1669,
5439,
47178,
2195,
22748,
411,
741,
61828,
22748,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTimer_DelayAddTimes(t *testing.T) {
gtest.Case(t, func() {
timer := New()
array := garray.New()
timer.DelayAddTimes(200*time.Millisecond, 500*time.Millisecond, 2, func() {
array.Append(1)
})
time.Sleep(200*time.Millisecond)
gtest.Assert(array.Len(... | explode_data.jsonl/3724 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 288
} | [
2830,
3393,
10105,
92726,
2212,
18889,
1155,
353,
8840,
836,
8,
341,
262,
342,
1944,
727,
519,
1155,
11,
2915,
368,
341,
286,
9021,
1669,
1532,
741,
286,
1334,
1669,
342,
1653,
7121,
741,
286,
9021,
71747,
2212,
18889,
7,
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... | 1 |
func TestApplyTemplateFieldError(t *testing.T) {
o := graphite.Options{
Separator: "_",
Templates: []string{"current.* measurement.field.field"},
}
p, err := graphite.NewParserWithOptions(o)
if err != nil {
t.Fatalf("unexpected error creating parser, got %v", err)
}
_, _, _, err = p.ApplyTemplate("current.... | explode_data.jsonl/32196 | {
"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,
28497,
7275,
1877,
1454,
1155,
353,
8840,
836,
8,
341,
22229,
1669,
94173,
22179,
515,
197,
7568,
91640,
25,
9000,
756,
197,
10261,
76793,
25,
3056,
917,
4913,
3231,
4908,
18662,
16454,
16454,
7115,
197,
532,
3223,
11,
1848,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestIsRevisionStale(t *testing.T) {
curTime := time.Now()
staleTime := curTime.Add(-10 * time.Minute)
tests := []struct {
name string
rev *v1.Revision
latestRev string
want bool
}{{
name: "stale create time",
rev: &v1.Revision{
ObjectMeta: metav1.ObjectMeta{
Name: ... | explode_data.jsonl/32529 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1271
} | [
2830,
3393,
3872,
33602,
623,
1574,
1155,
353,
8840,
836,
8,
341,
33209,
1462,
1669,
882,
13244,
741,
18388,
1574,
1462,
1669,
2847,
1462,
1904,
4080,
16,
15,
353,
882,
75770,
692,
78216,
1669,
3056,
1235,
341,
197,
11609,
414,
914,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_SessionFromJSON(t *testing.T) {
t.Parallel()
a := assert.New(t)
p := provider()
session, err := p.UnmarshalSession(`{"AuthURL":"https://login.uber.com/oauth/authorize","AccessToken":"1234567890"}`)
a.NoError(err)
s := session.(*uber.Session)
a.Equal(s.AuthURL, "https://login.uber.com/oauth/authorize"... | explode_data.jsonl/36584 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 147
} | [
2830,
3393,
84664,
3830,
5370,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
11323,
1669,
2060,
7121,
1155,
692,
3223,
1669,
9109,
741,
25054,
11,
1848,
1669,
281,
38097,
5283,
5809,
4913,
5087,
3144,
3252,
2428,
1110,
3673,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestMethodInvalidAlgorithm(t *testing.T) {
config := &ClientConfig{
User: "testuser",
Auth: []AuthMethod{
PublicKeys(&invalidAlgSigner{testSigners["rsa"]}),
},
HostKeyCallback: InsecureIgnoreHostKey(),
}
err, serverErrors := tryAuthBothSides(t, config, nil)
if err == nil {
t.Fatalf("login succeed... | explode_data.jsonl/6939 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 242
} | [
2830,
3393,
3523,
7928,
27847,
1155,
353,
8840,
836,
8,
341,
25873,
1669,
609,
2959,
2648,
515,
197,
31672,
25,
330,
1944,
872,
756,
197,
197,
5087,
25,
3056,
5087,
3523,
515,
298,
73146,
8850,
2099,
11808,
86895,
7264,
261,
90,
1944,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStartStopDoesNotCausePanic(t *testing.T) {
t.Parallel()
botOne, err := NewFromSettings(&Settings{
ConfigFile: config.TestFile,
EnableDryRun: true,
}, nil)
if err != nil {
t.Error(err)
}
botOne.Settings.EnableGRPCProxy = false
if err = botOne.Start(); err != nil {
t.Error(err)
}
botOne.Stop(... | explode_data.jsonl/4162 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 132
} | [
2830,
3393,
3479,
10674,
21468,
2623,
60912,
47,
31270,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
2233,
354,
3966,
11,
1848,
1669,
1532,
3830,
6086,
2099,
6086,
515,
197,
66156,
1703,
25,
256,
2193,
8787,
1703,
345,
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... | 3 |
func TestGetAcounntBalances(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() {
t.Skip("API keys required but not set, skipping test")
}
_, err := c.GetAccountBalances()
if err != nil {
t.Error(err)
}
} | explode_data.jsonl/42924 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 88
} | [
2830,
3393,
1949,
11654,
1624,
406,
37889,
3020,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
743,
753,
546,
2271,
7082,
8850,
1649,
368,
341,
197,
3244,
57776,
445,
7082,
6894,
2567,
714,
537,
738,
11,
42659,
1273,
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... | 3 |
func TestConfigParseError(t *testing.T) {
confFile := configfile(`{`)
defer os.Remove(confFile)
var conf config.Config
err := conf.Load(confFile, logConfPath)
AssertThat(t, err.Error(), EqualTo{"browsers config: parse error: unexpected end of JSON input"})
} | explode_data.jsonl/37915 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 91
} | [
2830,
3393,
2648,
14463,
1454,
1155,
353,
8840,
836,
8,
341,
67850,
1703,
1669,
2193,
1192,
5809,
90,
24183,
16867,
2643,
13270,
29879,
1703,
340,
2405,
2335,
2193,
10753,
198,
9859,
1669,
2335,
13969,
29879,
1703,
11,
1487,
15578,
1820,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestClientRefreshBrokers(t *testing.T) {
initialSeed := NewMockBroker(t, 0)
leader := NewMockBroker(t, 5)
metadataResponse1 := new(MetadataResponse)
metadataResponse1.AddBroker(leader.Addr(), leader.BrokerID())
metadataResponse1.AddBroker(initialSeed.Addr(), initialSeed.BrokerID())
initialSeed.Returns(metad... | explode_data.jsonl/54407 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 298
} | [
2830,
3393,
2959,
14567,
26272,
26177,
1155,
353,
8840,
836,
8,
341,
85270,
41471,
1669,
1532,
11571,
65545,
1155,
11,
220,
15,
340,
197,
37391,
1669,
1532,
11571,
65545,
1155,
11,
220,
20,
692,
2109,
7603,
2582,
16,
1669,
501,
3189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestShowGrants(t *testing.T) {
ctx := context.Background()
db, mock, err := sqlmock.New()
require.NoError(t, err)
mockGrants := []string{
"GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION",
"GRANT PROXY ON ''@'' TO 'root'@'localhost' WITH GRANT OPTION",
}
rows := sqlmock.NewRows([]str... | explode_data.jsonl/13366 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 247
} | [
2830,
3393,
7812,
6464,
1783,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
741,
20939,
11,
7860,
11,
1848,
1669,
5704,
16712,
7121,
741,
17957,
35699,
1155,
11,
1848,
692,
77333,
6464,
1783,
1669,
3056,
917,
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... | 2 |
func TestBuildTestDeploy(t *testing.T) {
tests := []struct {
description string
testBench *TestBench
shouldErr bool
expectedActions []Actions
}{
{
description: "run no error",
testBench: &TestBench{},
expectedActions: []Actions{{
Built: []string{"img:1"},
Tested: []st... | explode_data.jsonl/45345 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 679
} | [
2830,
3393,
11066,
2271,
69464,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
42407,
257,
914,
198,
197,
18185,
33,
19762,
981,
353,
2271,
33,
19762,
198,
197,
197,
5445,
7747,
981,
1807,
198,
197,
42400,
12948,
305... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestValidateAwsRegionValid(t *testing.T) {
regions := []string{"eu-west-1", "eu-central-1"}
for _, region := range regions {
validatedRegion, err := validateAwsRegion(region)
assert.NoError(t, err)
assert.Equal(t, region, validatedRegion)
}
} | explode_data.jsonl/7411 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 95
} | [
2830,
3393,
17926,
47359,
14091,
4088,
1155,
353,
8840,
836,
8,
341,
37013,
908,
1669,
3056,
917,
4913,
20128,
37602,
12,
16,
497,
330,
20128,
84081,
12,
16,
63159,
2023,
8358,
5537,
1669,
2088,
13604,
341,
197,
56322,
657,
14091,
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 TestInsert(t *testing.T) {
q := NewQuery().Insert(table, fields, args...)
if q.SQL.String() != "INSERT INTO table (field1, field2, field3) VALUES (?, ?, ?)" {
t.Fatalf("Insert failed to create SQL successfully [%s]\n", q.SQL.String())
}
if !reflect.DeepEqual(q.Args, args) {
t.Fatalf("Insert did not copy ar... | explode_data.jsonl/76521 | {
"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,
13780,
1155,
353,
8840,
836,
8,
341,
18534,
1669,
1532,
2859,
1005,
13780,
15761,
11,
5043,
11,
2827,
31218,
743,
2804,
25095,
6431,
368,
961,
330,
12698,
12496,
1965,
320,
2566,
16,
11,
2070,
17,
11,
2070,
18,
8,
14710,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGet(t *testing.T) {
idStore := NewIdentityMapper(msgCryptoService, dummyID, noopPurgeTrigger, msgCryptoService)
identity := []byte("yacovm")
identity2 := []byte("not-yacovm")
pkiID := msgCryptoService.GetPKIidOfCert(api.PeerIdentityType(identity))
pkiID2 := msgCryptoService.GetPKIidOfCert(api.PeerIdentity... | explode_data.jsonl/6634 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 237
} | [
2830,
3393,
1949,
1155,
353,
8840,
836,
8,
341,
15710,
6093,
1669,
1532,
18558,
10989,
8119,
58288,
1860,
11,
17292,
915,
11,
60829,
47,
39823,
17939,
11,
3750,
58288,
1860,
340,
197,
16912,
1669,
3056,
3782,
445,
88,
580,
859,
76,
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 TestReplaceConvertIPWithGrok(t *testing.T) {
logp.TestingSetup()
cases := []struct {
name string
esVersion *common.Version
content map[string]interface{}
expected map[string]interface{}
isErrExpected bool
}{
{
name: "ES >= 7.13.0: keep processor",
esVersion: common... | explode_data.jsonl/61782 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2307
} | [
2830,
3393,
23107,
12012,
3298,
2354,
38,
53561,
1155,
353,
8840,
836,
8,
341,
6725,
79,
8787,
287,
21821,
741,
1444,
2264,
1669,
3056,
1235,
341,
197,
11609,
688,
914,
198,
197,
78966,
5637,
257,
353,
5464,
35842,
198,
197,
27751,
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... | 2 |
func TestIMPAudienceGroup(t *testing.T) {
type RequestBody struct {
Description string `json:"description,omitempty"`
RequestID string `json:"requestId,omitempty"`
}
type want struct {
URLPath string
RequestBody RequestBody
Response *IMPAudienceGroupResponse
Error error
}
testCases := []... | explode_data.jsonl/37774 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1876
} | [
2830,
3393,
1791,
8041,
661,
1835,
2808,
1155,
353,
8840,
836,
8,
341,
13158,
6145,
5444,
2036,
341,
197,
47414,
914,
1565,
2236,
2974,
4684,
20478,
8805,
197,
73806,
915,
256,
914,
1565,
2236,
2974,
2035,
764,
20478,
8805,
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... | 6 |
func Test_TryCatch(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
gutil.TryCatch(func() {
panic("gutil TryCatch test")
})
})
gtest.C(t, func(t *gtest.T) {
gutil.TryCatch(func() {
panic("gutil TryCatch test")
}, func(err interface{}) {
t.Assert(err, "gutil TryCatch test")
})
})
} | explode_data.jsonl/28548 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 150
} | [
2830,
3393,
1139,
884,
57760,
1155,
353,
8840,
836,
8,
341,
3174,
1944,
727,
1155,
11,
2915,
1155,
353,
82038,
836,
8,
341,
197,
3174,
1314,
19824,
57760,
18552,
368,
341,
298,
30764,
445,
70,
1314,
9735,
57760,
1273,
1138,
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 TestUnitNameMangle(t *testing.T) {
for n, w := range unitNameMangleTests {
if g := unitNameMangle(n); g != w {
t.Errorf("got %q, want %q", g, w)
}
}
} | explode_data.jsonl/19866 | {
"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,
4562,
675,
44,
4044,
1155,
353,
8840,
836,
8,
341,
2023,
308,
11,
289,
1669,
2088,
4982,
675,
44,
4044,
18200,
341,
197,
743,
342,
1669,
4982,
675,
44,
4044,
1445,
1215,
342,
961,
289,
341,
298,
3244,
13080,
445,
22390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestChaincodeInstal(t *testing.T) {
// Using shared SDK instance to increase test speed.
sdk := mainSDK
testSetup := mainTestSetup
testChaincodeInstallUsingChaincodePath(t, sdk, testSetup)
testChaincodeInstallUsingChaincodePackage(t, sdk, testSetup)
} | explode_data.jsonl/32220 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 82
} | [
2830,
3393,
18837,
1851,
8724,
278,
1155,
353,
8840,
836,
8,
1476,
197,
322,
12091,
6094,
26623,
2867,
311,
5263,
1273,
4628,
624,
1903,
7584,
1669,
1887,
31534,
198,
18185,
21821,
1669,
1887,
2271,
21821,
271,
18185,
18837,
1851,
24690,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCreateFirewallFails(t *testing.T) {
name := "loadbalancer"
region := "us-central1"
desc := "description"
gce := &GCECloud{}
if err := gce.createFirewall(name, region, desc, nil, nil, nil); err == nil {
t.Errorf("error expected when creating firewall without any tags found")
}
} | explode_data.jsonl/28874 | {
"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,
4021,
16697,
16431,
37,
6209,
1155,
353,
8840,
836,
8,
341,
11609,
1669,
330,
1078,
13313,
11705,
698,
197,
3943,
1669,
330,
355,
84081,
16,
698,
41653,
1669,
330,
4684,
698,
3174,
346,
1669,
609,
38,
2104,
16055,
16094,
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 TestBindPFlag(t *testing.T) {
var testString = "testing"
var testValue = newStringValue(testString, &testString)
flag := &pflag.Flag{
Name: "testflag",
Value: testValue,
Changed: false,
}
BindPFlag("testvalue", flag)
assert.Equal(t, testString, Get("testvalue"))
flag.Value.Set("testing_mutate... | explode_data.jsonl/5572 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 158
} | [
2830,
3393,
9950,
47,
12135,
1155,
353,
8840,
836,
8,
341,
2405,
1273,
703,
284,
330,
8840,
698,
2405,
1273,
1130,
284,
501,
82696,
8623,
703,
11,
609,
1944,
703,
692,
30589,
1669,
609,
79,
9903,
80911,
515,
197,
21297,
25,
262,
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... | 1 |
func TestReadTimeout(t *testing.T) {
// The error frame may fail to send since the connection closes before the handler sends it
// or the handler connection may be closed as it sends when the other side closes the conn.
opts := testutils.NewOpts().
AddLogFilter("Couldn't send outbound error frame", 1).
AddLogFi... | explode_data.jsonl/78195 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 420
} | [
2830,
3393,
4418,
7636,
1155,
353,
8840,
836,
8,
341,
197,
322,
576,
1465,
4034,
1231,
3690,
311,
3624,
2474,
279,
3633,
33250,
1573,
279,
7013,
21308,
432,
198,
197,
322,
476,
279,
7013,
3633,
1231,
387,
7877,
438,
432,
21308,
979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseTestS3Notification(t *testing.T) {
//nolint:lll
notification := "{\"Service\":\"Amazon S3\",\"Event\":\"s3:TestEvent\",\"Time\":\"2020-01-21T14:17:54.420Z\",\"Bucket\":\"test-bucket\"," +
"\"RequestId\":\"0D79B9C057838DEA\",\"HostId\":\"6HTLml3u1UbsYgjuzueCQApRHOfpRM5yJ+nTZCveOMejyM7iB4Pg8RESbVAU5nHjd... | explode_data.jsonl/14769 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 214
} | [
2830,
3393,
14463,
2271,
50,
18,
11196,
1155,
353,
8840,
836,
8,
341,
197,
322,
77,
337,
396,
25,
654,
75,
198,
197,
18553,
1669,
54734,
1860,
23488,
25863,
328,
18,
34333,
1556,
23488,
82,
18,
25,
2271,
1556,
34333,
1462,
23488,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestLoadGraphToElastic_refFailsToInsert(t *testing.T) {
const (
pkgpath = "github.com/korfuri/goref/testprograms/interfaces"
main = "v1@0@github.com/korfuri/goref/testprograms/interfaces"
lib = "v1@0@github.com/korfuri/goref/testprograms/interfaces/lib"
)
client := &mocks.Client{}
// fmt and sim... | explode_data.jsonl/54351 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 538
} | [
2830,
3393,
5879,
11212,
1249,
36,
51179,
7793,
37,
6209,
1249,
13780,
1155,
353,
8840,
836,
8,
341,
4777,
2399,
197,
3223,
7351,
2343,
284,
330,
5204,
905,
14109,
32842,
6070,
4846,
46752,
12697,
72953,
59771,
698,
197,
36641,
262,
284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIsOrganizationOwner(t *testing.T) {
assert.NoError(t, PrepareTestDatabase())
test := func(orgID, userID int64, expected bool) {
isOwner, err := IsOrganizationOwner(orgID, userID)
assert.NoError(t, err)
assert.EqualValues(t, expected, isOwner)
}
test(3, 2, true)
test(3, 3, false)
test(6, 5, true)
t... | explode_data.jsonl/71061 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 153
} | [
2830,
3393,
3872,
41574,
13801,
1155,
353,
8840,
836,
8,
341,
6948,
35699,
1155,
11,
31166,
2271,
5988,
2398,
18185,
1669,
2915,
36246,
915,
11,
35204,
526,
21,
19,
11,
3601,
1807,
8,
341,
197,
19907,
13801,
11,
1848,
1669,
2160,
4157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestReconcileOnCompletedTaskRun(t *testing.T) {
taskSt := &apis.Condition{
Type: apis.ConditionSucceeded,
Status: corev1.ConditionTrue,
Reason: "Build succeeded",
Message: "Build succeeded",
}
taskRun := tb.TaskRun("test-taskrun-run-success", tb.TaskRunSpec(
tb.TaskRunTaskRef(simpleTask.Name),
)... | explode_data.jsonl/882 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 461
} | [
2830,
3393,
693,
40446,
457,
1925,
22724,
6262,
6727,
1155,
353,
8840,
836,
8,
341,
49115,
623,
1669,
609,
13725,
75134,
515,
197,
27725,
25,
262,
97723,
75134,
50,
43805,
345,
197,
58321,
25,
220,
6200,
85,
16,
75134,
2514,
345,
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 TestSetAndUnsetNulls(t *testing.T) {
n := NewNulls(BatchSize)
for i := uint16(0); i < BatchSize; i++ {
require.False(t, n.NullAt(i))
}
n.SetNulls()
for i := uint16(0); i < BatchSize; i++ {
require.True(t, n.NullAt(i))
}
n.UnsetNulls()
for i := uint16(0); i < BatchSize; i++ {
require.False(t, n.NullAt... | explode_data.jsonl/37157 | {
"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,
1649,
3036,
1806,
746,
3280,
82,
1155,
353,
8840,
836,
8,
341,
9038,
1669,
1532,
3280,
82,
5349,
754,
1695,
340,
2023,
600,
1669,
2622,
16,
21,
7,
15,
1215,
600,
366,
33904,
1695,
26,
600,
1027,
341,
197,
17957,
50757,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestAccAwsDmsEndpoint_Kafka_Topic(t *testing.T) {
resourceName := "aws_dms_endpoint.test"
rName := acctest.RandomWithPrefix("tf-acc-test")
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: dmsEndpointDestroy,
Steps: []... | explode_data.jsonl/37172 | {
"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,
14603,
47359,
35,
1011,
27380,
10102,
21883,
1139,
24810,
1155,
353,
8840,
836,
8,
341,
50346,
675,
1669,
330,
8635,
814,
1011,
36699,
5958,
698,
7000,
675,
1669,
1613,
67880,
26709,
2354,
14335,
445,
8935,
12,
4475,
16839,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEndToEnd(t *testing.T) {
t.Run("mode=JSON", func(t *testing.T) { testEndToEnd(t, "JSON") })
t.Run("mode=DoH", func(t *testing.T) { testEndToEnd(t, "DoH") })
t.Run("mode=autodetect", func(t *testing.T) { testEndToEnd(t, "autodetect") })
} | explode_data.jsonl/1861 | {
"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,
3727,
66573,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
8516,
28,
5370,
497,
2915,
1155,
353,
8840,
836,
8,
314,
1273,
3727,
66573,
1155,
11,
330,
5370,
899,
2751,
3244,
16708,
445,
8516,
28,
5404,
39,
497,
2915,
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 TestGetSequenceMethod(t *testing.T) {
gbk := Read("../../data/t4_intron.gb")
// Check to see if GetSequence method works on Features struct
feature := gbk.Features[1].GetSequence()
seq := "atgagattacaacgccagagcatcaaagattcagaagttagaggtaaatggtattttaatatcatcggtaaagattctgaacttgttgaaaaagctgaacatcttttacgtgatatggga... | explode_data.jsonl/74813 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 238
} | [
2830,
3393,
1949,
14076,
3523,
1155,
353,
8840,
836,
8,
1476,
3174,
40029,
1669,
4457,
36800,
691,
5523,
19,
1243,
34685,
77262,
5130,
197,
322,
4248,
311,
1490,
421,
2126,
14076,
1714,
4278,
389,
19710,
2036,
198,
1166,
15208,
1669,
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 TestEncodeDecode_DeprecatedMintPrintingTokensViaToken(t *testing.T) {
fu := ag_gofuzz.New().NilChance(0)
for i := 0; i < 1; i++ {
t.Run("DeprecatedMintPrintingTokensViaToken"+strconv.Itoa(i), func(t *testing.T) {
{
params := new(DeprecatedMintPrintingTokensViaToken)
fu.Fuzz(params)
params.Accoun... | explode_data.jsonl/46298 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 285
} | [
2830,
3393,
32535,
32564,
90680,
38777,
44,
396,
38528,
29300,
54428,
3323,
1155,
353,
8840,
836,
8,
341,
1166,
84,
1669,
933,
1889,
1055,
8889,
7121,
1005,
19064,
76070,
7,
15,
340,
2023,
600,
1669,
220,
15,
26,
600,
366,
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 TestInventoryClients(t *testing.T) {
clipi1 := ptp.PortIdentity{
PortNumber: 1,
ClockIdentity: ptp.ClockIdentity(1234),
}
clipi2 := ptp.PortIdentity{
PortNumber: 1,
ClockIdentity: ptp.ClockIdentity(5678),
}
c := &Config{
clockIdentity: ptp.ClockIdentity(1234),
QueueSize: 100, // Making s... | explode_data.jsonl/52927 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 762
} | [
2830,
3393,
22319,
47174,
1155,
353,
8840,
836,
8,
341,
197,
7974,
72,
16,
1669,
281,
790,
43013,
18558,
515,
197,
98459,
2833,
25,
262,
220,
16,
345,
197,
6258,
1023,
18558,
25,
281,
790,
79248,
18558,
7,
16,
17,
18,
19,
1326,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestServeFileMimeType(t *testing.T) {
defer afterTest(t)
ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {
ServeFile(w, r, "testdata/style.css")
}))
defer ts.Close()
resp, err := Get(ts.URL)
if err != nil {
t.Fatal(err)
}
resp.Body.Close()
want := "text/css; charset=utf-8"
if ... | explode_data.jsonl/48232 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 187
} | [
2830,
3393,
60421,
1703,
97081,
1155,
353,
8840,
836,
8,
341,
16867,
1283,
2271,
1155,
340,
57441,
1669,
54320,
70334,
7121,
5475,
7,
3050,
9626,
18552,
3622,
5949,
6492,
11,
435,
353,
1900,
8,
341,
197,
7568,
5852,
1703,
3622,
11,
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... | 1 |
func TestOpCompare(t *testing.T) {
assert := assert.New(t)
jl := NewEmpty()
AddOpLessThan(jl)
AddOpLessEqual(jl)
AddOpGreaterThan(jl)
AddOpGreaterEqual(jl)
TestCases{
// Zero/One param.
{Logic: `{">":[]}`, Data: `null`, Err: true},
{Logic: `{">":[1]}`, Data: `null`, Err: true},
{Logic: `{"<":[]}`, Data: ... | explode_data.jsonl/43989 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1677
} | [
2830,
3393,
7125,
27374,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
340,
12428,
75,
1669,
1532,
3522,
741,
37972,
7125,
27451,
26067,
3325,
75,
340,
37972,
7125,
27451,
2993,
3325,
75,
340,
37972,
7125,
85720,
3325,
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 TestContextGetFloat64(t *testing.T) {
c, _ := CreateTestContext(httptest.NewRecorder())
c.Set("float64", 4.2)
assert.Equal(t, 4.2, c.GetFloat64("float64"))
} | explode_data.jsonl/26750 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 69
} | [
2830,
3393,
1972,
1949,
5442,
21,
19,
1155,
353,
8840,
836,
8,
341,
1444,
11,
716,
1669,
4230,
2271,
1972,
73392,
83,
70334,
7121,
47023,
2398,
1444,
4202,
445,
3649,
21,
19,
497,
220,
19,
13,
17,
340,
6948,
12808,
1155,
11,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
func TestBasicAuthData(t *testing.T) {
username := "myuser"
password := "mypass"
config := clientcmdapi.NewConfig()
config.Clusters["clean"] = &clientcmdapi.Cluster{
Server: "https://localhost:8443",
}
config.AuthInfos["clean"] = &clientcmdapi.AuthInfo{
Username: username,
Password: password,
}
config.Co... | explode_data.jsonl/56161 | {
"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,
15944,
5087,
1043,
1155,
353,
8840,
836,
8,
341,
72358,
1669,
330,
2408,
872,
698,
58199,
1669,
330,
76,
49911,
1837,
25873,
1669,
2943,
8710,
2068,
7121,
2648,
741,
25873,
21610,
14605,
1183,
18377,
1341,
284,
609,
2972,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPushExporterServicer_Submit_Gauge(t *testing.T) {
srv, exp := makeTestCustomPushExporter(t)
err := submitNewMetric(exp, prometheus_models.MetricType_GAUGE, sampleGatewayContext)
assert.NoError(t, err)
assert.Equal(t, 1, totalMetricCount(srv))
err = submitNewMetric(exp, prometheus_models.MetricType_GAUGE,... | explode_data.jsonl/61832 | {
"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,
16644,
88025,
39159,
12999,
36359,
1763,
2646,
19392,
1155,
353,
8840,
836,
8,
341,
1903,
10553,
11,
1343,
1669,
1281,
2271,
10268,
16644,
88025,
1155,
340,
9859,
1669,
9318,
3564,
54310,
25865,
11,
2706,
39705,
30792,
1321,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInventory(t *testing.T) {
ctrl := gomock.NewController(t)
char := character.New()
item0 := mock_character.NewMockItem(ctrl)
item1 := mock_character.NewMockItem(ctrl)
assert.Empty(t, char.Inventory())
char.AddItem(item0)
char.AddItem(item1)
assert.Len(t, char.Inventory(), 2)
assert.Contains(t, char.... | explode_data.jsonl/20225 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 149
} | [
2830,
3393,
22319,
1155,
353,
8840,
836,
8,
341,
84381,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
7450,
1669,
3668,
7121,
2822,
22339,
15,
1669,
7860,
40988,
7121,
11571,
1234,
62100,
340,
22339,
16,
1669,
7860,
40988,
7121,
11571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEmptyContent(t *testing.T) {
dir, err := ioutil.TempDir("", "")
if err != nil {
t.Fatalf("TempDir: %v", err)
}
defer os.RemoveAll(dir)
opts := Options{
IndexDir: dir,
RepositoryDescription: zoekt.Repository{
Name: "repo",
},
}
opts.SetDefaults()
b, err := NewBuilder(opts)
if err != nil {
... | explode_data.jsonl/18269 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 410
} | [
2830,
3393,
3522,
2762,
1155,
353,
8840,
836,
8,
341,
48532,
11,
1848,
1669,
43144,
65009,
6184,
19814,
14676,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
12151,
6184,
25,
1018,
85,
497,
1848,
340,
197,
532,
16867,
2643,
84427,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSolveOperators_WithDependencies(t *testing.T) {
APISet := APISet{opregistry.APIKey{"g", "v", "k", "ks"}: struct{}{}}
Provides := APISet
namespace := "olm"
catalog := registry.CatalogKey{"community", namespace}
csv := existingOperator(namespace, "packageA.v1", "packageA", "alpha", "", Provides, nil, nil,... | explode_data.jsonl/43802 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 899
} | [
2830,
3393,
50,
3948,
77760,
62,
2354,
48303,
1155,
353,
8840,
836,
8,
341,
197,
2537,
1637,
295,
1669,
10106,
1637,
295,
90,
453,
29172,
24922,
1592,
4913,
70,
497,
330,
85,
497,
330,
74,
497,
330,
2787,
9207,
25,
2036,
6257,
6257,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStateBlacklist(t *testing.T) {
ctx := context.Background()
ts := memorytopo.NewServer("cell1")
tm := newTestTM(t, ts, 1, "ks", "0")
defer tm.Stop()
fmd := tm.MysqlDaemon.(*fakemysqldaemon.FakeMysqlDaemon)
fmd.Schema = &tabletmanagerdatapb.SchemaDefinition{
TableDefinitions: []*tabletmanagerdatapb.Tabl... | explode_data.jsonl/75588 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 476
} | [
2830,
3393,
1397,
14417,
1607,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
741,
57441,
1669,
4938,
3481,
78,
7121,
5475,
445,
5873,
16,
1138,
3244,
76,
1669,
501,
2271,
22034,
1155,
11,
10591,
11,
220,
16,
11,
330,
2787,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestClientSubscribeInvalidArg(t *testing.T) {
server := newTestServer()
defer server.Stop()
client := DialInProc(server)
defer client.Close()
check := func(shouldPanic bool, arg interface{}) {
defer func() {
err := recover()
if shouldPanic && err == nil {
t.Errorf("EthSubscribe should've panicked... | explode_data.jsonl/64464 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 315
} | [
2830,
3393,
2959,
28573,
7928,
2735,
1155,
353,
8840,
836,
8,
341,
41057,
1669,
501,
2271,
5475,
741,
16867,
3538,
30213,
741,
25291,
1669,
66155,
641,
24508,
21421,
340,
16867,
2943,
10421,
2822,
25157,
1669,
2915,
7,
5445,
47,
31270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPodEnricher(t *testing.T) {
pod := kube_api.Pod{
ObjectMeta: metav1.ObjectMeta{
Name: "pod1",
Namespace: "ns1",
},
Spec: kube_api.PodSpec{
NodeName: "node1",
Containers: []kube_api.Container{
{
Name: "c1",
Image: "k8s.gcr.io/pause:2.0",
Resources: kube_api.ResourceRe... | explode_data.jsonl/49182 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 915
} | [
2830,
3393,
23527,
1702,
13851,
261,
1155,
353,
8840,
836,
8,
341,
3223,
347,
1669,
80958,
11697,
88823,
515,
197,
23816,
12175,
25,
77520,
16,
80222,
515,
298,
21297,
25,
414,
330,
39073,
16,
756,
298,
90823,
25,
330,
4412,
16,
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... | 2 |
func TestAccResourceWhitelistIP_Basic(t *testing.T) {
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: testAccResourceWhitelistIP(),
Check: resource.ComposeTestCheckFunc(
testAccResourceWhitelistIPExis... | explode_data.jsonl/65377 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 152
} | [
2830,
3393,
14603,
4783,
1639,
57645,
3298,
1668,
5971,
1155,
353,
8840,
836,
8,
341,
50346,
8787,
1155,
11,
5101,
31363,
515,
197,
197,
4703,
3973,
25,
220,
2915,
368,
314,
1273,
14603,
4703,
3973,
1155,
8,
1153,
197,
197,
37351,
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 TestCopyFileFail(t *testing.T) {
if runtime.GOOS == "windows" {
// XXX: setting permissions works differently in
// Microsoft Windows. Skipping this this until a
// compatible implementation is provided.
t.Skip("skipping on windows")
}
dir, err := ioutil.TempDir("", "dep")
if err != nil {
... | explode_data.jsonl/72214 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 334
} | [
2830,
3393,
12106,
1703,
19524,
1155,
353,
8840,
836,
8,
972,
743,
15592,
97574,
3126,
621,
330,
27077,
1,
972,
197,
197,
322,
19975,
25,
6243,
8541,
4278,
21303,
304,
319,
197,
197,
322,
5100,
5515,
13,
96118,
419,
419,
3080,
264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRIPEMD160(t *testing.T) {
d, _ := hex.DecodeString(data)
h := RIPEMD160.Hash(d)
r, _ := hex.DecodeString(RIPEMD160R)
if !bytes.Equal(h, r) {
t.Errorf("RIPEMD160: need: %v, but got: %v \n", r, h)
}
} | explode_data.jsonl/55350 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 108
} | [
2830,
3393,
4305,
1740,
6076,
16,
21,
15,
1155,
353,
8840,
836,
8,
341,
2698,
11,
716,
1669,
12371,
56372,
703,
2592,
340,
9598,
1669,
47497,
1740,
6076,
16,
21,
15,
15103,
1500,
340,
7000,
11,
716,
1669,
12371,
56372,
703,
2785,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGameServerValidate(t *testing.T) {
gs := GameServer{
Spec: GameServerSpec{
Template: corev1.PodTemplateSpec{
Spec: corev1.PodSpec{Containers: []corev1.Container{{Name: "testing", Image: "testing/image"}}}}},
}
gs.ApplyDefaults()
causes, ok := gs.Validate()
assert.True(t, ok)
assert.Empty(t, caus... | explode_data.jsonl/19631 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 964
} | [
2830,
3393,
4868,
5475,
17926,
1155,
353,
8840,
836,
8,
341,
3174,
82,
1669,
4050,
5475,
515,
197,
7568,
992,
25,
4050,
5475,
8327,
515,
298,
197,
7275,
25,
6200,
85,
16,
88823,
7275,
8327,
515,
571,
7568,
992,
25,
6200,
85,
16,
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... | 4 |
func TestCommand(t *testing.T) {
c, _, err := maprobe.LoadConfig("test/command.yaml")
if err != nil {
t.Error(err)
return
}
for i, p := range c.Probes {
probe, err := p.Command.GenerateProbe(&mackerel.Host{ID: "test"}, nil)
ms, err := probe.Run(context.Background())
if err != nil {
t.Error(err)
}
f... | explode_data.jsonl/43523 | {
"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,
4062,
1155,
353,
8840,
836,
8,
341,
1444,
11,
8358,
1848,
1669,
2415,
32836,
13969,
2648,
445,
1944,
83205,
33406,
1138,
743,
1848,
961,
2092,
341,
197,
3244,
6141,
3964,
340,
197,
853,
198,
197,
532,
2023,
600,
11,
281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCACommon_GenerateRSACertificateRequest_Fail(t *testing.T) {
_, errCA = CAGenerateRSACertificateRequest(&CertRequest{
PrivateKeyData: priData,
CertificateRequestFilePath: filepath.Join(pathcarsapksc1512, caCertificateRequestFileName),
SignatureAlgorithm: x509.SHA256WithRSAPSS,
Subje... | explode_data.jsonl/24079 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 175
} | [
2830,
3393,
5049,
10839,
2646,
13220,
11451,
1706,
20962,
1900,
1400,
604,
1155,
353,
8840,
836,
8,
341,
197,
6878,
1848,
5049,
284,
356,
1890,
13220,
11451,
1706,
20962,
1900,
2099,
36934,
1900,
515,
197,
197,
75981,
1043,
25,
1797,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestDaoUpReportsState(t *testing.T) {
var (
c = context.TODO()
ids = []int64{0}
state = int32(0)
)
convey.Convey("UpReportsState", t, func(ctx convey.C) {
affect, err := d.UpReportsState(c, ids, state)
ctx.Convey("Then err should be nil.affect should not be nil.", func(ctx convey.C) {
ctx.So(... | explode_data.jsonl/51297 | {
"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,
12197,
2324,
23748,
1397,
1155,
353,
8840,
836,
8,
341,
2405,
2399,
197,
1444,
257,
284,
2266,
90988,
741,
197,
197,
3365,
256,
284,
3056,
396,
21,
19,
90,
15,
532,
197,
24291,
284,
526,
18,
17,
7,
15,
340,
197,
340,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGetAccessToken(t *testing.T) {
c, _ := NewClient(testClientID, testSecret, APIBaseSandBox)
token, err := c.GetAccessToken()
if err != nil {
t.Errorf("Not expected error for GetAccessToken(), got %s", err.Error())
}
if token.Token == "" {
t.Errorf("Expected non-empty token for GetAccessToken()")
}
} | explode_data.jsonl/18441 | {
"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,
1949,
37649,
1155,
353,
8840,
836,
8,
341,
1444,
11,
716,
1669,
1532,
2959,
8623,
2959,
915,
11,
1273,
19773,
11,
5333,
3978,
47044,
1611,
340,
43947,
11,
1848,
1669,
272,
2234,
37649,
741,
743,
1848,
961,
2092,
341,
197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestPeerConnection_EventHandlers(t *testing.T) {
pcOffer, err := NewPeerConnection(Configuration{})
assert.NoError(t, err)
pcAnswer, err := NewPeerConnection(Configuration{})
assert.NoError(t, err)
// wasCalled is a list of event handlers that were called.
wasCalled := []string{}
wasCalledMut := &sync.Mute... | explode_data.jsonl/8648 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1197
} | [
2830,
3393,
30888,
4526,
39354,
39949,
1155,
353,
8840,
836,
8,
341,
82013,
39462,
11,
1848,
1669,
1532,
30888,
4526,
45443,
37790,
6948,
35699,
1155,
11,
1848,
340,
82013,
16141,
11,
1848,
1669,
1532,
30888,
4526,
45443,
37790,
6948,
356... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCreateFileShareSnapshotDBEntry(t *testing.T) {
var fileshare = &model.FileShareSpec{
BaseModel: &model.BaseModel{
Id: "bd5b12a8-a101-11e7-941e-d77981b584d8",
},
Status: "available",
}
var req = &model.FileShareSnapshotSpec{
BaseModel: &model.BaseModel{
Id: "3769855c-a102-11e7-b772-17b880d2f537... | explode_data.jsonl/29979 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 747
} | [
2830,
3393,
4021,
1703,
12115,
15009,
3506,
5874,
1155,
353,
8840,
836,
8,
341,
2405,
1034,
19368,
284,
609,
2528,
8576,
12115,
8327,
515,
197,
66732,
1712,
25,
609,
2528,
13018,
1712,
515,
298,
67211,
25,
330,
8940,
20,
65,
16,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestSetCellStyleProtection(t *testing.T) {
f, err := prepareTestBook1()
if !assert.NoError(t, err) {
t.FailNow()
}
var style int
style, err = f.NewStyle(`{"protection":{"hidden":true, "locked":true}}`)
if !assert.NoError(t, err) {
t.FailNow()
}
assert.NoError(t, f.SetCellStyle("Sheet2", "A6", "A6", s... | explode_data.jsonl/36976 | {
"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,
1649,
15171,
78998,
1155,
353,
8840,
836,
8,
341,
1166,
11,
1848,
1669,
10549,
2271,
7134,
16,
741,
743,
753,
2207,
35699,
1155,
11,
1848,
8,
341,
197,
3244,
57243,
7039,
741,
197,
630,
2405,
1707,
526,
198,
42551,
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... | 4 |
func TestVulnerabilities(t *testing.T) {
t.Parallel()
tests := []struct {
err error
name string
expected clients.VulnerabilitiesResponse
isError bool
}{
{
name: "Valid response",
isError: false,
expected: clients.VulnerabilitiesResponse{},
},
}
for _, tt := range tests {
tt :... | explode_data.jsonl/12772 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 609
} | [
2830,
3393,
53,
58401,
8456,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
78216,
1669,
3056,
1235,
341,
197,
9859,
414,
1465,
198,
197,
11609,
257,
914,
198,
197,
42400,
8239,
5058,
58401,
8456,
2582,
198,
197,
19907,
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... | 2 |
func TestTextWriterPrintsLabelInCorrectPlace(t *testing.T) {
writerToTest := createTextWriter("Label", point{1, 1})
y := 0
x := 0
// Should not print on the first line
for x := 0; x < 10; x++ {
char := writerToTest(' ', point{x, y})
if char != ' ' {
t.Errorf("Label starting at (1, 1) should not print at: (... | explode_data.jsonl/30724 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 350
} | [
2830,
3393,
81421,
8994,
82,
2476,
641,
33092,
17371,
1155,
353,
8840,
836,
8,
341,
38959,
1249,
2271,
1669,
1855,
81421,
445,
2476,
497,
1459,
90,
16,
11,
220,
16,
8824,
14522,
1669,
220,
15,
198,
10225,
1669,
220,
15,
198,
197,
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... | 6 |
func TestConsulSource(t *testing.T) {
const (
certURL = "http://localhost:8500/v1/kv/fabio/test/consul-server"
dataDir = "/tmp/fabio-consul-source-test"
)
// run a consul server if it isn't already running
_, err := http.Get("http://localhost:8500/v1/status/leader")
if err != nil {
t.Log("Starting consul se... | explode_data.jsonl/24946 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 653
} | [
2830,
3393,
15220,
360,
3608,
1155,
353,
8840,
836,
8,
341,
4777,
2399,
197,
1444,
529,
3144,
284,
330,
1254,
1110,
8301,
25,
23,
20,
15,
15,
5457,
16,
14109,
85,
6663,
370,
815,
12697,
14,
6254,
360,
26300,
698,
197,
8924,
6184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestCaseBerlinRio(t *testing.T) {
// Berlin - Rio Case
CaseBRIO := TestCase{[4]float64{-43.209373, -22.911014, 13.38886, 52.517037}, 2, "Berlin - RIO"}
ImageBRIO := NewImage(CaseBRIO.bbox)
// Find Tiles including the zoom level
ImageBRIO.FindRootTile()
ImageBRIO.ComposeImage("BerlinRio")
tiles, _ := TilesD... | explode_data.jsonl/81856 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 238
} | [
2830,
30573,
94409,
88046,
1155,
353,
8840,
836,
8,
341,
197,
322,
19846,
481,
26961,
11538,
198,
197,
4207,
13095,
3810,
1669,
30573,
90,
58,
19,
60,
3649,
21,
19,
19999,
19,
18,
13,
17,
15,
24,
18,
22,
18,
11,
481,
17,
17,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestMatDataPtr(t *testing.T) {
const (
rows = 101
cols = 102
)
t.Run("Uint8", func(t *testing.T) {
testPoints := []struct {
row int
col int
val uint8
}{
{row: 0, col: 0, val: 10},
{row: 30, col: 31, val: 20},
{row: rows - 1, col: cols - 1, val: 30},
}
mat := NewMatWithSize(rows, c... | explode_data.jsonl/81693 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2318
} | [
2830,
3393,
11575,
1043,
5348,
1155,
353,
8840,
836,
8,
341,
4777,
2399,
197,
68438,
284,
220,
16,
15,
16,
198,
197,
1444,
3069,
284,
220,
16,
15,
17,
198,
197,
340,
3244,
16708,
445,
21570,
23,
497,
2915,
1155,
353,
8840,
836,
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 TestLockerLock(t *testing.T) {
l := New()
l.Lock("test")
ctr := l.locks["test"]
if ctr.count() != 0 {
t.Fatalf("expected waiters to be 0, got :%d", ctr.waiters)
}
chDone := make(chan struct{})
go func() {
l.Lock("test")
close(chDone)
}()
chWaiting := make(chan struct{})
go func() {
for range t... | explode_data.jsonl/60367 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 393
} | [
2830,
3393,
87253,
11989,
1155,
353,
8840,
836,
8,
341,
8810,
1669,
1532,
741,
8810,
31403,
445,
1944,
1138,
197,
10597,
1669,
326,
21003,
82,
1183,
1944,
25912,
743,
50638,
6501,
368,
961,
220,
15,
341,
197,
3244,
30762,
445,
7325,
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 TestUnaryServerInterceptorWithDummyRequestId(t *testing.T) {
dummyRequestID := newRequestID()
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
reqID, exists := FromContext(ctx)
if !exists || reqID != dummyRequestID {
t.Errorf("expected requestID: %q, returned requestId: %q", du... | explode_data.jsonl/74063 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 230
} | [
2830,
3393,
94545,
5475,
32786,
2354,
43344,
61774,
1155,
353,
8840,
836,
8,
341,
2698,
8574,
1900,
915,
1669,
501,
1900,
915,
741,
53326,
1669,
2915,
7502,
2266,
9328,
11,
4232,
3749,
28875,
320,
4970,
22655,
1465,
8,
341,
197,
24395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestPing(t *testing.T) {
conn := NewRawPing()
err := conn.Encode()
if err != nil {
t.Fatal("err!=nil", err)
}
fmt.Println("")
for _, v := range conn.Encoded.Bytes() {
fmt.Printf("'%#x' ", v)
}
b := conn.Encoded.Bytes()
p := conn.GetPacket().(*packet.Packet)
// header boundary
fmt.Println("content", ... | explode_data.jsonl/68470 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 167
} | [
2830,
3393,
69883,
1155,
353,
8840,
836,
8,
341,
32917,
1669,
1532,
20015,
69883,
741,
9859,
1669,
4534,
50217,
741,
743,
1848,
961,
2092,
341,
197,
3244,
26133,
445,
615,
5824,
8385,
497,
1848,
340,
197,
532,
11009,
12419,
31764,
2023,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestGetBlockDeviceMappings(t *testing.T) {
rootDeviceName := "/dev/sda1"
volumeSize := int64(16384)
volumeType := "ssd"
mockCtrl := gomock.NewController(t)
mockAWSClient := mockaws.NewMockClient(mockCtrl)
mockAWSClient.EXPECT().DescribeImages(gomock.Any()).Return(&ec2.DescribeImagesOutput{
Images: []*ec2.I... | explode_data.jsonl/18753 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 751
} | [
2830,
3393,
1949,
4713,
6985,
83421,
1155,
353,
8840,
836,
8,
341,
33698,
6985,
675,
1669,
3521,
3583,
2687,
3235,
16,
698,
5195,
4661,
1695,
1669,
526,
21,
19,
7,
16,
21,
18,
23,
19,
340,
5195,
4661,
929,
1669,
330,
778,
67,
698,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestBrokerRedelivery(t *testing.T) {
channelTestRunner.RunTests(t, testlib.FeatureRedelivery, func(t *testing.T, component metav1.TypeMeta) {
brokerCreator := ChannelBasedBrokerCreator(component, eventing.MTChannelBrokerClassValue)
helpers.BrokerRedelivery(t, brokerCreator)
})
} | explode_data.jsonl/18764 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 102
} | [
2830,
3393,
65545,
6033,
72871,
1155,
353,
8840,
836,
8,
341,
71550,
2271,
19486,
16708,
18200,
1155,
11,
1273,
2740,
58434,
6033,
72871,
11,
2915,
1155,
353,
8840,
836,
11,
3692,
77520,
16,
10184,
12175,
8,
1476,
197,
2233,
45985,
3186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestOptionBool_Hash(t *testing.T) {
assertHash(t, []hashAssert{
{NewOptionBool(NewBool(true)), MustHexDecodeString(
"0xee155ace9c40292074cb6aff8c9ccdd273c81648ff1149ef36bcea6ebb8a3e25")},
{NewOptionBool(NewBool(false)), MustHexDecodeString(
"0xbb30a42c1e62f0afda5f0a4e8a562f7a13a24cea00ee81917b86b89e8013... | explode_data.jsonl/40249 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 242
} | [
2830,
3393,
5341,
11233,
2039,
988,
1155,
353,
8840,
836,
8,
341,
6948,
6370,
1155,
11,
3056,
8296,
8534,
515,
197,
197,
90,
3564,
5341,
11233,
35063,
11233,
3715,
5731,
15465,
20335,
32564,
703,
1006,
298,
197,
1,
15,
50138,
16,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.