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 TestInstrumentationTargetOverridden(t *testing.T) {
bp := `
android_app {
name: "foo",
srcs: ["a.java"],
sdk_version: "current",
}
android_test {
name: "bar",
instrumentation_for: "foo",
sdk_version: "current",
}
`
result := android.GroupFixturePreparers(
PrepareForTestWithJavaDef... | explode_data.jsonl/58496 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 337
} | [
2830,
3393,
56324,
367,
6397,
1918,
42185,
1155,
353,
8840,
836,
8,
341,
2233,
79,
1669,
22074,
197,
197,
5954,
8191,
341,
298,
11609,
25,
330,
7975,
756,
298,
41144,
82,
25,
4383,
64,
10848,
8097,
298,
1903,
7584,
9438,
25,
330,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestHandleWebAuthn(t *testing.T) {
data, err := ioutil.ReadFile("example/webauthn.html")
require.Nil(t, err)
doc, err := goquery.NewDocumentFromReader(bytes.NewReader(data))
require.Nil(t, err)
ac := Client{}
_, req, err := ac.handleWebAuthn(context.Background(), doc)
require.Nil(t, err)
b, err := iouti... | explode_data.jsonl/4331 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 180
} | [
2830,
3393,
6999,
5981,
5087,
77,
1155,
353,
8840,
836,
8,
341,
8924,
11,
1848,
1669,
43144,
78976,
445,
8687,
21808,
3242,
77,
2564,
1138,
17957,
59678,
1155,
11,
1848,
692,
59536,
11,
1848,
1669,
728,
1631,
7121,
7524,
3830,
5062,
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 TestClearAndResetExecTask(t *testing.T) {
require.NoError(t, db.ClearCollections(host.Collection, task.Collection, task.OldCollection, build.Collection))
dispTask := &task.Task{
Id: "dt",
Status: evergreen.TaskStarted,
Activated: true,
ActivatedTime: time.Now(),
BuildId: ... | explode_data.jsonl/60446 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 533
} | [
2830,
3393,
14008,
3036,
14828,
10216,
6262,
1155,
353,
8840,
836,
8,
341,
17957,
35699,
1155,
11,
2927,
13524,
52730,
19973,
28629,
11,
3383,
28629,
11,
3383,
8382,
507,
6482,
11,
1936,
28629,
4390,
2698,
13090,
6262,
1669,
609,
8202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRobotToJSON(t *testing.T) {
r := newTestRobot("Robot99")
r.AddCommand("test_function", func(params map[string]interface{}) interface{} {
return nil
})
json := NewJSONRobot(r)
gobottest.Assert(t, len(json.Devices), r.Devices().Len())
gobottest.Assert(t, len(json.Commands), len(r.Commands()))
} | explode_data.jsonl/24442 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 122
} | [
2830,
3393,
43374,
1249,
5370,
1155,
353,
8840,
836,
8,
341,
7000,
1669,
501,
2271,
43374,
445,
43374,
24,
24,
1138,
7000,
1904,
4062,
445,
1944,
9174,
497,
2915,
8917,
2415,
14032,
31344,
28875,
3749,
6257,
341,
197,
853,
2092,
198,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestInvokeByName(t *testing.T) {
e := &Employee{"1", "Mike", 30}
// 按名字获取成员
// reflect.ValueOf(*e) 返回值
// reflect.TypeOf(*e) 返回类型值 和错误
t.Logf("Name: value(%[1]v),Type(%[1]T)", reflect.ValueOf(*e).FieldByName("Name"))
if nameField, ok := reflect.TypeOf(*e).FieldByName("Name"); !ok {
t.Error("Failed to ... | explode_data.jsonl/34894 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 253
} | [
2830,
3393,
17604,
16898,
1155,
353,
8840,
836,
8,
341,
7727,
1669,
609,
16984,
4913,
16,
497,
330,
34441,
497,
220,
18,
15,
532,
197,
322,
6567,
234,
231,
101419,
45912,
100450,
198,
197,
322,
8708,
6167,
2124,
4071,
68,
8,
220,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSetupBad(t *testing.T) {
_, err := setup("testdata/idemix/badpath", "MSPID")
assert.Error(t, err)
assert.Contains(t, err.Error(), "Getting MSP config failed")
msp1, err := NewIdemixMsp(msp2.MSPv1_3)
assert.NoError(t, err)
// Setup with nil config
err = msp1.Setup(nil)
assert.Error(t, err)
assert.Con... | explode_data.jsonl/46029 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 761
} | [
2830,
3393,
21821,
17082,
1155,
353,
8840,
836,
8,
341,
197,
6878,
1848,
1669,
6505,
445,
92425,
38146,
336,
941,
3470,
329,
2343,
497,
330,
44,
4592,
915,
1138,
6948,
6141,
1155,
11,
1848,
340,
6948,
11545,
1155,
11,
1848,
6141,
1507... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInsertUnshardedGenerate(t *testing.T) {
ins := NewQueryInsert(
InsertUnsharded,
&vindexes.Keyspace{
Name: "ks",
Sharded: false,
},
"dummy_insert",
)
ins.Generate = &Generate{
Keyspace: &vindexes.Keyspace{
Name: "ks2",
Sharded: false,
},
Query: "dummy_generate",
Values: sqlt... | explode_data.jsonl/55985 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 659
} | [
2830,
3393,
13780,
1806,
927,
20958,
31115,
1155,
353,
8840,
836,
8,
341,
197,
1330,
1669,
1532,
2859,
13780,
1006,
197,
197,
13780,
1806,
927,
20958,
345,
197,
197,
5,
85,
71227,
37863,
1306,
515,
298,
21297,
25,
262,
330,
2787,
756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestGetClusterTemplate(t *testing.T) {
th.SetupHTTP()
defer th.TeardownHTTP()
HandleGetClusterTemplateSuccessfully(t)
sc := fake.ServiceClient()
sc.Endpoint = sc.Endpoint + "v1/"
actual, err := clustertemplates.Get(sc, "7d85f602-a948-4a30-afd4-e84f47471c15").Extract()
th.AssertNoErr(t, err)
actual.Create... | explode_data.jsonl/20366 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 165
} | [
2830,
3393,
1949,
28678,
7275,
1155,
353,
8840,
836,
8,
341,
70479,
39820,
9230,
741,
16867,
270,
94849,
37496,
9230,
2822,
197,
6999,
1949,
28678,
7275,
35959,
1155,
692,
29928,
1669,
12418,
13860,
2959,
741,
29928,
90409,
284,
1136,
904... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUserUsageStatistics_LogCodeHostIntegrationUsage(t *testing.T) {
setupForTest(t)
user := types.User{
ID: 1,
}
err := LogActivity(true, user.ID, "test-cookie-id", "CODEINTELINTEGRATION")
if err != nil {
t.Fatal(err)
}
a, err := GetByUserID(user.ID)
if err != nil {
t.Fatal(err)
}
diff := (*a.Las... | explode_data.jsonl/27991 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 217
} | [
2830,
3393,
1474,
14783,
38599,
44083,
2078,
9296,
52464,
14783,
1155,
353,
8840,
836,
8,
341,
84571,
2461,
2271,
1155,
692,
19060,
1669,
4494,
7344,
515,
197,
29580,
25,
220,
16,
345,
197,
532,
9859,
1669,
2835,
4052,
3715,
11,
1196,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 5 |
func Test_reverseWords(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := reverseWords(tt.args.s); got != tt.want {
t.Errorf("reverseWords() = %v, want %v", got, tt.want)
}
})
}
} | explode_data.jsonl/23688 | {
"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,
43277,
23489,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17853,
1669,
2088,
7032,
341,
197,
3244,
16708,
47152,
2644,
11,
2915,
1155,
353,
8840,
836,
8,
341,
298,
743,
2684,
1669,
9931,
23489,
47152,
16365,
514,
1215,
2684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBootstrapClusterRoleBindings(t *testing.T) {
roleBindings := bootstrappolicy.GetBootstrapClusterRoleBindings()
list := &api.List{}
for i := range roleBindings {
list.Items = append(list.Items, &roleBindings[i])
}
testObjects(t, list, "bootstrap_cluster_role_bindings.yaml")
} | explode_data.jsonl/10199 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 107
} | [
2830,
3393,
45511,
28678,
9030,
52843,
1155,
353,
8840,
836,
8,
341,
197,
5778,
52843,
1669,
10459,
495,
676,
8018,
2234,
45511,
28678,
9030,
52843,
741,
14440,
1669,
609,
2068,
5814,
16094,
2023,
600,
1669,
2088,
3476,
52843,
341,
197,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestLogFileAbsolutePath(t *testing.T) {
res, err := LogFile("/full/path/file.txt")("!")
assert.NoError(t, err)
assert.Equal(t, "file:///full/path/file.txt", res.Config().Stdout)
assert.Equal(t, "file:///full/path/file.txt", res.Config().Stderr)
// Test parse back
parsed, err := url.Parse(res.Config().Stdout... | explode_data.jsonl/32777 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 184
} | [
2830,
3393,
98857,
39211,
1155,
353,
8840,
836,
8,
341,
10202,
11,
1848,
1669,
2835,
1703,
4283,
8878,
50976,
23903,
3909,
899,
445,
22988,
6948,
35699,
1155,
11,
1848,
340,
6948,
12808,
1155,
11,
330,
1192,
60896,
8878,
50976,
23903,
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 TestAttrsToStringMap(t *testing.T) {
a := map[string]interface{}{
"foo": Foo{},
"rand": 10,
"date": testDate,
"color": testColor,
}
exp := map[string]string{
"foo": fooStr,
"date": dateStr,
"color": colorStr,
}
res := ToStringMap(a)
if !reflect.DeepEqual(res, exp) {
t.Fatalf("expect... | explode_data.jsonl/81598 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 163
} | [
2830,
3393,
53671,
5870,
2227,
1155,
353,
8840,
836,
8,
341,
11323,
1669,
2415,
14032,
31344,
67066,
197,
197,
1,
7975,
788,
256,
33428,
38837,
197,
197,
1,
11335,
788,
220,
220,
16,
15,
345,
197,
197,
1,
1028,
788,
220,
1273,
1916,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_RegistrySynchronizer_Start(t *testing.T) {
db, synchronizer, ethMock, _, job := setupRegistrySync(t)
contractAddress := job.KeeperSpec.ContractAddress.Address()
fromAddress := job.KeeperSpec.FromAddress.Address()
registryMock := cltest.NewContractMockReceiver(t, ethMock, keeper.RegistryABI, contractAddr... | explode_data.jsonl/35256 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 295
} | [
2830,
3393,
62,
15603,
50,
14113,
3135,
38056,
1155,
353,
8840,
836,
8,
341,
20939,
11,
14121,
3135,
11,
8372,
11571,
11,
8358,
2618,
1669,
6505,
15603,
12154,
1155,
692,
197,
20257,
4286,
1669,
2618,
11352,
43031,
8327,
69465,
4286,
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 TestRuntimeWalletWrite(t *testing.T) {
db := NewDB(t)
uid := uuid.FromStringOrNil("95f05d94-cc66-445a-b4d1-9e262662cf79")
InsertUser(t, db, uid)
modules := map[string]string{
"test": `
local nk = require("nakama")
local content = {
reward_coins = 1000
}
local user_id = "95f05d94-cc66-445a-b4d1-9e262662cf... | explode_data.jsonl/59793 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 209
} | [
2830,
3393,
15123,
38259,
7985,
1155,
353,
8840,
836,
8,
341,
20939,
1669,
1532,
3506,
1155,
340,
197,
2423,
1669,
16040,
11439,
703,
51720,
445,
24,
20,
69,
15,
20,
67,
24,
19,
12,
638,
21,
21,
12,
19,
19,
20,
64,
1455,
19,
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 TestNextProtoUpgrade(t *testing.T) {
setParallel(t)
defer afterTest(t)
ts := httptest.NewUnstartedServer(HandlerFunc(func(w ResponseWriter, r *Request) {
fmt.Fprintf(w, "path=%s,proto=", r.URL.Path)
if r.TLS != nil {
w.Write([]byte(r.TLS.NegotiatedProtocol))
}
if r.RemoteAddr == "" {
t.Error("requ... | explode_data.jsonl/78012 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 937
} | [
2830,
3393,
5847,
31549,
43861,
1155,
353,
8840,
836,
8,
341,
8196,
16547,
1155,
340,
16867,
1283,
2271,
1155,
340,
57441,
1669,
54320,
70334,
7121,
1806,
46723,
5475,
7,
3050,
9626,
18552,
3622,
5949,
6492,
11,
435,
353,
1900,
8,
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... | 4 |
func TestPrefix(t *testing.T) {
router := MakeRouter()
router.GET("/a", printHello)
router.UsePrefix("/api")
// this router should handle /api/a is if is was only /a because prefix is ignored
RunRequest(router, "GET", "/", 404, "Not Found", t)
RunRequest(router, "GET", "/a", 200, "hello", t)
RunRequest(router,... | explode_data.jsonl/15105 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 135
} | [
2830,
3393,
14335,
1155,
353,
8840,
836,
8,
341,
67009,
1669,
7405,
9523,
741,
67009,
17410,
4283,
64,
497,
1173,
9707,
340,
67009,
9046,
14335,
4283,
2068,
1138,
197,
322,
419,
9273,
1265,
3705,
608,
2068,
14186,
374,
421,
374,
572,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRoleInheritance(t *testing.T) {
// Create some roles:
auth := NewAuthenticator(gTestBucket, nil)
role, _ := auth.NewRole("square", ch.SetOf("dull", "duller", "dullest"))
assert.Equals(t, auth.Save(role), nil)
role, _ = auth.NewRole("frood", ch.SetOf("hoopy", "hoopier", "hoopiest"))
assert.Equals(t, auth.... | explode_data.jsonl/31565 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 656
} | [
2830,
3393,
9030,
641,
62443,
1155,
353,
8840,
836,
8,
341,
197,
322,
4230,
1045,
12783,
510,
78011,
1669,
1532,
5087,
61393,
3268,
2271,
36018,
11,
2092,
340,
197,
5778,
11,
716,
1669,
4166,
7121,
9030,
445,
37476,
497,
521,
4202,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestSetMilestone(t *testing.T) {
newMilestone := 42
ts := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.Method != http.MethodPatch {
t.Errorf("Bad method: %s", r.Method)
}
if r.URL.Path != "/repos/k8s/kuber/issues/5" {
t.Errorf("Bad request path: %s", r.UR... | explode_data.jsonl/6300 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 427
} | [
2830,
3393,
1649,
44,
93028,
1155,
353,
8840,
836,
8,
341,
8638,
44,
93028,
1669,
220,
19,
17,
198,
57441,
1669,
54320,
70334,
7121,
13470,
1220,
2836,
19886,
89164,
18552,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
743... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 7 |
func Test_SumCounter(t *testing.T) {
resource := pdata.NewResource()
metric := pdata.NewMetric()
metric.SetName("counter-metric")
metric.SetDataType(pdata.MetricDataTypeSum)
sum := metric.Sum()
sum.SetIsMonotonic(true)
dp := sum.DataPoints().AppendEmpty()
dp.SetIntVal(1)
dp.SetTimestamp(createTimestamp())
... | explode_data.jsonl/43640 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 222
} | [
2830,
3393,
1098,
372,
14099,
1155,
353,
8840,
836,
8,
341,
50346,
1669,
70311,
7121,
4783,
741,
2109,
16340,
1669,
70311,
7121,
54310,
741,
2109,
16340,
4202,
675,
445,
8292,
1448,
16340,
1138,
2109,
16340,
4202,
22653,
1295,
691,
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 |
func TestCloseNotifierChanLeak(t *testing.T) {
defer afterTest(t)
req := reqBytes("GET / HTTP/1.0\nHost: golang.org")
for i := 0; i < 20; i++ {
var output bytes.Buffer
conn := &rwTestConn{
Reader: bytes.NewReader(req),
Writer: &output,
closec: make(chan bool, 1),
}
ln := &oneConnListener{conn: conn}... | explode_data.jsonl/22454 | {
"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,
7925,
64729,
46019,
2304,
585,
1155,
353,
8840,
836,
8,
341,
16867,
1283,
2271,
1155,
340,
24395,
1669,
4232,
7078,
445,
3806,
608,
10130,
14,
16,
13,
15,
1699,
9296,
25,
342,
37287,
2659,
1138,
2023,
600,
1669,
220,
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 TestErrorCounting(t *testing.T) {
reg := selfstat.Register(
"gather",
"errors",
map[string]string{"input": "test"},
)
iLog := Logger{Name: "inputs.test"}
iLog.OnErr(func() {
reg.Incr(1)
})
iLog.Error("something went wrong")
iLog.Errorf("something went wrong")
require.Equal(t, int64(2), reg.Get())
... | explode_data.jsonl/37537 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 136
} | [
2830,
3393,
1454,
2507,
287,
1155,
353,
8840,
836,
8,
341,
37013,
1669,
656,
9878,
19983,
1006,
197,
197,
59719,
1856,
756,
197,
197,
61541,
756,
197,
19567,
14032,
30953,
4913,
1355,
788,
330,
1944,
7115,
197,
340,
8230,
2201,
1669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestSession_Ping(t *testing.T) {
for _, addr := range testClientAddrs {
t.Run(addr, func(t *testing.T) {
testSession_Ping(t, addr)
})
}
} | explode_data.jsonl/57217 | {
"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,
5283,
1088,
287,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
10789,
1669,
2088,
1273,
2959,
2212,
5428,
341,
197,
3244,
16708,
24497,
11,
2915,
1155,
353,
8840,
836,
8,
341,
298,
18185,
5283,
1088,
287,
1155,
11,
10789,
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 |
func TestAggregateMetricCreated(t *testing.T) {
tests := []struct {
name string
fields map[string]interface{}
valueField string
countField string
additionalMetricValueFields []string
}{
{"value and count", map[string]int... | explode_data.jsonl/50941 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1302
} | [
2830,
3393,
64580,
54310,
11694,
1155,
353,
8840,
836,
8,
972,
78216,
1669,
3056,
1235,
972,
197,
11609,
664,
914,
319,
197,
55276,
2549,
2415,
14032,
31344,
90,
1771,
197,
16309,
1877,
1698,
914,
319,
197,
18032,
1877,
1698,
914,
319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_noRoleWhenRbacDisabled(t *testing.T) {
helmChartParser := NewHelmConfigParser(
NewHelmTest(t, helmChartRelativePath, map[string]string{
"traefik.enabled": "true",
"traefik.rbac.enabled": "false",
}),
)
require.False(t, helmChartParser.Contains(SearchResourceOption{
Name: "pega-traefik",
... | explode_data.jsonl/14601 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 145
} | [
2830,
3393,
6536,
9030,
4498,
49,
55877,
25907,
1155,
353,
8840,
836,
8,
341,
9598,
23162,
14488,
6570,
1669,
1532,
39,
23162,
2648,
6570,
1006,
197,
197,
3564,
39,
23162,
2271,
1155,
11,
33765,
14488,
28442,
1820,
11,
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 TestKeeperDB_CreateEthTransactionForUpkeep(t *testing.T) {
t.Parallel()
store, cleanup := cltest.NewStore(t)
t.Cleanup(cleanup)
txm := new(bptxmmocks.TxManager)
orm := keeper.NewORM(store.DB, txm, store.Config, bulletprooftxmanager.SendEveryStrategy{})
defer cleanup()
ethKeyStore := cltest.NewKeyStore(t, s... | explode_data.jsonl/27016 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 622
} | [
2830,
3393,
77233,
3506,
34325,
65390,
8070,
2461,
2324,
13096,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
57279,
11,
21290,
1669,
1185,
1944,
7121,
6093,
1155,
340,
3244,
727,
60639,
1337,
60639,
340,
46237,
76,
1669,
501,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRegisterDataFormat(t *testing.T) {
u := badUnmarshaler{}
format.RegisterDataFormat("format", u)
for _, f := range format.Registered() {
if f.Unmarshaler == u {
return
}
}
t.Error("registered format not found")
} | explode_data.jsonl/82020 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 87
} | [
2830,
3393,
8690,
1043,
4061,
1155,
353,
8840,
836,
8,
341,
10676,
1669,
3873,
1806,
27121,
261,
16094,
59416,
19983,
1043,
4061,
445,
2243,
497,
575,
340,
2023,
8358,
282,
1669,
2088,
3561,
19983,
291,
368,
341,
197,
743,
282,
38097,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestFuncNameConst(t *testing.T) {
store, clean := testkit.CreateMockStore(t)
defer clean()
tk := testkit.NewTestKit(t, store)
tk.MustExec("USE test;")
tk.MustExec("DROP TABLE IF EXISTS t;")
tk.MustExec("CREATE TABLE t(a CHAR(20), b VARCHAR(20), c BIGINT);")
tk.MustExec("INSERT INTO t (b, c) values('hello'... | explode_data.jsonl/65476 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 818
} | [
2830,
3393,
9626,
675,
19167,
1155,
353,
8840,
836,
8,
341,
57279,
11,
4240,
1669,
1273,
8226,
7251,
11571,
6093,
1155,
340,
16867,
4240,
2822,
3244,
74,
1669,
1273,
8226,
7121,
2271,
7695,
1155,
11,
3553,
692,
3244,
74,
50463,
10216,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUpdateBuilderIncludeSkippedInfoIfEnabled(t *testing.T) {
var tests = map[string]struct {
IncludeInfo map[types.IncludeInfoKey]bool
expectedSkipCount int
}{
"include all": {
IncludeInfo: map[types.IncludeInfoKey]bool{
types.IncludeAllInfo: true,
},
expectedSkipCount: 1,
},
"exclud... | explode_data.jsonl/54333 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 835
} | [
2830,
3393,
4289,
3297,
22283,
19290,
6450,
1731,
2679,
5462,
1155,
353,
8840,
836,
8,
341,
2405,
7032,
284,
2415,
14032,
60,
1235,
341,
197,
197,
22283,
1731,
981,
2415,
58,
9242,
55528,
1731,
1592,
96436,
198,
197,
42400,
35134,
2507,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestConvert(t *testing.T) {
res := MustConvert(bson.M{
"foo": "bar",
"bar": bson.A{
bson.M{
"foo": "bar",
},
},
"baz": bson.D{
bson.E{Key: "foo", Value: bson.M{
"foo": "bar",
}},
},
})
assert.Equal(t, &bson.D{
bson.E{Key: "bar", Value: bson.A{
bson.D{
bson.E{Key: "foo", Va... | explode_data.jsonl/18437 | {
"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,
12012,
1155,
353,
8840,
836,
8,
341,
10202,
1669,
15465,
12012,
1883,
930,
1321,
515,
197,
197,
1,
7975,
788,
330,
2257,
756,
197,
197,
1,
2257,
788,
50980,
875,
515,
298,
2233,
930,
1321,
515,
571,
197,
1,
7975,
788,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRoaringPostingsListIntersect(t *testing.T) {
d := NewPostingsList()
d.Insert(1)
require.True(t, d.Contains(1))
require.Equal(t, 1, d.Len())
c := d.Clone()
require.True(t, c.Contains(1))
d.Insert(2)
c.Insert(3)
require.NoError(t, d.Intersect(c))
require.True(t, d.Contains(1))
require.Equal(t, 1, d... | explode_data.jsonl/64014 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 197
} | [
2830,
3393,
38872,
3249,
4133,
819,
852,
3306,
9687,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSortModuleClasses(t *testing.T) {
ms := NewModuleSystem(map[string][]string{}, map[string][]string{}, false)
err := ms.RegisterClass(ModuleClass{
Name: "a",
NamePlural: "as",
})
assert.NoError(t, err)
err = ms.RegisterClass(ModuleClass{
Name: "b",
NamePlural: "bs",
DependsOn: []stri... | explode_data.jsonl/34590 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 361
} | [
2830,
3393,
10231,
3332,
20077,
1155,
353,
8840,
836,
8,
341,
47691,
1669,
1532,
3332,
2320,
9147,
14032,
45725,
917,
22655,
2415,
14032,
45725,
917,
22655,
895,
340,
9859,
1669,
9829,
19983,
1957,
75295,
1957,
515,
197,
21297,
25,
981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestStringParsing(t *testing.T) {
contentsOfStringToken := func(contents string) string {
t.Helper()
kind, text := lexToken(contents)
test.AssertEqual(t, kind, TString)
return text
}
test.AssertEqual(t, contentsOfStringToken("\"foo\""), "foo")
test.AssertEqual(t, contentsOfStringToken("\"f\\oo\""), "fo... | explode_data.jsonl/47974 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 434
} | [
2830,
3393,
703,
68839,
1155,
353,
8840,
836,
8,
341,
197,
17610,
66952,
3323,
1669,
2915,
46964,
914,
8,
914,
341,
197,
3244,
69282,
741,
197,
197,
15314,
11,
1467,
1669,
22429,
3323,
46964,
340,
197,
18185,
11711,
2993,
1155,
11,
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... | 1 |
func TestArrayLength(t *testing.T) {
f := NewArrayLength(expression.NewGetField(0, sql.Array(sql.Int64), "", false))
testCases := []struct {
name string
row sql.Row
expected interface{}
err *errors.Kind
}{
{"array is nil", sql.NewRow(nil), nil, nil},
{"array is not of right type", sql.NewR... | explode_data.jsonl/82688 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 434
} | [
2830,
3393,
1857,
4373,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
1532,
1857,
4373,
48330,
7121,
1949,
1877,
7,
15,
11,
5704,
8114,
13148,
7371,
21,
19,
701,
7342,
895,
4390,
18185,
37302,
1669,
3056,
1235,
341,
197,
11609,
257,
914,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestGetObject_FlowWithPassedFlag(t *testing.T) {
t.Parallel()
ctx := flow.TestContextWithPulse(
inslogger.TestContext(t),
insolar.GenesisPulse.PulseNumber+10,
)
msg := payload.Meta{
Polymorph: uint32(payload.TypeMeta),
Payload: payload.MustMarshal(&payload.GetObject{
Polymorph: uint32(payload.TypeG... | explode_data.jsonl/61482 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 773
} | [
2830,
3393,
84540,
1400,
10303,
2354,
64723,
12135,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
20985,
1669,
6396,
8787,
1972,
2354,
47,
17217,
1006,
197,
197,
1330,
9786,
8787,
1972,
1155,
1326,
197,
197,
1330,
7417,
65384,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_ComputerWorkTime_xiaomi(t *testing.T) {
employee := Employee{
Company: "xiaomi",
BossMood: "good",
}
workTime := employee.ComputerWorkTime(func(job *Job) {
if employee.Company == "eland" && employee.BossMood == "good" {
job.OffTime = 13
}
})
fmt.Println(workTime)
} | explode_data.jsonl/50591 | {
"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,
16946,
11281,
6776,
1462,
3212,
685,
21441,
1155,
353,
8840,
836,
8,
341,
197,
12946,
1669,
16850,
515,
197,
197,
14491,
25,
220,
330,
67194,
21441,
756,
197,
12791,
3662,
44,
1386,
25,
330,
18536,
756,
197,
532,
97038,
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... | 3 |
func TestMonthsNarrow(t *testing.T) {
trans := New()
months := trans.MonthsNarrow()
for i, month := range months {
s := trans.MonthNarrow(time.Month(i + 1))
if s != month {
t.Errorf("Expected '%s' Got '%s'", month, s)
}
}
tests := []struct {
idx int
expected string
}{
// {
// idx: 1... | explode_data.jsonl/1287 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 652
} | [
2830,
3393,
59184,
45,
6044,
1155,
353,
8840,
836,
8,
1476,
72453,
1669,
1532,
741,
197,
49714,
1669,
1356,
48383,
82,
45,
6044,
2822,
2023,
600,
11,
2254,
1669,
2088,
3951,
341,
197,
1903,
1669,
1356,
48383,
45,
6044,
9730,
48383,
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... | 5 |
func TestAppWaitOperationInProgress(t *testing.T) {
Given(t).
And(func() {
SetResourceOverrides(map[string]ResourceOverride{
"batch/Job": {
HealthLua: `return { status = 'Running' }`,
},
"apps/Deployment": {
HealthLua: `return { status = 'Suspended' }`,
},
})
}).
Async(true).
Pa... | explode_data.jsonl/35667 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 247
} | [
2830,
3393,
2164,
14190,
8432,
88711,
1155,
353,
8840,
836,
8,
341,
9600,
2071,
1155,
4292,
197,
197,
3036,
18552,
368,
341,
298,
22212,
4783,
80010,
9147,
14032,
60,
4783,
2177,
515,
571,
197,
1,
14049,
14,
12245,
788,
341,
464,
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 TestReplaceExpr(t *testing.T) {
tcases := []struct {
in, out string
}{{
in: "select * from t where (select a from b)",
out: ":a",
}, {
in: "select * from t where (select a from b) and b",
out: ":a and b",
}, {
in: "select * from t where a and (select a from b)",
out: "a and :a",
}, {
in: "... | explode_data.jsonl/3379 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1958
} | [
2830,
3393,
23107,
16041,
1155,
353,
8840,
836,
8,
341,
3244,
23910,
1669,
3056,
1235,
341,
197,
17430,
11,
700,
914,
198,
197,
15170,
515,
197,
17430,
25,
220,
330,
1742,
353,
504,
259,
1380,
320,
1742,
264,
504,
293,
15752,
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 TestBlock(t *testing.T) {
cleanup, _, _, port := InitializeTestLCD(t, 1, []sdk.AccAddress{}, true)
defer cleanup()
getBlock(t, port, -1, false)
getBlock(t, port, 2, false)
getBlock(t, port, 100000000, true)
} | explode_data.jsonl/25399 | {
"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,
4713,
1155,
353,
8840,
836,
8,
341,
1444,
60639,
11,
8358,
8358,
2635,
1669,
9008,
2271,
64003,
1155,
11,
220,
16,
11,
3056,
51295,
77538,
4286,
22655,
830,
340,
16867,
21290,
741,
10366,
4713,
1155,
11,
2635,
11,
481,
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 TestWeeklyCommitActivity_String(t *testing.T) {
v := WeeklyCommitActivity{
Total: Int(0),
Week: &Timestamp{},
}
want := `github.WeeklyCommitActivity{Total:0, Week:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
if got := v.String(); got != want {
t.Errorf("WeeklyCommitActivity.String = %v, want %v", g... | explode_data.jsonl/33304 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 133
} | [
2830,
3393,
80516,
33441,
4052,
31777,
1155,
353,
8840,
836,
8,
341,
5195,
1669,
33014,
33441,
4052,
515,
197,
197,
7595,
25,
1333,
7,
15,
1326,
197,
197,
17053,
25,
220,
609,
20812,
38837,
197,
532,
50780,
1669,
1565,
5204,
22404,
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... | 2 |
func TestValidateUpdateDelta(t *testing.T) {
t.Run("invalid next update commitment hash", func(t *testing.T) {
delta, err := getUpdateDelta()
require.NoError(t, err)
delta.UpdateCommitment = ""
err = validateDelta(delta, sha2_256)
require.Error(t, err)
require.Contains(t, err.Error(),
"next update comm... | explode_data.jsonl/29106 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 138
} | [
2830,
3393,
17926,
4289,
20277,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
11808,
1790,
2647,
15155,
5175,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
85435,
11,
1848,
1669,
633,
4289,
20277,
741,
197,
17957,
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... | 1 |
func TestThreshold(t *testing.T) {
gain, thresh := findBestThresHoldFast(collegeData, 1)
if !floatEquals(gain, 0.321928094887) {
t.Error(gain)
}
if thresh != 38000 {
t.Error(thresh)
}
} | explode_data.jsonl/10541 | {
"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,
37841,
1155,
353,
8840,
836,
8,
341,
3174,
466,
11,
51744,
1669,
1477,
14470,
1001,
416,
47427,
32174,
19611,
4757,
1043,
11,
220,
16,
340,
743,
753,
3649,
4315,
3268,
466,
11,
220,
15,
13,
18,
17,
16,
24,
17,
23,
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... | 3 |
func TestCheckRateLimit(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
session := createFakeEventFeedSession(ctx)
// to avoid execution too slow and enter dead loop
maxTrigger := 1000
trigger := 0
burst := 3
for trigger = 0; trigger < maxTrigger; trigger++ {
allowed :=... | explode_data.jsonl/32889 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 204
} | [
2830,
3393,
3973,
11564,
16527,
1155,
353,
8840,
836,
8,
341,
20985,
11,
9121,
1669,
2266,
26124,
9269,
5378,
19047,
2398,
16867,
9121,
2822,
25054,
1669,
1855,
52317,
1556,
28916,
5283,
7502,
340,
197,
322,
311,
5648,
11320,
2238,
6301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUpdateImageTag(t *testing.T) {
g := gomega.NewGomegaWithT(t)
config := InferenceServicesConfig{
Predictors: PredictorsConfig{
Tensorflow: PredictorConfig{
ContainerImage: "tfserving",
DefaultImageVersion: "1.14.0",
DefaultGpuImageVersion: "1.14.0-gpu",
DefaultTimeout: ... | explode_data.jsonl/54488 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1822
} | [
2830,
3393,
4289,
1906,
5668,
1155,
353,
8840,
836,
8,
341,
3174,
1669,
342,
32696,
7121,
38,
32696,
2354,
51,
1155,
340,
25873,
1669,
758,
2202,
11025,
2648,
515,
197,
10025,
8861,
1087,
25,
32710,
1087,
2648,
515,
298,
10261,
3805,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMaxBytes(t *testing.T) {
if testUseEncryption {
t.SkipNow()
}
payload := []byte("hello")
m := pb.MsgProto{Data: payload, Subject: "foo", Sequence: 1, Timestamp: time.Now().UnixNano()}
msgSize := m.Size()
sOpts := GetDefaultOptions()
sOpts.ID = clusterName
sOpts.MaxBytes = int64(msgSize * 10)
s := ru... | explode_data.jsonl/23093 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 317
} | [
2830,
3393,
5974,
7078,
1155,
353,
8840,
836,
8,
341,
743,
1273,
10253,
79239,
341,
197,
3244,
57776,
7039,
741,
197,
532,
76272,
1669,
3056,
3782,
445,
14990,
1138,
2109,
1669,
17310,
30365,
31549,
90,
1043,
25,
7729,
11,
17450,
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... | 4 |
func TestWSNewWSRPCFunc(t *testing.T) {
cl := client.NewWSClient(tcpAddr, websocketEndpoint)
cl.SetLogger(log.TestingLogger())
err := cl.Start()
require.Nil(t, err)
defer cl.Stop()
val := "acbd"
params := map[string]interface{}{
"arg": val,
}
err = cl.Call(context.Background(), "echo_ws", params)
require.N... | explode_data.jsonl/47837 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 231
} | [
2830,
3393,
7433,
3564,
7433,
29528,
9626,
1155,
353,
8840,
836,
8,
341,
39407,
1669,
2943,
7121,
7433,
2959,
98203,
13986,
11,
58943,
27380,
340,
39407,
4202,
7395,
12531,
8787,
287,
7395,
2398,
9859,
1669,
1185,
12101,
741,
17957,
59678... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCountFilesWithExclusions(t *testing.T) {
// Create temp dir to test in
dir := t.TempDir()
if err := setupTestDir(dir); err != nil {
t.Fatalf("error creating test dir: %s\n", err)
}
result, err := CountFiles(dir, "file2.txt")
if err != nil {
t.Fatalf("error counting files: %s\n", err)
}
// Check i... | explode_data.jsonl/30984 | {
"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,
2507,
10809,
2354,
840,
23529,
1155,
353,
8840,
836,
8,
341,
197,
322,
4230,
2730,
5419,
311,
1273,
304,
198,
48532,
1669,
259,
65009,
6184,
741,
743,
1848,
1669,
6505,
2271,
6184,
14161,
1215,
1848,
961,
2092,
341,
197,
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 TestDeleteState(t *testing.T) {
fakeStore := &daprt.MockStateStore{}
fakeStore.On("Delete", mock.MatchedBy(func(req *state.DeleteRequest) bool {
return req.Key == "fakeAPI||good-key"
})).Return(nil)
fakeStore.On("Delete", mock.MatchedBy(func(req *state.DeleteRequest) bool {
return req.Key == "fakeAPI||erro... | explode_data.jsonl/21736 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 789
} | [
2830,
3393,
6435,
1397,
1155,
353,
8840,
836,
8,
341,
1166,
726,
6093,
1669,
609,
91294,
3342,
24664,
1397,
6093,
16094,
1166,
726,
6093,
8071,
445,
6435,
497,
7860,
1321,
34244,
1359,
18552,
6881,
353,
2454,
18872,
1900,
8,
1807,
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 TestParseImage(t *testing.T) {
tests := []struct {
image string
parsedName string
parsedVersion string
}{
{
image: "postgres",
parsedName: "postgres",
parsedVersion: "unknown",
},
{
image: "postgres:latest",
parsedName: "postgres",
parsedVersion: "la... | explode_data.jsonl/23968 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 615
} | [
2830,
3393,
14463,
1906,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
31426,
260,
914,
198,
197,
3223,
18112,
675,
262,
914,
198,
197,
3223,
18112,
5637,
914,
198,
197,
59403,
197,
197,
515,
298,
31426,
25,
260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestArray_Join(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
a1 := []interface{}{0, 1, 2, 3, 4, 5, 6}
array1 := garray.NewArrayFrom(a1)
t.Assert(array1.Join("."), `0.1.2.3.4.5.6`)
})
gtest.C(t, func(t *gtest.T) {
a1 := []interface{}{0, 1, `"a"`, `\a`}
array1 := garray.NewArrayFrom(a1)
t.Assert(arra... | explode_data.jsonl/13907 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 196
} | [
2830,
3393,
1857,
10598,
1961,
1155,
353,
8840,
836,
8,
341,
3174,
1944,
727,
1155,
11,
2915,
1155,
353,
82038,
836,
8,
341,
197,
11323,
16,
1669,
3056,
4970,
6257,
90,
15,
11,
220,
16,
11,
220,
17,
11,
220,
18,
11,
220,
19,
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 TestFormatterBrightColors(test *testing.T) {
formatted, err := formatter.Format("{magenta | bright}magenta{normal}")
assert.NoError(test, err)
assert.Equal(test, "\x1b[95mmagenta\x1b[0m", formatted)
} | explode_data.jsonl/39750 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 80
} | [
2830,
3393,
14183,
74676,
13108,
8623,
353,
8840,
836,
8,
341,
37410,
12127,
11,
1848,
1669,
24814,
9978,
13976,
76,
47062,
760,
9906,
92,
76,
47062,
90,
8252,
55266,
6948,
35699,
8623,
11,
1848,
340,
6948,
12808,
8623,
11,
2917,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | 1 |
func TestFromFileConstructor(t *testing.T) {
confMap, err := MakeConfMapFromFile(tempFile3Name)
if nil != err {
t.Fatalf("MakeConfMapFromFile(): expected err to be nil, got %#v", err)
}
values, err := confMap.FetchOptionValueStringSlice("TestNamespace:Test_-_Section", "Test_-_Option")
if err != nil {
t.Fatalf... | explode_data.jsonl/9165 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 198
} | [
2830,
3393,
43633,
13288,
1155,
353,
8840,
836,
8,
341,
67850,
2227,
11,
1848,
1669,
7405,
15578,
2227,
43633,
9758,
1703,
18,
675,
340,
743,
2092,
961,
1848,
341,
197,
3244,
30762,
445,
8078,
15578,
2227,
43633,
4555,
3601,
1848,
311,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestResponseFilterWriter(t *testing.T) {
tests := []struct {
body string
shouldCompress bool
}{
{"Hello\t\t\t\n", false},
{"Hello the \t\t\t world is\n\n\n great", true},
{"Hello \t\t\nfrom gzip", true},
{"Hello gzip\n", false},
}
filters := []ResponseFilter{
LengthFilter(15),
}
ser... | explode_data.jsonl/15902 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 434
} | [
2830,
3393,
2582,
5632,
6492,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
35402,
1843,
914,
198,
197,
197,
5445,
1092,
1873,
1807,
198,
197,
59403,
197,
197,
4913,
9707,
4955,
4955,
4955,
1699,
497,
895,
1583,
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 TestFormatterFlags(t *testing.T) {
for _, tt := range formatterFlagTests {
s := Sprintf(tt.in, tt.val)
if s != tt.out {
t.Errorf("Sprintf(%q, %T) = %q, want %q", tt.in, tt.val, s, tt.out)
}
}
} | explode_data.jsonl/46272 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 108
} | [
2830,
3393,
14183,
9195,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
17853,
1669,
2088,
24814,
12135,
18200,
341,
197,
1903,
1669,
328,
2517,
47152,
1858,
11,
17853,
10835,
340,
197,
743,
274,
961,
17853,
2532,
341,
298,
3244,
13080,
445,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestManifestGenerateAllOff(t *testing.T) {
g := NewWithT(t)
m, _, err := generateManifest("all_off", "", liveCharts)
if err != nil {
t.Fatal(err)
}
objs, err := parseObjectSetFromManifest(m)
if err != nil {
t.Fatal(err)
}
g.Expect(objs.size()).Should(Equal(0))
} | explode_data.jsonl/47905 | {
"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,
38495,
31115,
2403,
4596,
1155,
353,
8840,
836,
8,
341,
3174,
1669,
1532,
2354,
51,
1155,
340,
2109,
11,
8358,
1848,
1669,
6923,
38495,
445,
541,
13651,
497,
7342,
3887,
64878,
340,
743,
1848,
961,
2092,
341,
197,
3244,
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... | 3 |
func TestSortedArray_PopRand(t *testing.T) {
gtest.C(t, func(t *gtest.T) {
a1 := []interface{}{"a", "d", "c", "b"}
func1 := func(v1, v2 interface{}) int {
return strings.Compare(gconv.String(v1), gconv.String(v2))
}
array1 := garray.NewSortedArrayFrom(a1, func1)
i1, ok := array1.PopRand()
t.Assert(ok, t... | explode_data.jsonl/67012 | {
"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,
51051,
1857,
1088,
453,
56124,
1155,
353,
8840,
836,
8,
341,
3174,
1944,
727,
1155,
11,
2915,
1155,
353,
82038,
836,
8,
341,
197,
11323,
16,
1669,
3056,
4970,
6257,
4913,
64,
497,
330,
67,
497,
330,
66,
497,
330,
65,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestValidateNetworkEndpointAddress(t *testing.T) {
testCases := []struct {
name string
ne *NetworkEndpoint
valid bool
}{
{
"Unix OK",
&NetworkEndpoint{Family: AddressFamilyUnix, Address: "/absolute/path"},
true,
},
{
"IP OK",
&NetworkEndpoint{Address: "12.3.4.5", Port: 76},
true... | explode_data.jsonl/56933 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 369
} | [
2830,
3393,
17926,
12320,
27380,
4286,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
11609,
220,
914,
198,
197,
197,
811,
262,
353,
12320,
27380,
198,
197,
56322,
1807,
198,
197,
59403,
197,
197,
515,
298,
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... | 5 |
func TestAESSIV_EncryptDecrypt(t *testing.T) {
keyStr :=
"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f" +
"00112233445566778899aabbccddeefff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff"
key, _ := hex.DecodeString(keyStr)
msg := []byte("Some data to encrypt.")
aad := []byte("Additional data")
a, err :=... | explode_data.jsonl/7231 | {
"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,
32,
9996,
3090,
93529,
3571,
89660,
1155,
353,
8840,
836,
8,
341,
23634,
2580,
19687,
197,
197,
1,
15,
15,
15,
16,
15,
17,
15,
18,
15,
19,
15,
20,
15,
21,
15,
22,
15,
23,
15,
24,
15,
64,
15,
65,
15,
66,
15,
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... | 5 |
func TestShouldHarmonizeMatchSpecificationWhenMigratingStateFromVersion1To2(t *testing.T) {
input := "entity.name EQUALS 'foo'"
expectedResult := "entity.name@dest EQUALS 'foo'"
rawData := make(map[string]interface{})
rawData[ApplicationConfigFieldMatchSpecification] = input
meta := "dummy"
ctx := context.Backgro... | explode_data.jsonl/64937 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 186
} | [
2830,
3393,
14996,
26490,
1645,
551,
8331,
56139,
4498,
44,
5233,
1095,
1397,
3830,
5637,
16,
1249,
17,
1155,
353,
8840,
836,
8,
341,
22427,
1669,
330,
2996,
2644,
91609,
50,
364,
7975,
41165,
42400,
2077,
1669,
330,
2996,
2644,
31,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestAppendRootCertsToNullCert(t *testing.T) {
// nil certificate
var root1 []byte
expRootCerts := `root-cert-2
root-cert-3`
rootCerts, err := util.AppendRootCerts(root1, "./root-certs-for-testing.pem")
if err != nil {
t.Errorf("AppendRootCerts() returns an error: %v", err)
} else if expRootCerts != string(... | explode_data.jsonl/15503 | {
"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,
23877,
8439,
34,
15546,
1249,
3280,
36934,
1155,
353,
8840,
836,
8,
341,
197,
322,
2092,
15748,
198,
2405,
3704,
16,
3056,
3782,
198,
48558,
8439,
34,
15546,
1669,
1565,
2888,
61034,
12,
17,
198,
2888,
61034,
12,
18,
3989,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestContextSetCookie(t *testing.T) {
c, _ := CreateTestContext(httptest.NewRecorder())
c.SetCookie("user", "gin", 1, "/", "localhost", true, true)
assert.Equal(t, "user=gin; Path=/; Domain=localhost; Max-Age=1; HttpOnly; Secure", c.Writer.Header().Get("Set-Cookie"))
} | explode_data.jsonl/26764 | {
"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,
1972,
1649,
20616,
1155,
353,
8840,
836,
8,
341,
1444,
11,
716,
1669,
4230,
2271,
1972,
73392,
83,
70334,
7121,
47023,
2398,
1444,
4202,
20616,
445,
872,
497,
330,
8163,
497,
220,
16,
11,
64657,
330,
8301,
497,
830,
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 TestOne(t *testing.T) {
time.Local = time.UTC
var ts time.Time
ts = MustStrToTime("2018.09.30")
assert.Equal(t, "2018-09-30 00:00:00 +0000 UTC", fmt.Sprintf("%v", ts.In(time.UTC)))
} | explode_data.jsonl/32325 | {
"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,
3966,
1155,
353,
8840,
836,
8,
341,
21957,
20856,
284,
882,
87069,
198,
2405,
10591,
882,
16299,
198,
57441,
284,
15465,
2580,
1249,
1462,
445,
17,
15,
16,
23,
13,
15,
24,
13,
18,
15,
1138,
6948,
12808,
1155,
11,
330,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestAnnotatingExecuteKeyspaceIds(t *testing.T) {
keyspace, shards := setUpSandboxWithTwoShards("TestAnnotatingExecuteKeyspaceIds")
_, err := rpcVTGate.ExecuteKeyspaceIds(
context.Background(),
"INSERT INTO table () VALUES();",
nil,
keyspace,
[][]byte{{0x10}},
topodatapb.TabletType_MASTER,
nil,
f... | explode_data.jsonl/7844 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 194
} | [
2830,
3393,
2082,
1921,
1095,
17174,
8850,
1306,
12701,
1155,
353,
8840,
836,
8,
341,
23634,
8746,
11,
74110,
1669,
18620,
50,
31536,
2354,
11613,
2016,
2347,
445,
2271,
2082,
1921,
1095,
17174,
8850,
1306,
12701,
5130,
197,
6878,
1848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestEffectRequestStreamEffects(t *testing.T) {
hmock := httptest.NewClient()
client := &Client{
AuroraURL: "https://localhost/",
HTTP: hmock,
}
// All effects
effectRequest := EffectRequest{}
ctx, cancel := context.WithCancel(context.Background())
hmock.On(
"GET",
"https://localhost/effects?... | explode_data.jsonl/28812 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 649
} | [
2830,
3393,
7738,
1900,
3027,
39782,
1155,
353,
8840,
836,
8,
341,
9598,
16712,
1669,
54320,
70334,
7121,
2959,
741,
25291,
1669,
609,
2959,
515,
197,
22985,
324,
6215,
3144,
25,
330,
2428,
1110,
8301,
35075,
197,
197,
9230,
25,
981,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestClient_ExchangesList(t *testing.T) {
el, err := client.ExchangesList()
require.NoError(t, err)
require.NotEmpty(t, el)
require.NotEmpty(t, el[0].Id)
require.NotEmpty(t, el[0].Name)
} | explode_data.jsonl/37794 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 81
} | [
2830,
3393,
2959,
62531,
19365,
852,
1155,
353,
8840,
836,
8,
341,
59636,
11,
1848,
1669,
2943,
5121,
19365,
852,
741,
17957,
35699,
1155,
11,
1848,
340,
17957,
15000,
3522,
1155,
11,
655,
340,
17957,
15000,
3522,
1155,
11,
655,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUniqueIDMissing(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
t.Parallel()
// Create a new file.
sf, wal, _ := newBlankTestFileAndWAL(1)
// It should have a UID.
if sf.staticMetadata.UniqueID == "" {
t.Fatal("unique ID wasn't set")
}
// Set the UID to a blank string and save the file.
sf.st... | explode_data.jsonl/14700 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 300
} | [
2830,
3393,
22811,
915,
25080,
1155,
353,
8840,
836,
8,
341,
743,
7497,
55958,
368,
341,
197,
3244,
57776,
7039,
741,
197,
532,
3244,
41288,
7957,
2822,
197,
322,
4230,
264,
501,
1034,
624,
53024,
11,
40826,
11,
716,
1669,
501,
22770,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestPop(t *testing.T) {
items := []int{23, 24, 2, 5, 10}
interfaceItems := make([]interface{}, len(items))
for i, v := range items {
interfaceItems[i] = v
}
a := New(interfaceItems)
result := a.Pop()
if a.Length() != len(items)-1 {
t.Log("Pop should reduce array length by 1")
t.Log("Expected", len... | explode_data.jsonl/47097 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 215
} | [
2830,
3393,
11598,
1155,
353,
8840,
836,
8,
341,
46413,
1669,
3056,
396,
90,
17,
18,
11,
220,
17,
19,
11,
220,
17,
11,
220,
20,
11,
220,
16,
15,
532,
58915,
1564,
4353,
1669,
1281,
10556,
4970,
22655,
2422,
24337,
4390,
2023,
600,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestGitService_GetRef(t *testing.T) {
setup()
defer teardown()
mux.HandleFunc("/repos/o/r/git/refs/heads/b", func(w http.ResponseWriter, r *http.Request) {
testMethod(t, r, "GET")
fmt.Fprint(w, `
{
"ref": "refs/heads/b",
"url": "https://api.github.com/repos/o/r/git/refs/heads/b",
"obj... | explode_data.jsonl/27831 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 552
} | [
2830,
3393,
46562,
1860,
13614,
3945,
1155,
353,
8840,
836,
8,
341,
84571,
741,
16867,
49304,
2822,
2109,
2200,
63623,
4283,
68354,
20271,
7382,
60590,
14,
16149,
14,
35810,
3470,
497,
2915,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestClient_RunOCRJob_MissingJobID(t *testing.T) {
t.Parallel()
app := startNewApplication(t)
client, _ := app.NewClientAndRenderer()
set := flag.NewFlagSet("test", 0)
c := cli.NewContext(nil, set, nil)
require.NoError(t, client.RemoteLogin(c))
assert.EqualError(t, client.TriggerPipelineRun(c), "Must pass... | explode_data.jsonl/5274 | {
"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,
2959,
84158,
93495,
12245,
1245,
13577,
12245,
915,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
28236,
1669,
1191,
3564,
4988,
1155,
340,
25291,
11,
716,
1669,
906,
7121,
2959,
3036,
11541,
2822,
8196,
1669,
5181,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestWalkTreeEmptyTree(t *testing.T) {
mockFs := memfs.New()
err := WalkTree(mockFs, func(path string, info os.FileInfo, err error) error {
return err
})
if err == nil {
t.Error(err)
}
} | explode_data.jsonl/3275 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 81
} | [
2830,
3393,
48849,
6533,
3522,
6533,
1155,
353,
8840,
836,
8,
341,
77333,
48300,
1669,
1833,
3848,
7121,
741,
9859,
1669,
12554,
6533,
30389,
48300,
11,
2915,
5581,
914,
11,
3546,
2643,
8576,
1731,
11,
1848,
1465,
8,
1465,
341,
197,
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 |
func TestCmdAddTwoContainersWithEmptyExcludeInboundPort(t *testing.T) {
defer resetGlobalTestVariables()
delete(testAnnotations, includePortsKey)
testContainers = []string{"mockContainer", "mockContainer2"}
testAnnotations[excludeInboundPortsKey] = ""
testCmdAdd(t)
if !nsenterFuncCalled {
t.Fatalf("expected ns... | explode_data.jsonl/17793 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 277
} | [
2830,
3393,
15613,
2212,
11613,
74632,
2354,
3522,
95239,
641,
10891,
7084,
1155,
353,
8840,
836,
8,
341,
16867,
7585,
11646,
2271,
22678,
741,
15618,
8623,
21418,
11,
2924,
68273,
1592,
340,
18185,
74632,
284,
3056,
917,
4913,
16712,
450... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestUpdateSubscription(t *testing.T) {
g := gomega.NewGomegaWithT(t)
mgr, err := manager.New(cfg, manager.Options{MetricsBindAddress: "0"})
g.Expect(err).NotTo(gomega.HaveOccurred())
c = mgr.GetClient()
stopMgr, mgrStopped := StartTestManager(mgr, g)
defer func() {
close(stopMgr)
mgrStopped.Wait()
}... | explode_data.jsonl/59426 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 914
} | [
2830,
3393,
4289,
33402,
1155,
353,
8840,
836,
8,
341,
3174,
1669,
342,
32696,
7121,
38,
32696,
2354,
51,
1155,
692,
2109,
901,
11,
1848,
1669,
6645,
7121,
28272,
11,
6645,
22179,
90,
27328,
9950,
4286,
25,
330,
15,
23625,
3174,
81893... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseJwksURI(t *testing.T) {
cases := []struct {
in string
expected security.JwksInfo
expectedError bool
}{
{
in: "foo.bar.com",
expectedError: true,
},
{
in: "tcp://foo.bar.com:abc",
expectedError: true,
},
{
in: "http://foo.bar... | explode_data.jsonl/25998 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 726
} | [
2830,
3393,
14463,
41,
86,
2787,
10301,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
3056,
1235,
341,
197,
17430,
310,
914,
198,
197,
42400,
414,
4763,
3503,
86,
2787,
1731,
198,
197,
42400,
1454,
1807,
198,
197,
59403,
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... | 4 |
func TestRequest_SessionID(t *testing.T) {
tests := []struct {
name string
request *alice.Request
want string
}{
{
name: "",
request: getReq(0),
want: "e19e8eee-ae065e8-36e3f907-567a814b",
}, {
name: "",
request: getReq(1),
want: "eeb9fa7f-940e2502-1fbf9dfb-9448a1a9",
}... | explode_data.jsonl/18232 | {
"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,
1900,
84664,
915,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
11609,
262,
914,
198,
197,
23555,
353,
63195,
9659,
198,
197,
50780,
262,
914,
198,
197,
59403,
197,
197,
515,
298,
11609,
25,
262,
8324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetContainer(t *testing.T) {
c1 := &container.Container{
CommonContainer: container.CommonContainer{
ID: "5a4ff6a163ad4533d22d69a2b8960bf7fafdcba06e72d2febdba229008b0bf57",
Name: "tender_bardeen",
},
}
c2 := &container.Container{
CommonContainer: container.CommonContainer{
ID: "3cdbd1aa3... | explode_data.jsonl/69664 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1193
} | [
2830,
3393,
1949,
4502,
1155,
353,
8840,
836,
8,
341,
1444,
16,
1669,
609,
3586,
33672,
515,
197,
90580,
4502,
25,
5476,
16010,
4502,
515,
298,
29580,
25,
256,
330,
20,
64,
19,
542,
21,
64,
16,
21,
18,
329,
19,
20,
18,
18,
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... | 8 |
func TestIssue15346(t *testing.T) {
store, clean := testkit.CreateMockStore(t)
defer clean()
tk := testkit.NewTestKit(t, store)
tk.MustExec("use test")
tk.MustQuery("select collation(format_bytes(1024)) != 'binary';").Check(testkit.Rows("1"))
tk.MustQuery("select collation(format_nano_time(234)) != 'binary';").C... | explode_data.jsonl/65510 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 129
} | [
2830,
3393,
42006,
16,
20,
18,
19,
21,
1155,
353,
8840,
836,
8,
341,
57279,
11,
4240,
1669,
1273,
8226,
7251,
11571,
6093,
1155,
340,
16867,
4240,
2822,
3244,
74,
1669,
1273,
8226,
7121,
2271,
7695,
1155,
11,
3553,
340,
3244,
74,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestStartCmdWithInvalidCASType(t *testing.T) {
startCmd := GetStartCmd()
startCmd.SetArgs(getTestArgs("localhost:8081", "InvalidName", "false", databaseTypeMemOption, ""))
err := startCmd.Execute()
require.EqualError(t, err, "InvalidName is not a valid CAS type. It must be either local or ipfs")
} | explode_data.jsonl/31131 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 100
} | [
2830,
3393,
3479,
15613,
2354,
7928,
34163,
499,
1155,
353,
8840,
836,
8,
341,
21375,
15613,
1669,
2126,
3479,
15613,
2822,
21375,
15613,
4202,
4117,
5433,
2271,
4117,
445,
8301,
25,
23,
15,
23,
16,
497,
330,
7928,
675,
497,
330,
3849... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestProvideAPathToTheLogFile(t *testing.T) {
logFile := outputs.NewSimpleLogFile("my-application")
if logFile.Path() != "/var/log/my-application.log" {
t.Error("The default log file path is incorrect")
}
} | explode_data.jsonl/22137 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 75
} | [
2830,
3393,
60424,
32,
1820,
1249,
785,
98857,
1155,
353,
8840,
836,
8,
341,
6725,
1703,
1669,
16275,
7121,
16374,
98857,
445,
2408,
92479,
5130,
743,
1487,
1703,
17474,
368,
961,
3521,
947,
19413,
34198,
92479,
1665,
1,
341,
197,
3244,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEnvLoader(t *testing.T) {
t.Run(
"load defined env vars",
func(t *testing.T) {
os.Setenv("FOO", "BAR")
os.Setenv("BAR", "FOO")
var l = New(&Config{
Vars: []string{
"FOO",
"BAR",
},
Replacer: nstrings.ReplacerToLower,
})
var v = konfig.Values{}
l.Load(v)
requir... | explode_data.jsonl/80983 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1650
} | [
2830,
3393,
14359,
9181,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
1006,
197,
197,
1,
1078,
4512,
6105,
19942,
756,
197,
29244,
1155,
353,
8840,
836,
8,
341,
298,
25078,
4202,
3160,
445,
3788,
46,
497,
330,
33065,
1138,
298,
25078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetActiveOrders(t *testing.T) {
t.Parallel()
_, err := y.GetActiveOrders("")
if err == nil {
t.Error("Test Failed - GetActiveOrders() error", err)
}
} | explode_data.jsonl/79865 | {
"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,
1949,
5728,
24898,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
197,
6878,
1848,
1669,
379,
2234,
5728,
24898,
31764,
743,
1848,
621,
2092,
341,
197,
3244,
6141,
445,
2271,
21379,
481,
2126,
5728,
24898,
368,
1465,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEmbyHelper_GetPlayedItemsSubtitle(t *testing.T) {
//em := NewEmbyHelper(ec)
//moviePhyFPathMap, seriesPhyFPathMap, err := em.GetPlayedItemsSubtitle()
//if err != nil {
// t.Fatal(err)
//}
//
//for videoPhyPath, subPhyPath := range moviePhyFPathMap {
// println(videoPhyPath, "--", subPhyPath)
// if my... | explode_data.jsonl/48288 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 357
} | [
2830,
3393,
2269,
1694,
5511,
13614,
85930,
4353,
73622,
1155,
353,
8840,
836,
8,
1476,
197,
322,
336,
1669,
1532,
2269,
1694,
5511,
62540,
340,
197,
322,
20032,
3357,
88,
37,
1820,
2227,
11,
4013,
3357,
88,
37,
1820,
2227,
11,
1848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestInit(t *testing.T) {
err := Init()
if err == nil {
t.Error("Expected no registered db error")
}
Register("test", TestDB)
database = "test"
err = Init()
if err != ErrFakeError {
t.Error("expected fake db error from init")
}
TestAddress.AddLinks()
} | explode_data.jsonl/15470 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 99
} | [
2830,
3393,
3803,
1155,
353,
8840,
836,
8,
341,
9859,
1669,
15690,
741,
743,
1848,
621,
2092,
341,
197,
3244,
6141,
445,
18896,
902,
9681,
2927,
1465,
1138,
197,
532,
79096,
445,
1944,
497,
3393,
3506,
340,
2698,
2211,
284,
330,
1944,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestHighlightMultipleLines(t *testing.T) {
cases := []struct {
Name string
Match *comby.Match
Want []protocol.LineMatch
}{
{
Name: "Single line",
Match: &comby.Match{
Range: comby.Range{
Start: comby.Location{
Line: 1,
Column: 1,
},
End: comby.Location{
Line... | explode_data.jsonl/5448 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 943
} | [
2830,
3393,
29830,
32089,
16794,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
3056,
1235,
341,
197,
21297,
220,
914,
198,
197,
197,
8331,
353,
874,
1694,
36062,
198,
197,
17300,
517,
220,
3056,
17014,
16420,
8331,
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... | 2 |
func TestBlockService_Offline(t *testing.T) {
cfg := &configuration.Configuration{
Mode: configuration.Offline,
}
mockIndexer := &mocks.Indexer{}
servicer := NewBlockAPIService(cfg, mockIndexer)
ctx := context.Background()
block, err := servicer.Block(ctx, &types.BlockRequest{})
assert.Nil(t, block)
assert.E... | explode_data.jsonl/24695 | {
"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,
4713,
1860,
94377,
1056,
1155,
353,
8840,
836,
8,
341,
50286,
1669,
609,
21138,
17334,
515,
197,
197,
3636,
25,
6546,
13,
52563,
345,
197,
532,
77333,
1552,
261,
1669,
609,
16712,
82,
18338,
261,
16094,
1903,
648,
12999,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIteratorNextPrev(t *testing.T) {
var mem vfs.FS
var d *DB
defer func() {
require.NoError(t, d.Close())
}()
reset := func() {
if d != nil {
require.NoError(t, d.Close())
}
mem = vfs.NewMem()
require.NoError(t, mem.MkdirAll("ext", 0755))
opts := &Options{FS: mem}
// Automatic compactions ... | explode_data.jsonl/53974 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 708
} | [
2830,
3393,
11951,
5847,
33528,
1155,
353,
8840,
836,
8,
341,
2405,
1833,
92941,
991,
50,
198,
2405,
294,
353,
3506,
198,
16867,
2915,
368,
341,
197,
17957,
35699,
1155,
11,
294,
10421,
2398,
197,
66816,
70343,
1669,
2915,
368,
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... | 1 |
func TestPageKeysDoNothingWhenNoPages(t *testing.T) {
cols := []Column{
NewColumn("id", "ID", 3),
}
model := New(cols).WithRows([]Row{
NewRow(RowData{
"id": "first",
}),
NewRow(RowData{
"id": "second",
}),
NewRow(RowData{
"id": "third",
}),
}).Focused(true)
pageMoveKeys := []tea.Msg{
tea... | explode_data.jsonl/45268 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 334
} | [
2830,
3393,
2665,
8850,
5404,
23780,
4498,
2753,
17713,
1155,
353,
8840,
836,
8,
341,
1444,
3069,
1669,
3056,
2933,
515,
197,
197,
3564,
2933,
445,
307,
497,
330,
915,
497,
220,
18,
1326,
197,
630,
19727,
1669,
1532,
70177,
568,
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... | 1 |
func TestCPUWatcherPerCPU(t *testing.T) {
// logrus.SetLevel(logrus.DebugLevel)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
s := NewCPUStats(ctx, 60*time.Second, 2)
time.Sleep(5 * time.Second)
// tc1, ok := CPUAvgPerc(&cpuStats.CPU[0].Idle, 3*time.Second)
tc2, ok := TimeLoadPerc(&s.CPU... | explode_data.jsonl/71250 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 255
} | [
2830,
3393,
31615,
47248,
3889,
31615,
1155,
353,
8840,
836,
8,
341,
197,
322,
1487,
20341,
4202,
4449,
12531,
20341,
20345,
4449,
340,
20985,
11,
9121,
1669,
2266,
26124,
9269,
5378,
19047,
2398,
16867,
9121,
741,
1903,
1669,
1532,
31615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDecode(t *testing.T) {
tt := []struct {
input *pb.Struct
want map[string]interface{}
}{
{
input: &pb.Struct{},
want: nil,
},
{
input: &pb.Struct{
Fields: map[string]*pb.Value{
"null": {Kind: &pb.Value_NullValue{}},
"number": {Kind: &pb.Value_NumberValue{NumberValue: 10}},... | explode_data.jsonl/542 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 640
} | [
2830,
3393,
32564,
1155,
353,
8840,
836,
8,
341,
3244,
83,
1669,
3056,
1235,
341,
197,
22427,
353,
16650,
51445,
198,
197,
50780,
220,
2415,
14032,
31344,
16094,
197,
59403,
197,
197,
515,
298,
22427,
25,
609,
16650,
51445,
38837,
298,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestCheckUsername(t *testing.T) {
type args struct {
s string
}
tests := []struct {
name string
args args
wantName string
wantPhone string
wantEmail string
wantOk bool
}{
{"username-1", args{"1@1.com"}, "", "", "1@1.com", true},
{"username-2", args{"v.com"}, "", "", "", false},
... | explode_data.jsonl/37629 | {
"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,
3973,
11115,
1155,
353,
8840,
836,
8,
341,
13158,
2827,
2036,
341,
197,
1903,
914,
198,
197,
532,
78216,
1669,
3056,
1235,
341,
197,
11609,
414,
914,
198,
197,
31215,
414,
2827,
198,
197,
50780,
675,
220,
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... | 5 |
func TestHandshakeClientECDHERSAAES(t *testing.T) {
test := &clientTest{
name: "ECDHE-RSA-AES",
args: []string{"-cipher", "ECDHE-RSA-AES128-SHA"},
}
runClientTestTLS10(t, test)
runClientTestTLS11(t, test)
runClientTestTLS12(t, test)
} | explode_data.jsonl/27693 | {
"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,
2314,
29661,
2959,
36,
6484,
3012,
50,
6029,
1570,
1155,
353,
8840,
836,
8,
341,
18185,
1669,
609,
2972,
2271,
515,
197,
11609,
25,
330,
36,
6484,
1799,
10911,
7778,
6691,
1570,
756,
197,
31215,
25,
3056,
917,
4913,
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 TestSpanBaggage(t *testing.T) {
assert := assert.New(t)
span := newBasicSpan("web.request")
span.SetBaggageItem("key", "value")
assert.Equal("value", span.BaggageItem("key"))
} | explode_data.jsonl/42834 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 73
} | [
2830,
3393,
12485,
12933,
14943,
1155,
353,
8840,
836,
8,
341,
6948,
1669,
2060,
7121,
1155,
692,
197,
1480,
1669,
501,
15944,
12485,
445,
2911,
8223,
1138,
197,
1480,
4202,
12933,
14943,
1234,
445,
792,
497,
330,
957,
1138,
6948,
12808... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNestedExpressions(t *testing.T) {
n1 := IntNumberTerm(1)
n2 := IntNumberTerm(2)
n3 := IntNumberTerm(3)
n4 := IntNumberTerm(4)
n6 := IntNumberTerm(6)
x := VarTerm("x")
y := VarTerm("y")
z := VarTerm("z")
w := VarTerm("w")
f := RefTerm(VarTerm("f"))
g := RefTerm(VarTerm("g"))
tests := []struct {
... | explode_data.jsonl/50477 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1736
} | [
2830,
3393,
71986,
40315,
1155,
353,
8840,
836,
8,
1476,
9038,
16,
1669,
1333,
2833,
17249,
7,
16,
340,
9038,
17,
1669,
1333,
2833,
17249,
7,
17,
340,
9038,
18,
1669,
1333,
2833,
17249,
7,
18,
340,
9038,
19,
1669,
1333,
2833,
17249,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestReplicationStatsReport(t *testing.T) {
defer leaktest.AfterTest(t)()
tests := []replicationStatsTestCase{
{
name: "simple no violations",
baseReportTestCase: baseReportTestCase{
defaultZone: zone{replicas: 3},
schema: []database{
{
name: "db1",
tables: []table{
{name: ... | explode_data.jsonl/32819 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2113
} | [
2830,
3393,
18327,
1693,
16635,
10361,
1155,
353,
8840,
836,
8,
341,
16867,
23352,
1944,
36892,
2271,
1155,
8,
741,
78216,
1669,
3056,
9995,
1693,
16635,
16458,
515,
197,
197,
515,
298,
11609,
25,
330,
22944,
902,
26557,
756,
298,
24195... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestProvidedButUnexpectedPositionalArgs(t *testing.T) {
f := NewFixture(t, model.NewUserConfigState([]string{"do", "re", "mi"}))
defer f.TearDown()
f.File("Tiltfile", `
cfg = config.parse()
`)
_, err := f.ExecFile("Tiltfile")
require.Error(t, err)
require.Equal(t, "positional args were specified, but none ... | explode_data.jsonl/65234 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 138
} | [
2830,
3393,
35819,
291,
3983,
29430,
3812,
278,
4117,
1155,
353,
8840,
836,
8,
341,
1166,
1669,
1532,
18930,
1155,
11,
1614,
7121,
1474,
2648,
1397,
10556,
917,
4913,
2982,
497,
330,
265,
497,
330,
8155,
9207,
1171,
16867,
282,
836,
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 TestGetItem(t *testing.T) {
sandboxResp, _ := testClient.CreateSandboxPublicToken(sandboxInstitution, testProducts)
tokenResp, _ := testClient.ExchangePublicToken(sandboxResp.PublicToken)
itemResp, err := testClient.GetItem(tokenResp.AccessToken)
assert.Nil(t, err)
assert.NotNil(t, itemResp.Item)
} | explode_data.jsonl/12571 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 106
} | [
2830,
3393,
1949,
1234,
1155,
353,
8840,
836,
8,
341,
1903,
31536,
36555,
11,
716,
1669,
1273,
2959,
7251,
50,
31536,
12676,
3323,
1141,
31536,
641,
10446,
11,
1273,
17746,
340,
43947,
36555,
11,
716,
1669,
1273,
2959,
86997,
12676,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNewServer_AddsNothingAfterNSERemoval(t *testing.T) {
defer goleak.VerifyNone(t, goleak.IgnoreCurrent())
var localBypassRegistryServer registry.NetworkServiceEndpointRegistryServer
localBypassNetworkServiceServer := localbypass.NewServer(&localBypassRegistryServer)
server := next.NewNetworkServiceServer(loc... | explode_data.jsonl/2442 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 538
} | [
2830,
3393,
3564,
5475,
21346,
82,
23780,
6025,
2448,
640,
6726,
831,
1155,
353,
8840,
836,
8,
341,
16867,
728,
273,
585,
54853,
4064,
1155,
11,
728,
273,
585,
48590,
5405,
2398,
2405,
2205,
33,
49911,
15603,
5475,
19424,
30149,
1860,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRepeatedFragment(t *testing.T) {
ctr := 0
countArgParse := func() {
ctr++
}
query := makeQuery(&countArgParse)
q := graphql.MustParse(`{
static
a { value nested { value ...frag } ...frag }
as { value }
}
fragment frag on A {
fieldWithArgs(arg1: 1)
}
`, nil)
if err := graphql.PrepareQuery(... | explode_data.jsonl/72159 | {
"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,
90989,
9488,
1155,
353,
8840,
836,
8,
341,
197,
10597,
1669,
220,
15,
198,
18032,
2735,
14463,
1669,
2915,
368,
341,
197,
197,
10597,
22940,
197,
532,
27274,
1669,
1281,
2859,
2099,
1830,
2735,
14463,
692,
18534,
1669,
48865... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAlphaVolumeSnapshotDataSource(t *testing.T) {
successTestCases := []core.PersistentVolumeClaimSpec{
*testVolumeSnapshotDataSourceInSpec("test_snapshot", "VolumeSnapshot", "snapshot.storage.k8s.io"),
}
failedTestCases := []core.PersistentVolumeClaimSpec{
*testVolumeSnapshotDataSourceInSpec("", "VolumeSna... | explode_data.jsonl/996 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 493
} | [
2830,
3393,
19384,
18902,
15009,
17173,
1155,
353,
8840,
836,
8,
341,
30553,
2271,
37302,
1669,
3056,
2153,
61655,
18902,
45544,
8327,
515,
197,
197,
9,
1944,
18902,
15009,
17173,
641,
8327,
445,
1944,
53265,
497,
330,
18902,
15009,
497,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 7 |
func TestCoinSend(t *testing.T) {
kb, err := keys.NewKeyBaseFromDir(InitClientHome(t, ""))
require.NoError(t, err)
addr, seed := CreateAddr(t, name1, pw, kb)
cleanup, _, _, port := InitializeTestLCD(t, 1, []sdk.AccAddress{addr}, true)
defer cleanup()
bz, err := hex.DecodeString("8FA6AB57AD6870F6B5B2E57735F38F2F3... | explode_data.jsonl/25401 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1304
} | [
2830,
3393,
41180,
11505,
1155,
353,
8840,
836,
8,
341,
16463,
65,
11,
1848,
1669,
6894,
7121,
1592,
3978,
3830,
6184,
7,
3803,
2959,
7623,
1155,
11,
77561,
17957,
35699,
1155,
11,
1848,
340,
53183,
11,
10320,
1669,
4230,
13986,
1155,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.