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 TestLastActivityTime(t *testing.T) {
initialTime := time.Date(2017, 11, 27, 21, 0, 0, 0, time.UTC)
clock := testutils.NewStubClock(initialTime)
opts := testutils.NewOpts().SetTimeNow(clock.Now)
testutils.WithTestServer(t, opts, func(t testing.TB, ts *testutils.TestServer) {
client := ts.NewClient(opts)
se... | explode_data.jsonl/78207 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 998
} | [
2830,
3393,
5842,
4052,
1462,
1155,
353,
8840,
836,
8,
341,
85270,
1462,
1669,
882,
8518,
7,
17,
15,
16,
22,
11,
220,
16,
16,
11,
220,
17,
22,
11,
220,
17,
16,
11,
220,
15,
11,
220,
15,
11,
220,
15,
11,
882,
87069,
340,
8416... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMemStats(t *testing.T) {
alloc, err := stats.GetStatsObject("system/memstats/Alloc")
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
if v := alloc.Value(); v == uint64(0) {
t.Errorf("unexpected Alloc value. Got %v, want != 0", v)
}
} | explode_data.jsonl/41667 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 105
} | [
2830,
3393,
18816,
16635,
1155,
353,
8840,
836,
8,
341,
197,
4742,
11,
1848,
1669,
10472,
2234,
16635,
1190,
445,
8948,
3183,
336,
16260,
14,
25154,
1138,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
53859,
1465,
25,
1018,
85,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestSliceUnmarhsaler(t *testing.T) {
// test that a slice type that implements TextUnmarshaler is
// handled as a TextUnmarshaler not as a slice
var args struct {
Foo *sliceUnmarshaler
Bar string `arg:"positional"`
}
err := parse("--foo abcde xyz", &args)
require.NoError(t, err)
require.Len(t, *args.Foo... | explode_data.jsonl/13053 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 162
} | [
2830,
3393,
33236,
1806,
5612,
4997,
13111,
1155,
353,
8840,
836,
8,
341,
197,
322,
1273,
429,
264,
15983,
943,
429,
5169,
2918,
1806,
27121,
261,
374,
198,
197,
322,
17608,
438,
264,
2918,
1806,
27121,
261,
537,
438,
264,
15983,
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 TestHA(t *testing.T) {
runTestAWS(t, "ha.example.com", "ha", "v1alpha1", false, 3, true, false, nil)
runTestAWS(t, "ha.example.com", "ha", "v1alpha2", false, 3, true, false, nil)
} | explode_data.jsonl/17484 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 83
} | [
2830,
3393,
17020,
1155,
353,
8840,
836,
8,
341,
56742,
2271,
36136,
1155,
11,
330,
4223,
7724,
905,
497,
330,
4223,
497,
330,
85,
16,
7141,
16,
497,
895,
11,
220,
18,
11,
830,
11,
895,
11,
2092,
340,
56742,
2271,
36136,
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 TestClustersFollowerMode(t *testing.T) {
ctx := context.Background()
clusters, mock := createClusters(t)
defer shutdownClusters(t, clusters, mock)
_, err := clusters[0].Pin(ctx, test.Cid1, api.PinOptions{})
if err != nil {
t.Fatal(err)
}
_, err = clusters[0].Pin(ctx, test.ErrorCid, api.PinOptions{})
if ... | explode_data.jsonl/66625 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 734
} | [
2830,
3393,
94992,
37,
29034,
3636,
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,
692,
197,
6878,
1848,
1669,
26968,
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,
1,
1,
1,
1,
1... | 3 |
func TestDefaultWeekFormat(t *testing.T) {
store, clean := realtikvtest.CreateMockStoreAndSetup(t)
defer clean()
tk1 := testkit.NewTestKit(t, store)
tk1.MustExec("use test")
tk1.MustExec("set @@global.default_week_format = 4;")
defer tk1.MustExec("set @@global.default_week_format = default;")
tk2 := testkit.New... | explode_data.jsonl/5743 | {
"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,
3675,
17053,
4061,
1155,
353,
8840,
836,
8,
341,
57279,
11,
4240,
1669,
1931,
83,
1579,
85,
1944,
7251,
11571,
6093,
3036,
21821,
1155,
340,
16867,
4240,
741,
3244,
74,
16,
1669,
1273,
8226,
7121,
2271,
7695,
1155,
11,
355... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestValidateElbNamePrefix(t *testing.T) {
validNamePrefixes := []string{
"test-",
}
for _, s := range validNamePrefixes {
_, errors := validateElbNamePrefix(s, "name_prefix")
if len(errors) > 0 {
t.Fatalf("%q should be a valid ELB name prefix: %v", s, errors)
}
}
invalidNamePrefixes := []string{
... | explode_data.jsonl/78614 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 241
} | [
2830,
3393,
17926,
6582,
65,
675,
14335,
1155,
353,
8840,
836,
8,
341,
56322,
675,
14335,
288,
1669,
3056,
917,
515,
197,
197,
1,
1944,
12,
756,
197,
630,
2023,
8358,
274,
1669,
2088,
2697,
675,
14335,
288,
341,
197,
197,
6878,
5975... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGenerateModel_Issue2457(t *testing.T) {
specDoc, err := loads.Spec("../fixtures/bugs/2457/fixture-2457.yaml")
require.NoError(t, err)
definitions := specDoc.Spec().Definitions
k := "ObjWithCustomTag"
schema := definitions[k]
opts := opts()
genModel, err := makeGenDefinition(k, "models", schema, specDoc... | explode_data.jsonl/2571 | {
"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,
31115,
1712,
7959,
83890,
17,
19,
20,
22,
1155,
353,
8840,
836,
8,
341,
98100,
9550,
11,
1848,
1669,
20907,
36473,
17409,
45247,
14,
56176,
14,
17,
19,
20,
22,
14,
59612,
12,
17,
19,
20,
22,
33406,
1138,
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 TestSyncer_SyncAny_abort(t *testing.T) {
syncer, connSnapshot := setupOfferSyncer(t)
s := &snapshot{Height: 1, Format: 1, Chunks: 3, Hash: []byte{1, 2, 3}}
_, err := syncer.AddSnapshot(simplePeer("id"), s)
require.NoError(t, err)
connSnapshot.On("OfferSnapshotSync", abci.RequestOfferSnapshot{
Snapshot: toA... | explode_data.jsonl/46286 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 224
} | [
2830,
3393,
12154,
261,
1098,
1721,
8610,
70907,
1155,
353,
8840,
836,
8,
341,
1903,
1721,
261,
11,
4534,
15009,
1669,
6505,
39462,
12154,
261,
1155,
692,
1903,
1669,
609,
35501,
90,
3640,
25,
220,
16,
11,
15042,
25,
220,
16,
11,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestCombinedShortFlags(t *testing.T) {
app := New("test", "")
a := app.Flag("short0", "").Short('0').Bool()
b := app.Flag("short1", "").Short('1').Bool()
c := app.Flag("short2", "").Short('2').Bool()
_, err := app.Parse([]string{"-01"})
assert.NoError(t, err)
assert.True(t, *a)
assert.True(t, *b)
assert.F... | explode_data.jsonl/74863 | {
"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,
94268,
12472,
9195,
1155,
353,
8840,
836,
8,
341,
28236,
1669,
1532,
445,
1944,
497,
14676,
11323,
1669,
906,
80911,
445,
8676,
15,
497,
35229,
12472,
492,
15,
1823,
11233,
741,
2233,
1669,
906,
80911,
445,
8676,
16,
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... | 1 |
func TestStoreWatchExpire(t *testing.T) {
s := newStore()
fc := newFakeClock()
s.clock = fc
var eidx uint64 = 3
s.Create("/foo", false, "bar", false, TTLOptionSet{ExpireTime: fc.Now().Add(400 * time.Millisecond)})
s.Create("/foofoo", false, "barbarbar", false, TTLOptionSet{ExpireTime: fc.Now().Add(450 * time.Mil... | explode_data.jsonl/44122 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 595
} | [
2830,
3393,
6093,
14247,
8033,
554,
1155,
353,
8840,
836,
8,
341,
1903,
1669,
501,
6093,
741,
1166,
66,
1669,
501,
52317,
26104,
741,
1903,
50546,
284,
25563,
271,
2405,
384,
6361,
2622,
21,
19,
284,
220,
18,
198,
1903,
7251,
4283,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestCollectionService_UpdateDescription(t *testing.T) {
client, mux := setup(t)
mux.HandleFunc("/api/v1/collections/update_collection_description", func(w http.ResponseWriter, r *http.Request) {
require.Equal(t, http.MethodPost, r.Method)
form := url.Values{}
form.Set("collection_id", "37f1e52d-7ec9-466b... | explode_data.jsonl/12634 | {
"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,
6482,
1860,
47393,
5009,
1155,
353,
8840,
836,
8,
341,
25291,
11,
59807,
1669,
6505,
1155,
692,
2109,
2200,
63623,
4283,
2068,
5457,
16,
2899,
3107,
29832,
25019,
11448,
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 TestMapProxy_PutAllWithNilMap(t *testing.T) {
err := mp.PutAll(nil)
AssertErrorNotNil(t, err, "putAll did not return an error for nil map")
mp.Clear()
} | explode_data.jsonl/57014 | {
"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,
2227,
16219,
1088,
332,
2403,
2354,
19064,
2227,
1155,
353,
8840,
836,
8,
341,
9859,
1669,
10490,
39825,
2403,
27907,
340,
18017,
1454,
96144,
1155,
11,
1848,
11,
330,
628,
2403,
1521,
537,
470,
458,
1465,
369,
2092,
2415,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIntegrationWithMQTTServer(t *testing.T) {
mqttURL := os.Getenv(MQTTURLEnvName)
if mqttURL == "" {
mqttURL = DefaultMQTTURL
}
urlMQTT, err := url.Parse(mqttURL)
require.NoError(t, err, "Failed to create URL")
port, err := strconv.ParseInt(urlMQTT.Port(), 10, 0)
require.NoError(t, err, "Unable to parse... | explode_data.jsonl/44691 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 539
} | [
2830,
3393,
52464,
2354,
35169,
14903,
5475,
1155,
353,
8840,
836,
8,
341,
2109,
32267,
3144,
1669,
2643,
64883,
3189,
48,
14903,
1511,
867,
36941,
675,
340,
743,
59431,
3144,
621,
1591,
341,
197,
2109,
32267,
3144,
284,
7899,
35169,
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 TestResult(t *testing.T) {
result := Result{
StatusCode: 400,
Token: "testToken",
Error: &FCMError{
Status: InvalidArgument,
Message: "The registration token is not a valid FCM registration token",
},
}
b, err := result.MarshalJSON()
if err != nil {
t.Error(err)
}
t.Logf("%s", string(b)... | explode_data.jsonl/33447 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 213
} | [
2830,
3393,
2077,
1155,
353,
8840,
836,
8,
341,
9559,
1669,
5714,
515,
197,
197,
15872,
25,
220,
19,
15,
15,
345,
197,
33299,
25,
414,
330,
1944,
3323,
756,
197,
58421,
25,
609,
6754,
44,
1454,
515,
298,
58321,
25,
220,
13882,
917... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDatabaseNameReplaceByKeyspaceNameExecuteMethod(t *testing.T) {
db, tsv := setupTabletServerTest(t, "keyspaceName")
setDBName(db, tsv, "databaseInMysql")
defer tsv.StopService()
defer db.Close()
executeSQL := "select * from test_table limit 1000"
executeSQLResult := &sqltypes.Result{
Fields: []*querypb... | explode_data.jsonl/80029 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 407
} | [
2830,
3393,
5988,
675,
23107,
1359,
8850,
1306,
675,
17174,
3523,
1155,
353,
8840,
836,
8,
341,
20939,
11,
259,
3492,
1669,
6505,
2556,
83,
5475,
2271,
1155,
11,
330,
792,
8746,
675,
1138,
8196,
3506,
675,
9791,
11,
259,
3492,
11,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestMessageReadMode(t *testing.T) {
var wg sync.WaitGroup
defer wg.Wait()
l, err := ListenPipe(testPipeName, &PipeConfig{MessageMode: true})
if err != nil {
t.Fatal(err)
}
defer l.Close()
msg := ([]byte)("hello world")
wg.Add(1)
go func() {
defer wg.Done()
s, err := l.Accept()
if err != nil {
... | explode_data.jsonl/11435 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 539
} | [
2830,
3393,
2052,
4418,
3636,
1155,
353,
8840,
836,
8,
341,
2405,
63581,
12811,
28384,
2808,
198,
16867,
63581,
28384,
2822,
8810,
11,
1848,
1669,
32149,
34077,
8623,
34077,
675,
11,
609,
34077,
2648,
90,
2052,
3636,
25,
830,
3518,
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... | 3 |
func TestValidateStepFunctionStateMachineDefinition(t *testing.T) {
validDefinitions := []string{
"foobar",
strings.Repeat("W", 1048576),
}
invalidDefinitions := []string{
strings.Repeat("W", 1048577), // length > 1048576
}
for _, v := range validDefinitions {
_, errors := validateSfnStateMachineDefiniti... | explode_data.jsonl/78598 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 233
} | [
2830,
3393,
17926,
8304,
5152,
94666,
10398,
1155,
353,
8840,
836,
8,
341,
56322,
50542,
1669,
3056,
917,
515,
197,
197,
1,
50267,
756,
197,
11355,
819,
2817,
10979,
445,
54,
497,
220,
16,
15,
19,
23,
20,
22,
21,
1326,
197,
630,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAccKeycloakOpenidClient_updateInPlace(t *testing.T) {
realm := "terraform-" + acctest.RandString(10)
clientId := "terraform-" + acctest.RandString(10)
enabled := randomBool()
standardFlowEnabled := randomBool()
implicitFlowEnabled := randomBool()
directAccessGrantsEnabled := randomBool()
serviceAccounts... | explode_data.jsonl/52131 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1497
} | [
2830,
3393,
14603,
1592,
88751,
5002,
307,
2959,
8882,
641,
17371,
1155,
353,
8840,
836,
8,
341,
17200,
7673,
1669,
330,
61385,
27651,
488,
1613,
67880,
2013,
437,
703,
7,
16,
15,
340,
25291,
764,
1669,
330,
61385,
27651,
488,
1613,
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 TestCreateTeam(t *testing.T) {
th := Setup().InitBasic()
defer th.TearDown()
id := model.NewId()
name := "name" + id
displayName := "Name " + id
th.CheckCommand(t, "team", "create", "--name", name, "--display_name", displayName)
found := th.SystemAdminClient.Must(th.SystemAdminClient.TeamExists(name, "")... | explode_data.jsonl/65272 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 144
} | [
2830,
3393,
4021,
14597,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
18626,
1005,
3803,
15944,
741,
16867,
270,
836,
682,
4454,
2822,
15710,
1669,
1614,
7121,
764,
741,
11609,
1669,
330,
606,
1,
488,
877,
198,
31271,
675,
1669,
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 TestFromMultiStageWithNamedStage(t *testing.T) {
b := newBuilderWithMockBackend()
firstFrom := &instructions.Stage{BaseName: "someimg", Name: "base"}
secondFrom := &instructions.Stage{BaseName: "base"}
previousResults := newStagesBuildResults()
firstSB := newDispatchRequest(b, '\\', nil, newBuildArgs(make(map... | explode_data.jsonl/34866 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 274
} | [
2830,
3393,
3830,
20358,
19398,
2354,
15810,
19398,
1155,
353,
8840,
836,
8,
341,
2233,
1669,
501,
3297,
2354,
11571,
29699,
741,
42190,
3830,
1669,
609,
62295,
69873,
90,
3978,
675,
25,
330,
14689,
1892,
497,
3988,
25,
330,
3152,
16707... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestOperationParticipants(t *testing.T) {
tt := assert.New(t)
sequence := uint32(56)
transaction := BuildLedgerTransaction(
t,
TestTransaction{
Index: 1,
EnvelopeXDR: "AAAAAONt/6wGI884Zi6sYDYC1GOV/drnh4OcRrTrqJPoOTUKAAAAZAAAABAAAAADAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAAAAAAADuaygAAAAAABAjoBMEUiZN... | explode_data.jsonl/17229 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1634
} | [
2830,
3393,
8432,
77546,
1155,
353,
8840,
836,
8,
341,
3244,
83,
1669,
2060,
7121,
1155,
692,
197,
15512,
1669,
2622,
18,
17,
7,
20,
21,
340,
197,
13528,
1669,
7854,
60850,
1389,
8070,
1006,
197,
3244,
345,
197,
73866,
8070,
515,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetStringErr(t *testing.T) {
t.Parallel()
b := NewConfigReaderBuilder()
reader := b.AttachEnvPrefix("simpleApp").WithConfigFile("testdata/config.yaml").Build()
s, err := reader.GetString("genCode.downstream.foo")
require.NotNil(t, err)
assert.Equal(t, "", s)
} | explode_data.jsonl/53787 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 105
} | [
2830,
3393,
48905,
7747,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
2233,
1669,
1532,
2648,
5062,
3297,
741,
61477,
1669,
293,
88284,
14359,
14335,
445,
22944,
2164,
1827,
2354,
2648,
1703,
445,
92425,
14730,
33406,
1827,
1106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSelfManagedApps(t *testing.T) {
Given(t).
Path("self-managed-app").
When().
PatchFile("resources.yaml", fmt.Sprintf(`[{"op": "replace", "path": "/spec/source/repoURL", "value": "%s"}]`, RepoURL(RepoURLTypeFile))).
CreateApp().
Sync().
Then().
Expect(OperationPhaseIs(OperationSucceeded)).
Expe... | explode_data.jsonl/35651 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 410
} | [
2830,
3393,
12092,
27192,
53602,
1155,
353,
8840,
836,
8,
1476,
9600,
2071,
1155,
4292,
197,
69640,
445,
721,
20477,
3279,
20023,
38609,
197,
197,
4498,
25829,
197,
10025,
754,
1703,
445,
12745,
33406,
497,
8879,
17305,
5809,
58,
4913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 5 |
func Test_sanitizeName(t *testing.T) {
testCases := []struct {
desc string
srcName string
expectedName string
}{
{
desc: "with /",
srcName: "/my/BACKEND-v1.0~rc1",
expectedName: "_my_BACKEND-v1.0~rc1",
},
{
desc: "some chars",
srcName: "!#$%&'()*+-./:<... | explode_data.jsonl/58888 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 320
} | [
2830,
3393,
643,
58652,
675,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
41653,
260,
914,
198,
197,
41144,
675,
414,
914,
198,
197,
42400,
675,
914,
198,
197,
59403,
197,
197,
515,
298,
41653,
25,
260,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDHT_Update(t *testing.T) {
ln, _ := node.GenerateTestNode(t)
cfg := config.DefaultConfig()
sim := service.NewSimulator()
n1 := sim.NewNodeFrom(ln.Node)
dht := New(ln, cfg.SwarmConfig, n1)
randnode := node.GenerateRandomNodeData()
dht.Update(randnode)
req := make(chan int)
dht.rt.Size(req)
size :... | explode_data.jsonl/37075 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 490
} | [
2830,
3393,
35,
2545,
47393,
1155,
353,
8840,
836,
8,
341,
197,
2261,
11,
716,
1669,
2436,
57582,
2271,
1955,
1155,
692,
50286,
1669,
2193,
13275,
2648,
741,
1903,
318,
1669,
2473,
7121,
14027,
10511,
2822,
9038,
16,
1669,
1643,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestStatus(t *testing.T) {
for i, c := range GetClients() {
moniker := rpctest.GetConfig().Moniker
status, err := c.Status()
require.Nil(t, err, "%d: %+v", i, err)
assert.Equal(t, moniker, status.NodeInfo.Moniker)
}
} | explode_data.jsonl/48940 | {
"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,
2522,
1155,
353,
8840,
836,
8,
341,
2023,
600,
11,
272,
1669,
2088,
2126,
47174,
368,
341,
197,
197,
1645,
24803,
1669,
33109,
67880,
2234,
2648,
1005,
11095,
24803,
198,
197,
23847,
11,
1848,
1669,
272,
10538,
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,
1... | 2 |
func TestChannel_GetID(t *testing.T) {
v := &Channel{Name: "Test", URI: "/channels/1"}
if id := v.GetID(); id != "1" {
t.Errorf("Channel.GetID returned %+v, want %+v", id, "1")
}
} | explode_data.jsonl/49780 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 82
} | [
2830,
3393,
9629,
13614,
915,
1155,
353,
8840,
836,
8,
341,
5195,
1669,
609,
9629,
63121,
25,
330,
2271,
497,
16020,
25,
3521,
32425,
14,
16,
63159,
743,
877,
1669,
348,
2234,
915,
2129,
877,
961,
330,
16,
1,
341,
197,
3244,
13080,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestParseUpdateOperation(t *testing.T) {
p := protocol.Protocol{
HashAlgorithmInMultiHashCode: sha2_256,
}
t.Run("success", func(t *testing.T) {
payload, err := getUpdateRequestBytes()
require.NoError(t, err)
op, err := ParseUpdateOperation(payload, p)
require.NoError(t, err)
require.Equal(t, batch... | explode_data.jsonl/29104 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 733
} | [
2830,
3393,
14463,
4289,
8432,
1155,
353,
8840,
836,
8,
341,
3223,
1669,
11507,
54096,
515,
197,
197,
6370,
27847,
641,
20358,
28265,
25,
15870,
17,
62,
17,
20,
21,
345,
197,
532,
3244,
16708,
445,
5630,
497,
2915,
1155,
353,
8840,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestInitRenewTrue(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)
db, issuer := getIssuer(t, testdir, true, false)
assert.NotNil(t, issuer)
err = issuer.Init(true, db, &dbutil.... | explode_data.jsonl/23679 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 520
} | [
2830,
3393,
3803,
34625,
365,
2514,
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... | 2 |
func TestPad_SetPad(t *testing.T) {
signal, err := newInput("TestSetPad", 1, 16)
if err != nil {
t.Fatalf("error setting up test; %s", err)
}
for _, tc := range []struct {
desc string
ok bool
wfErr error // MockWriteFile error.
enable bool
value int
}{
// Supported states.
{"off", true, nil,... | explode_data.jsonl/34845 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 451
} | [
2830,
3393,
13731,
14812,
13731,
1155,
353,
8840,
836,
8,
341,
81319,
11,
1848,
1669,
501,
2505,
445,
2271,
1649,
13731,
497,
220,
16,
11,
220,
16,
21,
340,
743,
1848,
961,
2092,
341,
197,
3244,
30762,
445,
841,
6243,
705,
1273,
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... | 7 |
func TestAssignmentsInitialNodeTasks(t *testing.T) {
t.Parallel()
gd, err := startDispatcher(DefaultConfig())
assert.NoError(t, err)
defer gd.Close()
expectedSessionID, nodeID := getSessionAndNodeID(t, gd.Clients[0])
// create the relevant secrets and tasks
secrets, tasks := makeTasksAndSecrets(t, nodeID)
er... | explode_data.jsonl/13849 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1214
} | [
2830,
3393,
28933,
1368,
6341,
1955,
25449,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
2822,
3174,
67,
11,
1848,
1669,
1191,
21839,
87874,
2648,
2398,
6948,
35699,
1155,
11,
1848,
340,
16867,
32630,
10421,
2822,
42400,
5283,
915,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestScheduleOnceParallel(t *testing.T) {
makeKey := model.NewId
// there is only one callback by design, so all tests need to add their key
// and callback handling code here.
jobKey1 := makeKey()
count1 := new(int32)
jobKey2 := makeKey()
count2 := new(int32)
jobKey3 := makeKey()
jobKey4 := makeKey()
co... | explode_data.jsonl/76435 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2367
} | [
2830,
3393,
32210,
12522,
16547,
1155,
353,
8840,
836,
8,
341,
77438,
1592,
1669,
1614,
7121,
764,
271,
197,
322,
1052,
374,
1172,
825,
4822,
553,
2884,
11,
773,
678,
7032,
1184,
311,
912,
862,
1376,
198,
197,
322,
323,
4822,
11589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSegment1(t *testing.T) {
dir := testutils.InitTestEnv(ModuleName, t)
c, mgr, driver := initTestContext(t, dir)
defer driver.Close()
defer mgr.Stop()
defer c.Close()
txn1 := mgr.StartTxn(nil)
name := "db"
schema := catalog.MockSchema(1)
db, err := txn1.CreateDatabase(name)
assert.Nil(t, err)
rel, er... | explode_data.jsonl/14654 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 720
} | [
2830,
3393,
21086,
16,
1155,
353,
8840,
836,
8,
341,
48532,
1669,
1273,
6031,
26849,
2271,
14359,
75295,
675,
11,
259,
340,
1444,
11,
57897,
11,
5579,
1669,
2930,
2271,
1972,
1155,
11,
5419,
340,
16867,
5579,
10421,
741,
16867,
57897,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestFileByUID(t *testing.T) {
t.Run("files found", func(t *testing.T) {
file, err := FileByUID("ft8es39w45bnlqdw")
if err != nil {
t.Fatal(err)
}
assert.Equal(t, "exampleFileName.jpg", file.FileName)
})
t.Run("no files found", func(t *testing.T) {
file, err := FileByUID("111")
if err == nil {... | explode_data.jsonl/71300 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 188
} | [
2830,
3393,
1703,
1359,
6463,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
7198,
1730,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
17661,
11,
1848,
1669,
2887,
1359,
6463,
445,
723,
23,
288,
18,
24,
86,
19,
20,
11081,
75,
80,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSecretAuthProviderBadKeyType(t *testing.T) {
req := httptest.NewRequest(http.MethodGet, "/", nil)
req.Header.Add("Authorization", "asdf super-secret")
req.Header.Add("X-Account-UUID", "woot")
rec, _ := makeMiddlewareRequest(req, secreteAuthMiddleware)
assert.Equal(t, 401, rec.Code)
} | explode_data.jsonl/17023 | {
"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,
19773,
96443,
17082,
97964,
1155,
353,
8840,
836,
8,
341,
24395,
1669,
54320,
70334,
75274,
19886,
20798,
1949,
11,
64657,
2092,
340,
24395,
15753,
1904,
445,
18124,
497,
330,
76615,
2256,
68892,
1138,
24395,
15753,
1904,
445,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestAddComments(t *testing.T) {
f, err := prepareTestBook1()
if !assert.NoError(t, err) {
t.FailNow()
}
s := strings.Repeat("c", 32768)
assert.NoError(t, f.AddComment("Sheet1", "A30", `{"author":"`+s+`","text":"`+s+`"}`))
assert.NoError(t, f.AddComment("Sheet2", "B7", `{"author":"Excelize: ","text":"This ... | explode_data.jsonl/36983 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 262
} | [
2830,
3393,
2212,
17373,
1155,
353,
8840,
836,
8,
341,
1166,
11,
1848,
1669,
10549,
2271,
7134,
16,
741,
743,
753,
2207,
35699,
1155,
11,
1848,
8,
341,
197,
3244,
57243,
7039,
741,
197,
630,
1903,
1669,
9069,
2817,
10979,
445,
66,
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 TestExpandSrcDir(t *testing.T) {
for _, test := range expandSrcDirTests {
output, _ := expandSrcDir(test.input, expandSrcDirPath)
if output != test.expected {
t.Errorf("%q expands to %q with SRCDIR=%q when %q is expected", test.input, output, expandSrcDirPath, test.expected)
} else {
t.Logf("%q expand... | explode_data.jsonl/520 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 156
} | [
2830,
3393,
38946,
20360,
6184,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
1273,
1669,
2088,
9225,
20360,
6184,
18200,
341,
197,
21170,
11,
716,
1669,
9225,
20360,
6184,
8623,
10046,
11,
9225,
20360,
6184,
1820,
340,
197,
743,
2550,
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... | 3 |
func TestFormatterJSONError(test *testing.T) {
object := struct {
Invalid chan struct{}
}{}
formatted, err := formatter.Format("{p | json}", object)
assert.Error(test, err)
assert.Empty(test, formatted)
} | explode_data.jsonl/39803 | {
"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,
14183,
5370,
1454,
8623,
353,
8840,
836,
8,
341,
35798,
1669,
2036,
341,
197,
197,
7928,
26023,
2036,
16094,
197,
15170,
630,
37410,
12127,
11,
1848,
1669,
24814,
9978,
13976,
79,
760,
2951,
9545,
1633,
692,
6948,
6141,
8623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestHandlerServeHTTPSecureTransport(t *testing.T) {
th := SetupWithStoreMock(t)
defer th.TearDown()
mockStore := th.App.Srv().Store.(*mocks.Store)
mockUserStore := mocks.UserStore{}
mockUserStore.On("Count", mock.Anything).Return(int64(10), nil)
mockPostStore := mocks.PostStore{}
mockPostStore.On("GetMaxPo... | explode_data.jsonl/11783 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 690
} | [
2830,
3393,
3050,
60421,
9230,
49813,
27560,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
18626,
2354,
6093,
11571,
1155,
340,
16867,
270,
836,
682,
4454,
2822,
77333,
6093,
1669,
270,
5105,
808,
10553,
1005,
6093,
41399,
16712,
82,
38047,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInterpretEnumCaseEquality(t *testing.T) {
t.Parallel()
inter := parseCheckAndInterpret(t, `
enum E: Int64 {
case a
case b
}
let res = [
E.a == E.a,
E.b == E.b,
E.a != E.b
]
`)
RequireValuesEqual(
t,
inter,
interpreter.Ne... | explode_data.jsonl/63665 | {
"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,
3306,
8043,
10766,
4207,
50745,
1155,
353,
8840,
836,
8,
1476,
3244,
41288,
7957,
2822,
58915,
1669,
4715,
3973,
3036,
3306,
8043,
1155,
11,
22074,
414,
7618,
468,
25,
1333,
21,
19,
341,
688,
1142,
264,
198,
688,
1142,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRenderWithMissingRequired(t *testing.T) {
template := `version: 0.0.0
title: Test Plugin
description: This is a test plugin
parameters:
- name: path
label: Parameter
description: A parameter
type: int
required: true
pipeline:
`
plugin, err := NewPlugin("plugin", []byte(template))
require.... | explode_data.jsonl/43062 | {
"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,
6750,
2354,
25080,
8164,
1155,
353,
8840,
836,
8,
341,
22832,
1669,
1565,
4366,
25,
220,
15,
13,
15,
13,
15,
198,
2102,
25,
3393,
21245,
198,
4684,
25,
1096,
374,
264,
1273,
9006,
198,
13786,
510,
220,
481,
829,
25,
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... | 1 |
func TestValidateGlusterfs(t *testing.T) {
testCases := []struct {
name string
gfs *core.GlusterfsVolumeSource
errtype field.ErrorType
errfield string
}{
{
name: "missing endpointname",
gfs: &core.GlusterfsVolumeSource{EndpointsName: "", Path: "/tmp"},
errtype: field.ErrorTypeRe... | explode_data.jsonl/1002 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 625
} | [
2830,
3393,
17926,
31541,
4993,
3848,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
1235,
341,
197,
11609,
257,
914,
198,
197,
3174,
3848,
414,
353,
2153,
1224,
75,
4993,
3848,
18902,
3608,
198,
197,
9859,
1313,
220,
2070,
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... | 9 |
func TestValueToICEServer(t *testing.T) {
testCases := []ICEServer{
{
URLs: []string{"turn:192.158.29.39?transport=udp"},
Username: "unittest",
Credential: "placeholder",
CredentialType: ICECredentialTypePassword,
},
{
URLs: []string{"turn:[2001:db8:1234:5678::1]?tran... | explode_data.jsonl/61188 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 475
} | [
2830,
3393,
1130,
1249,
15835,
2836,
1155,
353,
8840,
836,
8,
341,
18185,
37302,
1669,
3056,
15835,
2836,
515,
197,
197,
515,
298,
79055,
82,
25,
1843,
3056,
917,
4913,
412,
25,
16,
24,
17,
13,
16,
20,
23,
13,
17,
24,
13,
18,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDefaultObjectStatus(t *testing.T) {
s := RunBasicJetStreamServer()
defer shutdown(s)
nc, js := jsClient(t, s)
defer nc.Close()
obs, err := js.CreateObjectStore(&nats.ObjectStoreConfig{Bucket: "OBJS", Description: "testing"})
expectOk(t, err)
blob := make([]byte, 1024*1024+22)
rand.Read(blob)
_, er... | explode_data.jsonl/75489 | {
"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,
3675,
1190,
2522,
1155,
353,
8840,
836,
8,
341,
1903,
1669,
6452,
15944,
35641,
3027,
5475,
741,
16867,
23766,
1141,
692,
197,
1016,
11,
6994,
1669,
6994,
2959,
1155,
11,
274,
340,
16867,
25126,
10421,
2822,
197,
5481,
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 TestDump(t *testing.T) {
ct := newContainerTester(t, testutils.NewToplevelRecorder(), nil, nil)
defer ct.teardown()
sandbox := fakemeta.GetSandboxes(1)[0]
ct.setPodSandbox(sandbox)
ct.createContainer(sandbox, nil, nil)
// Avoid having volatile cloud-init .iso path in the domain
// definition
ct.domainCo... | explode_data.jsonl/41538 | {
"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,
51056,
1155,
353,
8840,
836,
8,
341,
89216,
1669,
501,
4502,
58699,
1155,
11,
1273,
6031,
7121,
51,
67780,
47023,
1507,
2092,
11,
2092,
340,
16867,
20251,
31853,
37496,
2822,
1903,
31536,
1669,
282,
585,
336,
1915,
2234,
470... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestErrors(t *testing.T) {
for _, test := range errorTests {
t.Run(test.name, func(t *testing.T) {
_, err := New(test.name).Parse(test.input, "", "", make(map[string]*Tree))
if err == nil {
t.Fatalf("expected error %q, got nil", test.result)
}
if !strings.Contains(err.Error(), test.result) {
... | explode_data.jsonl/68974 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 173
} | [
2830,
3393,
13877,
1155,
353,
8840,
836,
8,
341,
2023,
8358,
1273,
1669,
2088,
1465,
18200,
341,
197,
3244,
16708,
8623,
2644,
11,
2915,
1155,
353,
8840,
836,
8,
341,
298,
197,
6878,
1848,
1669,
1532,
8623,
2644,
568,
14463,
8623,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestClient_OpenAuthTokenApp(t *testing.T) {
t.Log("========== OpenAuthTokenApp ==========")
var p = alipay.OpenAuthTokenApp{}
p.GrantType = "authorization_code"
p.Code = "5a14fd7482254120a351109daedbdX31"
rsp, err := client.OpenAuthTokenApp(p)
if err != nil {
t.Fatal(err)
}
if rsp.Content.Code != alipay.... | explode_data.jsonl/15851 | {
"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,
2959,
51747,
84708,
2164,
1155,
353,
8840,
836,
8,
341,
3244,
5247,
445,
43256,
5264,
84708,
2164,
284,
885,
428,
340,
2405,
281,
284,
452,
43912,
12953,
84708,
2164,
16094,
3223,
1224,
34434,
929,
284,
330,
39554,
4136,
698... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestCreateDaisyInflater_File_UEFI(t *testing.T) {
source := fileSource{gcsPath: "gs://bucket/vmdk"}
inflater := createDaisyInflaterSafe(t, ImageImportRequest{
Source: source,
OS: "ubuntu-1804",
UefiCompatible: true,
}, imagefile.Metadata{})
daisyutils.CheckWorkflow(inflater.worker, f... | explode_data.jsonl/75637 | {
"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,
4021,
35,
49056,
12342,
34061,
62,
2230,
19426,
1155,
353,
8840,
836,
8,
341,
47418,
1669,
1034,
3608,
90,
70,
4837,
1820,
25,
330,
5857,
1110,
30410,
5457,
2277,
74,
16707,
17430,
11729,
1669,
1855,
35,
49056,
12342,
25663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGetActiveLogIDsEmpty(t *testing.T) {
ctx := context.Background()
cleanTestDB(t, db)
s := NewLogStorage(db, nil)
tx, err := s.Snapshot(context.Background())
if err != nil {
t.Fatalf("Snapshot() = (_, %v), want = (_, nil)", err)
}
defer tx.Close() // nolint: errcheck
ids, err := tx.GetActiveLogIDs(c... | explode_data.jsonl/30704 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 251
} | [
2830,
3393,
1949,
5728,
2201,
30466,
3522,
1155,
353,
8840,
836,
8,
341,
20985,
1669,
2266,
19047,
2822,
1444,
2675,
2271,
3506,
1155,
11,
2927,
340,
1903,
1669,
1532,
2201,
5793,
9791,
11,
2092,
692,
46237,
11,
1848,
1669,
274,
808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestMultiWrite(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
_, mnt := setupIpnsTest(t, nil)
defer mnt.Close()
fpath := mnt.Dir + "/local/file"
fi, err := os.Create(fpath)
if err != nil {
t.Fatal(err)
}
data := randBytes(1001)
for i := 0; i < len(data); i++ {
n, err := fi.Write(data[i : i+... | explode_data.jsonl/77473 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 291
} | [
2830,
3393,
20358,
7985,
1155,
353,
8840,
836,
8,
1476,
743,
7497,
55958,
368,
341,
197,
3244,
57776,
7039,
741,
197,
630,
197,
6878,
296,
406,
1669,
6505,
23378,
4412,
2271,
1155,
11,
2092,
340,
16867,
296,
406,
10421,
2822,
1166,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestFFTSettings_ZeroPolyViaMultiplication_Parametrized(t *testing.T) {
for i := uint8(3); i < 12; i++ {
t.Run(fmt.Sprintf("scale_%d", i), func(t *testing.T) {
for j := int64(0); j < 3; j++ {
t.Run(fmt.Sprintf("case_%d", j), func(t *testing.T) {
testZeroPoly(t, i, int64(i)*1000+j)
})
}
})
}... | explode_data.jsonl/6184 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 164
} | [
2830,
3393,
86414,
6086,
97672,
38164,
54428,
57251,
1693,
27426,
17366,
1506,
1155,
353,
8840,
836,
8,
341,
2023,
600,
1669,
2622,
23,
7,
18,
1215,
600,
366,
220,
16,
17,
26,
600,
1027,
341,
197,
3244,
16708,
28197,
17305,
445,
12445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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_Export(t *testing.T) {
cmd := test.MustRunCluster(t, 1)[0]
host := cmd.URL()
cmd.MustCreateIndex(t, "keyed", pilosa.IndexOptions{Keys: true})
cmd.MustCreateIndex(t, "unkeyed", pilosa.IndexOptions{Keys: false})
cmd.MustCreateField(t, "keyed", "keyedf", pilosa.OptFieldTypeSet(pilosa.CacheTypeRanked... | explode_data.jsonl/60834 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1891
} | [
2830,
3393,
2959,
62,
16894,
1155,
353,
8840,
836,
8,
341,
25920,
1669,
1273,
50463,
6727,
28678,
1155,
11,
220,
16,
6620,
15,
921,
63104,
1669,
5439,
20893,
2822,
25920,
50463,
4021,
1552,
1155,
11,
330,
792,
291,
497,
11459,
11983,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestInBuildCondition(t *testing.T) {
cases := []struct {
name string
inputCond ConditionBuilder
expected string
}{
{
name: "in",
inputCond: ConditionBuilder{
operandList: []OperandBuilder{
NameBuilder{},
NameBuilder{},
NameBuilder{},
NameBuilder{},
NameBuilder{},
... | explode_data.jsonl/27683 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 365
} | [
2830,
3393,
641,
11066,
10547,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
3056,
1235,
341,
197,
11609,
414,
914,
198,
197,
22427,
49696,
15180,
3297,
198,
197,
42400,
220,
914,
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 TestLocalLinearShouldPass1(t *testing.T) {
x := [][]float64{}
y := []float64{}
// throw in some junk points which
// should be more-or-less ignored
// by the weighting
for i := -70.0; i < -65; i += 2 {
for j := -70.0; j < -65; j += 2 {
x = append(x, []float64{i, j})
y = append(y, 20*(rand.Float64()-... | explode_data.jsonl/54592 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 586
} | [
2830,
3393,
7319,
31898,
14996,
12187,
16,
1155,
353,
8840,
836,
8,
341,
10225,
1669,
52931,
3649,
21,
19,
16094,
14522,
1669,
3056,
3649,
21,
19,
31483,
197,
322,
2510,
304,
1045,
29674,
3501,
892,
198,
197,
322,
1265,
387,
803,
2651... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBaseInResourceList(t *testing.T) {
th := kusttest_test.NewKustTestHarness(t, "/app/prod")
th.WriteK("/app/prod", `
namePrefix: b-
resources:
- ../base
`)
th.WriteK("/app/base", `
namePrefix: a-
resources:
- service.yaml
`)
th.WriteF("/app/base/service.yaml", `
apiVersion: v1
kind: Service
metadata:
name:... | explode_data.jsonl/59901 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 262
} | [
2830,
3393,
3978,
641,
4783,
852,
1155,
353,
8840,
836,
8,
341,
70479,
1669,
595,
590,
1944,
4452,
7121,
42,
590,
2271,
74248,
1155,
11,
3521,
676,
18008,
67,
1138,
70479,
4073,
42,
4283,
676,
18008,
67,
497,
22074,
606,
14335,
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... | 2 |
func TestCreateGroupChannel(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()
defer th.TearDown()
Client := th.Client
user := th.BasicUser
user2 := th.BasicUser2
user3 := th.CreateUser()
userIds := []string{user.Id, user2.Id, user3.Id}
rgc, resp := Client.CreateGroupChannel(userIds)
CheckNoError(t,... | explode_data.jsonl/65646 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 722
} | [
2830,
3393,
4021,
2808,
9629,
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,
19060,
1669,
270,
48868,
1474,
198,
19060,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 7 |
func TestCRMAddressesEndpoint_Get(t *testing.T) {
acceptHeaders := []string{"application/json"}
s1 := CRMAddressesPrimaryPropertySample()
type args struct {
ctx context.Context
division int
id *int64
}
tests := []struct {
name string
args args
want *CRMAddresses
wantErr bool
}{
... | explode_data.jsonl/63534 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 767
} | [
2830,
3393,
43516,
52290,
27380,
13614,
1155,
353,
8840,
836,
8,
341,
197,
10330,
10574,
1669,
3056,
917,
4913,
5132,
8931,
16707,
1903,
16,
1669,
40341,
52290,
15972,
3052,
17571,
741,
13158,
2827,
2036,
341,
197,
20985,
414,
2266,
9328,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRequesting_CanTransitionTo(t *testing.T) {
st := &requesting{}
require.Equal(t, stateNameRequesting, st.Name())
require.True(t, st.CanTransitionTo(&deciding{}))
require.True(t, st.CanTransitionTo(&done{}))
require.True(t, st.CanTransitionTo(&abandoning{}))
require.False(t, st.CanTransitionTo(&noOp{}))
... | explode_data.jsonl/66257 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 245
} | [
2830,
3393,
1900,
287,
920,
276,
21768,
1249,
1155,
353,
8840,
836,
8,
341,
18388,
1669,
609,
2035,
287,
16094,
17957,
12808,
1155,
11,
1584,
675,
1900,
287,
11,
357,
2967,
12367,
17957,
32443,
1155,
11,
357,
53280,
21768,
1249,
2099,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBatchDeleteList(t *testing.T) {
var count int
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusNoContent)
count++
}))
objects := []s3.ListObjectsOutput{
{
Contents: []s3.Object{
{
Key: aws.String("1"),
},
},
... | explode_data.jsonl/62308 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 653
} | [
2830,
3393,
21074,
6435,
852,
1155,
353,
8840,
836,
8,
341,
2405,
1760,
526,
271,
41057,
1669,
54320,
70334,
7121,
5475,
19886,
89164,
18552,
3622,
1758,
37508,
11,
435,
353,
1254,
9659,
8,
341,
197,
6692,
69794,
19886,
10538,
2753,
276... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSpanProcessor_NoSeparatorMultipleKeys(t *testing.T) {
factory := NewFactory()
cfg := factory.CreateDefaultConfig()
oCfg := cfg.(*Config)
oCfg.Rename.FromAttributes = []string{"key1", "key2"}
oCfg.Rename.Separator = ""
tp, err := factory.CreateTracesProcessor(context.Background(), componenttest.NewNopPr... | explode_data.jsonl/51040 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 309
} | [
2830,
3393,
12485,
22946,
36989,
16409,
32089,
8850,
1155,
353,
8840,
836,
8,
1476,
1166,
2919,
1669,
1532,
4153,
741,
50286,
1669,
8633,
7251,
3675,
2648,
741,
22229,
42467,
1669,
13286,
41399,
2648,
340,
22229,
42467,
2013,
1840,
11439,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestGenerate_Go_Example_Device(t *testing.T) {
conn, cleanupFunc := pgtest.NewPostgresSchema(t, []string{"schema.sql"})
defer cleanupFunc()
tmpDir := t.TempDir()
err := pggen.Generate(
pggen.GenerateOptions{
ConnString: conn.Config().ConnString(),
QueryFiles: []string{"query.sql"},
OutputDir: tmpD... | explode_data.jsonl/22368 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 404
} | [
2830,
3393,
31115,
2646,
78,
62,
13314,
66780,
1155,
353,
8840,
836,
8,
341,
32917,
11,
21290,
9626,
1669,
17495,
1944,
7121,
4133,
17818,
8632,
1155,
11,
3056,
917,
4913,
17349,
10045,
23625,
16867,
21290,
9626,
2822,
20082,
6184,
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... | 4 |
func TestDiskQueueReaderSkip(t *testing.T) {
// skip offset, skip next, skip end
// skip to read, skip to confirmed
dqName := "test_disk_queue" + strconv.Itoa(int(time.Now().Unix()))
tmpDir, err := ioutil.TempDir("", fmt.Sprintf("nsq-test-%d", time.Now().UnixNano()))
test.Nil(t, err)
defer os.RemoveAll(tmpDir)
... | explode_data.jsonl/58220 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1452
} | [
2830,
3393,
47583,
7554,
5062,
35134,
1155,
353,
8840,
836,
8,
341,
197,
322,
10706,
4347,
11,
10706,
1790,
11,
10706,
835,
198,
197,
322,
10706,
311,
1349,
11,
10706,
311,
10774,
271,
2698,
80,
675,
1669,
330,
1944,
41687,
10841,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSetQuery(t *testing.T) {
d := NewDirectory("z", GetTemplate(t))
assert.Equal(t, "", d.Query)
d.SetQuery(url.Values{"potato": []string{"42"}})
assert.Equal(t, "?potato=42", d.Query)
d.SetQuery(url.Values{})
assert.Equal(t, "", d.Query)
} | explode_data.jsonl/963 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 111
} | [
2830,
3393,
1649,
2859,
1155,
353,
8840,
836,
8,
341,
2698,
1669,
1532,
9310,
445,
89,
497,
2126,
7275,
1155,
1171,
6948,
12808,
1155,
11,
7342,
294,
15685,
340,
2698,
4202,
2859,
6522,
35145,
4913,
19099,
4330,
788,
3056,
917,
4913,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGithubProviderCreateCheckRun(t *testing.T) {
ctx, _ := rtesting.SetupFakeContext(t)
fakeclient, mux, _, teardown := ghtesthelper.SetupGH()
cnx := Provider{
Client: fakeclient,
CheckRunIDS: &sync.Map{},
}
defer teardown()
mux.HandleFunc("/repos/check/info/check-runs", func(w http.ResponseWriter, ... | explode_data.jsonl/40812 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 436
} | [
2830,
3393,
78717,
5179,
4021,
3973,
6727,
1155,
353,
8840,
836,
8,
341,
20985,
11,
716,
1669,
435,
8840,
39820,
52317,
1972,
1155,
340,
1166,
726,
2972,
11,
59807,
11,
8358,
49304,
1669,
342,
426,
477,
18764,
39820,
44676,
741,
1444,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestEditVault(t *testing.T) {
vaultBin, err := plugins.GetVaultBinary(plugins.VaultVersion)
require.NoError(t, err, "failed to find vault binary plugin")
_, o := edit.NewCmdEdit()
scheme := runtime.NewScheme()
ns := "jx"
kubeObjects := []runtime.Object{
&corev1.Secret{
ObjectMeta: metav1.ObjectMeta{
... | explode_data.jsonl/70362 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 844
} | [
2830,
3393,
4036,
79177,
1155,
353,
8840,
836,
8,
341,
5195,
945,
28794,
11,
1848,
1669,
17215,
2234,
79177,
21338,
7,
18716,
5058,
945,
5637,
340,
17957,
35699,
1155,
11,
1848,
11,
330,
16091,
311,
1477,
34584,
7868,
9006,
5130,
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 TestSetLoader(t *testing.T) {
cases := map[string]struct {
setLoader func(*baseapp.BaseApp)
origStoreKey string
loadStoreKey string
}{
"don't set loader": {
origStoreKey: "foo",
loadStoreKey: "foo",
},
"default loader": {
setLoader: useDefaultLoader,
origStoreKey: "foo",
loadStor... | explode_data.jsonl/30024 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 528
} | [
2830,
3393,
1649,
9181,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
2415,
14032,
60,
1235,
341,
197,
8196,
9181,
262,
2915,
4071,
3152,
676,
13018,
2164,
340,
197,
197,
4670,
6093,
1592,
914,
198,
197,
49386,
6093,
1592,
914,
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 TestSQLite_ForeignKey(t *testing.T) {
t.Run("ChangeAction", func(t *testing.T) {
liteRun(t, func(t *liteTest) {
usersT, postsT := t.users(), t.posts()
t.dropTables(postsT.Name, usersT.Name)
t.migrate(&schema.AddTable{T: usersT}, &schema.AddTable{T: postsT})
ensureNoChange(t, postsT, usersT)
post... | explode_data.jsonl/20089 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1476
} | [
2830,
3393,
81772,
1400,
460,
13466,
1155,
353,
8840,
836,
8,
341,
3244,
16708,
445,
4072,
2512,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
8810,
632,
6727,
1155,
11,
2915,
1155,
353,
68078,
2271,
8,
341,
298,
90896,
51,
11,
7999... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSharding(t *testing.T) {
str := strings.Repeat("Splendid. ", 1300000)
name := "m2_singleton_name_2"
foo1 := Foo{S:str}
foo2 := Foo{}
p := NewProvider(memcached)
p.Timeout = time.Second * 4 // can take a while to read/write these big objects
p.ShardCount = 32
if err := p.WriteSingleton(ctx, name, ni... | explode_data.jsonl/10021 | {
"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,
2016,
28410,
1155,
353,
8840,
836,
8,
341,
11355,
1669,
9069,
2817,
10979,
445,
94159,
50403,
13,
3670,
220,
16,
18,
15,
15,
15,
15,
15,
340,
11609,
1669,
330,
76,
17,
82119,
1269,
62,
17,
1837,
197,
7975,
16,
1669,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBuildChunkHeap(t *testing.T) {
if testing.Short() {
t.SkipNow()
}
t.Parallel()
// Create Renter
rt, err := newRenterTesterWithDependency(t.Name(), &dependencies.DependencyDisableRepairAndHealthLoops{})
if err != nil {
t.Fatal(err)
}
defer func() {
if err := rt.Close(); err != nil {
t.Fatal(er... | explode_data.jsonl/3306 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 665
} | [
2830,
3393,
11066,
28304,
27909,
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,
431,
1950,
198,
55060,
11,
1848,
1669,
501,
49,
1950,
58699,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestShouldReturnBadRequestWhenTypeIsInvalid(t *testing.T) {
// mock AccountsFetcher
mockAccounts := &mockAccountsFetcher{}
// mock PBS Analytics Module
mockAnalyticsModule := &eventsMockAnalyticsModule{
Fail: false,
}
// mock config
cfg := &config.Configuration{
AccountDefaults: config.Account{},
}
... | explode_data.jsonl/133 | {
"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,
14996,
5598,
46015,
4498,
929,
3872,
7928,
1155,
353,
8840,
836,
8,
1476,
197,
322,
7860,
40655,
97492,
198,
77333,
41369,
1669,
609,
16712,
41369,
97492,
31483,
197,
322,
7860,
59045,
32427,
13711,
198,
77333,
60539,
3332,
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... | 2 |
func TestDeleteJob_CustomResourceFailure(t *testing.T) {
store, manager, job := initWithJob(t)
defer store.Close()
manager.swfClient = client.NewFakeSwfClientWithBadWorkflow()
err := manager.DeleteJob(job.UUID)
assert.Equal(t, codes.Internal, err.(*util.UserError).ExternalStatusCode())
assert.Contains(t, err.Err... | explode_data.jsonl/77051 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 121
} | [
2830,
3393,
6435,
12245,
57402,
4783,
17507,
1155,
353,
8840,
836,
8,
341,
57279,
11,
6645,
11,
2618,
1669,
13864,
12245,
1155,
340,
16867,
3553,
10421,
2822,
92272,
3064,
69,
2959,
284,
2943,
7121,
52317,
13218,
69,
2959,
2354,
17082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestWhiteListing(t *testing.T) {
framework.Run(t, func(ctx framework.TestContext) {
// Verify you can access productpage right now.
util.SendTrafficAndWaitForExpectedStatus(ing, t, "Sending traffic...", "", 2, http.StatusOK)
g.ApplyConfigOrFail(
t,
bookinfoNs,
bookinfo.PolicyDenyIPRule.LoadWithNam... | explode_data.jsonl/23088 | {
"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,
14075,
52564,
1155,
353,
8840,
836,
8,
341,
1166,
5794,
16708,
1155,
11,
2915,
7502,
12626,
8787,
1972,
8,
341,
197,
197,
322,
25429,
498,
646,
2615,
1985,
2893,
1290,
1431,
624,
197,
79138,
20176,
87229,
92812,
2461,
18896,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestApplyConfig(t *testing.T) {
tempDir := t.TempDir()
tokenPath := filepath.Join(tempDir, "small-config-token")
err := os.WriteFile(tokenPath, []byte("join-token"), 0o644)
require.NoError(t, err)
pkcs11LibPath := filepath.Join(tempDir, "fake-pkcs11-lib.so")
err = os.WriteFile(pkcs11LibPath, []byte("fake-pk... | explode_data.jsonl/47164 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 2283
} | [
2830,
3393,
28497,
2648,
1155,
353,
8840,
836,
8,
341,
16280,
6184,
1669,
259,
65009,
6184,
741,
43947,
1820,
1669,
26054,
22363,
9758,
6184,
11,
330,
9004,
25130,
34841,
1138,
9859,
1669,
2643,
4073,
1703,
13274,
1820,
11,
3056,
3782,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestRetryWorkerMixedErrors(t *testing.T) {
c := &config.Config{
WriterRetryBatches: 1,
WriterRetryInterval: config.NewDuration(100 * time.Millisecond),
WriterRetryTimeout: config.NewDuration(time.Second),
}
batchCh := make(chan []byte, 1)
sendBatch(t, batchCh, "foo")
// Set db writer to returns a te... | explode_data.jsonl/46124 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 292
} | [
2830,
3393,
51560,
21936,
86433,
13877,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
609,
1676,
10753,
515,
197,
197,
6492,
51560,
33,
9118,
25,
220,
220,
16,
345,
197,
197,
6492,
51560,
10256,
25,
2193,
7121,
12945,
7,
16,
15,
15,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestGitCommandCheckoutFile(t *testing.T) {
type scenario struct {
testName string
commitSha string
fileName string
command func(string, ...string) *exec.Cmd
test func(error)
}
scenarios := []scenario{
{
"typical case",
"11af912",
"test999.txt",
test.CreateMockCommand(t, []*test... | explode_data.jsonl/6320 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 465
} | [
2830,
3393,
46562,
4062,
55145,
1703,
1155,
353,
8840,
836,
8,
341,
13158,
15048,
2036,
341,
197,
18185,
675,
220,
914,
198,
197,
197,
17413,
62316,
914,
198,
197,
17661,
675,
220,
914,
198,
197,
45566,
256,
2915,
3609,
11,
2503,
917,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestContext_DIDDocAttachment(t *testing.T) {
prov := getProvider(t)
t.Run("successful new did doc attachment without signing", func(t *testing.T) {
ctx := getContext(t, &prov, kms.ED25519Type, kms.X25519ECDHKWType, transport.MediaTypeRFC0019EncryptedEnvelope)
doc := mockdiddoc.GetMockDIDDoc(t)
att, err ... | explode_data.jsonl/2103 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 885
} | [
2830,
3393,
1972,
1557,
915,
9550,
33569,
1155,
353,
8840,
836,
8,
341,
197,
42947,
1669,
633,
5179,
1155,
692,
3244,
16708,
445,
30950,
501,
1521,
4629,
19984,
2041,
15971,
497,
2915,
1155,
353,
8840,
836,
8,
341,
197,
20985,
1669,
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 TestChainConfig_String(t *testing.T) {
config := DefaultChainConfig()
configStr := `homestead_block:"0" dao_fork_block:"0" dao_fork_support:true eip150_block:"0" eip150_hash:"0x0000000000000000000000000000000000000000000000000000000000000000" eip155_block:"0" eip158_block:"0" byzantium_block:"0" constantinople_b... | explode_data.jsonl/17737 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 172
} | [
2830,
3393,
18837,
2648,
31777,
1155,
353,
8840,
836,
8,
341,
25873,
1669,
7899,
18837,
2648,
741,
25873,
2580,
1669,
1565,
34840,
72337,
7113,
2974,
15,
1,
24775,
761,
669,
7113,
2974,
15,
1,
24775,
761,
669,
25827,
18251,
384,
573,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestBase58WithBitcoinAddresses(t *testing.T) {
testAddr := []string{
"1QCaxc8hutpdZ62iKZsn1TCG3nh7uPZojq",
"1DhRmSGnhPjUaVPAj48zgPV9e2oRhAQFUb",
"17LN2oPYRYsXS9TdYdXCCDvF2FegshLDU2",
"14h2bDLZSuvRFhUL45VjPHJcW667mmRAAn",
}
for ii, vv := range testAddr {
// num := Base58Decode([]byte(vv))
// chk :=... | explode_data.jsonl/30881 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 336
} | [
2830,
3393,
3978,
20,
23,
2354,
48287,
52290,
1155,
353,
8840,
836,
8,
1476,
18185,
13986,
1669,
3056,
917,
515,
197,
197,
1,
16,
61042,
706,
66,
23,
71,
332,
15360,
57,
21,
17,
72,
42,
57,
9613,
16,
7749,
38,
18,
16719,
22,
84,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestIsValidSysctlName(t *testing.T) {
valid := []string{
"a.b.c.d",
"a",
"a_b",
"a-b",
"abc",
"abc.def",
}
invalid := []string{
"",
"*",
"ä",
"a_",
"_",
"__",
"_a",
"_a._b",
"-",
".",
"a.",
".a",
"a.b.",
"a*.b",
"a*b",
"*a",
"a.*",
"*",
"abc*",
"a.abc*",
"a.... | explode_data.jsonl/1062 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 409
} | [
2830,
3393,
55470,
32792,
12373,
675,
1155,
353,
8840,
836,
8,
341,
56322,
1669,
3056,
917,
515,
197,
197,
56693,
948,
520,
950,
756,
197,
197,
56693,
756,
197,
197,
56693,
880,
756,
197,
197,
56693,
1455,
756,
197,
197,
1,
13683,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestAddCompleteFileForNonExistingFile(t *testing.T) {
removeTestFiles()
t.Log("removing Least recently used")
storage := getNewStorageManager()
filename := storage.GetNextFileName()
err := storage.AddCompleteFile(filename)
if err == nil || !strings.Contains(err.Error(), "no such file or directory") {
t.... | explode_data.jsonl/16211 | {
"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,
2212,
12548,
1703,
2461,
8121,
53067,
1703,
1155,
353,
8840,
836,
8,
341,
47233,
2271,
10809,
741,
3244,
5247,
445,
1826,
9130,
90516,
5926,
1483,
1138,
197,
16172,
1669,
633,
3564,
5793,
2043,
2822,
66434,
1669,
5819,
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... | 3 |
func TestMakeDeployment_sink(t *testing.T) {
got, err := MakeIntegration(&CamelArguments{
Name: "test-name",
Namespace: "test-namespace",
Source: v1alpha1.CamelSourceOriginSpec{
DeprecatedComponent: &v1alpha1.CamelSourceOriginComponentSpec{
URI: "timer:tick",
Properties: map[string]string{
"... | explode_data.jsonl/8355 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 811
} | [
2830,
3393,
8078,
75286,
51567,
1155,
353,
8840,
836,
8,
341,
3174,
354,
11,
1848,
1669,
7405,
52464,
2099,
25406,
301,
19139,
515,
197,
21297,
25,
414,
330,
1944,
11494,
756,
197,
90823,
25,
330,
1944,
12,
2231,
756,
197,
197,
3608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLexNextWithWhitespace(t *testing.T) {
l := lex(" zzz \t ggg", nil)
l.acceptWS()
c1 := l.next()
if c1 != 'z' {
t.Errorf("next: unexpected rune %d", c1)
}
l = lex(" /* this is a comment */ aaa", nil)
l.acceptWS()
c1 = l.next()
if c1 != 'a' {
t.Errorf("did not ignore comment")
}
l = lex(" // ... | explode_data.jsonl/81027 | {
"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,
47778,
5847,
2354,
73804,
1155,
353,
8840,
836,
8,
341,
8810,
1669,
22429,
445,
220,
1147,
10400,
1124,
83,
220,
342,
14398,
497,
2092,
340,
8810,
28562,
7433,
741,
1444,
16,
1669,
326,
4529,
741,
743,
272,
16,
961,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 4 |
func TestRemoveMetricsForPods(t *testing.T) {
var tests = []struct {
description string
expected metricsclient.PodMetricsInfo
metrics metricsclient.PodMetricsInfo
pods sets.String
}{
{
"No pods to remove",
metricsclient.PodMetricsInfo{
"test": metricsclient.PodMetric{},
},
metr... | explode_data.jsonl/50900 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 519
} | [
2830,
3393,
13021,
27328,
2461,
23527,
82,
1155,
353,
8840,
836,
8,
341,
2405,
7032,
284,
3056,
1235,
341,
197,
42407,
914,
198,
197,
42400,
262,
16734,
2972,
88823,
27328,
1731,
198,
197,
2109,
13468,
257,
16734,
2972,
88823,
27328,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestNodeManager(t *testing.T) {
n, err := NewNodeManager("/tmp/yuhaiin/nodeManagerTest/config.json")
if err != nil {
t.Error(err)
t.FailNow()
}
_, err = n.AddLink(context.TODO(), &NodeLink{
Name: "test",
Type: "test",
Url: "test",
})
if err != nil {
t.Error(err)
t.FailNow()
}
// _, err = n... | explode_data.jsonl/34735 | {
"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,
1955,
2043,
1155,
353,
8840,
836,
8,
341,
9038,
11,
1848,
1669,
1532,
1955,
2043,
4283,
5173,
26491,
12540,
2143,
258,
37211,
2043,
2271,
14730,
4323,
1138,
743,
1848,
961,
2092,
341,
197,
3244,
6141,
3964,
340,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 3 |
func TestStatefulSetControllerUpdatePodWithNoSet(t *testing.T) {
ssc, _, _ := newFakeStatefulSetController()
set := newStatefulSet(3)
pod := newStatefulSetPod(set, 0)
prev := *pod
fakeResourceVersion(pod)
ssc.updatePod(&prev, pod)
ssc.queue.ShutDown()
key, _ := ssc.queue.Get()
if key != nil {
t.Errorf("State... | explode_data.jsonl/18615 | {
"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,
1397,
1262,
1649,
2051,
4289,
23527,
2354,
2753,
1649,
1155,
353,
8840,
836,
8,
341,
34472,
66,
11,
8358,
716,
1669,
501,
52317,
1397,
1262,
1649,
2051,
741,
8196,
1669,
36848,
1262,
1649,
7,
18,
340,
3223,
347,
1669,
3684... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestSerializeTX(t *testing.T) {
data := `
{
"sha256": "ab1ad3efa1bf2fca51219b73c676dadaf9f446b81acd72f2557fecb7a8e7d243",
"type": 209,
"attributes": [{
"usage": 32,
"data": "4d17abe11020df91ce627af28c03c9c0cfb2a6c4"
}],
"scripts": [],
"gas": 0,
"version": 1,
"hash": "a67d3f9314383c4f7234cc9c8b7cf50602... | explode_data.jsonl/22991 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 557
} | [
2830,
3393,
15680,
22867,
1155,
353,
8840,
836,
8,
341,
8924,
1669,
22074,
515,
197,
1,
15247,
17,
20,
21,
788,
330,
370,
16,
329,
18,
75631,
16,
13233,
17,
69,
924,
20,
16,
17,
16,
24,
65,
22,
18,
66,
21,
22,
21,
55844,
2577,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestNodeInfoCompatible(t *testing.T) {
nodeKey1ID := testNodeID()
nodeKey2ID := testNodeID()
name := "testing"
var newTestChannel byte = 0x2
// test NodeInfo is compatible
ni1 := testNodeInfo(t, nodeKey1ID, name)
ni2 := testNodeInfo(t, nodeKey2ID, name)
assert.NoError(t, ni1.CompatibleWith(ni2))
// add... | explode_data.jsonl/14843 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 353
} | [
2830,
3393,
1955,
1731,
29161,
1155,
353,
8840,
836,
8,
341,
20831,
1592,
16,
915,
1669,
1273,
1955,
915,
741,
20831,
1592,
17,
915,
1669,
1273,
1955,
915,
741,
11609,
1669,
330,
8840,
1837,
2405,
501,
2271,
9629,
4922,
284,
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 Test_environmentGetAll(t *testing.T) {
tests := []struct {
envVars map[string]string
variable string
ok bool
}{
{
envVars: map[string]string{
"PATH": "/bin:/usr/bin",
},
variable: "HOME",
ok: false,
},
{
envVars: map[string]string{
"PATH": "/bin:/usr/bin",
},
... | explode_data.jsonl/15558 | {
"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,
51774,
1949,
2403,
1155,
353,
8840,
836,
8,
341,
78216,
1669,
3056,
1235,
341,
197,
57538,
28305,
220,
2415,
14032,
30953,
198,
197,
2405,
2156,
914,
198,
197,
59268,
981,
1807,
198,
197,
59403,
197,
197,
515,
298,
57538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestHttpProtocol(t *testing.T) {
testProtocol(t, "http/server-event.yml",
"http/server-trace-slow.yml",
"http/server-trace-error.yml",
"http/server-trace-split.yml",
"http/server-trace-normal.yml")
} | explode_data.jsonl/24512 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 93
} | [
2830,
3393,
2905,
20689,
1155,
353,
8840,
836,
8,
341,
18185,
20689,
1155,
11,
330,
1254,
37255,
39687,
33936,
756,
197,
197,
76932,
37255,
10188,
578,
1331,
10303,
33936,
756,
197,
197,
76932,
37255,
10188,
578,
18917,
33936,
756,
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 |
func TestCanListAllEcsClustersOlderThan24hours(t *testing.T) {
t.Parallel()
region := getRandomFargateSupportedRegion()
awsSession, err := newSession(region)
require.NoError(t, err)
cluster1 := createEcsFargateCluster(t, awsSession, util.UniqueID())
defer deleteEcsCluster(awsSession, cluster1)
cluster2 := crea... | explode_data.jsonl/8964 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 398
} | [
2830,
3393,
6713,
852,
2403,
36,
4837,
94992,
18284,
261,
26067,
17,
19,
30382,
1155,
353,
8840,
836,
8,
341,
3244,
41288,
7957,
741,
197,
3943,
1669,
52436,
37,
858,
349,
34636,
14091,
2822,
197,
8635,
5283,
11,
1848,
1669,
501,
5283... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAccAWSServiceDiscoveryService_public(t *testing.T) {
rName := acctest.RandomWithPrefix("tf-acc-test")
resourceName := "aws_service_discovery_service.test"
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() {
testAccPreCheck(t)
testAccPartitionHasServicePreCheck(servicediscovery.EndpointsI... | explode_data.jsonl/59708 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 1009
} | [
2830,
3393,
14603,
14419,
1220,
1017,
67400,
1860,
27074,
1155,
353,
8840,
836,
8,
341,
7000,
675,
1669,
1613,
67880,
26709,
2354,
14335,
445,
8935,
12,
4475,
16839,
1138,
50346,
675,
1669,
330,
8635,
12267,
9932,
7449,
12267,
5958,
1837,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestLogWithMirror(t *testing.T) {
Info("test log")
mdcontext := metadata.NewContext(context.Background(), metadata.MD{metadata.Mirror: "true"})
Infov(mdcontext, KV("key1", "val1"), KV("key2", ""), KV("log", "log content"), KV("msg", "msg content"))
mdcontext = metadata.NewContext(context.Background(), metadat... | explode_data.jsonl/1356 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 211
} | [
2830,
3393,
2201,
2354,
54216,
1155,
353,
8840,
836,
8,
341,
197,
1731,
445,
1944,
1487,
1138,
84374,
2147,
1669,
11160,
7121,
1972,
5378,
19047,
1507,
11160,
1321,
35,
90,
17637,
1321,
28812,
25,
330,
1866,
23625,
197,
1731,
85,
48645,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestAttrsAppendErrorHTTPStatus(t *testing.T) {
c := setupTest([]string{"append", "attrs", "--host", "orion", "--id", "urn:ngsi-ld:Product:010", "--data", "{\"specialOffer\":{\"value\": true}}"})
reqRes := helper.MockHTTPReqRes{}
reqRes.Res.StatusCode = http.StatusBadRequest
reqRes.Path = "/v2/entities/urn:ngs... | explode_data.jsonl/33070 | {
"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,
53671,
23877,
1454,
9230,
2522,
1155,
353,
8840,
836,
8,
341,
1444,
1669,
6505,
2271,
10556,
917,
4913,
5090,
497,
330,
20468,
497,
14482,
3790,
497,
330,
269,
290,
497,
14482,
307,
497,
330,
399,
25,
968,
6321,
12,
507,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestDoHashDoesHashAfterDelay(t *testing.T) {
state := makeState()
index := state.doHash("foo", 0)
time.Sleep(time.Millisecond)
testutil.AssertStringEqual(t, "9_u6bgY2-JDlb7vzKD5STG-jIErimDgtYkdB0NxmODJuKCxBvl5CVNiCB3LFUYosWowMf37aGVlKfrU5RT4e1w==", state.getHash(index), "Hash")
testutil.AssertIntsEqual(t, 0, ... | explode_data.jsonl/67657 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 168
} | [
2830,
3393,
5404,
6370,
21468,
6370,
6025,
20039,
1155,
353,
8840,
836,
8,
341,
24291,
1669,
1281,
1397,
741,
26327,
1669,
1584,
16521,
6370,
445,
7975,
497,
220,
15,
340,
21957,
31586,
9730,
71482,
340,
18185,
1314,
11711,
703,
2993,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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 TestVersionedTreeSpecialCase3(t *testing.T) {
require := require.New(t)
tree := NewMutableTree(db.NewMemDB(), 0)
tree.Set([]byte("m"), []byte("liWT0U6G"))
tree.Set([]byte("G"), []byte("7PxRXwUA"))
tree.SaveVersion()
tree.Set([]byte("7"), []byte("XRLXgf8C"))
tree.SaveVersion()
tree.Set([]byte("r"), []byt... | explode_data.jsonl/25123 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 265
} | [
2830,
3393,
5637,
291,
6533,
20366,
4207,
18,
1155,
353,
8840,
836,
8,
341,
17957,
1669,
1373,
7121,
1155,
340,
51968,
1669,
1532,
11217,
6533,
9791,
7121,
18816,
3506,
1507,
220,
15,
692,
51968,
4202,
10556,
3782,
445,
76,
3975,
3056,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 1 |
func TestParseEnrollmentResponse(t *testing.T) {
examples := map[string]structures.Enrollment{
"{\"enrollment\":\"y\"}": structures.EnrollmentYes,
"{\"enrollment\":\"n\"}": structures.EnrollmentNo,
"{\"enrollment\":\"abracadabra\"}": structures.EnrollmentUnknown,
}
for input, expectedOutpu... | explode_data.jsonl/9311 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 237
} | [
2830,
3393,
14463,
1702,
25864,
2582,
1155,
353,
8840,
836,
8,
341,
8122,
4023,
1669,
2415,
14032,
60,
46094,
22834,
25864,
515,
197,
197,
14129,
2105,
268,
25864,
23488,
88,
2105,
92,
788,
1843,
14389,
22834,
25864,
9454,
345,
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 TestMatchQueryParams(t *testing.T) {
cases := []struct {
value string
path string
matches bool
}{
{"foo=bar", "foo=bar", true},
{"foo=bar", "foo=foo&foo=bar", true},
{"foo=b*", "foo=bar", true},
{"foo=.*", "foo=bar", true},
{"foo=f[o]{2}", "foo=foo", true},
{"foo=bar&bar=foo", "foo=bar&foo... | explode_data.jsonl/9202 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 346
} | [
2830,
3393,
8331,
2859,
4870,
1155,
353,
8840,
836,
8,
341,
1444,
2264,
1669,
3056,
1235,
341,
197,
16309,
256,
914,
198,
197,
26781,
262,
914,
198,
197,
2109,
9118,
1807,
198,
197,
59403,
197,
197,
4913,
7975,
28,
2257,
497,
330,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | 2 |
func TestNewWithHTTPCLient(t *testing.T) {
// Callers can pass an http.Client to
// the fetcher via WithClient.
// Ensure that the fetcher does not
// override it.
httpClient := &http.Client{}
apiClient := client.NewAPIClient(
client.NewConfiguration(
"https://serveraddress",
DefaultUserAgent,
httpClie... | explode_data.jsonl/24510 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 171
} | [
2830,
3393,
3564,
2354,
9230,
3140,
1167,
1155,
353,
8840,
836,
8,
341,
197,
322,
7143,
388,
646,
1494,
458,
1758,
11716,
311,
198,
197,
322,
279,
7807,
261,
4566,
3085,
2959,
624,
197,
322,
29279,
429,
279,
7807,
261,
1558,
537,
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 TestReleaseInstancePublicConnection(t *testing.T) {
var req ReleaseInstancePublicConnectionRequest
req.Init()
req.SetFormat("JSON")
req.SetRegionId("cn-shenzhen")
var accessId = "Ie65kUInu5GeAsma"
var accessSecret = "8cCqoxdYU9zKUihwXFXiN1HEACBDwB"
resp, err := ReleaseInstancePublicConnection(&req, accessId... | explode_data.jsonl/48379 | {
"file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl",
"token_count": 168
} | [
2830,
3393,
16077,
2523,
12676,
4526,
1155,
353,
8840,
836,
8,
341,
2405,
4232,
17381,
2523,
12676,
4526,
1900,
198,
24395,
26849,
741,
24395,
4202,
4061,
445,
5370,
1138,
24395,
4202,
14091,
764,
445,
14271,
7514,
78411,
1138,
2405,
2615... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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.