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 TestDescriptionLength(t *testing.T) {
var errs []error
for _, g := range cfg.Groups {
description := g.Description
len := utf8.RuneCountInString(description)
//Ref: https://developers.google.com/admin-sdk/groups-settings/v1/reference/groups
if len > 300 {
errs = append(errs,
fmt.Errorf("Number of... | explode_data.jsonl/24789 | {
"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,
5009,
4373,
1155,
353,
8840,
836,
8,
341,
2405,
70817,
3056,
841,
198,
2023,
8358,
342,
1669,
2088,
13286,
59800,
341,
197,
42407,
1669,
342,
28773,
271,
197,
33111,
1669,
10644,
23,
2013,
2886,
2507,
641,
703,
29833,
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... | 5 |
func TestThreeLeggedCat100MBMacbookCoastToCoast(t *testing.T) {
SkipUnlessEpic(t)
conf := testutil.LatencyConfig{}.NetworkNYtoSF().BlockstoreSlowSSD2014().RoutingSlow()
if err := RunThreeLeggedCat(RandomBytes(100*unit.MB), conf); err != nil {
t.Fatal(err)
}
} | explode_data.jsonl/75509 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 101
} | [
2830,
3393,
19641,
18910,
3556,
26801,
16,
15,
15,
8412,
19552,
2190,
7339,
559,
1249,
7339,
559,
1155,
353,
8840,
836,
8,
341,
7568,
13389,
35587,
36,
15587,
1155,
340,
67850,
1669,
1273,
1314,
1214,
266,
2251,
2648,
46391,
12320,
2305... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseScientificNotation(t *testing.T) {
s := NewTestStatsd()
sciNotationLines := []string{
"scientific.notation:4.6968460083008E-5|ms",
"scientific.notation:4.6968460083008E-5|g",
"scientific.notation:4.6968460083008E-5|c",
"scientific.notation:4.6968460083008E-5|h",
}
for _, line := range sciNotat... | explode_data.jsonl/14367 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 205
} | [
2830,
3393,
14463,
50565,
1086,
2623,
367,
1155,
353,
8840,
836,
8,
341,
1903,
1669,
1532,
2271,
16635,
67,
741,
1903,
5855,
2623,
367,
16794,
1669,
3056,
917,
515,
197,
197,
1,
84830,
1253,
11606,
25,
19,
13,
21,
24,
21,
23,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestRestrictSuperAdmin(t *testing.T) {
ds := dsmock.Stub(dsmock.YAMLData(`---
user/1/organization_management_level: superadmin
personal_note/1/user_id: 1
personal_note/2/user_id: 2
unknown_collection/404/field: 404
user/404/unknown_field: blub
`))
restricter := restrict.Middleware(ds, 1)
keys := []stri... | explode_data.jsonl/19354 | {
"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,
50360,
849,
19284,
7210,
1155,
353,
8840,
836,
8,
341,
83336,
1669,
294,
3563,
1176,
7758,
392,
1500,
3563,
1176,
7507,
31102,
1043,
5809,
10952,
19060,
14,
16,
14,
23899,
45363,
8274,
25,
2256,
2882,
198,
98805,
278,
27207,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLogger_Errorf(t *testing.T) {
expectedLog := testLogStatement + "\n"
f := func() {
logger := NewLogger(DEBUG)
logger.Errorf("%s", testLogStatement)
}
output := testutil.StderrOutputForFunc(f)
if output != expectedLog {
t.Errorf("Stdout mismatch. Expected: %s Got: %s", expectedLog, output)
}
} | explode_data.jsonl/46809 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 123
} | [
2830,
3393,
7395,
28651,
69,
1155,
353,
8840,
836,
8,
341,
42400,
2201,
1669,
1273,
2201,
8636,
488,
2917,
77,
698,
1166,
1669,
2915,
368,
341,
197,
17060,
1669,
1532,
7395,
52792,
340,
197,
17060,
13080,
4430,
82,
497,
1273,
2201,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPlacePhotoMissingWidthAndHeight(t *testing.T) {
photoReference := "ThisIsNotAPhotoReference"
c, _ := NewClient(WithAPIKey(apiKey))
r := &PlacePhotoRequest{
PhotoReference: photoReference,
}
_, err := c.PlacePhoto(context.Background(), r)
if err == nil {
t.Errorf("Error expected: maps: both MaxHeigh... | explode_data.jsonl/76312 | {
"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,
17371,
10463,
25080,
3327,
3036,
3640,
1155,
353,
8840,
836,
8,
341,
197,
11556,
8856,
1669,
330,
1986,
3872,
2623,
2537,
71,
2072,
8856,
698,
1444,
11,
716,
1669,
1532,
2959,
7,
2354,
7082,
1592,
24827,
1592,
1171,
7000,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestParsePSISectionHeader(t *testing.T) {
// Unknown table type
w := astibinary.New()
w.Write(uint8(254)) // Table ID
w.Write("1") // Syntax section indicator
w.Write("0000000") // Finish the byte
d, _, _, _, _, err := parsePSISectionHeader(astibyte.NewIterator(w.Bytes()))
assert.Equal(t, d, &PSISec... | explode_data.jsonl/25232 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 308
} | [
2830,
3393,
14463,
5012,
40,
9620,
4047,
1155,
353,
8840,
836,
8,
341,
197,
322,
21693,
1965,
943,
198,
6692,
1669,
11763,
579,
3287,
7121,
741,
6692,
4073,
8488,
23,
7,
17,
20,
19,
593,
442,
6633,
3034,
198,
6692,
4073,
445,
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 TestNoEndpointsMetric(t *testing.T) {
type endpoint struct {
ip string
hostname string
}
internalTrafficPolicyLocal := v1.ServiceInternalTrafficPolicyLocal
externalTrafficPolicyLocal := v1.ServiceExternalTrafficPolicyTypeLocal
metrics.RegisterMetrics()
testCases := []struct {
name ... | explode_data.jsonl/44388 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2547
} | [
2830,
3393,
2753,
80786,
54310,
1155,
353,
8840,
836,
8,
341,
13158,
14887,
2036,
341,
197,
46531,
981,
914,
198,
197,
197,
27806,
914,
198,
197,
630,
33343,
87229,
13825,
7319,
1669,
348,
16,
13860,
11569,
87229,
13825,
7319,
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... | 9 |
func TestCreateHandleFlags(t *testing.T) {
app := cli.NewApp()
flagset := flag.NewFlagSet("flags", 1)
flagset.String("image-id", "", "")
flagset.String("flavor-id", "", "")
flagset.String("security-groups", "", "")
flagset.String("networks", "", "")
flagset.String("metadata", "", "")
flagset.String("admin-pass"... | explode_data.jsonl/75789 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 717
} | [
2830,
3393,
4021,
6999,
9195,
1155,
353,
8840,
836,
8,
341,
28236,
1669,
21348,
7121,
2164,
741,
30589,
746,
1669,
5181,
7121,
12135,
1649,
445,
11161,
497,
220,
16,
340,
30589,
746,
6431,
445,
1805,
12897,
497,
7342,
14676,
30589,
746,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEndpoint(t *testing.T) {
type input struct {
UseHttps bool
Host string
}
testInputs := []input{
{UseHttps: true, Host: "rs.qiniu.com"},
{UseHttps: false, Host: "rs.qiniu.com"},
{UseHttps: true, Host: ""},
{UseHttps: false, Host: ""},
{UseHttps: true, Host: "https://rs.qiniu.com"},
{UseHt... | explode_data.jsonl/48862 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 339
} | [
2830,
3393,
27380,
1155,
353,
8840,
836,
8,
341,
13158,
1946,
2036,
341,
197,
95023,
92869,
1807,
198,
197,
197,
9296,
257,
914,
198,
197,
532,
18185,
31946,
1669,
3056,
1355,
515,
197,
197,
90,
10253,
92869,
25,
830,
11,
16102,
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 TestExactPrefix(t *testing.T) {
defer leaktest.AfterTest(t)()
st := cluster.MakeTestingClusterSettings()
evalCtx := tree.MakeTestingEvalContext(st)
testData := []struct {
s string
// expected value
e int
}{
{
s: "",
e: 0,
},
{
s: "[/1 - /1]",
e: 1,
},
{
s: "[/1 - /2]",
e: 0,... | explode_data.jsonl/59311 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 623
} | [
2830,
3393,
57954,
14335,
1155,
353,
8840,
836,
8,
341,
16867,
23352,
1944,
36892,
2271,
1155,
8,
741,
18388,
1669,
10652,
50133,
16451,
28678,
6086,
741,
93413,
23684,
1669,
4916,
50133,
16451,
54469,
1972,
5895,
692,
18185,
1043,
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 TestModeAssert(t *testing.T) {
type args struct {
mode int
}
tests := []struct {
name string
args args
iSHash bool
isSignature bool
isECDSA bool
isRSA bool
}{
{name: "sha3", args: args{mode: crypto.SHA3}, iSHash: true},
{name: "sha256", args: args{mode: crypto.SHA... | explode_data.jsonl/45159 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 512
} | [
2830,
3393,
3636,
8534,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
60247,
526,
198,
197,
532,
78216,
1669,
3056,
1235,
341,
197,
11609,
286,
914,
198,
197,
31215,
286,
2827,
198,
197,
8230,
50,
6370,
414,
1807,
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... | 5 |
func TestWriteSetCookies(t *testing.T) {
defer log.SetOutput(os.Stderr)
var logbuf bytes.Buffer
log.SetOutput(&logbuf)
for i, tt := range writeSetCookiesTests {
if g, e := tt.Cookie.String(), tt.Raw; g != e {
t.Errorf("Test %d, expecting:\n%s\nGot:\n%s\n", i, e, g)
continue
}
}
if got, sub := logbuf.S... | explode_data.jsonl/20294 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 195
} | [
2830,
3393,
7985,
1649,
50672,
1155,
353,
8840,
836,
8,
341,
16867,
1487,
4202,
5097,
9638,
77319,
340,
2405,
1487,
5909,
5820,
22622,
198,
6725,
4202,
5097,
2099,
839,
5909,
692,
2023,
600,
11,
17853,
1669,
2088,
3270,
1649,
50672,
182... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestReverse(t *testing.T) {
type testData struct {
in, out []byte
}
tests := []testData{
{in: []byte{125, 55, 90, 127}, out: []byte{127, 90, 55, 125}},
{in: []byte{}, out: []byte{}},
{in: nil, out: nil},
}
for i, test := range tests {
Reverse(ByteSlice(test.in), 0, len(test.in)-1)
if err := a.As... | explode_data.jsonl/9012 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 208
} | [
2830,
3393,
45695,
1155,
353,
8840,
836,
8,
341,
13158,
67348,
2036,
341,
197,
17430,
11,
700,
3056,
3782,
198,
197,
630,
78216,
1669,
3056,
1944,
1043,
515,
197,
197,
90,
258,
25,
3056,
3782,
90,
16,
17,
20,
11,
220,
20,
20,
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... | 3 |
func TestAllClusters(t *testing.T) {
g := gomega.NewGomegaWithT(t)
// Setup the Manager and Controller. Wrap the Controller Reconcile function so it writes each request to a
// channel when it is finished.
mgr, err := manager.New(cfg, manager.Options{MetricsBindAddress: "0"})
g.Expect(err).NotTo(gomega.HaveOccur... | explode_data.jsonl/48695 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1310
} | [
2830,
3393,
2403,
94992,
1155,
353,
8840,
836,
8,
341,
3174,
1669,
342,
32696,
7121,
38,
32696,
2354,
51,
1155,
692,
197,
322,
18626,
279,
10567,
323,
9771,
13,
220,
42187,
279,
9771,
1032,
40446,
457,
729,
773,
432,
13914,
1817,
1681... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNewRepositoryStrictValidation(t *testing.T) {
t.Parallel()
for _, name := range goodStrictValidationRepositoryNames {
if repository, err := NewRepository(name, StrictValidation); err != nil {
t.Errorf("`%s` should be a valid Repository name, got error: %v", name, err)
} else if repository.Name() != n... | explode_data.jsonl/39006 | {
"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,
3564,
4624,
41857,
13799,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
2023,
8358,
829,
1669,
2088,
1661,
41857,
13799,
4624,
7980,
341,
197,
743,
12542,
11,
1848,
1669,
1532,
4624,
3153,
11,
52881,
13799,
1215,
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... | 6 |
func TestFavClips(t *testing.T) {
Convey("get FavClips", t, func() {
_, err := dao.FavClips(ctx(), 27515258, "da6863c38e83fc7a035c8f7a7d9b1c11", "appkey", "phone", "iphone", "ios", 8230, 1, 20)
err = nil
So(err, ShouldBeNil)
})
} | explode_data.jsonl/51610 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 119
} | [
2830,
3393,
37,
402,
5066,
3077,
1155,
353,
8840,
836,
8,
341,
93070,
5617,
445,
455,
80941,
5066,
3077,
497,
259,
11,
2915,
368,
341,
197,
197,
6878,
1848,
1669,
24775,
991,
402,
5066,
3077,
7502,
1507,
220,
17,
22,
20,
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... | 1 |
func TestDelete(t *testing.T) {
t.Parallel()
flight := newSyncU64set()
flight.AddIfNotPresent(10)
flight.Delete(10)
if flight.pks.Has(10) {
t.Error("did not delete the value")
}
} | explode_data.jsonl/7435 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 78
} | [
2830,
3393,
6435,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
1166,
4145,
1669,
501,
12154,
52,
21,
19,
746,
741,
1166,
4145,
1904,
2679,
2623,
21195,
7,
16,
15,
692,
1166,
4145,
18872,
7,
16,
15,
340,
743,
10971,
556,
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
] | 2 |
func TestPrintPodConditions(t *testing.T) {
runningPod := &api.Pod{
ObjectMeta: metav1.ObjectMeta{Name: "test1", Labels: map[string]string{"a": "1", "b": "2"}},
Spec: api.PodSpec{Containers: make([]api.Container, 2)},
Status: api.PodStatus{
Phase: "Running",
ContainerStatuses: []api.ContainerStatus{
... | explode_data.jsonl/21599 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1067
} | [
2830,
3393,
8994,
23527,
35435,
1155,
353,
8840,
836,
8,
341,
197,
27173,
23527,
1669,
609,
2068,
88823,
515,
197,
23816,
12175,
25,
77520,
16,
80222,
63121,
25,
330,
1944,
16,
497,
60996,
25,
2415,
14032,
30953,
4913,
64,
788,
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... | 5 |
func TestMutexProfile(t *testing.T) {
testenv.SkipFlaky(t, 19139)
old := runtime.SetMutexProfileFraction(1)
defer runtime.SetMutexProfileFraction(old)
if old != 0 {
t.Fatalf("need MutexProfileRate 0, got %d", old)
}
blockMutex()
var w bytes.Buffer
Lookup("mutex").WriteTo(&w, 1)
prof := w.String()
if !str... | explode_data.jsonl/13654 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 470
} | [
2830,
3393,
38099,
8526,
1155,
353,
8840,
836,
8,
341,
18185,
3160,
57776,
3882,
28100,
1155,
11,
220,
16,
24,
16,
18,
24,
340,
61828,
1669,
15592,
4202,
38099,
8526,
61955,
7,
16,
340,
16867,
15592,
4202,
38099,
8526,
61955,
21972,
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... | 9 |
func TestJetStreamNotEnabled(t *testing.T) {
s := RunServerOnPort(-1)
defer s.Shutdown()
nc, err := nats.Connect(s.ClientURL())
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
defer nc.Close()
js, err := nc.JetStream()
if err != nil {
t.Fatalf("Got error during initialization %v", err)
}
if _, e... | explode_data.jsonl/29154 | {
"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,
35641,
3027,
2623,
5462,
1155,
353,
8840,
836,
8,
341,
1903,
1669,
6452,
5475,
1925,
7084,
4080,
16,
340,
16867,
274,
10849,
18452,
2822,
197,
1016,
11,
1848,
1669,
308,
1862,
43851,
1141,
11716,
3144,
2398,
743,
1848,
961,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestTerm(t *testing.T) {
for _, tc := range termTestCases {
t.Run(tc.name, func(t *testing.T) {
t.Logf("-- term test case %q\n", tc.name)
t.Logf(" input: %q\n", tc.input)
var trm term
if tc.quoted {
trm = newQuotedTerm(tc.input)
} else {
trm = newTerm(tc.input)
}
t.Logf(" term: %v... | explode_data.jsonl/29231 | {
"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,
17249,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17130,
1669,
2088,
4647,
2271,
37302,
341,
197,
3244,
16708,
44415,
2644,
11,
2915,
1155,
353,
8840,
836,
8,
341,
298,
3244,
98954,
21549,
4647,
1273,
1142,
1018,
80,
1699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCurrentWeatherData(t *testing.T) {
handler := testutil.NewHTTPHandler()
server := httptest.NewServer(handler)
defer server.Close()
client := openweather.NewClient("my-app-id")
client.URL = server.URL
config := &config.OpenWeatherCurrentWeatherData{
Coords: []config.Coordinates{
{
Lat: 46.2389,... | explode_data.jsonl/68225 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 749
} | [
2830,
3393,
5405,
28981,
1043,
1155,
353,
8840,
836,
8,
341,
53326,
1669,
1273,
1314,
7121,
9230,
3050,
741,
41057,
1669,
54320,
70334,
7121,
5475,
36514,
340,
16867,
3538,
10421,
2822,
25291,
1669,
1787,
15206,
7121,
2959,
445,
2408,
200... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTeamTxDependency(t *testing.T) {
tt := newTeamTester(t)
defer tt.cleanup()
ann := makeUserStandalone(t, "ann", standaloneUserArgs{
disableGregor: true,
suppressTeamChatAnnounce: true,
})
tt.users = append(tt.users, ann)
t.Logf("Signed up ann (%s)", ann.username)
bob := tt.addPuklessUser... | explode_data.jsonl/27643 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1194
} | [
2830,
3393,
14597,
31584,
36387,
1155,
353,
8840,
836,
8,
341,
3244,
83,
1669,
501,
14597,
58699,
1155,
340,
16867,
17853,
87689,
2822,
197,
1020,
1669,
1281,
1474,
623,
84112,
1155,
11,
330,
1020,
497,
43388,
1474,
4117,
515,
197,
3459... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInitExistingIssuerCredential(t *testing.T) {
testdir, err := ioutil.TempDir(".", "issuerinittest")
if err != nil {
t.Fatalf("Failed to create temp directory: %s", err.Error())
}
defer os.RemoveAll(testdir)
err = os.MkdirAll(filepath.Join(testdir, "msp/keystore"), 0777)
if err != nil {
t.Fatalf("Faile... | explode_data.jsonl/23678 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 600
} | [
2830,
3393,
3803,
53067,
98902,
48265,
1155,
353,
8840,
836,
8,
341,
18185,
3741,
11,
1848,
1669,
43144,
65009,
6184,
64217,
330,
66817,
258,
14267,
1138,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
9408,
311,
1855,
2730,
6220,
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... | 8 |
func TestImportVendor(t *testing.T) {
testenv.MustHaveGoBuild(t) // really must just have source
ctxt := Default
ctxt.GOPATH = ""
p, err := ctxt.Import("golang.org/x/net/http2/hpack", filepath.Join(ctxt.GOROOT, "src/net/http"), 0)
if err != nil {
t.Fatalf("cannot find vendored golang.org/x/net/http2/hpack from n... | explode_data.jsonl/522 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 208
} | [
2830,
3393,
11511,
44691,
1155,
353,
8840,
836,
8,
341,
18185,
3160,
50463,
12116,
10850,
11066,
1155,
8,
442,
2167,
1969,
1101,
614,
2530,
198,
197,
77492,
1669,
7899,
198,
197,
77492,
1224,
3067,
4827,
284,
8389,
3223,
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... | 3 |
func TestPortNumberForName(t *testing.T) {
for _, tc := range []struct {
name string
subset corev1.EndpointSubset
portNumber int32
portName string
err error
}{{
name: "HTTP to 80",
subset: corev1.EndpointSubset{
Ports: []corev1.EndpointPort{{
Port: 8080,
Name: "http",
},... | explode_data.jsonl/58834 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 483
} | [
2830,
3393,
7084,
2833,
2461,
675,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17130,
1669,
2088,
3056,
1235,
341,
197,
11609,
981,
914,
198,
197,
28624,
746,
257,
6200,
85,
16,
90409,
70584,
198,
197,
52257,
2833,
526,
18,
17,
198,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestGetDefaultDecorationConfigsThreadSafety(t *testing.T) {
const repo = "repo"
p := Plank{DefaultDecorationConfigs: map[string]*prowapi.DecorationConfig{
"*": {
GCSConfiguration: &prowapi.GCSConfiguration{
MediaTypes: map[string]string{"text": "text"},
},
},
repo: {
GCSConfiguration: &prowapi... | explode_data.jsonl/8100 | {
"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,
1949,
3675,
19431,
84905,
6855,
73037,
1155,
353,
8840,
836,
8,
341,
4777,
15867,
284,
330,
23476,
698,
3223,
1669,
1818,
1180,
90,
3675,
19431,
84905,
25,
2415,
14032,
8465,
79,
651,
2068,
22442,
7614,
2648,
515,
197,
197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestImageInspectImageNotFound(t *testing.T) {
client := &Client{
client: newMockClient(errorMock(http.StatusNotFound, "Server error")),
}
_, _, err := client.ImageInspectWithRaw(context.Background(), "unknown")
if err == nil || !IsErrNotFound(err) {
t.Fatalf("expected an imageNotFound error, got %v", err)... | explode_data.jsonl/6823 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 117
} | [
2830,
3393,
1906,
58533,
1906,
10372,
1155,
353,
8840,
836,
8,
341,
25291,
1669,
609,
2959,
515,
197,
25291,
25,
501,
11571,
2959,
6390,
11571,
19886,
10538,
10372,
11,
330,
5475,
1465,
30154,
197,
630,
197,
6878,
8358,
1848,
1669,
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... | 3 |
func TestDomainFree(t *testing.T) {
dom, conn := buildTestDomain()
defer func() {
if res, _ := conn.Close(); res != 0 {
t.Errorf("Close() == %d, expected 0", res)
}
}()
if err := dom.Free(); err != nil {
t.Error(err)
return
}
} | explode_data.jsonl/64836 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 104
} | [
2830,
3393,
13636,
10940,
1155,
353,
8840,
836,
8,
341,
2698,
316,
11,
4534,
1669,
1936,
2271,
13636,
741,
16867,
2915,
368,
341,
197,
743,
592,
11,
716,
1669,
4534,
10421,
2129,
592,
961,
220,
15,
341,
298,
3244,
13080,
445,
7925,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStatefulPodControlCreatePodFailed(t *testing.T) {
recorder := record.NewFakeRecorder(10)
set := newStatefulSet(3)
pod := newStatefulSetPod(set, 0)
fakeClient := &fake.Clientset{}
pvcIndexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc})
... | explode_data.jsonl/17901 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 466
} | [
2830,
3393,
1397,
1262,
23527,
3273,
4021,
23527,
9408,
1155,
353,
8840,
836,
8,
341,
67904,
1358,
1669,
3255,
7121,
52317,
47023,
7,
16,
15,
340,
8196,
1669,
36848,
1262,
1649,
7,
18,
340,
3223,
347,
1669,
36848,
1262,
1649,
23527,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRunPodSandboxWithFailingCNI(t *testing.T) {
tst := makeVirtletCRITester(t)
defer tst.teardown()
sandboxes := criapi.GetSandboxes(1)
sandboxes[0].Metadata.Uid = "should-fail-cni"
tst.runPodSandboxAndExpectError(sandboxes[0])
tst.verify()
} | explode_data.jsonl/15664 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 110
} | [
2830,
3393,
6727,
23527,
50,
31536,
2354,
37,
14277,
34,
14912,
1155,
353,
8840,
836,
8,
341,
3244,
267,
1669,
1281,
53,
2106,
1149,
8973,
952,
5191,
1155,
340,
16867,
71707,
31853,
37496,
2822,
1903,
437,
22204,
1669,
27558,
2068,
2234... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestSaveArtifactsExtractError(t *testing.T) {
bh := testBuildHandler()
th := bh.tar.(*test.FakeTar)
expected := fmt.Errorf("extract error")
th.ExtractTarError = expected
err := bh.Save(bh.config)
if err != expected {
t.Errorf("Unexpected error returned from saveArtifacts: %v", err)
}
} | explode_data.jsonl/59443 | {
"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,
8784,
9286,
26401,
28959,
1454,
1155,
353,
8840,
836,
8,
341,
2233,
71,
1669,
1273,
11066,
3050,
741,
70479,
1669,
42989,
28048,
41399,
1944,
991,
726,
62733,
340,
42400,
1669,
8879,
13080,
445,
23493,
1465,
1138,
70479,
5121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRandomSearcherBatches(t *testing.T) {
actual := model.RandomConfig{MaxTrials: 4, MaxLength: model.NewLengthInBatches(300)}
expected := [][]ValidateAfter{
toOps("300B"),
toOps("300B"),
toOps("300B"),
toOps("300B"),
}
search := newRandomSearch(actual)
checkSimulation(t, search, nil, ConstantValidati... | explode_data.jsonl/24095 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 123
} | [
2830,
3393,
13999,
5890,
261,
33,
9118,
1155,
353,
8840,
836,
8,
341,
88814,
1669,
1614,
26709,
2648,
90,
5974,
21884,
1127,
25,
220,
19,
11,
7487,
4373,
25,
1614,
7121,
4373,
641,
33,
9118,
7,
18,
15,
15,
10569,
42400,
1669,
52931,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestReadReturnsEOFOnUninitialisedPipe(t *testing.T) {
t.Parallel()
p := &script.Pipe{}
buf := []byte{0} // try to read at least 1 byte
n, err := p.Read(buf)
if !errors.Is(err, io.EOF) {
t.Errorf("want EOF, got %v", err)
}
if n > 0 {
t.Errorf("unexpectedly read %d bytes", n)
}
} | explode_data.jsonl/51536 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 134
} | [
2830,
3393,
4418,
16446,
23483,
1925,
1806,
9426,
4056,
34077,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
3223,
1669,
609,
2282,
1069,
3444,
16094,
26398,
1669,
3056,
3782,
90,
15,
92,
442,
1430,
311,
1349,
518,
3245,
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 TestSetUploadStatusWithNonExistentAssetIDShouldReturnProperError(t *testing.T) {
rec := httptest.NewRecorder()
req, err := http.NewRequest(constants.RequestMethodPut,
fmt.Sprintf("%s?id=%s", constants.StatusURL, constants.MockNonExistentID), nil)
require.NoError(t, err)
db := &test.MockDb{Err: &data.ErrorNo... | explode_data.jsonl/34288 | {
"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,
1649,
13844,
2522,
2354,
8121,
840,
18128,
16604,
915,
14996,
5598,
1336,
712,
1454,
1155,
353,
8840,
836,
8,
341,
67904,
1669,
54320,
70334,
7121,
47023,
741,
24395,
11,
1848,
1669,
1758,
75274,
80368,
68940,
19103,
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 |
func TestOption_WithBasicAuth(t *testing.T) {
client, err := NewClient("test", "http://httpbin.org/")
if err != nil {
t.Fatal(err)
}
resp := &respCarrier{}
err = client.Get(resp, "/basic-auth/user/passwd",
WithBasicAuth(func() (string, string) {
return "user", "passwd"
}))
if err != nil {
t.Fatal(err)... | explode_data.jsonl/68692 | {
"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,
5341,
62,
2354,
15944,
5087,
1155,
353,
8840,
836,
8,
341,
25291,
11,
1848,
1669,
1532,
2959,
445,
1944,
497,
330,
1254,
1110,
1254,
6863,
2659,
53006,
743,
1848,
961,
2092,
341,
197,
3244,
26133,
3964,
340,
197,
630,
3465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestClustersStatusAll(t *testing.T) {
ctx := context.Background()
clusters, mock := createClusters(t)
defer shutdownClusters(t, clusters, mock)
h := test.Cid1
clusters[0].Pin(ctx, h, api.PinOptions{})
pinDelay()
// Global status
f := func(t *testing.T, c *Cluster) {
statuses, err := c.StatusAll(ctx)
if... | explode_data.jsonl/66605 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 455
} | [
2830,
3393,
94992,
2522,
2403,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
741,
39407,
14605,
11,
7860,
1669,
1855,
94992,
1155,
340,
16867,
23766,
94992,
1155,
11,
26968,
11,
7860,
340,
9598,
1669,
1273,
727,
307,
16,
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... | 9 |
func TestStructArray(t *testing.T) {
type T struct {
Foo string
}
emptyTSlice := []T{}
testData := []struct {
csdata []byte
accepter []T
value []T
}{
{
[]byte(`[{"foo": "bar"}]`),
emptyTSlice,
[]T{{Foo: "bar"}},
},
}
for idx, test := range testData {
values, err := newValues(&sourc... | explode_data.jsonl/20552 | {
"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,
9422,
1857,
1155,
353,
8840,
836,
8,
341,
13158,
350,
2036,
341,
197,
12727,
2624,
914,
198,
197,
630,
197,
3194,
9951,
4754,
1669,
3056,
51,
31483,
18185,
1043,
1669,
3056,
1235,
341,
197,
71899,
691,
256,
3056,
3782,
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... | 5 |
func TestGocloak_DeleteRealmRole(t *testing.T) {
t.Parallel()
cfg := GetConfig(t)
client := NewClientWithDebug(t)
token := GetAdminToken(t, client)
_, roleName := CreateRealmRole(t, client)
err := client.DeleteRealmRole(
token.AccessToken,
cfg.GoCloak.Realm,
roleName)
FailIfErr(t, err, "DeleteRealmRole f... | explode_data.jsonl/79547 | {
"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,
38,
509,
385,
585,
57418,
64290,
9030,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
50286,
1669,
2126,
2648,
1155,
340,
25291,
1669,
1532,
2959,
2354,
7939,
1155,
340,
43947,
1669,
2126,
7210,
3323,
1155,
11,
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 TestGetSetIndexes(t *testing.T) {
testCases := []struct {
args []string
totalSizes []uint64
indexes [][]uint64
success bool
}{
// Invalid inputs.
{
[]string{"data{1...3}"},
[]uint64{3},
nil,
false,
},
{
[]string{"data/controller1/export{1...2}, data/controller2/export{1... | explode_data.jsonl/8754 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1500
} | [
2830,
3393,
1949,
1649,
62229,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
31215,
981,
3056,
917,
198,
197,
34493,
34930,
3056,
2496,
21,
19,
198,
197,
26327,
288,
262,
52931,
2496,
21,
19,
198,
197,
30553,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAPIs(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecsWithDefaultAndCustomReporters(t,
"v1beta1 Suite",
[]Reporter{printer.NewlineReporter{}})
} | explode_data.jsonl/58123 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 63
} | [
2830,
3393,
7082,
82,
1155,
353,
8840,
836,
8,
341,
79096,
19524,
3050,
7832,
604,
692,
85952,
8327,
16056,
3675,
3036,
10268,
10361,
388,
1155,
345,
197,
197,
1,
85,
16,
19127,
16,
20977,
756,
197,
197,
1294,
52766,
90,
62956,
7121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestOnePCErrorTracking(t *testing.T) {
defer leaktest.AfterTest(t)()
defer log.Scope(t).Close(t)
ctx := context.Background()
clock := hlc.NewClock(hlc.UnixNano, time.Nanosecond)
ambient := log.AmbientContext{Tracer: tracing.NewTracer()}
sender := &mockSender{}
stopper := stop.NewStopper()
defer stopper.Sto... | explode_data.jsonl/76900 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1063
} | [
2830,
3393,
3966,
4872,
1454,
37119,
1155,
353,
8840,
836,
8,
341,
16867,
23352,
1944,
36892,
2271,
1155,
8,
741,
16867,
1487,
77940,
1155,
568,
7925,
1155,
340,
20985,
1669,
2266,
19047,
741,
84165,
1669,
305,
17257,
7121,
26104,
3203,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRepository_Save(t *testing.T) {
ctx := context.Background()
mockController := gomock.NewController(t)
defer mockController.Finish()
mockRepository := mock_gateway.NewMockObjectStorage(mockController)
repository := NewRepository(mockRepository, env.Object.BucketNameOriginal, env.Object.BucketNameThumbnai... | explode_data.jsonl/40502 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1195
} | [
2830,
3393,
4624,
78746,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
2822,
77333,
2051,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
16867,
7860,
2051,
991,
18176,
2822,
77333,
4624,
1669,
7860,
64049,
7121,
11571,
1190,
5793,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDecryptConfigFile(t *testing.T) {
sessionDK = nil
result, err := EncryptConfigFile([]byte("test"), []byte("key"))
if err != nil {
t.Fatal(err)
}
_, err = DecryptConfigFile(result, nil)
if err == nil {
t.Fatal("Test failed. Expected different result")
}
_, err = DecryptConfigFile([]byte("test"), ... | explode_data.jsonl/11026 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 281
} | [
2830,
3393,
89660,
2648,
1703,
1155,
353,
8840,
836,
8,
341,
25054,
18301,
284,
2092,
271,
9559,
11,
1848,
1669,
55459,
2648,
1703,
10556,
3782,
445,
1944,
3975,
3056,
3782,
445,
792,
5455,
743,
1848,
961,
2092,
341,
197,
3244,
26133,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInsertAssetStats(t *testing.T) {
tt := test.Start(t)
defer tt.Finish()
test.ResetHorizonDB(t, tt.HorizonDB)
q := &Q{tt.HorizonSession()}
tt.Assert.NoError(q.InsertAssetStats([]ExpAssetStat{}, 1))
assetStats := []ExpAssetStat{
ExpAssetStat{
AssetType: xdr.AssetTypeAssetTypeCreditAlphanum4,
Asse... | explode_data.jsonl/42370 | {
"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,
13780,
16604,
16635,
1155,
353,
8840,
836,
8,
341,
3244,
83,
1669,
1273,
12101,
1155,
340,
16867,
17853,
991,
18176,
741,
18185,
36660,
39601,
16973,
3506,
1155,
11,
17853,
3839,
269,
16973,
3506,
340,
18534,
1669,
609,
48,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestCreateHandlePipe(t *testing.T) {
cmd := &commandCreate{}
expected := &handler.Resource{
Params: ¶msCreate{
opts: &servers.CreateOpts{
Name: "server1",
},
},
}
actual := &handler.Resource{
Params: ¶msCreate{
opts: &servers.CreateOpts{},
},
}
err := cmd.HandlePipe(actual, "serv... | explode_data.jsonl/75790 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 193
} | [
2830,
3393,
4021,
6999,
34077,
1155,
353,
8840,
836,
8,
341,
25920,
1669,
609,
5631,
4021,
16094,
42400,
1669,
609,
17905,
20766,
515,
197,
197,
4870,
25,
609,
3519,
4021,
515,
298,
64734,
25,
609,
67696,
7251,
43451,
515,
571,
21297,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPlacementTiflashCheck(t *testing.T) {
store, clean := testkit.CreateMockStore(t)
defer clean()
tk := testkit.NewTestKit(t, store)
require.NoError(t, failpoint.Enable("github.com/pingcap/tidb/infoschema/mockTiFlashStoreCount", `return(true)`))
defer func() {
err := failpoint.Disable("github.com/pingcap/t... | explode_data.jsonl/77387 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1806
} | [
2830,
3393,
28237,
51,
333,
24686,
3973,
1155,
353,
8840,
836,
8,
341,
57279,
11,
4240,
1669,
1273,
8226,
7251,
11571,
6093,
1155,
340,
16867,
4240,
741,
3244,
74,
1669,
1273,
8226,
7121,
2271,
7695,
1155,
11,
3553,
340,
17957,
35699,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestReceiveLogsOp(t *testing.T) {
tt, err := obsreporttest.SetupTelemetry()
require.NoError(t, err)
t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) })
parentCtx, parentSpan := tt.TracerProvider.Tracer("test").Start(context.Background(), t.Name())
defer parentSpan.End()
params := []... | explode_data.jsonl/57967 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 771
} | [
2830,
3393,
14742,
51053,
7125,
1155,
353,
8840,
836,
8,
341,
3244,
83,
11,
1848,
1669,
7448,
11736,
1944,
39820,
6639,
35958,
741,
17957,
35699,
1155,
11,
1848,
340,
3244,
727,
60639,
18552,
368,
314,
1373,
35699,
1155,
11,
17853,
1084... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetUsersInTeam(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()
defer th.TearDown()
Client := th.Client
teamId := th.BasicTeam.Id
rusers, resp := Client.GetUsersInTeam(teamId, 0, 60, "")
CheckNoError(t, resp)
for _, u := range rusers {
CheckUserSanitization(t, u)
}
rusers, resp = Client... | explode_data.jsonl/21539 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 472
} | [
2830,
3393,
1949,
7137,
641,
14597,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
18626,
1005,
3803,
15944,
1005,
3803,
2320,
7210,
741,
16867,
270,
836,
682,
4454,
741,
71724,
1669,
270,
11716,
198,
197,
9196,
764,
1669,
270,
48868,
14597... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUnmarshalLocalTime(t *testing.T) {
examples := []struct {
name string
in string
out LocalTime
}{
{
name: "normal",
in: "07:32:00",
out: LocalTime{
Hour: 7,
Minute: 32,
Second: 0,
Nanosecond: 0,
},
},
{
name: "with nanoseconds",
in: "00:32:00.... | explode_data.jsonl/46363 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 459
} | [
2830,
3393,
1806,
27121,
7319,
1462,
1155,
353,
8840,
836,
8,
341,
8122,
4023,
1669,
3056,
1235,
341,
197,
11609,
914,
198,
197,
17430,
256,
914,
198,
197,
13967,
220,
8774,
1462,
198,
197,
59403,
197,
197,
515,
298,
11609,
25,
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... | 3 |
func TestTearDownWithoutRuntime(t *testing.T) {
testCases := []struct {
podCIDR []string
expectedPodCIDR []string
ip string
}{
{
podCIDR: []string{"10.0.0.0/24"},
expectedPodCIDR: []string{"10.0.0.0/24"},
ip: "10.0.0.1",
},
{
podCIDR: []string{... | explode_data.jsonl/4479 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1192
} | [
2830,
3393,
51,
682,
4454,
26040,
15123,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
3223,
347,
54146,
49,
260,
3056,
917,
198,
197,
42400,
23527,
54146,
49,
3056,
917,
198,
197,
46531,
1060,
914,
198,
197,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestLoadTree(t *testing.T) {
repo, cleanup := repository.TestRepository(t)
defer cleanup()
if rtest.BenchArchiveDirectory == "" {
t.Skip("benchdir not set, skipping")
}
// archive a few files
sn := archiver.TestSnapshot(t, repo, rtest.BenchArchiveDirectory, nil)
rtest.OK(t, repo.Flush(context.Background... | explode_data.jsonl/71938 | {
"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,
5879,
6533,
1155,
353,
8840,
836,
8,
341,
17200,
5368,
11,
21290,
1669,
12542,
8787,
4624,
1155,
340,
16867,
21290,
2822,
743,
435,
1944,
1785,
19762,
42502,
9310,
621,
1591,
341,
197,
3244,
57776,
445,
27024,
3741,
537,
738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDecayConst(t *testing.T) {
want := 7.302030826339803e-10
got := DecayConst(Id("Cs137"))
if got != want {
t.Errorf("want %v, got %v", want, got)
}
} | explode_data.jsonl/31993 | {
"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,
4900,
352,
19167,
1155,
353,
8840,
836,
8,
341,
50780,
1669,
220,
22,
13,
18,
15,
17,
15,
18,
15,
23,
17,
21,
18,
18,
24,
23,
15,
18,
68,
12,
16,
15,
198,
3174,
354,
1669,
97286,
19167,
55924,
445,
33545,
16,
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... | 2 |
func TestRouterPanicHandler(t *testing.T) {
router := New()
panicHandled := false
router.PanicHandler = func(ctx *fasthttp.RequestCtx, p interface{}) {
panicHandled = true
}
router.Handle("PUT", "/user/:name", func(_ *fasthttp.RequestCtx) {
panic("oops!")
})
defer func() {
if rcv := recover(); rcv != ni... | explode_data.jsonl/42492 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 339
} | [
2830,
3393,
9523,
47,
31270,
3050,
1155,
353,
8840,
836,
8,
341,
67009,
1669,
1532,
741,
30764,
90909,
1669,
895,
271,
67009,
1069,
31270,
3050,
284,
2915,
7502,
353,
9349,
1254,
9659,
23684,
11,
281,
3749,
28875,
341,
197,
30764,
90909... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInOrderForArgs(t *testing.T) {
tests := []struct {
description string
buildArtifact ArtifactBuilder
artifactLen int
concurrency int
dependency map[int][]int
expected []Artifact
err error
}{
{
description: "runs in parallel for 2 artifacts with no dependency",
bui... | explode_data.jsonl/40729 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1608
} | [
2830,
3393,
641,
4431,
2461,
4117,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
42407,
256,
914,
198,
197,
69371,
85578,
86082,
3297,
198,
197,
197,
63722,
11271,
256,
526,
198,
197,
37203,
15973,
256,
526,
198,
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 TestNewUser(t *testing.T) {
var (
user *u.User
)
user, err := u.NewUser(
"test_endpoint",
"test_remote_ip",
"test_key_auth",
"test_key_p256_dh")
assert.NoError(t, err)
assert.Equal(t, "test_endpoint", user.Endpoint)
assert.Equal(t, "test_remote_ip", user.RemoteIP)
assert.Equal(t, "test_key_auth"... | explode_data.jsonl/82651 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 200
} | [
2830,
3393,
3564,
1474,
1155,
353,
8840,
836,
8,
341,
2405,
2399,
197,
19060,
353,
84,
7344,
198,
197,
692,
19060,
11,
1848,
1669,
575,
7121,
1474,
1006,
197,
197,
1,
1944,
36699,
756,
197,
197,
1,
1944,
36425,
10385,
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 |
func TestExecuteFailOnDuplicateNamesInDifferentProjects(t *testing.T) {
environment := environment.NewEnvironment("dev", "Dev", "", "https://url/to/dev/environment", "DEV")
apis := testGetExecuteApis()
path := util.ReplacePathSeparators("../../cmd/monaco/test-resources/duplicate-name-test")
projects, err := proje... | explode_data.jsonl/80404 | {
"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,
17174,
19524,
1925,
53979,
7980,
641,
69123,
29958,
1155,
353,
8840,
836,
8,
341,
197,
23294,
1669,
4573,
7121,
12723,
445,
3583,
497,
330,
14592,
497,
7342,
330,
2428,
1110,
1085,
32429,
35061,
54482,
497,
330,
31819,
5130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInit(t *testing.T) {
var (
calls = make(Set)
taskMessages = make(Set)
taskTypes = make(Set)
home = mkTestDirectory(t)
)
defer osRemoveAll(home)
func() {
denyAllDevmapper()
DmSetDevDir = func(dir string) int {
calls["DmSetDevDir"] = true
expectedDir := "/dev"
if dir !... | explode_data.jsonl/45476 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2351
} | [
2830,
3393,
3803,
1155,
353,
8840,
836,
8,
341,
2405,
2399,
197,
1444,
5583,
286,
284,
1281,
52474,
340,
197,
49115,
15820,
284,
1281,
52474,
340,
197,
49115,
4173,
262,
284,
1281,
52474,
340,
197,
197,
5117,
260,
284,
23789,
2271,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSelect_CFTask(t *testing.T) {
taskPrompt := "TASK PLX"
taskHelp := "NO"
testTasks := []string{"abc", "db-migrate"}
testDefaultTask := "db-migrate"
testCases := map[string]struct {
inDefaultCluster string
inOpts []GetDeployedTaskOpts
mockStore func(*mocks.MockConfigLister)
mockPrompt fu... | explode_data.jsonl/44900 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1654
} | [
2830,
3393,
3379,
920,
3994,
1073,
1155,
353,
8840,
836,
8,
341,
49115,
54615,
1669,
330,
65813,
10315,
55,
698,
49115,
12689,
1669,
330,
8996,
698,
18185,
25449,
1669,
3056,
917,
4913,
13683,
497,
330,
1999,
1448,
34479,
16707,
18185,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBuildGetIncidentRuleRequest_Validate(t *testing.T) {
var err error
request := &GetIncidentRulesRequest{}
err = request.Validate()
assert.Equal(t, err.Error(), errors.New("Service Id cannot be empty.").Error())
request.ServiceId = "id"
err = request.Validate()
assert.Nil(t, err)
assert.Equal(t, reques... | explode_data.jsonl/55217 | {
"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,
11066,
1949,
39245,
1713,
11337,
1900,
62,
17926,
1155,
353,
8840,
836,
8,
341,
2405,
1848,
1465,
198,
23555,
1669,
609,
1949,
39245,
1713,
26008,
1900,
16094,
9859,
284,
1681,
47667,
741,
6948,
12808,
1155,
11,
1848,
6141,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestWalletBalance(t *testing.T) {
app, mockApi, buffer, done := NewMockAppWithFullAPI(t, WithCategory("wallet", walletBalance))
defer done()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
addr, err := address.NewIDAddress(1234)
assert.NoError(t, err)
balance := big.NewInt(1234)
... | explode_data.jsonl/8252 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 202
} | [
2830,
3393,
38259,
21190,
1155,
353,
8840,
836,
8,
341,
28236,
11,
7860,
6563,
11,
4147,
11,
2814,
1669,
1532,
11571,
2164,
2354,
9432,
7082,
1155,
11,
3085,
6746,
445,
35735,
497,
15085,
21190,
1171,
16867,
2814,
2822,
20985,
11,
9121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestValidateDomainClaims(t *testing.T) {
refATSIng := &v1beta1.Ingress{
ObjectMeta: v1.ObjectMeta{
Name: "test-ats-ingress-ref",
Namespace: "test-ns-ref",
Annotations: map[string]string{
string(DefaultDomain): "test-ats-ref1.company.com",
string(Aliases): "test-ats-ref2.company.com"... | explode_data.jsonl/15646 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 3159
} | [
2830,
3393,
17926,
13636,
51133,
1155,
353,
8840,
836,
8,
1476,
59504,
49107,
25416,
1669,
609,
85,
16,
19127,
16,
5337,
2483,
515,
197,
23816,
12175,
25,
348,
16,
80222,
515,
298,
21297,
25,
414,
330,
1944,
12,
1862,
83905,
673,
4300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDeleteDevice(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
url := "/API/SoEntryFGHA"
th.Mux.HandleFunc(url, func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", fakeclient.TokenID)
th.TestJSONRequest(t, r, deleteRequest)
w.WriteHe... | explode_data.jsonl/45987 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 381
} | [
2830,
3393,
6435,
6985,
1155,
353,
8840,
836,
8,
341,
70479,
39820,
9230,
741,
16867,
270,
94849,
37496,
9230,
2822,
19320,
1669,
3521,
7082,
14,
4416,
5874,
12001,
17020,
698,
70479,
1321,
2200,
63623,
6522,
11,
2915,
3622,
1758,
37508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLinkNeighExists(t *testing.T) {
mockNetLinkOps := new(mocks.NetLinkOps)
mockLink := new(netlink_mocks.Link)
// below is defined in net_linux.go
netLinkOps = mockNetLinkOps
tests := []struct {
desc string
inputLink netlink.Link
inputNeigIP net.IP
inpu... | explode_data.jsonl/30960 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1819
} | [
2830,
3393,
3939,
8813,
1090,
15575,
1155,
353,
8840,
836,
8,
341,
77333,
6954,
3939,
38904,
1669,
501,
1255,
25183,
16993,
3939,
38904,
340,
77333,
3939,
1669,
501,
30723,
2080,
717,
25183,
22534,
340,
197,
322,
3685,
374,
4512,
304,
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... | 3 |
func TestAccAWSENI_ignoreExternalAttachment(t *testing.T) {
var conf ec2.NetworkInterface
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
IDRefreshName: "aws_network_interface.bar",
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSENIDestroy,
Steps: []resourc... | explode_data.jsonl/30825 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 261
} | [
2830,
3393,
14603,
14419,
925,
14912,
58493,
25913,
33569,
1155,
353,
8840,
836,
8,
341,
2405,
2335,
11942,
17,
30149,
5051,
271,
50346,
8787,
1155,
11,
5101,
31363,
515,
197,
197,
4703,
3973,
25,
414,
2915,
368,
314,
1273,
14603,
4703,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStartExecutionSpanWithoutPayload(t *testing.T) {
defer reset()
startTime := time.Now()
startExecutionSpan(startTime, "", LambdaInvokeEventHeaders{})
assert.Equal(t, startTime, currentExecutionInfo.startTime)
assert.NotEqual(t, 0, currentExecutionInfo.traceID)
assert.NotEqual(t, 0, currentExecutionInfo.sp... | explode_data.jsonl/2344 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 117
} | [
2830,
3393,
3479,
20294,
12485,
26040,
29683,
1155,
353,
8840,
836,
8,
341,
16867,
7585,
741,
21375,
1462,
1669,
882,
13244,
741,
21375,
20294,
12485,
88090,
11,
7342,
44521,
17604,
1556,
10574,
37790,
6948,
12808,
1155,
11,
22858,
11,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestListDaemonSets(t *testing.T) {
tests := []struct {
description string
namespace string
query *query.Query
expected *api.ListResult
expectedErr error
}{
{
"test name filter",
"bar",
&query.Query{
Pagination: &query.Pagination{
Limit: 1,
Offset: 0,
},
Sort... | explode_data.jsonl/55029 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 460
} | [
2830,
3393,
852,
89177,
30175,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
42407,
914,
198,
197,
56623,
256,
914,
198,
197,
27274,
981,
353,
1631,
15685,
198,
197,
42400,
262,
353,
2068,
5814,
2077,
198,
197,
4240... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestHandlerFlushHandler(t *testing.T) {
conf := internal.NewConfigurationWithDefaults()
viper.Set(configuration.ViperKeyScopeStrategy, "DEPRECATED_HIERARCHICAL_SCOPE_STRATEGY")
viper.Set(configuration.ViperKeyIssuerURL, "http://hydra.localhost")
reg := internal.NewRegistryMemory(t, conf)
cl := reg.ClientMana... | explode_data.jsonl/12555 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 886
} | [
2830,
3393,
3050,
46874,
3050,
1155,
353,
8840,
836,
8,
341,
67850,
1669,
5306,
7121,
7688,
2354,
16273,
741,
5195,
12858,
4202,
48724,
5058,
12858,
1592,
10803,
19816,
11,
330,
1150,
57713,
2039,
16289,
10790,
15571,
61725,
7159,
97221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLogLevels(t *testing.T) {
mlevel := ModuleLevels{}
mlevel.SetLevel("module-xyz-info", api.INFO)
mlevel.SetLevel("module-xyz-debug", api.DEBUG)
mlevel.SetLevel("module-xyz-error", api.ERROR)
mlevel.SetLevel("module-xyz-warning", api.WARNING)
//Run info level checks
assert.True(t, mlevel.IsEnabledFor("... | explode_data.jsonl/46791 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 671
} | [
2830,
3393,
2201,
46991,
1155,
353,
8840,
836,
8,
1476,
2109,
3294,
1669,
13711,
46991,
31483,
2109,
3294,
4202,
4449,
445,
4352,
12,
28854,
12505,
497,
6330,
38317,
340,
2109,
3294,
4202,
4449,
445,
4352,
12,
28854,
71051,
497,
6330,
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 Test_ObjectTracker_TryCancelExpect_InfiniteRetries(t *testing.T) {
g := gomega.NewWithT(t)
ot := newObjTracker(schema.GroupVersionKind{}, func() objData {
return objData{retries: -1}
})
const count = 10
ct := makeCTSlice("ct-", count)
for i := 0; i < len(ct); i++ {
ot.Expect(ct[i])
}
g.Expect(ot.Satis... | explode_data.jsonl/52325 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 347
} | [
2830,
3393,
27839,
31133,
1139,
884,
9269,
17536,
25972,
25722,
12020,
4019,
1155,
353,
8840,
836,
8,
341,
3174,
1669,
342,
32696,
7121,
2354,
51,
1155,
340,
197,
354,
1669,
74259,
31133,
42735,
5407,
5637,
10629,
22655,
2915,
368,
2839,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUpdateListenBacklog(t *testing.T) {
c := context.New(t, defaultMTU)
defer c.Cleanup()
// Create listener.
var wq waiter.Queue
ep, err := c.Stack().NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &wq)
if err != nil {
t.Fatalf("NewEndpoint failed: %v", err)
}
if err := ep.Bind(tcpip.FullAddress{... | explode_data.jsonl/22315 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 246
} | [
2830,
3393,
4289,
38714,
3707,
839,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
2266,
7121,
1155,
11,
1638,
8505,
52,
340,
16867,
272,
727,
60639,
2822,
197,
322,
4230,
11446,
624,
2405,
289,
80,
67169,
50251,
198,
96626,
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 TestPropertyDelete(t *testing.T) {
dummy := newObject(ObjectType)
cases := []invokeTestCase{
{args: wrapArgs(newProperty(nil, nil, wrapFuncForTest(func(f *Frame, o *Object) (*Object, *BaseException) { return None, nil })), dummy), want: None},
{args: wrapArgs(newProperty(nil, nil, wrapFuncForTest(func(f *Fra... | explode_data.jsonl/79890 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 257
} | [
2830,
3393,
3052,
6435,
1155,
353,
8840,
836,
8,
341,
2698,
8574,
1669,
501,
1190,
12526,
929,
340,
1444,
2264,
1669,
3056,
22430,
16458,
515,
197,
197,
90,
2116,
25,
15061,
4117,
1755,
3052,
27907,
11,
2092,
11,
15061,
9626,
2461,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDeltaAnalyzer(t *testing.T) {
t.Run("without previous indexing", func(t *testing.T) {
previous := []Property(nil)
next := []Property{
{
Name: "prop1",
Items: []Countable{
{
Data: []byte("value1"),
TermFrequency: 7,
},
{
Data: []byte("value2"),
... | explode_data.jsonl/35908 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2589
} | [
2830,
3393,
20277,
54911,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
28996,
3681,
51980,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
197,
19702,
1669,
3056,
3052,
27907,
340,
197,
28144,
1669,
3056,
3052,
515,
298,
197,
515,
57... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBase64DecodeString(t *testing.T) {
for _, tt := range []struct {
name string
input ByteMatch
want string
}{
{
name: "base64_decode bare",
input: ByteMatch{
Kind: b64Decode,
},
want: `base64_decode;`,
},
{
name: "base64_decode some options",
input: ByteMatch{
Kind: ... | explode_data.jsonl/59684 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 388
} | [
2830,
3393,
3978,
21,
19,
32564,
703,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17853,
1669,
2088,
3056,
1235,
341,
197,
11609,
220,
914,
198,
197,
22427,
10906,
8331,
198,
197,
50780,
220,
914,
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... | 3 |
func TestBackendLoadWriteTo(t *testing.T) {
env, cleanup := withTestEnvironment(t)
defer cleanup()
// setup backend which only works if it's WriteTo method is correctly propagated upwards
env.gopts.backendInnerTestHook = func(r restic.Backend) (restic.Backend, error) {
return &onlyLoadWithWriteToBackend{Backend:... | explode_data.jsonl/43577 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 281
} | [
2830,
3393,
29699,
5879,
7985,
1249,
1155,
353,
8840,
836,
8,
341,
57538,
11,
21290,
1669,
448,
2271,
12723,
1155,
340,
16867,
21290,
2822,
197,
322,
6505,
19163,
892,
1172,
4278,
421,
432,
594,
9645,
1249,
1714,
374,
12440,
85050,
4395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRoaringPostingsListInsert(t *testing.T) {
d := NewPostingsList()
d.Insert(1)
require.True(t, d.Contains(1))
require.Equal(t, 1, d.Len())
// Idempotency of inserts.
d.Insert(1)
require.Equal(t, 1, d.Len())
require.True(t, d.Contains(1))
} | explode_data.jsonl/64012 | {
"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,
38872,
3249,
4133,
819,
852,
13780,
1155,
353,
8840,
836,
8,
341,
2698,
1669,
1532,
4133,
819,
852,
741,
2698,
23142,
7,
16,
340,
17957,
32443,
1155,
11,
294,
11545,
7,
16,
1171,
17957,
12808,
1155,
11,
220,
16,
11,
294,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetEmojiList(t *testing.T) {
th := Setup().InitBasic()
defer th.TearDown()
Client := th.Client
EnableCustomEmoji := *th.App.Config().ServiceSettings.EnableCustomEmoji
defer func() {
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableCustomEmoji = EnableCustomEmoji })
}()
th.App.... | explode_data.jsonl/76082 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 806
} | [
2830,
3393,
1949,
92731,
852,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
18626,
1005,
3803,
15944,
741,
16867,
270,
836,
682,
4454,
741,
71724,
1669,
270,
11716,
271,
197,
11084,
10268,
92731,
1669,
353,
339,
5105,
10753,
1005,
1860,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestEth_protocolVersion(t *testing.T) {
expectedRes := hexutil.Uint(ethermint.ProtocolVersion)
rpcRes := call(t, "eth_protocolVersion", []string{})
var res hexutil.Uint
err := res.UnmarshalJSON(rpcRes.Result)
require.NoError(t, err)
t.Logf("Got protocol version: %s\n", res.String())
require.Equal(t, expe... | explode_data.jsonl/840 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 151
} | [
2830,
3393,
65390,
34880,
5637,
1155,
353,
8840,
836,
8,
341,
42400,
1061,
1669,
12371,
1314,
71869,
7,
2723,
67791,
54096,
5637,
692,
7000,
3992,
1061,
1669,
1618,
1155,
11,
330,
769,
34880,
5637,
497,
3056,
917,
6257,
692,
2405,
592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPushExporterServicer_Submit_Histogram(t *testing.T) {
srv, exp := makeTestCustomPushExporter(t)
err := submitNewMetric(exp, prometheus_models.MetricType_HISTOGRAM, sampleGatewayContext)
assert.NoError(t, err)
assert.Equal(t, 5, totalMetricCount(srv))
err = submitNewMetric(exp, prometheus_models.MetricTyp... | explode_data.jsonl/61834 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 326
} | [
2830,
3393,
16644,
88025,
39159,
12999,
36359,
1763,
2039,
28499,
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... | 4 |
func TestRunsVschemaMigrations(t *testing.T) {
cluster, err := startCluster()
defer cluster.TearDown()
args := os.Args
defer resetFlags(args)
assert.NoError(t, err)
assertColumnVindex(t, cluster, columnVindex{keyspace: "test_keyspace", table: "test_table", vindex: "my_vdx", vindexType: "hash", column: "id"})
as... | explode_data.jsonl/58891 | {
"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,
73920,
53,
17349,
44,
17824,
1155,
353,
8840,
836,
8,
341,
197,
18855,
11,
1848,
1669,
1191,
28678,
741,
16867,
10652,
836,
682,
4454,
741,
31215,
1669,
2643,
51015,
198,
16867,
7585,
9195,
7356,
692,
6948,
35699,
1155,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestIteratorMapper(t *testing.T) {
cur := query.RowCursor([]query.Row{
{
Time: 0,
Series: query.Series{
Name: "cpu",
Tags: ParseTags("host=A"),
},
Values: []interface{}{float64(1), "a"},
},
{
Time: 5,
Series: query.Series{
Name: "cpu",
Tags: ParseTags("host=A"),
},
Va... | explode_data.jsonl/61196 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 794
} | [
2830,
3393,
11951,
10989,
1155,
353,
8840,
836,
8,
341,
33209,
1669,
3239,
14657,
14543,
10556,
1631,
14657,
515,
197,
197,
515,
298,
67567,
25,
220,
15,
345,
298,
7568,
4699,
25,
3239,
37128,
515,
571,
21297,
25,
330,
16475,
756,
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... | 3 |
func TestContains(t *testing.T) {
committee, signers := GenerateTestCommittee()
nonExist, _, _ := crypto.GenerateTestKeyPair()
assert.True(t, committee.Contains(signers[0].Address()))
assert.False(t, committee.Contains(nonExist))
} | explode_data.jsonl/35316 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 84
} | [
2830,
3393,
23805,
1155,
353,
8840,
836,
8,
341,
197,
56785,
11,
1841,
388,
1669,
19813,
2271,
33441,
6547,
741,
197,
6280,
25613,
11,
8358,
716,
1669,
19028,
57582,
2271,
1592,
12443,
2822,
6948,
32443,
1155,
11,
12801,
11545,
40046,
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 |
func TestCommitInFailedTransaction(t *testing.T) {
db := openTestConn(t)
defer db.Close()
txn, err := db.Begin()
if err != nil {
t.Fatal(err)
}
rows, err := txn.Query("SELECT error")
if err == nil {
rows.Close()
t.Fatal("expected failure")
}
err = txn.Commit()
if err != ErrInFailedTransaction {
t.Fat... | explode_data.jsonl/63418 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 155
} | [
2830,
3393,
33441,
641,
9408,
8070,
1155,
353,
8840,
836,
8,
341,
20939,
1669,
1787,
2271,
9701,
1155,
340,
16867,
2927,
10421,
2822,
3244,
42967,
11,
1848,
1669,
2927,
28467,
741,
743,
1848,
961,
2092,
341,
197,
3244,
26133,
3964,
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... | 4 |
func TestGitPermissions_CreateGitTokenWithBranch(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
clients := &client.AggregatedClient{
Ctx: context.Background(),
}
var d *schema.ResourceData
var token string
var err error
d = getGitPermissionsResource(t, gitProjectID, "", gitBranchNameVa... | explode_data.jsonl/33475 | {
"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,
46562,
23851,
34325,
46562,
3323,
2354,
18197,
1155,
353,
8840,
836,
8,
341,
84381,
1669,
342,
316,
1176,
7121,
2051,
1155,
340,
16867,
23743,
991,
18176,
2822,
197,
31869,
1669,
609,
2972,
49850,
93040,
2959,
515,
197,
6258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLoadData(t *testing.T) {
validSQL := []string{
"load data from s3 'x.txt'",
"load data from s3 manifest 'x.txt'",
"load data from s3 file 'x.txt'",
"load data infile 'x.txt' into table 'c'",
"load data from s3 'x.txt' into table x"}
for _, tcase := range validSQL {
_, err := Parse(tcase)
requir... | explode_data.jsonl/27187 | {
"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,
5879,
1043,
1155,
353,
8840,
836,
8,
341,
56322,
6688,
1669,
3056,
917,
515,
197,
197,
1,
1078,
821,
504,
274,
18,
364,
87,
3909,
38330,
197,
197,
1,
1078,
821,
504,
274,
18,
14455,
364,
87,
3909,
38330,
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... | 2 |
func Test_databasesNextView(t *testing.T) {
testcases := []struct {
current string
want string
}{
{current: "databases_general", want: "databases_sessions"},
{current: "databases_sessions", want: "databases_general"},
{current: "unknown", want: "databases_general"},
}
for _, tc := range testcases {
... | explode_data.jsonl/69229 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 139
} | [
2830,
3393,
814,
23822,
5847,
851,
1155,
353,
8840,
836,
8,
341,
18185,
23910,
1669,
3056,
1235,
341,
197,
20121,
914,
198,
197,
50780,
262,
914,
198,
197,
59403,
197,
197,
90,
3231,
25,
330,
67,
23822,
39177,
497,
1366,
25,
330,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAwsAwsSdkGoV2Connect(t *testing.T) {
t.Parallel()
resolver := aws.EndpointResolverFunc(func(service, region string) (aws.Endpoint, error) {
return aws.Endpoint{URL: ConnectUrl()}, nil
})
cfg, err := config.LoadDefaultConfig(context.TODO(),
config.WithCredentialsProvider(aws.AnonymousCredentials{}),
... | explode_data.jsonl/46940 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 272
} | [
2830,
3393,
47359,
47359,
57175,
10850,
53,
17,
14611,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
10202,
7921,
1669,
31521,
90409,
18190,
9626,
18552,
21656,
11,
5537,
914,
8,
320,
8635,
90409,
11,
1465,
8,
341,
197,
853,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSortedISOCtrlStrEmpty(t *testing.T) {
// given
attrs := make(map[string]*sysl.Attribute)
// when
actual := getSortedISOCtrlStr(attrs)
// then
assert.Equal(t, "", actual)
} | explode_data.jsonl/58734 | {
"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,
51051,
1637,
7612,
9599,
2580,
3522,
1155,
353,
8840,
836,
8,
341,
197,
322,
2661,
198,
197,
20468,
1669,
1281,
9147,
14032,
8465,
7791,
75,
33775,
692,
197,
322,
979,
198,
88814,
1669,
633,
51051,
1637,
7612,
9599,
2580,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestTerminator(t *testing.T) {
c := NewClient().(*client)
n := newTestTerminatorConn()
conn := c.newConnection(n)
conn.w.Add(1)
go conn.terminator()
close(conn.t)
conn.w.Wait()
assert.False(t, n.c)
} | explode_data.jsonl/17384 | {
"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,
21209,
1065,
850,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
1532,
2959,
1005,
4071,
2972,
692,
9038,
1669,
501,
2271,
21209,
1065,
850,
9701,
741,
32917,
1669,
272,
4618,
4526,
1445,
692,
32917,
1418,
1904,
7,
16,
340,
306... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEC2CredentialsBuildCanonicalHeadersV4(t *testing.T) {
headers := map[string]string{
"Foo": "bar",
"Baz": "qux",
}
signedHeaders := "foo;baz"
expected := "foo:bar\nbaz:qux\n"
testhelper.CheckEquals(t, expected, ec2tokens.EC2CredentialsBuildCanonicalHeadersV4(headers, signedHeaders))
} | explode_data.jsonl/68587 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 128
} | [
2830,
3393,
7498,
17,
27025,
11066,
70914,
10574,
53,
19,
1155,
353,
8840,
836,
8,
341,
67378,
1669,
2415,
14032,
30953,
515,
197,
197,
1,
40923,
788,
330,
2257,
756,
197,
197,
63590,
1370,
788,
330,
446,
87,
756,
197,
532,
1903,
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 TestUnmarshaling(t *testing.T) {
for _, tt := range unmarshalingTests {
// Make a new instance of the type of our expected object.
p := reflect.New(reflect.TypeOf(tt.pb).Elem()).Interface().(proto.Message)
err := tt.unmarshaler.Unmarshal(strings.NewReader(tt.json), p)
if err != nil {
t.Errorf("unmarsh... | explode_data.jsonl/63120 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 249
} | [
2830,
3393,
1806,
36239,
6132,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17853,
1669,
2088,
650,
36239,
6132,
18200,
341,
197,
197,
322,
7405,
264,
501,
2867,
315,
279,
943,
315,
1039,
3601,
1633,
624,
197,
3223,
1669,
8708,
7121,
133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetSwapOrderHistory(t *testing.T) {
t.Parallel()
if !areTestAPIKeysSet() || !canManipulateRealOrders {
t.Skip("skipping test, either api keys or manipulaterealorders isnt set correctly")
}
_, err := c.GetSwapOrderHistory("", "", swapTestPair, 1, 10, "", "")
if err != nil {
t.Error(err)
}
} | explode_data.jsonl/42949 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 119
} | [
2830,
3393,
1949,
46179,
4431,
13424,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
743,
753,
546,
2271,
7082,
8850,
1649,
368,
1369,
753,
4814,
92876,
6334,
12768,
24898,
341,
197,
3244,
57776,
445,
4886,
5654,
1273,
11,
2987,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEvalInitProvider(t *testing.T) {
n := &EvalInitProvider{
Addr: addrs.ProviderConfig{Type: "foo"},
}
provider := &MockProvider{}
ctx := &MockEvalContext{InitProviderProvider: provider}
if _, err := n.Eval(ctx); err != nil {
t.Fatalf("err: %s", err)
}
if !ctx.InitProviderCalled {
t.Fatal("should be... | explode_data.jsonl/3213 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 182
} | [
2830,
3393,
54469,
3803,
5179,
1155,
353,
8840,
836,
8,
341,
9038,
1669,
609,
54469,
3803,
5179,
515,
197,
197,
13986,
25,
912,
5428,
36208,
2648,
90,
929,
25,
330,
7975,
7115,
197,
532,
197,
19979,
1669,
609,
11571,
5179,
16094,
2098... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestVerifyToken(t *testing.T) {
tokenIsValidWindow, errTokenPayload := VerifyToken(tokenTest, &testLocalSessions, nil)
if !tokenIsValidWindow {
t.Fail()
t.Logf("token window is not valid")
}
if errTokenPayload != nil {
t.Fail()
t.Logf(errTokenPayload.Error())
}
} | explode_data.jsonl/11053 | {
"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,
32627,
3323,
1155,
353,
8840,
836,
8,
341,
43947,
55470,
4267,
11,
1848,
3323,
29683,
1669,
25429,
3323,
13274,
2271,
11,
609,
1944,
7319,
59062,
11,
2092,
340,
743,
753,
5839,
55470,
4267,
341,
197,
3244,
57243,
741,
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 TestApkMetadata_FileOwner(t *testing.T) {
tests := []struct {
metadata ApkMetadata
expected []string
}{
{
metadata: ApkMetadata{
Files: []ApkFileRecord{
{Path: "/somewhere"},
{Path: "/else"},
},
},
expected: []string{
"/else",
"/somewhere",
},
},
{
metadata: Apk... | explode_data.jsonl/41180 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 364
} | [
2830,
3393,
10611,
74,
14610,
34061,
13801,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
2109,
7603,
5232,
74,
14610,
198,
197,
42400,
3056,
917,
198,
197,
59403,
197,
197,
515,
298,
2109,
7603,
25,
5232,
74,
14610... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestHostHeaderReplacedUsingForward(t *testing.T) {
var requestHost string
backend := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
requestHost = r.Host
w.Write([]byte("Hello, client"))
}))
defer backend.Close()
upstream := newFakeUpstream(backend.URL, false, 30*time.S... | explode_data.jsonl/64241 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 301
} | [
2830,
3393,
9296,
4047,
693,
36369,
16429,
25925,
1155,
353,
8840,
836,
8,
341,
2405,
1681,
9296,
914,
198,
197,
20942,
1669,
54320,
70334,
7121,
5475,
19886,
89164,
18552,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
23555... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseVersion(t *testing.T) {
testcases := []struct {
version string
want parsedVersion
}{{
version: "1.6",
want: parsedVersion{
Major: 1,
Minor: 6,
},
}, {
version: "1.7",
want: parsedVersion{
Major: 1,
Minor: 7,
},
}, {
version: "nightly",
want: parsedVersion{
IsNight... | explode_data.jsonl/35510 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 540
} | [
2830,
3393,
14463,
5637,
1155,
353,
8840,
836,
8,
341,
18185,
23910,
1669,
3056,
1235,
341,
197,
74954,
914,
198,
197,
50780,
262,
15676,
5637,
198,
197,
15170,
515,
197,
74954,
25,
330,
16,
13,
21,
756,
197,
50780,
25,
15676,
5637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAESSIVPrimitive(t *testing.T) {
km, err := registry.GetKeyManager(testutil.AESSIVTypeURL)
if err != nil {
t.Fatalf("cannot obtain AESSIV key manager: %s", err)
}
m, err := km.NewKey(nil)
if err != nil {
t.Errorf("km.NewKey(nil) = _, %v; want _, nil", err)
}
key, _ := m.(*aspb.AesSivKey)
serializedK... | explode_data.jsonl/58683 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 260
} | [
2830,
3393,
32,
9996,
3090,
33313,
1155,
353,
8840,
836,
8,
341,
197,
16017,
11,
1848,
1669,
19424,
51723,
2043,
8623,
1314,
875,
9996,
3090,
929,
3144,
340,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
33260,
6851,
362,
9996,
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... | 5 |
func TestDefaultLemParsRemove(t *testing.T) {
keeper, ctx := keepertest.PmKeeper(t)
items := createNDefaultLemPars(keeper, ctx, 10)
for _, item := range items {
keeper.RemoveDefaultLemPars(ctx,
item.Index,
)
_, found := keeper.GetDefaultLemPars(ctx,
item.Index,
)
require.False(t, found)
}
} | explode_data.jsonl/71393 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 134
} | [
2830,
3393,
3675,
43,
336,
47,
1561,
13021,
1155,
353,
8840,
836,
8,
341,
197,
18861,
11,
5635,
1669,
2506,
83386,
1069,
76,
77233,
1155,
340,
46413,
1669,
1855,
45,
3675,
43,
336,
47,
1561,
7,
18861,
11,
5635,
11,
220,
16,
15,
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.