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 TestParseLocalboot(t *testing.T) {
b, _, err := parseLocalbootFlags("grub", []string{})
if err != nil {
t.Errorf(`parseLocalbootFlags("grub", []string{}) = _, _, %v, want nil`, err)
}
if b.Method != "grub" {
t.Errorf(`b.Method = %q, want "grub"`, b.Method)
}
flags := []string{
"device",
"path",
}
... | explode_data.jsonl/25074 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 286
} | [
2830,
3393,
14463,
7319,
4619,
1155,
353,
8840,
836,
8,
341,
2233,
11,
8358,
1848,
1669,
4715,
7319,
4619,
9195,
445,
901,
392,
497,
3056,
917,
37790,
743,
1848,
961,
2092,
341,
197,
3244,
13080,
5809,
6400,
7319,
4619,
9195,
445,
901... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestELEMENTMul(t *testing.T) {
parameters := gopter.DefaultTestParameters()
parameters.MinSuccessfulTests = 10000
properties := gopter.NewProperties(parameters)
genA := gen()
genB := gen()
properties.Property("Having the receiver as operand should output the same result", prop.ForAll(
func(a, b testPai... | explode_data.jsonl/70338 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 606
} | [
2830,
3393,
91754,
59155,
1155,
353,
8840,
836,
8,
1476,
67543,
1669,
728,
73137,
13275,
2271,
9706,
741,
67543,
17070,
36374,
18200,
284,
220,
16,
15,
15,
15,
15,
271,
86928,
1669,
728,
73137,
7121,
7903,
37959,
692,
82281,
32,
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... | 3 |
func TestGeoIP(t *testing.T) {
ip := net.ParseIP("103.14.100.100")
t.Log(Query(ip))
if Query(ip) != "HK" {
t.Error("ip mismatch")
}
} | explode_data.jsonl/52885 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 68
} | [
2830,
3393,
37344,
3298,
1155,
353,
8840,
836,
8,
341,
46531,
1669,
4179,
8937,
3298,
445,
16,
15,
18,
13,
16,
19,
13,
16,
15,
15,
13,
16,
15,
15,
5130,
3244,
5247,
59036,
23443,
1171,
743,
11361,
23443,
8,
961,
330,
57447,
1,
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
] | 2 |
func TestLocalPrefix(t *testing.T) {
defer func(s string) { LocalPrefix = s }(LocalPrefix)
LocalPrefix = "foo/"
testConfig{
gopathFiles: map[string]string{
"foo/bar/bar.go": "package bar \n const X = 1",
},
}.test(t, func(t *goimportTest) {
buf, err := Process(t.gopath+"/src/test/t.go", []byte("package ma... | explode_data.jsonl/12432 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 269
} | [
2830,
3393,
7319,
14335,
1155,
353,
8840,
836,
8,
341,
16867,
2915,
1141,
914,
8,
314,
8774,
14335,
284,
274,
95916,
7319,
14335,
340,
82404,
14335,
284,
330,
7975,
85312,
18185,
2648,
515,
197,
3174,
35111,
10809,
25,
2415,
14032,
3095... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIssue19384(t *testing.T) {
cookies := []*http.Cookie{{Name: "name", Value: "value"}}
for _, host := range []string{"", ".", "..", "..."} {
jar, _ := New(nil)
u := &url.URL{Scheme: "http", Host: host, Path: "/"}
if got := jar.Cookies(u); len(got) != 0 {
t.Errorf("host %q, got %v", host, got)
}
ja... | explode_data.jsonl/14673 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 210
} | [
2830,
3393,
42006,
16,
24,
18,
23,
19,
1155,
353,
8840,
836,
8,
341,
197,
44317,
1669,
29838,
1254,
82918,
2979,
675,
25,
330,
606,
497,
5162,
25,
330,
957,
95642,
2023,
8358,
3468,
1669,
2088,
3056,
917,
4913,
497,
68514,
32213,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 5 |
func TestPreAuthorizeSuffix(t *testing.T) {
runPreAuthorizeHandler(
t, nil, "/different-authorize",
regexp.MustCompile(`/authorize\z`),
&api.Response{},
200, 404)
} | explode_data.jsonl/2401 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 74
} | [
2830,
3393,
4703,
37483,
40177,
1155,
353,
8840,
836,
8,
341,
56742,
4703,
37483,
3050,
1006,
197,
3244,
11,
2092,
11,
3521,
63650,
42702,
551,
756,
197,
37013,
4580,
98626,
31813,
52022,
59,
89,
89746,
197,
197,
5,
2068,
12574,
38837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRedactf(t *testing.T) {
backend := InitForTesting(DEBUG)
password := Password("123456")
log := NewLogger("test")
log.Debugf("foo %s", password)
if "foo ******" != MemoryRecordN(backend, 0).Formatted(0, false) {
t.Errorf("redacted line: %v", MemoryRecordN(backend, 0).Formatted(0, false))
}
} | explode_data.jsonl/76185 | {
"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,
6033,
531,
69,
1155,
353,
8840,
836,
8,
341,
197,
20942,
1669,
15690,
2461,
16451,
52792,
340,
58199,
1669,
12362,
445,
16,
17,
18,
19,
20,
21,
1138,
6725,
1669,
1532,
7395,
445,
1944,
1138,
6725,
88278,
445,
7975,
1018,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestFormatterUnusedError(test *testing.T) {
writer := &WriterError{
Skip: 1,
}
assert.Error(test, formatter.New().FormatWriter(writer, "{p}", 2, 5))
} | explode_data.jsonl/39741 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 61
} | [
2830,
3393,
14183,
94033,
1454,
8623,
353,
8840,
836,
8,
341,
38959,
1669,
609,
6492,
1454,
515,
197,
7568,
13389,
25,
220,
16,
345,
197,
630,
6948,
6141,
8623,
11,
24814,
7121,
1005,
4061,
6492,
38356,
11,
13868,
79,
9545,
220,
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 |
func TestBitMatrixParser_ReadFormatInformation(t *testing.T) {
img, _ := gozxing.ParseStringToBitMatrix(qrstr, "##", " ")
p, _ := NewBitMatrixParser(img)
info, e := p.ReadFormatInformation()
if e != nil {
t.Fatalf("ReadFormatInformation returns error, %v", e)
}
if r := info.GetErrorCorrectionLevel(); r != Err... | explode_data.jsonl/32239 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 359
} | [
2830,
3393,
8344,
6689,
6570,
38381,
4061,
14873,
1155,
353,
8840,
836,
8,
341,
39162,
11,
716,
1669,
728,
66700,
287,
8937,
703,
1249,
8344,
6689,
10583,
81,
495,
11,
330,
565,
497,
330,
220,
14167,
3223,
11,
716,
1669,
1532,
8344,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRuneEncodeDecode(t *testing.T) {
tt := &TestType{}
r := 'r'
rp := &r
tt.Rune = r
tt.RunePtr = &r
tt.RunePtrPtr = &rp
tt.RuneSlice = []rune{'a', 'b', '😳'}
var buf bytes.Buffer
wrt := msgp.NewWriter(&buf)
if err := tt.EncodeMsg(wrt); err != nil {
t.Errorf("%v", err)
}
wrt.Flush()
var out TestTy... | explode_data.jsonl/76327 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 383
} | [
2830,
3393,
49,
2886,
32535,
32564,
1155,
353,
8840,
836,
8,
341,
3244,
83,
1669,
609,
2271,
929,
16094,
7000,
1669,
364,
81,
1248,
7000,
79,
1669,
609,
81,
198,
3244,
83,
2013,
2886,
284,
435,
198,
3244,
83,
2013,
2886,
5348,
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... | 7 |
func TestAveragingInIncrementProposerPriorityWithVotingPower(t *testing.T) {
// Other than TestAveragingInIncrementProposerPriority this is a more complete test showing
// how each ProposerPriority changes in relation to the validator's voting power respectively.
// average is zero in each round:
vp0 := int64(10)
... | explode_data.jsonl/28321 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1641
} | [
2830,
3393,
32,
423,
4118,
641,
38311,
2008,
23438,
20555,
2354,
53,
11519,
14986,
1155,
353,
8840,
836,
8,
341,
197,
322,
6944,
1091,
3393,
32,
423,
4118,
641,
38311,
2008,
23438,
20555,
419,
374,
264,
803,
4583,
1273,
9027,
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 TestRuleInsertSelect(t *testing.T) {
common.Log.Debug("Entering function: %s", common.GetFunctionName())
sqls := []string{
`INSERT INTO tbl SELECT * FROM tbl2;`,
}
for _, sql := range sqls {
q, err := NewQuery4Audit(sql)
if err == nil {
rule := q.RuleInsertSelect()
if rule.Item != "LCK.001" {
t... | explode_data.jsonl/76777 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 210
} | [
2830,
3393,
11337,
13780,
3379,
1155,
353,
8840,
836,
8,
341,
83825,
5247,
20345,
445,
82867,
729,
25,
1018,
82,
497,
4185,
2234,
5152,
675,
2398,
30633,
82,
1669,
3056,
917,
515,
197,
197,
63,
12698,
12496,
21173,
19094,
353,
4295,
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 TestTxnCoordSenderHeartbeat(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)
s := createTestDBWithKnobs(t, &kvserver.StoreTestingKnobs{
DisableScanner: true,
DisableSplitQueue: true,
DisableMergeQueue: true,
})
defer s.Stop()
ctx := context.Background()
keyA := roachpb.Key... | explode_data.jsonl/76884 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1395
} | [
2830,
3393,
31584,
77,
19437,
20381,
45384,
22227,
1155,
353,
8840,
836,
8,
341,
16867,
23352,
1944,
36892,
2271,
1155,
8,
741,
16867,
1487,
77940,
1155,
568,
7925,
1155,
340,
1903,
1669,
1855,
2271,
3506,
2354,
36253,
5481,
1155,
11,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestSaveUndeliveredEvents(t *testing.T) {
common.SetUpMockConfig()
defer func() {
err := common.TruncateDB(common.OnDisk)
if err != nil {
t.Fatalf("error: %v", err)
}
}()
eventByte := []byte(`event`)
if cerr := SaveUndeliveredEvents("destination", eventByte); cerr != nil {
t.Errorf("Error while mak... | explode_data.jsonl/49419 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 148
} | [
2830,
3393,
8784,
19957,
301,
43056,
7900,
1155,
353,
8840,
836,
8,
341,
83825,
4202,
2324,
11571,
2648,
741,
16867,
2915,
368,
341,
197,
9859,
1669,
4185,
8240,
26900,
3506,
57802,
8071,
47583,
340,
197,
743,
1848,
961,
2092,
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... | 2 |
func TestNextGreatestLetter(t *testing.T) {
if NextGreatestLetter([]byte("cfj"), byte('a')) != byte('c') {
t.Fail()
}
if NextGreatestLetter([]byte("cfj"), byte('c')) != byte('f') {
t.Fail()
}
if NextGreatestLetter([]byte("cfj"), byte('d')) != byte('f') {
t.Fail()
}
if NextGreatestLetter([]byte("cfj"), ... | explode_data.jsonl/11608 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 264
} | [
2830,
3393,
5847,
38,
11175,
34264,
1155,
353,
8840,
836,
8,
220,
341,
743,
9295,
38,
11175,
34264,
10556,
3782,
445,
9792,
73,
3975,
4922,
492,
64,
3789,
961,
4922,
492,
66,
863,
341,
197,
3244,
57243,
741,
197,
630,
743,
9295,
38,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestFeeUpdateOldDiskFormat(t *testing.T) {
t.Parallel()
// Create a test channel which will be used for the duration of this
// unittest. The channel will be funded evenly with Alice having 5 BTC,
// and Bob having 5 BTC.
aliceChannel, bobChannel, cleanUp, err := CreateTestChannels()
if err != nil {
t.Fat... | explode_data.jsonl/46439 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2614
} | [
2830,
3393,
41941,
4289,
18284,
47583,
4061,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
197,
322,
4230,
264,
1273,
5496,
892,
686,
387,
1483,
369,
279,
8090,
315,
419,
198,
197,
322,
19905,
13,
576,
5496,
686,
387,
23906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStreamSelectEqual(t *testing.T) {
executor, _, _, _ := createLegacyExecutorEnv()
sql := "select id from user where id = 1"
result, err := executorStream(executor, sql)
require.NoError(t, err)
wantResult := sandboxconn.StreamRowResult
if !result.Equal(wantResult) {
t.Errorf("result: %+v, want %+v", res... | explode_data.jsonl/67404 | {
"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,
3027,
3379,
2993,
1155,
353,
8840,
836,
8,
341,
67328,
4831,
11,
8358,
8358,
716,
1669,
1855,
77415,
25255,
14359,
2822,
30633,
1669,
330,
1742,
877,
504,
1196,
1380,
877,
284,
220,
16,
698,
9559,
11,
1848,
1669,
31558,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDB_SubscribePush(t *testing.T) {
db := newTestDB(t, nil)
chunks := make([]swarm.Chunk, 0)
var chunksMu sync.Mutex
chunkProcessedTimes := make([]int, 0)
uploadRandomChunks := func(count int) {
chunksMu.Lock()
defer chunksMu.Unlock()
for i := 0; i < count; i++ {
ch := generateTestRandomChunk()
... | explode_data.jsonl/68485 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 850
} | [
2830,
3393,
3506,
36359,
6273,
16644,
1155,
353,
8840,
836,
8,
341,
20939,
1669,
501,
2271,
3506,
1155,
11,
2092,
692,
23049,
15296,
1669,
1281,
10556,
2280,
2178,
6353,
3122,
11,
220,
15,
340,
2405,
26757,
39120,
12811,
99014,
271,
230... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTxGasLimits(t *testing.T) {
gasGranted := uint64(10)
ante := func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) {
count := tx.(txTest).Counter
ctx.GasMeter().ConsumeGas(uint64(count), "counter-ante")
return ctx, nil
}
txHandlerOpt := func(bapp *baseapp.BaseApp) {
legacyRouter :=... | explode_data.jsonl/30042 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1105
} | [
2830,
3393,
31584,
58728,
94588,
1155,
353,
8840,
836,
8,
341,
3174,
300,
55481,
1669,
2622,
21,
19,
7,
16,
15,
692,
197,
4942,
1669,
2915,
7502,
45402,
9328,
11,
9854,
45402,
81362,
11,
37453,
1807,
8,
320,
51295,
9328,
11,
1465,
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 TestTrimElement(t *testing.T) {
var input, result []string
input = []string{"1", " ", "3"}
result = []string{"1", "3"}
assert.Equal(t, result, trimElement(input))
input = []string{"1", "2"}
result = []string{"1", "2"}
assert.Equal(t, result, trimElement(input))
} | explode_data.jsonl/17932 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 109
} | [
2830,
3393,
25656,
1691,
1155,
353,
8840,
836,
8,
341,
2405,
1946,
11,
1102,
3056,
917,
271,
22427,
284,
3056,
917,
4913,
16,
497,
330,
257,
3670,
330,
18,
16707,
9559,
284,
3056,
917,
4913,
16,
497,
330,
18,
63159,
6948,
12808,
115... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func Test_awsSagemakerPlugin_getEventInfoForHyperparameterTuningJob(t *testing.T) {
// Default config does not contain a roleAnnotationKey -> expecting to get the role from default config
ctx := context.TODO()
defaultCfg := config.GetSagemakerConfig()
defer func() {
_ = config.SetSagemakerConfig(defaultCfg)
}()
... | explode_data.jsonl/51688 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1332
} | [
2830,
3393,
62,
8635,
50,
14661,
4407,
11546,
3062,
1556,
1731,
2461,
73946,
16181,
51,
37202,
12245,
1155,
353,
8840,
836,
8,
341,
197,
322,
7899,
2193,
1558,
537,
6644,
264,
3476,
19711,
1592,
1464,
22331,
311,
633,
279,
3476,
504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestValidateCertTime(t *testing.T) {
cert := Certificate{
ValidPrincipals: []string{"user"},
Key: testPublicKeys["rsa"],
ValidAfter: 50,
ValidBefore: 100,
}
cert.SignCert(rand.Reader, testSigners["ecdsa"])
for ts, ok := range map[int64]bool{
... | explode_data.jsonl/30249 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 458
} | [
2830,
3393,
17926,
36934,
1462,
1155,
353,
8840,
836,
8,
341,
262,
2777,
1669,
31402,
515,
286,
7818,
3533,
5706,
1127,
25,
3056,
917,
4913,
872,
7115,
286,
5309,
25,
1797,
1273,
12676,
8850,
1183,
60869,
8097,
286,
7818,
6025,
25,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDSV_Serialize_FullPkg(t *testing.T) {
d := dsv.NewDSVMust(dsv.DSVOpt{
ParseHeader: dsv.DBool(false),
Serializers: dsv.DSerial(map[string]func(interface{}) ([]byte, bool){
"*dsv_test.X": func(i interface{}) ([]byte, bool) {
switch i.(type) {
case *X:
if i.(*X) == nil {
return []byte("... | explode_data.jsonl/11887 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 353
} | [
2830,
3393,
5936,
53,
1098,
9050,
1400,
617,
47,
7351,
1155,
353,
8840,
836,
8,
341,
2698,
1669,
294,
3492,
7121,
5936,
11187,
590,
1500,
3492,
909,
50,
11169,
417,
515,
197,
10025,
2583,
4047,
25,
294,
3492,
909,
11233,
3576,
1326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTLSConfig_TLSCertNegative(t *testing.T) {
// test with wrong path
tlsConfig := &TLSConfig{
Path: "dummy/path",
Pem: "",
}
e := tlsConfig.LoadBytes()
assert.NotNil(t, e, "expected error loading certificate for wrong cert path")
c, ok, e := tlsConfig.TLSCert()
assert.Nil(t, e, "error supposed to be... | explode_data.jsonl/78490 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 485
} | [
2830,
3393,
45439,
2648,
1139,
43,
3540,
529,
38489,
1155,
353,
8840,
836,
8,
1476,
197,
322,
1273,
448,
4969,
1815,
198,
3244,
4730,
2648,
1669,
609,
45439,
2648,
515,
197,
69640,
25,
330,
31390,
50976,
756,
197,
10025,
336,
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... | 1 |
func TestRESTMapper(t *testing.T) {
resources := []*APIGroupResources{
{
Group: metav1.APIGroup{
Name: "extensions",
Versions: []metav1.GroupVersionForDiscovery{
{Version: "v1beta"},
},
PreferredVersion: metav1.GroupVersionForDiscovery{Version: "v1beta"},
},
VersionedResources: map[stri... | explode_data.jsonl/14797 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2068
} | [
2830,
3393,
38307,
10989,
1155,
353,
8840,
836,
8,
341,
10202,
2360,
1669,
29838,
7082,
2808,
11277,
515,
197,
197,
515,
298,
197,
2808,
25,
77520,
16,
24922,
2808,
515,
571,
21297,
25,
330,
27609,
756,
571,
17446,
35279,
25,
3056,
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... | 7 |
func TestAncestoryNames(t *testing.T) {
tests := []struct {
name string
chain []string
to string
want []string
}{
{name: "no parent to root", chain: []string{"foo"}, want: []string{"foo"}},
{name: "no parent to self", chain: []string{"foo"}, to: "foo", want: []string{"foo"}},
{name: "two-level to r... | explode_data.jsonl/28405 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 439
} | [
2830,
3393,
2082,
15184,
679,
7980,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
220,
914,
198,
197,
197,
8819,
3056,
917,
198,
197,
31709,
262,
914,
198,
197,
50780,
220,
3056,
917,
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... | 2 |
func TestDocTypes(t *testing.T) {
for _, tt := range docTests {
data, err := ioutil.ReadFile(tt.file)
require.Nil(t, err)
doc, err := goquery.NewDocumentFromReader(bytes.NewReader(data))
require.Nil(t, err)
if tt.fn(doc) != tt.expected {
t.Errorf("expect doc check of %v to be %v", tt.file, tt.expected)
... | explode_data.jsonl/4317 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 146
} | [
2830,
3393,
9550,
4173,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17853,
1669,
2088,
4629,
18200,
341,
197,
8924,
11,
1848,
1669,
43144,
78976,
47152,
9715,
340,
197,
17957,
59678,
1155,
11,
1848,
692,
197,
59536,
11,
1848,
1669,
728,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMetricProcessorAddPath(t *testing.T) {
processor := GetMetricProcessor()
temp := PathConfig{
Namespace: "xyz",
Path: "/abc",
}
processor.AddPath(temp)
out, _ := processor.paths[temp.Path]
assert.NotNil(t, out)
assert.Equal(t, out.Namespace, temp.Namespace)
} | explode_data.jsonl/70871 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 116
} | [
2830,
3393,
54310,
22946,
2212,
1820,
1155,
353,
8840,
836,
8,
341,
197,
29474,
1669,
2126,
54310,
22946,
741,
16280,
1669,
7933,
2648,
515,
197,
90823,
25,
330,
28854,
756,
197,
69640,
25,
414,
3521,
13683,
756,
197,
532,
197,
29474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestValidateEcsPlacementConstraint(t *testing.T) {
cases := []struct {
constType string
constExpr string
Err bool
}{
{
constType: "distinctInstance",
constExpr: "",
Err: false,
},
{
constType: "memberOf",
constExpr: "",
Err: true,
},
{
constType: "distinctIn... | explode_data.jsonl/78595 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 336
} | [
2830,
3393,
17926,
36,
4837,
28237,
17890,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
3056,
1235,
341,
197,
4777,
929,
914,
198,
197,
4777,
16041,
914,
198,
197,
197,
7747,
981,
1807,
198,
197,
59403,
197,
197,
515,
298,
4777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTxInvalidUnsignedTx(t *testing.T) {
ctx := NewContext(t)
c, m := setupCodec()
if err := c.RegisterType(&avax.TestVerifiable{}); err != nil {
t.Fatal(err)
}
tx := &Tx{
UnsignedTx: &BaseTx{BaseTx: avax.BaseTx{
NetworkID: networkID,
BlockchainID: chainID,
Ins: []*avax.TransferableInput{
... | explode_data.jsonl/48914 | {
"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,
31584,
7928,
56421,
31584,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
1532,
1972,
1155,
340,
1444,
11,
296,
1669,
6505,
36913,
741,
743,
1848,
1669,
272,
81703,
2099,
10914,
8787,
10141,
22619,
6257,
1215,
1848,
961,
2092,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestIsIPAddress(t *testing.T) {
testCases := []struct {
host string
result bool
}{
{"8.8.8.8", true},
{"example.com", false},
}
for i, tc := range testCases {
t.Run(fmt.Sprintf("%d: %+v", i, tc.host), func(t *testing.T) {
isIP, _ := isIPAddress(tc.host)
if isIP != tc.result {
t.Fatalf("U... | explode_data.jsonl/61135 | {
"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,
3872,
87976,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
63104,
256,
914,
198,
197,
9559,
1807,
198,
197,
59403,
197,
197,
4913,
23,
13,
23,
13,
23,
13,
23,
497,
830,
1583,
197,
197,
4913,
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... | 2 |
func TestGetYaml(t *testing.T) {
testTables := []struct {
validConfigs ValidConfigs
expectedStrings []string
expectedErr bool
}{
{
validConfigs: ValidConfigs{
configList: &configList{
Items: []config{
{
Params: []ConfigParams{
{
OS: "ubuntu-1710",
R... | explode_data.jsonl/44887 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 852
} | [
2830,
3393,
88300,
9467,
1155,
353,
8840,
836,
8,
341,
18185,
21670,
1669,
3056,
1235,
341,
197,
56322,
84905,
262,
7818,
84905,
198,
197,
42400,
20859,
3056,
917,
198,
197,
42400,
7747,
257,
1807,
198,
197,
59403,
197,
197,
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... | 8 |
func TestValidateAuthenticationMeshPolicy(t *testing.T) {
cases := []struct {
name string
configName string
in proto.Message
valid bool
}{
{
name: "good name",
configName: DefaultAuthenticationPolicyName,
in: &authn.Policy{},
valid: true,
},
{
name: ... | explode_data.jsonl/56930 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 520
} | [
2830,
3393,
17926,
19297,
14194,
13825,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
3056,
1235,
341,
197,
11609,
981,
914,
198,
197,
25873,
675,
914,
198,
197,
17430,
260,
18433,
8472,
198,
197,
56322,
414,
1807,
198,
197,
59403,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func Test_DomainUpdate(t *testing.T) {
client := NewClient("", "", false)
domain, _, err := client.Domain.Update(TestDomainID, "test")
assert.Nil(t, err)
assert.NotEqual(t, domain.Id, "", "Domain Id can not be empty")
return
} | explode_data.jsonl/12040 | {
"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,
1557,
3121,
4289,
1155,
353,
8840,
836,
8,
341,
25291,
1669,
1532,
2959,
19814,
7342,
895,
692,
2698,
3121,
11,
8358,
1848,
1669,
2943,
20442,
16689,
31159,
13636,
915,
11,
330,
1944,
1138,
6948,
59678,
1155,
11,
1848,
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 |
func TestNewWithStack(t *testing.T) {
t.Parallel()
expect := "abc"
actual := NewWithStack(expect)
//goland:noinspection GoNilness
assert.Equal(t, expect, actual.Error())
} | explode_data.jsonl/80868 | {
"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,
3564,
2354,
4336,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
24952,
1669,
330,
13683,
1837,
88814,
1669,
1532,
2354,
4336,
89443,
692,
197,
322,
70,
96440,
66479,
53395,
5994,
19064,
2090,
198,
6948,
12808,
1155,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
func TestAccAWSDataSourceIAMServerCertificate_basic(t *testing.T) {
rName := acctest.RandomWithPrefix("tf-acc-test")
key := tlsRsaPrivateKeyPem(2048)
certificate := tlsRsaX509SelfSignedCertificatePem(key, "example.com")
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
P... | explode_data.jsonl/6772 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 502
} | [
2830,
3393,
14603,
36136,
17173,
73707,
5475,
33202,
34729,
1155,
353,
8840,
836,
8,
341,
7000,
675,
1669,
1613,
67880,
26709,
2354,
14335,
445,
8935,
12,
4475,
16839,
5130,
23634,
1669,
55026,
49,
9081,
75981,
47,
336,
7,
17,
15,
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 TestSelectMove(t *testing.T) {
e := new(Editor)
e.SetText(`0123456789`)
gtx := layout.Context{Ops: new(op.Ops)}
cache := text.NewCache(gofont.Collection())
font := text.Font{}
fontSize := unit.Px(10)
// Layout once to populate e.lines and get focus.
gtx.Queue = newQueue(key.FocusEvent{Focus: true})
e.La... | explode_data.jsonl/27269 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 382
} | [
2830,
3393,
3379,
9860,
1155,
353,
8840,
836,
8,
341,
7727,
1669,
501,
87136,
340,
7727,
92259,
5809,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
63,
692,
3174,
3998,
1669,
6789,
9328,
90,
38904,
25,
501,
17096,
8382,
1690,
10569,
526... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAddAgentAnnotations(t *testing.T) {
assert := assert.New(t)
config := vc.SandboxConfig{
Annotations: make(map[string]string),
AgentConfig: vc.KataAgentConfig{},
}
ocispec := specs.Spec{
Annotations: make(map[string]string),
}
expectedAgentConfig := vc.KataAgentConfig{
KernelModules: []string{
... | explode_data.jsonl/44054 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 235
} | [
2830,
3393,
2212,
16810,
21418,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
692,
25873,
1669,
24553,
808,
31536,
2648,
515,
197,
197,
21418,
25,
1281,
9147,
14032,
30953,
1326,
197,
197,
16810,
2648,
25,
24553,
11352,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNonEmptyKubeconfig(t *testing.T) {
commands := testutil.CmdRunOut("kpt fn source .", ``).
AndRunOut("kpt fn run", testPod).
AndRunOut(fmt.Sprintf("kpt fn sink %v", tmpKustomizeDir), ``).
AndRunOut("kpt fn sink valid_path", ``).
AndRun("kpt live apply valid_path --context kubecontext --kubeconfig testC... | explode_data.jsonl/9530 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 384
} | [
2830,
3393,
8121,
3522,
42,
3760,
1676,
1155,
353,
8840,
836,
8,
341,
197,
24270,
1669,
1273,
1314,
64512,
6727,
2662,
445,
74,
417,
5168,
2530,
659,
497,
9902,
4292,
197,
197,
3036,
6727,
2662,
445,
74,
417,
5168,
1598,
497,
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 |
func TestObjectMultiWithDelete(t *testing.T) {
s := RunBasicJetStreamServer()
defer shutdown(s)
nc, js := jsClient(t, s)
defer nc.Close()
obs, err := js.CreateObjectStore(&nats.ObjectStoreConfig{Bucket: "2OD"})
expectOk(t, err)
pa := bytes.Repeat([]byte("A"), 2_000_000)
pb := bytes.Repeat([]byte("B"), 3_000_... | explode_data.jsonl/75493 | {
"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,
1190,
20358,
2354,
6435,
1155,
353,
8840,
836,
8,
341,
1903,
1669,
6452,
15944,
35641,
3027,
5475,
741,
16867,
23766,
1141,
692,
197,
1016,
11,
6994,
1669,
6994,
2959,
1155,
11,
274,
340,
16867,
25126,
10421,
2822,
197,
5481... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestValidateSsmParameterType(t *testing.T) {
validTypes := []string{
"String",
"StringList",
"SecureString",
}
for _, v := range validTypes {
_, errors := validateSsmParameterType(v, "name")
if len(errors) != 0 {
t.Fatalf("%q should be a valid SSM parameter type: %q", v, errors)
}
}
invalidTyp... | explode_data.jsonl/78628 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 223
} | [
2830,
3393,
17926,
50,
3563,
4971,
929,
1155,
353,
8840,
836,
8,
341,
56322,
4173,
1669,
3056,
917,
515,
197,
197,
1,
703,
756,
197,
197,
1,
703,
852,
756,
197,
197,
1,
49813,
703,
756,
197,
532,
2023,
8358,
348,
1669,
2088,
2697,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDeviceTokenReturnsErrorIfTokenEmptyAndStatusOK(t *testing.T) {
sender := mocks.NewSender()
body := mocks.NewBody("")
sender.AppendResponse(mocks.NewResponseWithBodyAndStatus(body, http.StatusOK, "OK"))
_, err := WaitForUserCompletion(sender, deviceCode())
if err != ErrOAuthTokenEmpty {
t.Fatalf("adal: ... | explode_data.jsonl/27512 | {
"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,
6985,
3323,
16446,
1454,
2679,
3323,
3522,
3036,
2522,
3925,
1155,
353,
8840,
836,
8,
341,
1903,
1659,
1669,
68909,
7121,
20381,
741,
35402,
1669,
68909,
7121,
5444,
31764,
1903,
1659,
8982,
2582,
1255,
25183,
7121,
2582,
2354... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAddMessageHook(t *testing.T) {
r := prework_pri(CROSS_ACCOUNT)
r.AddMessageHook(func(msg *Msg) error {
// 添加你的方法
fmt.Println("这是自定义MessageHook")
fmt.Println("当前数据是", msg)
return nil
})
select {}
} | explode_data.jsonl/61325 | {
"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,
2212,
2052,
31679,
1155,
353,
8840,
836,
8,
1476,
7000,
1669,
855,
1778,
85639,
3025,
44484,
38831,
692,
7000,
1904,
2052,
31679,
18552,
8119,
353,
6611,
8,
1465,
341,
197,
197,
322,
82339,
103929,
39907,
198,
197,
11009,
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 Test_ChunkReaderPool(t *testing.T) {
PutChunkReader(nil)
cr1 := GetChunkReader(strings.NewReader(influxText))
assertReadAll(t, cr1)
PutChunkReader(cr1)
cr2 := GetChunkReader(strings.NewReader(influxText))
assertReadAll(t, cr2)
} | explode_data.jsonl/74835 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 96
} | [
2830,
3393,
27588,
3122,
5062,
10551,
1155,
353,
8840,
836,
8,
341,
10025,
332,
28304,
5062,
27907,
692,
91492,
16,
1669,
2126,
28304,
5062,
51442,
68587,
5900,
36706,
1178,
1171,
6948,
4418,
2403,
1155,
11,
1560,
16,
340,
10025,
332,
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 Test_increasingBST(t *testing.T) {
type args struct {
root *TreeNode
}
tests := []struct {
name string
args args
want *TreeNode
}{
// TODO: Add test cases.
{
name: "",
args: args{
root: StrToTreeNode("[5,3,6,2,4,null,8,1,null,null,null,7,9]"),
},
want: StrToTreeNode("[1,null,2,null,... | explode_data.jsonl/81213 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 377
} | [
2830,
3393,
1243,
75462,
61006,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
33698,
353,
26597,
198,
197,
532,
78216,
1669,
3056,
1235,
341,
197,
11609,
914,
198,
197,
31215,
2827,
198,
197,
50780,
353,
26597,
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... | 2 |
func TestAssembleCreateSource(t *testing.T) {
Convey("Given a parseStack", t, func() {
ps := parseStack{}
Convey("When the stack contains the correct CREATE SOURCE items", func() {
ps.PushComponent(0, 2, Yes)
ps.PushComponent(2, 4, StreamIdentifier("a"))
ps.PushComponent(4, 6, SourceSinkType("b"))
ps.P... | explode_data.jsonl/18072 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1350
} | [
2830,
3393,
2121,
15790,
4021,
3608,
1155,
353,
8840,
836,
8,
341,
93070,
5617,
445,
22043,
264,
4715,
4336,
497,
259,
11,
2915,
368,
341,
197,
35009,
1669,
4715,
4336,
16094,
197,
93070,
5617,
445,
4498,
279,
5611,
5610,
279,
4396,
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 TestJudgeIncureServiceCharge(t *testing.T) {
cases := []struct {
name string
bJudge judiciary // base
input shared.Resources
expectedReturn bool
expectedCommonPool shared.Resources
expectedJudgeBudget shared.Resources
}{
{
name: "Excess pay",
bJ... | explode_data.jsonl/74056 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1002
} | [
2830,
3393,
60256,
39245,
552,
1860,
55363,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
3056,
1235,
341,
197,
11609,
394,
914,
198,
197,
2233,
60256,
1060,
71875,
442,
2331,
198,
197,
22427,
2290,
6094,
21703,
198,
197,
42400,
5598,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIndexGetEscaped(t *testing.T) {
f := newFixture(t)
get, err := http.NewRequest(http.MethodGet, `/?q=</textarea><script>alert(1)</script>`, strings.NewReader(""))
if err != nil {
panic(err)
}
f.server.Handler.ServeHTTP(f.recorder, get)
if f.recorder.Code != 200 {
t.Errorf("Expected success but got: %v... | explode_data.jsonl/79004 | {
"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,
1552,
1949,
36121,
10185,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
501,
18930,
1155,
340,
10366,
11,
1848,
1669,
1758,
75274,
19886,
20798,
1949,
11,
1565,
17763,
80,
28,
522,
11741,
1784,
2282,
52777,
7,
16,
12533,
2282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIsOsFs(t *testing.T) {
c := qt.New(t)
c.Assert(IsOsFs(Os), qt.Equals, true)
c.Assert(IsOsFs(&afero.MemMapFs{}), qt.Equals, false)
c.Assert(IsOsFs(afero.NewBasePathFs(&afero.MemMapFs{}, "/public")), qt.Equals, false)
c.Assert(IsOsFs(afero.NewBasePathFs(Os, t.TempDir())), qt.Equals, true)
} | explode_data.jsonl/4616 | {
"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,
3872,
28867,
48300,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
38949,
7121,
1155,
692,
1444,
11711,
65473,
28867,
48300,
19238,
82,
701,
38949,
16207,
11,
830,
340,
1444,
11711,
65473,
28867,
48300,
2099,
64,
802,
78,
1321,
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 TestMinerCommitSector(t *testing.T) {
tf.UnitTest(t)
ctx := context.Background()
st, vms := core.CreateStorages(ctx, t)
origPid := th.RequireRandomPeerID(t)
minerAddr := createTestMiner(t, st, vms, address.TestAddress, []byte("my public key"), origPid)
commR := th.MakeCommitment()
commRStar := th.MakeCom... | explode_data.jsonl/55768 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 514
} | [
2830,
3393,
6217,
261,
33441,
68188,
1155,
353,
8840,
836,
8,
341,
3244,
69,
25159,
2271,
1155,
692,
20985,
1669,
2266,
19047,
741,
18388,
11,
348,
1011,
1669,
6200,
7251,
623,
269,
1134,
7502,
11,
259,
692,
197,
4670,
32339,
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... | 1 |
func TestApplyFeatureGates(t *testing.T) {
for _, pn := range algorithmProviderNames {
p, err := factory.GetAlgorithmProvider(pn)
if err != nil {
t.Errorf("Error retrieving '%s' provider: %v", pn, err)
break
}
if !p.FitPredicateKeys.Has("CheckNodeCondition") {
t.Errorf("Failed to find predicate: 'Che... | explode_data.jsonl/2597 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 409
} | [
2830,
3393,
28497,
13859,
38,
973,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
43050,
1669,
2088,
12111,
5179,
7980,
341,
197,
3223,
11,
1848,
1669,
8633,
2234,
27847,
5179,
1295,
77,
340,
197,
743,
1848,
961,
2092,
341,
298,
3244,
1308... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRepeatedPropertyName(t *testing.T) {
good := []interface{}{
struct {
A int `datastore:"-"`
}{},
struct {
A int `datastore:"b"`
B int
}{},
struct {
A int
B int `datastore:"B"`
}{},
struct {
A int `datastore:"B"`
B int `datastore:"-"`
}{},
struct {
A i... | explode_data.jsonl/60715 | {
"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,
90989,
31043,
1155,
353,
8840,
836,
8,
972,
3174,
1386,
1669,
3056,
4970,
6257,
1666,
197,
6472,
972,
298,
22985,
526,
1565,
691,
4314,
2974,
27651,
75679,
197,
197,
92,
6257,
1871,
197,
6472,
972,
298,
22985,
526,
1565,
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 TestConfigReset_Hydra(t *testing.T) {
s, _, _, h, iss, err := setupHydraTest(true)
if err != nil {
t.Fatalf("setupHydraTest() failed: %v", err)
}
cid := "c1"
existingID := "00000000-0000-0000-0000-000000000000"
newID := "00000000-0000-0000-0000-000000000002"
h.ListClientsResp = []*hydraapi.Client{
{Cl... | explode_data.jsonl/18529 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 670
} | [
2830,
3393,
2648,
14828,
2039,
88,
22248,
1155,
353,
8840,
836,
8,
341,
1903,
11,
8358,
8358,
305,
11,
2369,
11,
1848,
1669,
6505,
30816,
22248,
2271,
3715,
340,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
15188,
30816,
22248,
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... | 8 |
func TestInvariants(t *testing.T) {
k := testKeeper(5)
require.Equal(t, k.InvCheckPeriod(), uint(5))
k.RegisterRoute("testModule", "testRoute", testPassingInvariant)
require.Len(t, k.Routes(), 1)
} | explode_data.jsonl/46282 | {
"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,
641,
54611,
1155,
353,
8840,
836,
8,
341,
16463,
1669,
1273,
77233,
7,
20,
340,
17957,
12808,
1155,
11,
595,
68401,
3973,
23750,
1507,
2622,
7,
20,
4390,
16463,
19983,
4899,
445,
1944,
3332,
497,
330,
1944,
4899,
497,
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 |
func TestInvalidECKeyGen(t *testing.T) {
gen := ecKeyGenerator{
size: 16,
algID: "A128GCM",
publicKey: &ecTestKey256.PublicKey,
}
if gen.keySize() != 16 {
t.Error("ec key generator reported incorrect key size")
}
_, _, err := gen.genKey()
if err != nil {
t.Error("ec key generator failed to ge... | explode_data.jsonl/63202 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 140
} | [
2830,
3393,
7928,
7498,
1592,
9967,
1155,
353,
8840,
836,
8,
341,
82281,
1669,
11942,
1592,
12561,
515,
197,
13832,
25,
414,
220,
16,
21,
345,
197,
197,
23881,
915,
25,
257,
330,
32,
16,
17,
23,
38,
9985,
756,
197,
1219,
1592,
25,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestTransportReusesConn_RequestClose(t *testing.T) {
if onSameConn(t, func(r *http.Request) { r.Close = true }) {
t.Errorf("first and second responses were not on different connections")
}
} | explode_data.jsonl/16049 | {
"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,
27560,
693,
4776,
9701,
44024,
7925,
1155,
353,
8840,
836,
8,
341,
743,
389,
19198,
9701,
1155,
11,
2915,
2601,
353,
1254,
9659,
8,
314,
435,
10421,
284,
830,
6413,
341,
197,
3244,
13080,
445,
3896,
323,
2086,
14507,
1033,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestHeaderTooShort(t *testing.T) {
h := FileHeader{
Name: "foo.txt",
Method: Deflate,
Extra: []byte{zip64ExtraId}, // missing size and second half of tag, but Extra is best-effort parsing
}
testValidHeader(&h, t)
} | explode_data.jsonl/18865 | {
"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,
4047,
31246,
12472,
1155,
353,
8840,
836,
8,
341,
9598,
1669,
2887,
4047,
515,
197,
21297,
25,
256,
330,
7975,
3909,
756,
197,
84589,
25,
3892,
5075,
345,
197,
197,
11612,
25,
220,
3056,
3782,
90,
9964,
21,
19,
11612,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNewPeerEndorserTLS(t *testing.T) {
mockCtrl := gomock.NewController(t)
defer mockCtrl.Finish()
config := mockfab.DefaultMockConfig(mockCtrl)
url := "grpcs://0.0.0.0:1234"
conn, err := newPeerEndorser(getPeerEndorserRequest(url, mockfab.GoodCert, "", config, kap, false, false))
if err != nil {
t.Fat... | explode_data.jsonl/45084 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 234
} | [
2830,
3393,
3564,
30888,
3727,
269,
799,
45439,
1155,
353,
8840,
836,
8,
341,
77333,
15001,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
16867,
7860,
15001,
991,
18176,
2822,
25873,
1669,
7860,
36855,
13275,
11571,
2648,
30389,
15001,
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... | 4 |
func TestShiftWithOver(t *testing.T) {
jsonIn := `{"rating":{"primary":[{"value":3},{"value":5}],"example":{"value":3}}}`
jsonOut := `{"rating":{"primary":[{"new_value":3},{"new_value":5}],"example":{"value":3}}}`
spec := `[{"operation": "shift", "over": "rating.primary", "spec": {"new_value":"value"}}]`
kazaamTra... | explode_data.jsonl/11859 | {
"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,
24841,
2354,
1918,
1155,
353,
8840,
836,
8,
341,
30847,
641,
1669,
1565,
4913,
21931,
22317,
6545,
66582,
957,
788,
18,
36828,
957,
788,
20,
92,
28503,
8687,
22317,
957,
788,
18,
3417,
31257,
30847,
2662,
1669,
1565,
4913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMergeSchema_union(t *testing.T) {
t.Run("Matching", func(t *testing.T) {
// the directive that we are always comparing to
originalSchema, err := graphql.LoadSchema(`
type CatPhoto {
species: String
}
type DogPhoto {
species: String
}
union Photo = CatPhoto | DogPhoto
`)
// mak... | explode_data.jsonl/20239 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 754
} | [
2830,
3393,
52096,
8632,
51621,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
64430,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
197,
322,
279,
33859,
429,
582,
525,
2677,
26297,
311,
198,
197,
197,
9889,
8632,
11,
1848,
1669,
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... | 4 |
func TestKafkaClient_Configure_BadRegexp(t *testing.T) {
module := fixtureModule()
viper.Set("consumer.test.group-whitelist", "[")
assert.Panics(t, func() { module.Configure("test", "consumer.test") }, "The code did not panic")
} | explode_data.jsonl/34251 | {
"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,
42,
21883,
2959,
15100,
17781,
1668,
329,
3477,
4580,
1155,
353,
8840,
836,
8,
341,
54020,
1669,
12507,
3332,
741,
5195,
12858,
4202,
445,
46764,
5958,
6175,
55332,
57645,
497,
10545,
1138,
6948,
1069,
276,
1211,
1155,
11,
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 |
func TestReorder(t *testing.T) {
for _, test := range reorderTests {
q := queue.New()
q.PushBack(test.is...)
for _, f := range test.as {
err := f(q)
if err != nil {
t.Error(err)
}
}
var res []interface{}
for q.Length() > 0 {
res = append(res, q.PopFront())
}
if len(res) == 0 && len(tes... | explode_data.jsonl/5298 | {
"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,
693,
1358,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
1273,
1669,
2088,
83184,
18200,
341,
197,
18534,
1669,
7177,
7121,
741,
197,
18534,
34981,
3707,
8623,
2079,
31218,
197,
2023,
8358,
282,
1669,
2088,
1273,
5357,
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... | 8 |
func TestMapProxy_DeleteWithNonSerializableKey(t *testing.T) {
err := mp.Delete(student{})
AssertErrorNotNil(t, err, "delete did not return an error for nonserializable key")
mp.Clear()
} | explode_data.jsonl/57054 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 64
} | [
2830,
3393,
2227,
16219,
57418,
2354,
8121,
29268,
1592,
1155,
353,
8840,
836,
8,
341,
9859,
1669,
10490,
18872,
39004,
37790,
18017,
1454,
96144,
1155,
11,
1848,
11,
330,
4542,
1521,
537,
470,
458,
1465,
369,
2477,
10182,
8335,
1376,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAcceptError(t *testing.T) {
o := DefaultOptions()
s := New(o)
s.mu.Lock()
s.running = true
s.mu.Unlock()
defer s.Shutdown()
orgDelay := time.Hour
delay := s.acceptError("Test", fmt.Errorf("any error"), orgDelay)
if delay != orgDelay {
t.Fatalf("With this type of error, delay should have stayed same,... | explode_data.jsonl/3618 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 448
} | [
2830,
3393,
16646,
1454,
1155,
353,
8840,
836,
8,
341,
22229,
1669,
7899,
3798,
741,
1903,
1669,
1532,
10108,
340,
1903,
48830,
31403,
741,
1903,
57617,
284,
830,
198,
1903,
48830,
39188,
741,
16867,
274,
10849,
18452,
741,
87625,
20039,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCreateSecurityGroup(t *testing.T) {
type args struct {
ctx context.Context
req service.CreateSecurityGroupRequest
}
tests := []struct {
name string
args args
wantSecurityGroupId string
wantErr bool
}{
{
name: "测试创建安全组",
args: args{
ctx: nil,... | explode_data.jsonl/72641 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 505
} | [
2830,
3393,
4021,
15352,
2808,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
20985,
2266,
9328,
198,
197,
24395,
2473,
7251,
15352,
2808,
1900,
198,
197,
532,
78216,
1669,
3056,
1235,
341,
197,
11609,
394,
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 TestStateTransition(t *testing.T) {
order := &Order{}
if err := getStateMachine().Trigger("checkout", order, db); err != nil {
t.Errorf("should not raise any error when trigger event checkout")
}
if order.GetState() != "checkout" {
t.Errorf("state doesn't changed to checkout")
}
var stateChangeLogs = ... | explode_data.jsonl/2611 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 240
} | [
2830,
3393,
1397,
21768,
1155,
353,
8840,
836,
8,
341,
42245,
1669,
609,
4431,
31483,
743,
1848,
1669,
39070,
21605,
1005,
17939,
445,
33035,
497,
1973,
11,
2927,
1215,
1848,
961,
2092,
341,
197,
3244,
13080,
445,
5445,
537,
4828,
894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStartClusterUpNoFlags(t *testing.T) {
setUp(t)
defer os.RemoveAll(testDir)
defer minitesting.ResetDefaultRoundTripper()
defer viper.Reset()
clusterUpParams := determineClusterUpParameters(testConfig)
clusterup.ClusterUp(testConfig, clusterUpParams, testRunner)
if testRunner.Cmd != testConfig.OcPath {
... | explode_data.jsonl/12412 | {
"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,
3479,
28678,
2324,
2753,
9195,
1155,
353,
8840,
836,
8,
341,
8196,
2324,
1155,
340,
16867,
2643,
84427,
8623,
6184,
340,
16867,
1308,
275,
59855,
36660,
3675,
27497,
21884,
6922,
741,
16867,
95132,
36660,
2822,
197,
18855,
232... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEngineAdd(t *testing.T) {
vdr, _, sender, vm, te, _ := setup(t)
if !te.Context().ChainID.Equals(ids.Empty) {
t.Fatalf("Wrong chain ID")
}
blk := &Blk{
parent: &Blk{
id: GenerateID(),
status: choices.Unknown,
},
id: GenerateID(),
status: choices.Processing,
bytes: []byte{1},
}
... | explode_data.jsonl/3556 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 564
} | [
2830,
3393,
4571,
2212,
1155,
353,
8840,
836,
8,
341,
5195,
3612,
11,
8358,
4646,
11,
10995,
11,
1013,
11,
716,
1669,
6505,
1155,
692,
743,
753,
665,
9328,
1005,
18837,
915,
16207,
43448,
11180,
8,
341,
197,
3244,
30762,
445,
29185,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParallelInitializeConditions(t *testing.T) {
tests := []struct {
name string
ts *ParallelStatus
want *ParallelStatus
}{{
name: "empty",
ts: &ParallelStatus{},
want: &ParallelStatus{
Status: duckv1.Status{
Conditions: []apis.Condition{{
Type: ParallelConditionAddressable,
St... | explode_data.jsonl/29236 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 965
} | [
2830,
3393,
16547,
9928,
35435,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
914,
198,
197,
57441,
256,
353,
16547,
2522,
198,
197,
50780,
353,
16547,
2522,
198,
197,
15170,
515,
197,
11609,
25,
330,
3194,
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 TestGithub_Branch_Ref(t *testing.T) {
ci := &Github{CIBranchName: "refs/heads/feature1"}
assert.Equal(t, "feature1", ci.Branch())
} | explode_data.jsonl/53502 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 60
} | [
2830,
3393,
78717,
1668,
81,
3497,
81086,
1155,
353,
8840,
836,
8,
341,
1444,
72,
1669,
609,
78717,
90,
34,
3256,
81,
3497,
675,
25,
330,
16149,
14,
35810,
14,
12753,
16,
63159,
6948,
12808,
1155,
11,
330,
12753,
16,
497,
11825,
972... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTeam(t *testing.T) {
var rr *map[string]interface{} = &map[string]interface{}{}
Convey("Login as root", t, func() {
resp, _ := resty.R().
SetQueryParam("name", root_user_name).SetQueryParam("password", root_user_password).SetResult(rr).
Post(fmt.Sprintf("%s/user/login", api_v1))
So(resp.StatusCode... | explode_data.jsonl/48355 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2285
} | [
2830,
3393,
14597,
1155,
353,
8840,
836,
8,
341,
2405,
34393,
353,
2186,
14032,
31344,
6257,
284,
609,
2186,
14032,
31344,
6257,
31483,
93070,
5617,
445,
6231,
438,
3704,
497,
259,
11,
2915,
368,
341,
197,
34653,
11,
716,
1669,
2732,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSliceTypeConversion(t *testing.T) {
testcases := []struct {
GoType string
Scanner sql.Scanner
PrestoResponseUnmarshalledSample interface{}
TestScanner func(t *testing.T, s sql.Scanner)
}{
{
GoType: "[]bool",
Scanner: &Nu... | explode_data.jsonl/62445 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1275
} | [
2830,
3393,
33236,
929,
48237,
1155,
353,
8840,
836,
8,
341,
18185,
23910,
1669,
3056,
1235,
341,
197,
9600,
78,
929,
5968,
914,
198,
197,
57281,
3502,
5704,
32098,
198,
197,
10025,
3927,
78,
2582,
1806,
36239,
4736,
17571,
3749,
16094,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPIDPressureCondition(t *testing.T) {
now := time.Now()
before := now.Add(-time.Second)
nowFunc := func() time.Time { return now }
cases := []struct {
desc string
node *v1.Node
pressure bool
expectConditions []v1.NodeCondition
expectEvents []testEvent
}{
{
... | explode_data.jsonl/31859 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1560
} | [
2830,
3393,
33751,
68269,
10547,
1155,
353,
8840,
836,
8,
341,
80922,
1669,
882,
13244,
741,
63234,
1669,
1431,
1904,
4080,
1678,
32435,
340,
80922,
9626,
1669,
2915,
368,
882,
16299,
314,
470,
1431,
555,
1444,
2264,
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... | 1 |
func TestIncreaseWindowOnBufferResize(t *testing.T) {
// This test ensures that the endpoint sends an ack,
// after available recv buffer grows to more than 1 MSS.
c := context.New(t, defaultMTU)
defer c.Cleanup()
const rcvBuf = 65535 * 10
c.CreateConnected(context.TestInitialSequenceNumber, 30000, rcvBuf)
// ... | explode_data.jsonl/76029 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 694
} | [
2830,
3393,
69556,
4267,
1925,
4095,
30561,
1155,
353,
8840,
836,
8,
341,
197,
322,
1096,
1273,
25351,
429,
279,
14887,
21308,
458,
10725,
345,
197,
322,
1283,
2500,
27006,
4147,
27715,
311,
803,
1091,
220,
16,
91649,
624,
1444,
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... | 2 |
func TestNilValueSemantics(t *testing.T) {
require := require.New(t)
tree := NewVersionedTree(db.NewMemDB(), 0)
require.Panics(func() {
tree.Set([]byte("k"), nil)
})
} | explode_data.jsonl/47382 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 71
} | [
2830,
3393,
19064,
1130,
29499,
36233,
1155,
353,
8840,
836,
8,
341,
17957,
1669,
1373,
7121,
1155,
340,
51968,
1669,
1532,
5637,
291,
6533,
9791,
7121,
18816,
3506,
1507,
220,
15,
692,
17957,
1069,
276,
1211,
18552,
368,
341,
197,
5196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUpdateSql(t *testing.T) {
rawsqls := "select * from mysql123 ;select * from mysql345;"
syncSQLs := []string{"select * from mysql123", "select * from mysql345"}
got := updateSqls(rawsqls, time.Now())
assert.EqualValues(t, syncSQLs, got)
} | explode_data.jsonl/61890 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 90
} | [
2830,
3393,
4289,
8269,
1155,
353,
8840,
836,
8,
341,
76559,
3544,
82,
1669,
330,
1742,
353,
504,
10564,
16,
17,
18,
220,
2587,
1742,
353,
504,
10564,
18,
19,
20,
41655,
1903,
1721,
6688,
82,
1669,
3056,
917,
4913,
1742,
353,
504,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestRespondentClosed(t *testing.T) {
VerifyClosedRecv(t, NewSocket)
VerifyClosedSend(t, NewSocket)
VerifyClosedClose(t, NewSocket)
VerifyClosedDial(t, NewSocket)
VerifyClosedListen(t, NewSocket)
VerifyClosedAddPipe(t, NewSocket)
} | explode_data.jsonl/57389 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 98
} | [
2830,
3393,
65354,
306,
26884,
1155,
353,
8840,
836,
8,
341,
197,
32627,
26884,
63483,
1155,
11,
1532,
10286,
340,
197,
32627,
26884,
11505,
1155,
11,
1532,
10286,
340,
197,
32627,
26884,
7925,
1155,
11,
1532,
10286,
340,
197,
32627,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSetTeamIcon(t *testing.T) {
th := Setup(t).InitBasic()
defer th.TearDown()
Client := th.Client
team := th.BasicTeam
data, err := testutils.ReadTestFile("test.png")
require.Nil(t, err, err)
th.LoginTeamAdmin()
ok, resp := Client.SetTeamIcon(team.Id, data)
require.True(t, ok, resp.Error)
CheckNoErr... | explode_data.jsonl/70741 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 579
} | [
2830,
3393,
1649,
14597,
4395,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
18626,
1155,
568,
3803,
15944,
741,
16867,
270,
836,
682,
4454,
741,
71724,
1669,
270,
11716,
198,
197,
9196,
1669,
270,
48868,
14597,
271,
8924,
11,
1848,
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... | 5 |
func TestWholeStory(t *testing.T) {
for _, tc := range wholeStoryTestCases {
s := tc.String
expected := tc.Text
expectedErr := tc.Error
got, err := strings.WholeStory(s)
if expected != got {
t.Errorf("%q: expected %q, got %q", s, expected, got)
}
if expectedErr != err {
t.Errorf("%q: expected error... | explode_data.jsonl/12030 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 154
} | [
2830,
3393,
90582,
17938,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17130,
1669,
2088,
4361,
17938,
2271,
37302,
341,
197,
1903,
1669,
17130,
6431,
198,
197,
42400,
1669,
17130,
1979,
198,
197,
42400,
7747,
1669,
17130,
6141,
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... | 4 |
func TestSTMApplyOnConcurrentDeletion(t *testing.T) {
clus := NewClusterV3(t, &ClusterConfig{Size: 1})
defer clus.Terminate(t)
etcdc := clus.RandClient()
if _, err := etcdc.Put(context.TODO(), "foo", "bar"); err != nil {
t.Fatal(err)
}
donec, readyc := make(chan struct{}), make(chan struct{})
go func() {
<-... | explode_data.jsonl/51053 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 492
} | [
2830,
3393,
35849,
28497,
1925,
1109,
3231,
1912,
52625,
1155,
353,
8840,
836,
8,
341,
197,
4163,
1669,
1532,
28678,
53,
18,
1155,
11,
609,
28678,
2648,
90,
1695,
25,
220,
16,
3518,
16867,
1185,
355,
836,
261,
34016,
1155,
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... | 2 |
func TestOrderGet(t *testing.T) {
setup()
defer teardown()
httpmock.RegisterResponder("GET", fmt.Sprintf("https://fooshop.myshopify.com/%s/orders/123456.json", client.pathPrefix),
httpmock.NewBytesResponder(200, loadFixture("order.json")))
order, err := client.Order.Get(123456, nil)
if err != nil {
t.Errorf(... | explode_data.jsonl/17987 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 256
} | [
2830,
3393,
4431,
1949,
1155,
353,
8840,
836,
8,
341,
84571,
741,
16867,
49304,
2822,
28080,
16712,
19983,
30884,
445,
3806,
497,
8879,
17305,
445,
2428,
1110,
824,
9267,
453,
12618,
8675,
1437,
905,
12627,
82,
82818,
14,
16,
17,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestRangeStmtUDT(t *testing.T) {
gopClTest(t, `
type foo struct {
}
func (p *foo) Gop_Enum(c func(key int, val string)) {
}
for k, v := range new(foo) {
println(k, v)
}
`, `package main
import fmt "fmt"
type foo struct {
}
func (p *foo) Gop_Enum(c func(key int, val string)) {
}
func main() {
new(foo).Gop_E... | explode_data.jsonl/73640 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 177
} | [
2830,
3393,
6046,
31063,
4656,
51,
1155,
353,
8840,
836,
8,
341,
3174,
453,
5066,
2271,
1155,
11,
22074,
1313,
15229,
2036,
341,
630,
2830,
320,
79,
353,
7975,
8,
479,
453,
62,
10766,
1337,
2915,
4857,
526,
11,
1044,
914,
593,
341,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestDecodeIPv6Jumbogram(t *testing.T) {
// Haven't found any of these in the wild or on example pcaps online, so had
// to generate one myself via scapy. Unfortunately, scapy can only
// str(packet) for packets with length < 65536, due to limitations in python's
// struct library, so I generated the header wi... | explode_data.jsonl/42257 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 715
} | [
2830,
3393,
32564,
58056,
21,
41,
3551,
12958,
1155,
353,
8840,
836,
8,
341,
197,
322,
41614,
944,
1730,
894,
315,
1493,
304,
279,
8380,
476,
389,
3110,
13312,
2625,
2860,
11,
773,
1030,
198,
197,
322,
311,
6923,
825,
7037,
4566,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestRange(t *testing.T) {
data := Data{1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 0, 6, 5, 4, 43, 53, 4, 3, 43}
r, _ := Range(data)
if r != 53 {
t.Errorf("Range(data) is block")
}
} | explode_data.jsonl/9491 | {
"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,
6046,
1155,
353,
8840,
836,
8,
341,
8924,
1669,
2885,
90,
16,
11,
220,
17,
11,
220,
18,
11,
220,
19,
11,
220,
20,
11,
220,
21,
11,
220,
22,
11,
220,
23,
11,
220,
23,
11,
220,
24,
11,
220,
15,
11,
220,
21,
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 TestGetPrepackagedPluginInMarketplace(t *testing.T) {
th := Setup().InitBasic()
defer th.TearDown()
marketplacePlugins := []*model.MarketplacePlugin{
{
BaseMarketplacePlugin: &model.BaseMarketplacePlugin{
HomepageURL: "https://example.com/mattermost/mattermost-plugin-nps",
IconData: "https://ex... | explode_data.jsonl/27541 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1231
} | [
2830,
3393,
1949,
4703,
4748,
3279,
11546,
641,
38822,
2007,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
18626,
1005,
3803,
15944,
741,
16867,
270,
836,
682,
4454,
2822,
2109,
54560,
2007,
45378,
1669,
29838,
2528,
1321,
54560,
2007,
11546... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEvalSymlinksCanonicalNamesWith8dot3Disabled(t *testing.T) {
if !*runFSModifyTests {
t.Skip("skipping test that modifies file system setting; enable with -run_fs_modify_tests")
}
tempVol := filepath.VolumeName(os.TempDir())
if len(tempVol) != 2 {
t.Fatalf("unexpected temp volume name %q", tempVol)
}
... | explode_data.jsonl/28123 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 332
} | [
2830,
3393,
54469,
34667,
1014,
15504,
70914,
7980,
2354,
23,
16119,
18,
25907,
1155,
353,
8840,
836,
8,
341,
743,
753,
9,
6108,
8485,
44427,
18200,
341,
197,
3244,
57776,
445,
4886,
5654,
1273,
429,
82949,
1034,
1849,
6243,
26,
7283,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestT(t *testing.T) {
const want = "tachitsuteto"
for _, v := range [2]string{"たちつてと", "タチツテト"} {
got, err := KanaToRomaji(v)
assert.Equal(t, want, got)
assert.Nil(t, err)
}
} | explode_data.jsonl/11300 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 98
} | [
2830,
3393,
51,
1155,
353,
8840,
836,
8,
341,
4777,
1366,
284,
330,
83,
610,
1199,
332,
11023,
1837,
2023,
8358,
348,
1669,
2088,
508,
17,
30953,
4913,
125565,
58639,
37044,
19182,
497,
330,
46207,
77359,
124788,
56833,
19674,
9207,
341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestFormatJsonIntoTraditional(t *testing.T) {
idx := 11
for _, j := range exp[idx : idx+1] {
pretty.Println(j)
pretty.Println(FormatJSONIntoTraditional(j))
}
} | explode_data.jsonl/55047 | {
"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,
4061,
5014,
26591,
84682,
1155,
353,
8840,
836,
8,
341,
62077,
1669,
220,
16,
16,
198,
2023,
8358,
502,
1669,
2088,
1343,
11597,
549,
7187,
10,
16,
60,
341,
197,
197,
32955,
12419,
3325,
340,
197,
197,
32955,
12419,
7,
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
] | 2 |
func TestSummaryDataPoint_Timestamp(t *testing.T) {
ms := NewSummaryDataPoint()
assert.EqualValues(t, Timestamp(0), ms.Timestamp())
testValTimestamp := Timestamp(1234567890)
ms.SetTimestamp(testValTimestamp)
assert.EqualValues(t, testValTimestamp, ms.Timestamp())
} | explode_data.jsonl/32750 | {
"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,
19237,
1043,
2609,
1139,
4702,
1155,
353,
8840,
836,
8,
341,
47691,
1669,
1532,
19237,
1043,
2609,
741,
6948,
12808,
6227,
1155,
11,
32758,
7,
15,
701,
9829,
49024,
2398,
18185,
2208,
20812,
1669,
32758,
7,
16,
17,
18,
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 TestCryptionHandlerFlush(t *testing.T) {
req := httptest.NewRequest(http.MethodGet, "/any", nil)
handler := CryptionHandler(aesKey)(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(respText))
flusher, ok := w.(http.Flusher)
assert.Equal(t, ok, true)
flusher.Flush()
}))
re... | explode_data.jsonl/24320 | {
"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,
34,
15597,
3050,
46874,
1155,
353,
8840,
836,
8,
341,
24395,
1669,
54320,
70334,
75274,
19886,
20798,
1949,
11,
3521,
3767,
497,
2092,
340,
53326,
1669,
356,
15597,
3050,
2877,
288,
1592,
2376,
1254,
89164,
18552,
3622,
1758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUnknownNetwork(t *testing.T) {
if !testutils.IsRunningInContainer() {
defer testutils.SetupTestOSContext(t)()
}
netOption := options.Generic{
"BridgeName": "testnetwork",
}
option := options.Generic{
netlabel.GenericData: netOption,
}
network, err := createTestNetwork(bridgeNetType, "testnetwork... | explode_data.jsonl/6357 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 245
} | [
2830,
3393,
13790,
12320,
1155,
353,
8840,
836,
8,
341,
743,
753,
1944,
6031,
4506,
18990,
641,
4502,
368,
341,
197,
16867,
1273,
6031,
39820,
2271,
3126,
1972,
1155,
8,
741,
197,
630,
59486,
5341,
1669,
2606,
4341,
515,
197,
197,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 6 |
func TestSigning(t *testing.T) {
msp, err := setup("testdata/idemix/MSP1OU1", "MSP1")
assert.NoError(t, err)
id, err := getDefaultSigner(msp)
assert.NoError(t, err)
msg := []byte("TestMessage")
sig, err := id.Sign(msg)
assert.NoError(t, err)
err = id.Verify(msg, sig)
assert.NoError(t, err)
err = id.Verify... | explode_data.jsonl/46030 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 297
} | [
2830,
3393,
93358,
1155,
353,
8840,
836,
8,
341,
47691,
79,
11,
1848,
1669,
6505,
445,
92425,
38146,
336,
941,
10270,
4592,
16,
11922,
16,
497,
330,
44,
4592,
16,
1138,
6948,
35699,
1155,
11,
1848,
692,
15710,
11,
1848,
1669,
69106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCommentedNode(t *testing.T) {
const (
input = `package main
func foo() {
// comment inside func
}
// leading comment
type bar int // comment2
`
foo = `func foo() {
// comment inside func
}`
bar = `// leading comment
type bar int // comment2
`
)
fset := token.NewFileSet()
f, err := parser.Pars... | explode_data.jsonl/64607 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 344
} | [
2830,
3393,
10677,
291,
1955,
1155,
353,
8840,
836,
8,
341,
4777,
2399,
197,
22427,
284,
1565,
1722,
1887,
271,
2830,
15229,
368,
341,
197,
322,
3980,
4766,
2915,
198,
630,
322,
6388,
3980,
198,
1313,
3619,
526,
442,
3980,
17,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_ddosxDomainWAFAdvancedRuleListCmd_Args(t *testing.T) {
t.Run("ValidArgs_NoError", func(t *testing.T) {
cmd := ddosxDomainWAFAdvancedRuleListCmd()
err := cmd.Args(nil, []string{"testdomain1.co.uk"})
assert.Nil(t, err)
})
t.Run("MissingDomain_Error", func(t *testing.T) {
cmd := ddosxDomainWAFAdvanc... | explode_data.jsonl/43029 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 185
} | [
2830,
3393,
43174,
436,
87,
13636,
54,
8276,
35457,
11337,
852,
15613,
87581,
82,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
4088,
4117,
36989,
1454,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
25920,
1669,
19647,
436,
87,
1363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDefaultsUsed(t *testing.T) {
defer restoreDflts(dfltFiles, dfltDirs)
tmpdir := t.TempDir()
tmpFile, err := os.CreateTemp(tmpdir, "ip_conntrack_count")
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, tmpFile.Close()) })
dfltDirs = []string{tmpdir}
fname := path.Base(tmpFile.Name())
dfltF... | explode_data.jsonl/37565 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 254
} | [
2830,
3393,
16273,
22743,
1155,
353,
8840,
836,
8,
341,
16867,
14952,
35,
1489,
2576,
1500,
79209,
10809,
11,
294,
79209,
97384,
340,
20082,
3741,
1669,
259,
65009,
6184,
2822,
20082,
1703,
11,
1848,
1669,
2643,
7251,
12151,
10368,
3741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLoggerInfoExpected(t *testing.T) {
checkMessages(t, zapcore.DebugLevel, nil, zapcore.InfoLevel, []string{
"hello",
"world",
"foo",
}, func(logger *Logger) {
logger.Print("hello")
logger.Printf("world")
logger.Println("foo")
})
} | explode_data.jsonl/58459 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 109
} | [
2830,
3393,
7395,
1731,
18896,
1155,
353,
8840,
836,
8,
341,
25157,
15820,
1155,
11,
32978,
2153,
20345,
4449,
11,
2092,
11,
32978,
2153,
20132,
4449,
11,
3056,
917,
515,
197,
197,
1,
14990,
756,
197,
197,
1,
14615,
756,
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... | 1 |
func Test_notLocked(t *testing.T) {
var username string
var object, schema types.M
var accountLockout *AccountLockout
var err, expectErr error
var expiresAtStr string
/*****************************************************************/
config.TConfig.AccountLockoutThreshold = 3
config.TConfig.AccountLockoutDurat... | explode_data.jsonl/73715 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1180
} | [
2830,
3393,
7913,
49010,
1155,
353,
8840,
836,
8,
341,
2405,
5934,
914,
198,
2405,
1633,
11,
10802,
4494,
1321,
198,
2405,
2692,
11989,
411,
353,
7365,
11989,
411,
198,
2405,
1848,
11,
1720,
7747,
1465,
198,
2405,
27902,
1655,
2580,
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... | 4 |
func TestMapUnpin(t *testing.T) {
tmp := testutils.TempBPFFS(t)
c := qt.New(t)
spec := spec1.Copy()
m, err := NewMapWithOptions(spec, MapOptions{PinPath: tmp})
if err != nil {
t.Fatal("Failed to create map:", err)
}
defer m.Close()
pinned := m.IsPinned()
c.Assert(pinned, qt.Equals, true)
path := filepath.... | explode_data.jsonl/21655 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 266
} | [
2830,
3393,
2227,
1806,
13273,
1155,
353,
8840,
836,
8,
341,
20082,
1669,
1273,
6031,
65009,
26095,
1748,
50,
1155,
340,
1444,
1669,
38949,
7121,
1155,
340,
98100,
1669,
1398,
16,
31770,
2822,
2109,
11,
1848,
1669,
1532,
2227,
74238,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDecode_ES384Compact_NoSigTrim(t *testing.T) {
incoming := "eyJhbGciOiJFUzM4NCIsInR5cCI6IkpXVCIsImtpZCI6IjE5MzFmZTQ0YmFhMWNhZTkyZWUzNzYzOTQ0MDU1OGMwODdlMTRlNjk5ZWU5NjVhM2Q1OGU1MmU2NGY4MDE0NWIifQ.eyJpc3MiOiJicmt0LWNsaS0xLjAuN3ByZTEiLCJpYXQiOjE0ODQ2OTU1MjAsImp0aSI6IjgxYjczY2Y3In0.DdFi0KmPHSv4PfIMGcWGMSRLmZsfRPQ3... | explode_data.jsonl/1565 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 784
} | [
2830,
3393,
32564,
30275,
18,
23,
19,
98335,
36989,
47246,
25656,
1155,
353,
8840,
836,
8,
341,
17430,
4959,
1669,
330,
84609,
49039,
38,
5855,
81096,
41,
81213,
65215,
19,
9949,
3872,
641,
49,
20,
66,
11237,
21,
40,
48495,
55,
11287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetClientTLSConfig(t *testing.T) {
cfg := &ClientTLSConfig{
CertFiles: []string{"root.pem"},
Client: KeyCertFiles{
KeyFile: "tls_client-key.pem",
CertFile: "tls_client-cert.pem",
},
}
err := AbsTLSClient(cfg, configDir)
if err != nil {
t.Errorf("Failed to get absolute path for client TLS c... | explode_data.jsonl/43278 | {
"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,
1949,
2959,
45439,
2648,
1155,
353,
8840,
836,
8,
1476,
50286,
1669,
609,
2959,
45439,
2648,
515,
197,
6258,
529,
10809,
25,
3056,
917,
4913,
2888,
49373,
7115,
197,
71724,
25,
5309,
36934,
10809,
515,
298,
55242,
1703,
25,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.