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 TestParseFilesWithImportsNoImportPath(t *testing.T) { relFilePaths := []string{ "a/b/b1.proto", "a/b/b2.proto", "c/c.proto", } pwd, err := os.Getwd() assert.Nil(t, err, "%v", err) err = os.Chdir("internal/testprotos/more") assert.Nil(t, err, "%v", err) defer func() { // restore working directory ...
explode_data.jsonl/18030
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 270 }
[ 2830, 3393, 14463, 10809, 2354, 31250, 2753, 11511, 1820, 1155, 353, 8840, 836, 8, 341, 197, 3748, 19090, 82, 1669, 3056, 917, 515, 197, 197, 56693, 3470, 3470, 16, 57322, 756, 197, 197, 56693, 3470, 3470, 17, 57322, 756, 197, 197, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSrcStreamerNext(t *testing.T) { tmpDir := filepath.Join("_test", "fixtures") Convey("With no previous Streamers", t, func() { Convey("It should load its own files right away", func() { s := &SrcStreamer{ Sources: []string{filepath.Join(tmpDir, "hello")}, } fi, r, err := s.Next(nil, nil) So...
explode_data.jsonl/18041
{ "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, 20360, 80063, 5847, 1155, 353, 8840, 836, 8, 341, 20082, 6184, 1669, 26054, 22363, 16975, 1944, 497, 330, 45247, 5130, 93070, 5617, 445, 2354, 902, 3681, 9203, 388, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 2132, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateRemoveAdapter(t *testing.T) { ctx, _ := rectesting.SetupFakeContext(t) adapter := mtpingAdapter{ logger: logging.FromContext(ctx), runner: &testRunner{}, entryidMu: sync.RWMutex{}, entryids: make(map[string]cron.EntryID), } adapter.Update(ctx, &sourcesv1.PingSource{ ObjectMeta: meta...
explode_data.jsonl/48892
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 4289, 13021, 5940, 1155, 353, 8840, 836, 8, 341, 20985, 11, 716, 1669, 7608, 59855, 39820, 52317, 1972, 1155, 340, 197, 19731, 1669, 296, 790, 287, 5940, 515, 197, 17060, 25, 262, 8392, 11439, 1972, 7502, 1326, 197, 197, 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 TestConfigGzipMissing(t *testing.T) { var data = "" newTestConfig(data, func(c Config, seq sequence) { c.loadGzip(seq) assert.Empty(t, c.gzipPatterns.globs) }) }
explode_data.jsonl/8671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 2648, 38, 9964, 25080, 1155, 353, 8840, 836, 8, 341, 2405, 821, 284, 8389, 8638, 2271, 2648, 2592, 11, 2915, 1337, 5532, 11, 12981, 8500, 8, 341, 197, 1444, 5104, 38, 9964, 34820, 340, 197, 6948, 11180, 1155, 11, 272, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestAddOrUpdateUserSig(t *testing.T) { testUserSig1 := &unstructured.Unstructured{ Object: map[string]interface{}{ "metadata": map[string]interface{}{ "namespace": "testing", "name": "test1", "uid": "1", "creationTimestamp": "2020-01-23T18:32:02Z", }, ...
explode_data.jsonl/19386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2370 }
[ 2830, 3393, 2212, 56059, 1474, 47246, 1155, 353, 8840, 836, 8, 341, 18185, 1474, 47246, 16, 1669, 609, 359, 51143, 10616, 51143, 515, 197, 23816, 25, 2415, 14032, 31344, 67066, 298, 197, 1, 17637, 788, 2415, 14032, 31344, 67066, 571, 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...
4
func TestMapProxy_ForceUnlockWithNilKey(t *testing.T) { err := mp.ForceUnlock(nil) AssertErrorNotNil(t, err, "forceUnlock did not return an error for nil key") mp.Clear() }
explode_data.jsonl/56994
{ "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, 2227, 16219, 1400, 16316, 49679, 2354, 19064, 1592, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 10490, 991, 16316, 49679, 27907, 340, 18017, 1454, 96144, 1155, 11, 1848, 11, 330, 8833, 49679, 1521, 537, 470, 458, 1465, 369, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestRemittanceOriginatorAddressLineFiveAlphaNumeric(t *testing.T) { ro := mockRemittanceOriginator() ro.RemittanceData.AddressLineFive = "®" err := ro.Validate() require.EqualError(t, err, fieldError("AddressLineFive", ErrNonAlphanumeric, ro.RemittanceData.AddressLineFive).Error()) }
explode_data.jsonl/32936
{ "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, 6590, 87191, 13298, 850, 4286, 2460, 37020, 19384, 36296, 1155, 353, 8840, 836, 8, 341, 197, 299, 1669, 7860, 6590, 87191, 13298, 850, 741, 197, 299, 11398, 87191, 1043, 26979, 2460, 37020, 284, 330, 11909, 1837, 9859, 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 TestDelayEnabled(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() checkDelayOption(t, c, false, false) // Delay is disabled by default. for _, delayEnabled := range []bool{false, true} { t.Run(fmt.Sprintf("delayEnabled=%t", delayEnabled), func(t *testing.T) { c := context.New(t, defaultM...
explode_data.jsonl/76019
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 20039, 5462, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 741, 25157, 20039, 5341, 1155, 11, 272, 11, 895, 11, 895, 8, 442, 39793, 374, 8386, 553, 1638, 382...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEventsUserError(t *testing.T) { svc, err := New(&protocol.MockProvider{ ServiceMap: map[string]interface{}{ mediator.Coordination: &mockroute.MockMediatorSvc{}, }, }) require.NoError(t, err) actionCh := make(chan service.DIDCommAction, 10) err = svc.RegisterActionEvent(actionCh) require.NoError(t...
explode_data.jsonl/30525
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 483 }
[ 2830, 3393, 7900, 1474, 1454, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 11, 1848, 1669, 1532, 2099, 17014, 24664, 5179, 515, 197, 91619, 2227, 25, 2415, 14032, 31344, 67066, 298, 197, 4404, 850, 52114, 98244, 25, 609, 16712, 8966, 24664...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOutboundConnContext(t *testing.T) { opts := testutils.NewOpts().NoRelay() testutils.WithTestServer(t, opts, func(t testing.TB, ts *testutils.TestServer) { alice := ts.Server() testutils.RegisterFunc(alice, "echo", func(ctx context.Context, args *raw.Args) (*raw.Res, error) { assert.Equal(t, "bar", ctx...
explode_data.jsonl/78213
{ "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, 2662, 10891, 9701, 1972, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 1273, 6031, 7121, 43451, 1005, 2753, 6740, 352, 741, 18185, 6031, 26124, 2271, 5475, 1155, 11, 12185, 11, 2915, 1155, 7497, 836, 33, 11, 10591, 353, 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...
1
func TestEllipsisString(t *testing.T) { assert.Equal(t, "...", EllipsisString("foobar", 0)) assert.Equal(t, "...", EllipsisString("foobar", 1)) assert.Equal(t, "...", EllipsisString("foobar", 2)) assert.Equal(t, "...", EllipsisString("foobar", 3)) assert.Equal(t, "f...", EllipsisString("foobar", 4)) assert.Equal(...
explode_data.jsonl/14317
{ "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, 42710, 47402, 703, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 38713, 497, 13542, 47402, 703, 445, 50267, 497, 220, 15, 1171, 6948, 12808, 1155, 11, 38713, 497, 13542, 47402, 703, 445, 50267, 497, 220, 16, 1171, 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 TestRedefinition(t *testing.T) { var tmpl *Template var err error if tmpl, err = New("tmpl1").Parse(`{{define "test"}}foo{{end}}`); err != nil { t.Fatalf("parse 1: %v", err) } if _, err = tmpl.Parse(`{{define "test"}}bar{{end}}`); err != nil { t.Fatalf("got error %v, expected nil", err) } if _, err = tm...
explode_data.jsonl/71988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 49, 4219, 4054, 1155, 353, 8840, 836, 8, 341, 2405, 79839, 353, 7275, 198, 2405, 1848, 1465, 198, 743, 79839, 11, 1848, 284, 1532, 445, 71359, 16, 1827, 14463, 5809, 2979, 1289, 330, 1944, 30975, 7975, 2979, 408, 3417, 63,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMinifyArguments(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` function a(x = arguments) { let arguments } function b(x = arguments) { let arguments } function c(x = arguments) { let arguments } a() b() c...
explode_data.jsonl/38578
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 6217, 1437, 19139, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 7527, 264, 2075, 284, 5977, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValueBinder_UnixTime(t *testing.T) { exampleTime, _ := time.Parse(time.RFC3339, "2020-12-28T18:36:43+00:00") // => 1609180603 var testCases = []struct { name string givenFailFast bool givenBindErrors []error whenURL string whenMust bool expectValue time.Time expe...
explode_data.jsonl/82562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1339 }
[ 2830, 3393, 1130, 44055, 40687, 941, 1462, 1155, 353, 8840, 836, 8, 341, 8122, 1516, 1462, 11, 716, 1669, 882, 8937, 9730, 2013, 6754, 18, 18, 18, 24, 11, 330, 17, 15, 17, 15, 12, 16, 17, 12, 17, 23, 51, 16, 23, 25, 18, 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...
4
func TestGetResourceManagerProcessingStates(t *testing.T) { expect := []string{ pbtask.TaskState_LAUNCHING.String(), pbtask.TaskState_PENDING.String(), pbtask.TaskState_READY.String(), pbtask.TaskState_PLACING.String(), pbtask.TaskState_PLACED.String(), pbtask.TaskState_PREEMPTING.String(), } states := G...
explode_data.jsonl/68865
{ "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, 1949, 32498, 28892, 23256, 1155, 353, 8840, 836, 8, 341, 24952, 1669, 3056, 917, 515, 197, 3223, 65, 8202, 28258, 1397, 83759, 53756, 1718, 6431, 3148, 197, 3223, 65, 8202, 28258, 1397, 56614, 6431, 3148, 197, 3223, 65, 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 Test_Echo_Bad_Method(t *testing.T) { e := newEcho() req := httptest.NewRequest(http.MethodPost, "http://example.com/hello/world", nil) res := httptest.NewRecorder() e.ServeHTTP(res, req) require.Equal(t, http.StatusBadRequest, res.Code) }
explode_data.jsonl/54631
{ "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, 2089, 958, 1668, 329, 44844, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 501, 74994, 2822, 24395, 1669, 54320, 70334, 75274, 19886, 20798, 4133, 11, 330, 1254, 1110, 8687, 905, 7530, 4791, 78892, 497, 2092, 340, 10202, 1669, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuiltinsError(t *testing.T) { _, err := Trim("foo", "bar") if err == nil { t.Fatal("should be fail") } _, err = ToUpper("foo", "bar") if err == nil { t.Fatal("should be fail") } _, err = ToLower("foo", "bar") if err == nil { t.Fatal("should be fail") } _, err = Repeat("foo", "bar", "baz") if e...
explode_data.jsonl/80432
{ "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, 54300, 1330, 1454, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 44376, 445, 7975, 497, 330, 2257, 1138, 743, 1848, 621, 2092, 341, 197, 3244, 26133, 445, 5445, 387, 3690, 1138, 197, 532, 197, 6878, 1848, 284, 2014,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDescribeLimitRange(t *testing.T) { fake := fake.NewSimpleClientset(&api.LimitRange{ ObjectMeta: metav1.ObjectMeta{ Name: "mylr", Namespace: "foo", }, Spec: api.LimitRangeSpec{ Limits: []api.LimitRangeItem{ { Type: api.LimitTypePod, Max: getRes...
explode_data.jsonl/34931
{ "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, 74785, 16527, 6046, 1155, 353, 8840, 836, 8, 341, 1166, 726, 1669, 12418, 7121, 16374, 2959, 746, 2099, 2068, 1214, 2353, 6046, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 21297, 25, 414, 330, 2408, 19018, 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...
4
func TestFailClosedOnInvalidPod(t *testing.T) { plugin := newTestAdmission(nil, nil, nil) pod := &v1kapi.Pod{} attrs := kadmission.NewAttributesRecord(pod, nil, kapi.Kind("Pod").WithVersion("version"), pod.Namespace, pod.Name, kapi.Resource("pods").WithVersion("version"), "", kadmission.Create, &user.DefaultInfo{}) ...
explode_data.jsonl/25924
{ "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, 19524, 26884, 1925, 7928, 23527, 1155, 353, 8840, 836, 8, 341, 197, 9138, 1669, 501, 2271, 2589, 2728, 27907, 11, 2092, 11, 2092, 340, 3223, 347, 1669, 609, 85, 16, 74, 2068, 88823, 16094, 197, 20468, 1669, 68044, 2728, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateArchiveAndGoRoutines(t *testing.T) { contents := "No Goroutines for you, my friend!" ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "%s", contents) })) defer ts.Close() pprofURL = ts.URL zipFilePath := getArchivePath() filePath, err :=...
explode_data.jsonl/18211
{ "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, 4021, 42502, 3036, 10850, 49, 28628, 1155, 353, 8840, 836, 8, 1476, 197, 17610, 1669, 330, 2753, 46147, 28628, 369, 498, 11, 847, 4238, 17199, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 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 TestWrite_Progress_WithNonDistributableLayer_AndIncludeNonDistributableLayersOption(t *testing.T) { ociLayer, err := random.Layer(1000, types.OCILayer) if err != nil { t.Fatal(err) } nonDistributableLayer, err := random.Layer(1000, types.OCIRestrictedLayer) if err != nil { t.Fatal(err) } img, err := m...
explode_data.jsonl/76481
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 7985, 16670, 2483, 62, 2354, 8121, 35, 4789, 5922, 9188, 93846, 22283, 8121, 35, 4789, 5922, 40235, 5341, 1155, 353, 8840, 836, 8, 341, 197, 2119, 9188, 11, 1848, 1669, 4194, 66074, 7, 16, 15, 15, 15, 11, 4494, 13, 7612,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadAnchorPeersUpdates(t *testing.T) { configTxDest := filepath.Join(tmpDir, "anchorPeerUpdate") config := configtxgentest.Load(genesisconfig.SampleSingleMSPChannelProfile) assert.Error(t, doOutputAnchorPeersUpdate(config, "foo", configTxDest, ""), "Bad anchorPeerUpdate request - asOrg empty") backupAppl...
explode_data.jsonl/14592
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 17082, 14677, 10197, 388, 37091, 1155, 353, 8840, 836, 8, 341, 25873, 51, 15764, 477, 1669, 26054, 22363, 10368, 6184, 11, 330, 17109, 30888, 4289, 5130, 25873, 1669, 2193, 3998, 15772, 477, 13969, 36884, 13774, 1676, 76266, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJoinUserToTeam(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() id := model.NewId() team := &model.Team{ DisplayName: "dn_" + id, Name: "name" + id, Email: "success+" + id + "@simulator.amazonses.com", Type: model.TEAM_OPEN, } _, err := th.App.CreateTeam(team) ...
explode_data.jsonl/30276
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2131 }
[ 2830, 3393, 12292, 1474, 1249, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 15710, 1669, 1614, 7121, 764, 741, 197, 9196, 1669, 609, 2528, 65842, 515, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStandardCheckOk(t *testing.T) { v := okCheck.Check() if v.Status != check.Success { t.Errorf("Wrong status: %d", v.Status) } if v.Output != "OK: messMeth: 0.90" { t.Errorf("Wrong message: %s", v.Output) } }
explode_data.jsonl/49829
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 19781, 3973, 11578, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 5394, 3973, 10600, 2822, 743, 348, 10538, 961, 1779, 33320, 341, 197, 3244, 13080, 445, 29185, 2639, 25, 1018, 67, 497, 348, 10538, 340, 197, 630, 743, 348, 342...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReaderLagWhenConsumerGroupsEnabled(t *testing.T) { r := &Reader{config: ReaderConfig{GroupID: "not-zero"}} if offset := r.Lag(); offset != -1 { t.Fatalf("expected -1; got %v", offset) } }
explode_data.jsonl/80371
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 5062, 43, 351, 4498, 29968, 22173, 5462, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 5062, 90, 1676, 25, 25166, 2648, 90, 2808, 915, 25, 330, 1921, 36929, 95642, 743, 4347, 1669, 435, 1214, 351, 2129, 4347, 961, 481, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartAcquisitionTailError(t *testing.T) { sources := []DataSource{ &MockTailError{}, } out := make(chan types.Event) acquisTomb := tomb.Tomb{} go func() { if err := StartAcquisition(sources, out, &acquisTomb); err != nil && err.Error() != "got error (tomb)" { t.Fatalf("expected error, got '%s'", e...
explode_data.jsonl/29483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 3479, 11654, 17204, 44795, 1454, 1155, 353, 8840, 836, 8, 341, 1903, 2360, 1669, 3056, 17173, 515, 197, 197, 5, 11571, 44795, 1454, 38837, 197, 532, 13967, 1669, 1281, 35190, 4494, 6904, 340, 81200, 9202, 51, 2855, 1669, 430...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveKeisen(t *testing.T) { opt := NewOption() tp := newTextProcessor(opt) for r := 0x2500; r <= 0x257F; r++ { actual := tp.eliminateRuledLine(fmt.Sprintf("%c", r)) expected := "" if actual != expected { t.Errorf("expected %v, but got %v", expected, actual) } } }
explode_data.jsonl/25041
{ "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, 13021, 6608, 23129, 1155, 353, 8840, 836, 8, 341, 64838, 1669, 1532, 5341, 741, 73423, 1669, 94653, 22946, 24539, 692, 2023, 435, 1669, 220, 15, 87, 17, 20, 15, 15, 26, 435, 2651, 220, 15, 87, 17, 20, 22, 37, 26, 435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArgToString(t *testing.T) { assert.Equal(t, argToString(true), "TRUE") assert.Equal(t, argToString(false), "FALSE") assert.Equal(t, argToString(int(-32)), "-32") assert.Equal(t, argToString(uint(32)), "32") assert.Equal(t, argToString(int8(-43)), "-43") assert.Equal(t, argToString(uint8(43)), "43") ass...
explode_data.jsonl/25854
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 607 }
[ 2830, 3393, 2735, 5870, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 1392, 5870, 3715, 701, 330, 20611, 1138, 6948, 12808, 1155, 11, 1392, 5870, 3576, 701, 330, 30351, 5130, 6948, 12808, 1155, 11, 1392, 5870, 1548, 4080, 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...
1
func TestClient_ChangePassword(t *testing.T) { t.Parallel() app, cleanup := cltest.NewApplication(t, cltest.EthMockRegisterChainID) defer cleanup() require.NoError(t, app.Start()) enteredStrings := []string{cltest.APIEmail, cltest.Password} prompter := &cltest.MockCountingPrompter{EnteredStrings: enteredStrings...
explode_data.jsonl/78857
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 382 }
[ 2830, 3393, 2959, 27588, 844, 4876, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 28236, 11, 21290, 1669, 1185, 1944, 7121, 4988, 1155, 11, 1185, 1944, 5142, 339, 11571, 8690, 18837, 915, 340, 16867, 21290, 741, 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...
1
func TestContainsExpressionNilVal(t *testing.T) { ctx := test.NewTestContext(t) c1 := ctx.NewCollection() c1.MustAdd(hipathsys.NewInteger(10)) e := NewContainsExpression(newTestExpression(c1), NewEmptyLiteral(), false) res, err := e.Evaluate(ctx, nil, nil) assert.NoError(t, err, "no error expected") assert.Nil(...
explode_data.jsonl/54558
{ "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, 23805, 9595, 19064, 2208, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1273, 7121, 2271, 1972, 1155, 340, 1444, 16, 1669, 5635, 7121, 6482, 741, 1444, 16, 50463, 2212, 7, 2151, 587, 7791, 7121, 3486, 7, 16, 15, 4390, 7727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolve(t *testing.T) { io := NewIoContext() s := NewReactiveSocket(io) c := context.Background() noerr := false addrs := "" s.AsyncResolve(c, "localhost", 8888, func(address string, err error) { noerr = err == nil addrs += address }) timer := NewDeadlineTimer(io) timer.ExpiresFromNow(time.Milli...
explode_data.jsonl/60780
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 56808, 1155, 353, 8840, 836, 8, 341, 53112, 1669, 1532, 42799, 1972, 741, 1903, 1669, 1532, 693, 3028, 10286, 37258, 340, 1444, 1669, 2266, 19047, 2822, 72104, 615, 1669, 895, 198, 12718, 5428, 1669, 8389, 1903, 44119, 56808, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSharedPatchAllowed(t *testing.T) { th := kusttest_test.NewKustTestHarnessFull( t, "/app/overlay", loader.RestrictionNone, plugins.DefaultPluginConfig()) writeSmallBase(th) th.WriteK("/app/overlay", ` commonLabels: env: prod resources: - ../base patchesStrategicMerge: - ../shared/deployment-patch.yaml ...
explode_data.jsonl/59905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 501 }
[ 2830, 3393, 16997, 43622, 35382, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 595, 590, 1944, 4452, 7121, 42, 590, 2271, 74248, 9432, 1006, 197, 3244, 11, 3521, 676, 14, 21118, 756, 197, 197, 8355, 77850, 2479, 4064, 11, 17215, 13275, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGroupBatchGetFromLocal(t *testing.T) { once.Do(testSetup) peerList := fakePeers([]ProtoGetter{nil}) getter := func(_ context.Context, keyList []string, destList []Sink) []error { errList := make([]error, 0) for i := 0; i < len(keyList); i++ { val := "" dest := StringSink(&val) indexStr := strco...
explode_data.jsonl/62853
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 2808, 21074, 1949, 3830, 7319, 1155, 353, 8840, 836, 8, 341, 197, 13184, 33596, 8623, 21821, 340, 197, 16537, 852, 1669, 12418, 10197, 388, 10556, 31549, 31485, 90, 8385, 3518, 10366, 465, 1669, 2915, 2490, 2266, 9328, 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...
3
func TestCrossCompile(t *testing.T) { testcases := []struct { TestName string typrls.CrossCompiler TagName string RunExpectations []*typgo.MockCommand ExpectedErr string }{ { CrossCompiler: typrls.CrossCompiler{ Targets: []typrls.Target{"darwin/amd64", "linux/amd64"}, }, TagName:...
explode_data.jsonl/71797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 898 }
[ 2830, 3393, 28501, 46126, 1155, 353, 8840, 836, 8, 1476, 18185, 23910, 1669, 3056, 1235, 341, 197, 73866, 675, 914, 198, 197, 197, 1881, 649, 4730, 64663, 38406, 198, 197, 197, 22616, 260, 914, 198, 197, 85952, 17536, 804, 29838, 3653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSingleGolden(t *testing.T) { var tests []Test b, err := os.ReadFile(filepath.Join("testdata", "curlp81.json")) require.NoError(t, err) require.NoError(t, json.Unmarshal(b, &tests)) for i, tt := range tests { t.Run(fmt.Sprintf("test vector#%d", i), func(t *testing.T) { inTrits := trinary.MustTrytesTo...
explode_data.jsonl/45214
{ "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, 10888, 59790, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 3056, 2271, 198, 2233, 11, 1848, 1669, 2643, 78976, 34793, 22363, 445, 92425, 497, 330, 19925, 79, 23, 16, 4323, 5455, 17957, 35699, 1155, 11, 1848, 340, 17957, 35699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContextAbortWithStatus(t *testing.T) { w := httptest.NewRecorder() c, _ := CreateTestContext(w) c.index = 4 c.AbortWithStatus(http.StatusUnauthorized) assert.Equal(t, abortIndex, c.index) assert.Equal(t, http.StatusUnauthorized, c.Writer.Status()) assert.Equal(t, http.StatusUnauthorized, w.Code) asse...
explode_data.jsonl/26811
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 1972, 85891, 2354, 2522, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 716, 1669, 4230, 2271, 1972, 3622, 692, 1444, 5154, 284, 220, 19, 198, 1444, 25206, 371, 2354, 2522, 19886, 10538, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecreateAllNamespaces(t *testing.T) { // Arrange iCmd := RecreateCommand("ingress", "--all-namespaces", ) ingressesBefore := mustGetAllIngressesInCluster(t) // Act mustExecute(t, iCmd) // Assert for _, ingressesAfter := range ingressesBefore { afterIngress, err := clientset.NetworkingV1beta1().In...
explode_data.jsonl/68717
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 693, 3182, 2403, 7980, 27338, 1155, 353, 8840, 836, 8, 341, 197, 322, 40580, 198, 8230, 15613, 1669, 4067, 964, 4062, 445, 287, 673, 756, 197, 197, 74757, 541, 89044, 27338, 756, 197, 340, 197, 287, 43257, 10227, 1669, 196...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEvaluateConditionalSectionToString_False1(t *testing.T) { content := "property1: true\n#? if var.BAR == \"invalid\" {\n# property2: false\n#? }\nproperty3: true" expectation := "property1: true\nproperty3: true" result := EvaluateConditionalSectionsToString(content, templateData, varMap) assert.Equal(t, ex...
explode_data.jsonl/67922
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 82345, 79233, 9620, 5870, 1400, 710, 16, 1155, 353, 8840, 836, 8, 341, 27751, 1669, 330, 3699, 16, 25, 830, 1699, 2, 30, 421, 762, 1785, 934, 621, 7245, 11808, 2105, 28152, 77, 2, 3343, 17, 25, 895, 1699, 2, 30, 51300,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublishInvalidEventTypeVersion(t *testing.T) { payload := buildTestPayload(testSourceID, testEventType, testEventTypeVersionInvalid, testEventID, testEventTime, testData) body, statusCode := performPublishRequest(t, publishServer.URL, payload) assertExpectedError(t, body, statusCode, http.StatusBadRequest...
explode_data.jsonl/74417
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 50145, 7928, 47906, 5637, 1155, 353, 8840, 836, 8, 341, 76272, 1669, 1936, 2271, 29683, 8623, 3608, 915, 11, 1273, 47906, 11, 1273, 47906, 5637, 7928, 11, 1273, 1556, 915, 345, 197, 18185, 1556, 1462, 11, 67348, 340, 35402, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Float32(t *testing.T) { a := assert.New(t) a.Equal(Float32(0, 1), float32(1)) a.Equal(Float32(2, 1), float32(2)) var s float32 a.Equal(Float32(s, 1), float32(1)) }
explode_data.jsonl/12073
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 89067, 18, 17, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 692, 11323, 12808, 57178, 18, 17, 7, 15, 11, 220, 16, 701, 2224, 18, 17, 7, 16, 1171, 11323, 12808, 57178, 18, 17, 7, 17, 11, 220, 16, 701, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserListInvitations(t *testing.T) { client, _ := New("https://bitbucket.example.com") invites, res, err := client.Users.ListInvitations(context.Background()) assert.Len(t, invites, 0, "Should be an empty list") assert.Equal(t, res.Status, 200, "Should be success response") assert.NoError(t, err, "Should...
explode_data.jsonl/45535
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 1474, 852, 15174, 30667, 1155, 353, 8840, 836, 8, 341, 25291, 11, 716, 1669, 1532, 445, 2428, 1110, 4489, 30410, 7724, 905, 5130, 197, 14057, 3611, 11, 592, 11, 1848, 1669, 2943, 36782, 5814, 15174, 30667, 5378, 19047, 12367...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSeparate(t *testing.T) { for _, val := range []string{"-f one", "-f=one", "--foo one", "--foo=one"} { var args struct { Foo []string `arg:"--foo,-f,separate"` } err := parse(val, &args) require.NoError(t, err) assert.Equal(t, []string{"one"}, args.Foo) } }
explode_data.jsonl/13071
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 14492, 349, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1044, 1669, 2088, 3056, 917, 4913, 12, 69, 825, 497, 6523, 69, 28, 603, 497, 14482, 7975, 825, 497, 14482, 7975, 28, 603, 9207, 341, 197, 2405, 2827, 2036, 341, 298, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNextFunctionReturn(t *testing.T) { testcases := []nextTest{ {13, 14}, {14, 15}, {15, 35}, } protest.AllowRecording(t) testseq("testnextprog", contNext, testcases, "main.helloworld", t) }
explode_data.jsonl/56208
{ "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, 5847, 5152, 5598, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 3600, 2271, 515, 197, 197, 90, 16, 18, 11, 220, 16, 19, 1583, 197, 197, 90, 16, 19, 11, 220, 16, 20, 1583, 197, 197, 90, 16, 20, 11, 220, 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 TestWatchlistItemID(t *testing.T) { cases := []struct { Input string Valid bool }{ { // empty Input: "", Valid: false, }, { // missing SubscriptionId Input: "/", Valid: false, }, { // missing value for SubscriptionId Input: "/subscriptions/", Valid: false, }, { ...
explode_data.jsonl/77155
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1114 }
[ 2830, 3393, 14247, 1607, 1234, 915, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 66588, 914, 198, 197, 197, 4088, 1807, 198, 197, 92, 4257, 197, 197, 515, 298, 197, 322, 4287, 198, 298, 66588, 25, 8324, 298,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestScrapeLoopRunReportsTargetDownOnScrapeError(t *testing.T) { var ( scraper = &testScraper{} appender = &collectResultAppender{} app = func() storage.Appender { return appender } ) ctx, cancel := context.WithCancel(context.Background()) sl := newScrapeLoop(ctx, scraper, nil, nil, nopMutato...
explode_data.jsonl/56132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 3326, 19842, 14620, 6727, 23748, 6397, 4454, 1925, 3326, 19842, 1454, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1903, 86282, 220, 284, 609, 1944, 65508, 3191, 16094, 197, 28236, 1659, 284, 609, 17384, 2077, 2164, 1659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccountServer_RateLimit(t *testing.T) { t.Parallel() srv, web, _ := testServer(t) c := srv.Config() c.Signup.AutoConfirm = true var err error for i := 0; i < 200; i++ { req := &signup.Request{ Email: tutils.RandomEmail(), Password: tutils.RandomEmail(), } route := account.Account + signup....
explode_data.jsonl/66561
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 7365, 5475, 2568, 349, 16527, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 10553, 11, 3482, 11, 716, 1669, 1273, 5475, 1155, 340, 1444, 1669, 43578, 10753, 741, 1444, 41152, 454, 6477, 16728, 284, 830, 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 TestGenerateNumberFromSource(t *testing.T) { testCases := map[string]struct { source int length int }{ "first test case": { source: NumberSource, length: 5, }, "second test case": { source: NumberSource, length: 10, }, } numberGenerator := NewNumberGenerator() for name, testCase := ran...
explode_data.jsonl/78807
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 31115, 2833, 3830, 3608, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 47418, 526, 198, 197, 49046, 526, 198, 197, 59403, 197, 197, 1, 3896, 1273, 1142, 788, 341, 298, 47418, 25, 5624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnbondingDelegationString(t *testing.T) { ubd := NewUnbondingDelegation(sdk.AccAddress(addr1), addr2, 0, time.Unix(0, 0), sdk.NewInt(0)) require.NotEmpty(t, ubd.String()) }
explode_data.jsonl/58937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 1806, 64239, 287, 1912, 87566, 703, 1155, 353, 8840, 836, 8, 341, 197, 392, 67, 1669, 1532, 1806, 64239, 287, 1912, 87566, 1141, 7584, 77538, 4286, 24497, 16, 701, 10789, 17, 11, 220, 15, 345, 197, 21957, 10616, 941, 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
func TestStorageSampleInodes(t *testing.T) { du, err := disk.Usage("/") if err != nil { t.Skipf("this linux distro can't get the usage statistics: %v", err.Error()) } if du.InodesTotal == 0 { t.Skipf("this linux distro is not supported for inodes: %#v", du) } // GIVEN a Storage Sampler ps := storage.NewSamp...
explode_data.jsonl/79673
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 582 }
[ 2830, 3393, 5793, 17571, 641, 2539, 1155, 353, 8840, 836, 8, 341, 197, 1054, 11, 1848, 1669, 13364, 85900, 61710, 743, 1848, 961, 2092, 341, 197, 3244, 57776, 69, 445, 574, 36245, 1582, 299, 646, 944, 633, 279, 10431, 13142, 25, 1018,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestContainsExpression(t *testing.T) { ctx := test.NewTestContext(t) c1 := ctx.NewCollection() c1.MustAdd(hipathsys.NewInteger(10)) c1.MustAdd(hipathsys.NewInteger(11)) e := NewContainsExpression(newTestExpression(c1), NewNumberLiteralInt(11), false) res, err := e.Evaluate(ctx, nil, nil) assert.NoError(t, ...
explode_data.jsonl/54552
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 23805, 9595, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 1273, 7121, 2271, 1972, 1155, 340, 1444, 16, 1669, 5635, 7121, 6482, 741, 1444, 16, 50463, 2212, 7, 2151, 587, 7791, 7121, 3486, 7, 16, 15, 1171, 1444, 16, 50463, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestUpdateCheck(t *testing.T) { server := testCheckServer() defer server.Close() cm := &CheckManager{ enabled: true, } ac := &apiclient.Config{ TokenApp: "abcd", TokenKey: "1234", URL: server.URL, } apih, err := apiclient.NewAPI(ac) if err != nil { t.Errorf("Expected no error, got '%v'", er...
explode_data.jsonl/72617
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 545 }
[ 2830, 3393, 4289, 3973, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 1273, 3973, 5475, 741, 16867, 3538, 10421, 2822, 98316, 1669, 609, 3973, 2043, 515, 197, 197, 15868, 25, 830, 345, 197, 532, 81200, 1669, 609, 391, 292, 1451, 10753, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCanCallBeforeFunc(t *testing.T) { called := false u, _ := url.Parse("http://senseye.io/jsonrpc") sut := jsonrpc.NewClient( u, "add", jsonrpc.ClientBefore(func(ctx context.Context, req *http.Request) context.Context { called = true return ctx }), ) sut.Endpoint()(context.TODO(), "foo") if ...
explode_data.jsonl/1076
{ "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, 6713, 7220, 10227, 9626, 1155, 353, 8840, 836, 8, 341, 1444, 4736, 1669, 895, 198, 10676, 11, 716, 1669, 2515, 8937, 445, 1254, 1110, 97835, 9011, 4245, 8931, 29414, 1138, 1903, 332, 1669, 2951, 29414, 7121, 2959, 1006, 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 TestGetConfig(t *testing.T) { // Reset global variables to start afresh. resetTestGlobals() rootPath, err := newTestConfig("us-east-1") if err != nil { t.Fatalf("Unable to initialize server config. %s", err) } defer os.RemoveAll(rootPath) adminServer := adminCmd{} creds := globalServerConfig.GetCredent...
explode_data.jsonl/5192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 1949, 2648, 1155, 353, 8840, 836, 8, 341, 197, 322, 16932, 3644, 7332, 311, 1191, 7977, 2488, 624, 70343, 2271, 48592, 2822, 33698, 1820, 11, 1848, 1669, 501, 2271, 2648, 445, 355, 39507, 12, 16, 1138, 743, 1848, 961, 2092...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMsgMultiSendWithAccounts(t *testing.T) { acc := &authtypes.BaseAccount{ Address: addr1.String(), } genAccs := []authtypes.GenesisAccount{acc} app := simapp.SetupWithGenesisAccounts(genAccs) ctx := app.BaseApp.NewContext(false, tmproto.Header{}) err := app.BankKeeper.SetBalances(ctx, addr1, sdk.NewCoi...
explode_data.jsonl/17262
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 909 }
[ 2830, 3393, 6611, 20358, 11505, 2354, 41369, 1155, 353, 8840, 836, 8, 341, 197, 4475, 1669, 609, 2717, 426, 1804, 13018, 7365, 515, 197, 98090, 25, 10789, 16, 6431, 3148, 197, 630, 82281, 14603, 82, 1669, 3056, 2717, 426, 1804, 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...
4
func TestGetPrerequisites(t *testing.T) { var linuxDB = NewLinuxDB() result := linuxDB.GetDistro("debian") if result == nil { t.Error("Cannot get distro 'debian'") } release := result.GetRelease("default") if release == nil { t.Error("Failed to get release 'default' for unknown release version '16.04'") } ...
explode_data.jsonl/49612
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 298 }
[ 2830, 3393, 1949, 3533, 82301, 1155, 353, 8840, 836, 8, 341, 2405, 36245, 3506, 284, 1532, 46324, 3506, 741, 9559, 1669, 36245, 3506, 2234, 35, 15561, 445, 90784, 1138, 743, 1102, 621, 2092, 341, 197, 3244, 6141, 445, 17444, 633, 1582, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockValidationDuplicateTXId(t *testing.T) { viper.Set("peer.fileSystemPath", "/tmp/fabric/txvalidatortest") ledgermgmt.InitializeTestEnv() defer ledgermgmt.CleanupTestEnv() gb, _ := test.MakeGenesisBlock("TestLedger") gbHash := protoutil.BlockHeaderHash(gb.Header) ledger, _ := ledgermgmt.CreateLedger(g...
explode_data.jsonl/5160
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 841 }
[ 2830, 3393, 4713, 13799, 53979, 22867, 764, 1155, 353, 8840, 836, 8, 341, 5195, 12858, 4202, 445, 16537, 9715, 2320, 1820, 497, 3521, 5173, 6663, 28897, 14, 3998, 1891, 266, 371, 477, 1138, 197, 50704, 12311, 2501, 45829, 2271, 14359, 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 TestClassDescriptorTotalDataLengthReturnsCompleteLength(t *testing.T) { var mainDesc object.ClassDescriptor mainDesc.GenericDataSize = 7 mainDesc.Subclasses = append(mainDesc.Subclasses, object.SubclassDescriptor{TypeCount: 2, SpecificDataSize: 3}, object.SubclassDescriptor{TypeCount: 1, SpecificDataSize: ...
explode_data.jsonl/30607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 1957, 11709, 7595, 1043, 4373, 16446, 12548, 4373, 1155, 353, 8840, 836, 8, 341, 2405, 1887, 11065, 1633, 19331, 11709, 271, 36641, 11065, 4341, 1043, 1695, 284, 220, 22, 198, 36641, 11065, 12391, 8855, 284, 8737, 26566, 11065...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateTaskRunStateWithConditionChecks(t *testing.T) { taskrunName := "task-run" successConditionCheckName := "success-condition" failingConditionCheckName := "fail-condition" successCondition := tb.Condition("cond-1", "foo") failingCondition := tb.Condition("cond-2", "foo") pipelineTask := v1alpha1.Pip...
explode_data.jsonl/81288
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1699 }
[ 2830, 3393, 4289, 6262, 6727, 1397, 2354, 10547, 49820, 1155, 353, 8840, 836, 8, 341, 49115, 6108, 675, 1669, 330, 8202, 22973, 698, 30553, 10547, 3973, 675, 1669, 330, 5630, 58005, 698, 1166, 14277, 10547, 3973, 675, 1669, 330, 18403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAbortCommand(t *testing.T) { ssmMock := &manager.MockSSM{ Error: false, NextToken: "", CommandStatus: "Success", CommandHistory: map[string]*struct { Command *ssm.Command Status string }{}, Instances: ssmInstances, } s3Mock := &manager.MockS3{ Error: false, } ec2Mock := &m...
explode_data.jsonl/27146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 591 }
[ 2830, 3393, 85891, 4062, 1155, 353, 8840, 836, 8, 341, 34472, 76, 11571, 1669, 609, 13297, 24664, 1220, 44, 515, 197, 58421, 25, 260, 895, 345, 197, 197, 5847, 3323, 25, 257, 8324, 197, 97493, 2522, 25, 330, 7188, 756, 197, 97493, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestXLSReader_nonsheet(t *testing.T) { _, err := reader.OpenXLSXSheet("./_test/test.xlsx", 12) if err == nil { t.Error("failed to trigger error reading non-exist page") } }
explode_data.jsonl/77500
{ "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, 55, 7268, 5062, 1089, 2382, 3674, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 6604, 12953, 55, 7268, 55, 10541, 13988, 62, 1944, 12697, 46838, 497, 220, 16, 17, 340, 743, 1848, 621, 2092, 341, 197, 3244, 6141, 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 ]
2
func TestRandomWatchDeliver(t *testing.T) { server, etcdStorage := newEtcdTestStorage(t, etcd3testing.PathPrefix()) defer server.Terminate(t) cacher, v, err := newTestCacher(etcdStorage) if err != nil { t.Fatalf("Couldn't create cacher: %v", err) } defer cacher.Stop() fooCreated := updatePod(t, etcdStorage, m...
explode_data.jsonl/41364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 534 }
[ 2830, 3393, 13999, 14247, 16532, 1524, 1155, 353, 8840, 836, 8, 341, 41057, 11, 1842, 4385, 5793, 1669, 501, 31860, 4385, 2271, 5793, 1155, 11, 1842, 4385, 18, 8840, 17474, 14335, 2398, 16867, 3538, 836, 261, 34016, 1155, 340, 1444, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLsWithFilesFrom(t *testing.T) { ctx := context.Background() ci := fs.GetConfig(ctx) r := fstest.NewRun(t) defer r.Finalise() file1 := r.WriteBoth(ctx, "potato2", "------------------------------------------------------------", t1) file2 := r.WriteBoth(ctx, "empty space", "-", t2) fstest.CheckItems(t, r....
explode_data.jsonl/51926
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 396 }
[ 2830, 3393, 43, 16056, 10809, 3830, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 72, 1669, 8619, 2234, 2648, 7502, 340, 7000, 1669, 48434, 477, 7121, 6727, 1155, 340, 16867, 435, 991, 977, 1064, 741, 17661, 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...
1
func TestReverse(t *testing.T) { exp := "dlrow olleh" if actual := reverse("hello world"); actual != exp { t.Errorf("expected %s, got %s", exp, actual) t.Fail() } }
explode_data.jsonl/48663
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 45695, 1155, 353, 8840, 836, 8, 341, 48558, 1669, 330, 8736, 651, 8328, 73790, 698, 743, 5042, 1669, 9931, 445, 14990, 1879, 5038, 5042, 961, 1343, 341, 197, 3244, 13080, 445, 7325, 1018, 82, 11, 2684, 1018, 82, 497, 1343,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateCreateAttributes(t *testing.T) { cases := map[string]struct { in v1beta1.QueueParameters out map[string]string }{ "EmptyInput": { in: v1beta1.QueueParameters{}, out: nil, }, "FifoQueueFalseShouldNotBeSent": { in: v1beta1.QueueParameters{ FIFOQueue: aws.Bool(false), }, o...
explode_data.jsonl/82683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 31115, 4021, 10516, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 2415, 14032, 60, 1235, 341, 197, 17430, 220, 348, 16, 19127, 16, 50251, 9706, 198, 197, 13967, 2415, 14032, 30953, 198, 197, 59403, 197, 197, 1, 3522, 250...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseSpecIDEvent(t *testing.T) { tests := []struct { name string data []byte want []uint16 wantErr bool }{ { name: "sha1", data: append( []byte("Spec ID Event03"), 0x0, 0x0, 0x0, 0x0, 0x0, // platform class 0x0, // version minor 0x2, // v...
explode_data.jsonl/15861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1611 }
[ 2830, 3393, 14463, 8327, 915, 1556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 8924, 262, 3056, 3782, 198, 197, 50780, 262, 3056, 2496, 16, 21, 198, 197, 50780, 7747, 1807, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMigratingFile(t *testing.T) { sourceFile, _ := ioutil.TempFile("", "") defer os.Remove(sourceFile.Name()) destinationFile, _ := ioutil.TempFile("", "") // delete the file so that we'll write to it os.Remove(destinationFile.Name()) WriteToFile(testConfigAlfa, sourceFile.Name()) loadingRules := ClientCo...
explode_data.jsonl/67857
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 44, 5233, 1095, 1703, 1155, 353, 8840, 836, 8, 341, 47418, 1703, 11, 716, 1669, 43144, 65009, 1703, 19814, 14676, 16867, 2643, 13270, 12437, 1703, 2967, 2398, 197, 17997, 1703, 11, 716, 1669, 43144, 65009, 1703, 19814, 14676, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlaceAutocompleteMinimalRequestURL(t *testing.T) { expectedQuery := "input=quay+resteraunt+sydney&key=AIzaNotReallyAnAPIKey" server := mockServerForQuery(expectedQuery, 200, `{"status":"OK"}"`) defer server.s.Close() c, _ := NewClient(WithAPIKey(apiKey)) c.baseURL = server.s.URL r := &PlaceAutocomplet...
explode_data.jsonl/76299
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 17371, 19602, 20104, 88328, 1900, 3144, 1155, 353, 8840, 836, 8, 341, 42400, 2859, 1669, 330, 1355, 28, 446, 352, 10, 3927, 2416, 3850, 10, 22860, 18787, 5, 792, 28, 15469, 4360, 2623, 48785, 2082, 7082, 1592, 1837, 41057, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJsonExport(t *testing.T) { t.Parallel() ctx := NewIsolate().NewContext() var json_stringify *Value if json, err := ctx.Global().Get("JSON"); err != nil { t.Fatal(err) } else if json_stringify, err = json.Get("stringify"); err != nil { t.Fatal(err) } some_result, err := ctx.Eval("(() => ({a:3,b:'xy...
explode_data.jsonl/81574
{ "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, 5014, 16894, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 1532, 3872, 33066, 1005, 3564, 1972, 2822, 2405, 2951, 3904, 1437, 353, 1130, 198, 743, 2951, 11, 1848, 1669, 5635, 27381, 1005, 1949, 445, 5370...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPaginator_FromURLValues(t *testing.T) { Convey("Test set/get", t, func() { factory := NewFactory() values := url.Values{ DEFAULT_PAGE_PARAM: []string{"130"}, DEFAULT_PER_PAGE_PARAM: []string{"42"}, } p := factory(values) So(p.GetPage(), ShouldEqual, 130) So(p.GetPerPage(), ShouldEqual, ...
explode_data.jsonl/8403
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 522 }
[ 2830, 3393, 69065, 53157, 3144, 6227, 1155, 353, 8840, 836, 8, 1476, 93070, 5617, 445, 2271, 738, 23302, 497, 259, 11, 2915, 368, 341, 197, 1166, 2919, 1669, 1532, 4153, 741, 197, 45939, 1669, 2515, 35145, 515, 298, 197, 17285, 19971, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateDocumentsKeepNullTrue(t *testing.T) { ctx := context.Background() var conn driver.Connection c := createClientFromEnv(t, true, &conn) db := ensureDatabase(ctx, c, "document_test", nil, t) col := ensureCollection(ctx, db, "documents_test", nil, t) docs := []Account{ Account{ ID: "1234", User...
explode_data.jsonl/49557
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 751 }
[ 2830, 3393, 4289, 27143, 19434, 3280, 2514, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 2405, 4534, 5579, 17463, 198, 1444, 1669, 1855, 2959, 3830, 14359, 1155, 11, 830, 11, 609, 5148, 340, 20939, 1669, 5978, 5988, 7502...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPanoNormalization(t *testing.T) { testCases := []struct { desc string dg string conf Entry }{ {"test no services", "", Entry{ Name: "one", Tags: []string{"one", "two"}, }}, {"test one service", "dg1", Entry{ Name: "two", Services: []string{"svc1"}, Tags: []string{"single"...
explode_data.jsonl/21923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 47, 5652, 63070, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 914, 198, 197, 2698, 70, 256, 914, 198, 197, 67850, 15788, 198, 197, 59403, 197, 197, 4913, 1944, 902, 3516, 497, 7342, 15788,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLastValueMerge(t *testing.T) { ctx := context.Background() test.RunProfiles(t, func(t *testing.T, profile test.Profile) { agg1 := New() agg2 := New() descriptor := test.NewAggregatorTest(export.ObserverKind, profile.NumberKind, false) first1 := profile.Random(+1) first2 := profile.Random(+1) f...
explode_data.jsonl/81400
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 5842, 1130, 52096, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 18185, 16708, 62719, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 5526, 1273, 59872, 8, 341, 197, 197, 15718, 16, 1669, 1532, 741, 197, 197, 157...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRowsSortDuration(t *testing.T) { uu := map[string]struct { rows render.Rows col int asc bool e render.Rows }{ "durationAsc": { rows: render.Rows{ {Fields: []string{"10m10s", "duh"}}, {Fields: []string{"19s", "blee"}}, }, col: 0, asc: true, e: render.Rows{ {Fields: []...
explode_data.jsonl/66598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 429 }
[ 2830, 3393, 9024, 10231, 12945, 1155, 353, 8840, 836, 8, 341, 10676, 84, 1669, 2415, 14032, 60, 1235, 341, 197, 68438, 3141, 11332, 198, 197, 46640, 220, 526, 198, 197, 197, 5061, 220, 1807, 198, 197, 7727, 262, 3141, 11332, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestListContains(t *testing.T) { var tests = map[string]struct { list []*unstructured.Unstructured given *unstructured.Unstructured isFound bool }{ "nil list": { isFound: false, }, "nil list & some given": { given: &unstructured.Unstructured{ Object: map[string]interface{}{ "kind"...
explode_data.jsonl/42753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1145 }
[ 2830, 3393, 852, 23805, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 2415, 14032, 60, 1235, 341, 197, 14440, 262, 29838, 359, 51143, 10616, 51143, 198, 197, 3174, 2071, 256, 353, 359, 51143, 10616, 51143, 198, 197, 19907, 6650, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDnsResolver(t *testing.T) { t.Parallel() s := env.NewTestEnv(comp.TestDnsResolver, platform.EchoSidecar) // Setup dns resolver. backendHost := "dns-resolver-test-backend" localHost := "127.0.0.1" dnsRecords := map[string]string{ fullDns(backendHost): localHost, } dnsResolver := comp.NewDnsResolver(s...
explode_data.jsonl/41355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 948 }
[ 2830, 3393, 35, 4412, 18190, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 1669, 6105, 7121, 2271, 14359, 30008, 8787, 35, 4412, 18190, 11, 5339, 5142, 958, 16384, 6918, 692, 197, 322, 18626, 44077, 36220, 624, 197, 20942,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSuccessLatestPatchToLatest(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) // This test case gets commits from v1.17.1 to head of release-1.17 result, err := testRepo.sut.LatestPatchToLatest(testRepo.branchName) require.Nil(t, err) require.Equal(t, testRepo.secondBranchCommit, resul...
explode_data.jsonl/14004
{ "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, 7188, 31992, 43622, 1249, 31992, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 197, 322, 1096, 1273, 1142, 5221, 41535, 504, 348, 16, 13, 16, 22, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestColumnNameToIndex(t *testing.T) { testVals := map[string]int{ "A": 0, "R": 17, "Z": 25, "AA": 26, "AB": 27, "AM": 38, "AS": 44, "AX": 49, "AZ": 51, "BA": 52, "BE": 56, "BY": 76, "CA": 78, "CL": 89, "DO": 118, "EG": 136, "EZ": 155, "FX": 179, "GZ": 20...
explode_data.jsonl/3592
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 636 }
[ 2830, 3393, 26162, 1249, 1552, 1155, 353, 8840, 836, 8, 341, 18185, 52452, 1669, 2415, 14032, 63025, 515, 197, 197, 29133, 788, 256, 220, 15, 345, 197, 197, 1, 49, 788, 256, 220, 16, 22, 345, 197, 197, 1, 57, 788, 256, 220, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestWorkflowsOutputJSON(t *testing.T) { ctrl, randomPort := startServer() defer stopServer(ctrl) storageInfo := []string{defaultDir, firstDir, secondDir} v1_0_0.CheckWorkflows(t, &compliance.Config{ Address: listenAddress, Port: randomPort, OutputJSON: true, StorageInfo: storageInfo, }) ...
explode_data.jsonl/34359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 6776, 38140, 5097, 5370, 1155, 353, 8840, 836, 8, 341, 84381, 11, 4194, 7084, 1669, 1191, 5475, 741, 16867, 2936, 5475, 62100, 692, 197, 16172, 1731, 1669, 3056, 917, 90, 2258, 6184, 11, 1156, 6184, 11, 2086, 6184, 630, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthcryptPackerFail(t *testing.T) { cty := transport.MediaTypeV1PlaintextPayload k := createKMS(t) cryptoSvc, err := tinkcrypto.New() require.NoError(t, err) skid, senderKey, _ := createAndMarshalKey(t, k) t.Run("new Pack fail with nil thirdPartyKS provider", func(t *testing.T) { _, err = New(newMo...
explode_data.jsonl/19841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1934 }
[ 2830, 3393, 5087, 48125, 47, 9683, 19524, 1155, 353, 8840, 836, 8, 341, 89216, 88, 1669, 7557, 63714, 53, 16, 2120, 1641, 427, 29683, 271, 16463, 1669, 1855, 42, 4826, 1155, 692, 1444, 9444, 92766, 11, 1848, 1669, 90584, 35772, 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...
1
func TestCanExtractElementRefsOnlyFromID(t *testing.T) { // test with valid ID in this document helperForExtractElementID(t, "SPDXRef-file1", false, "file1") // test with valid ID in another document helperForExtractElementID(t, "DocumentRef-doc2:SPDXRef-file2", true, "") // test with invalid ID in this document ...
explode_data.jsonl/52722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 6713, 28959, 1691, 82807, 7308, 3830, 915, 1155, 353, 8840, 836, 8, 341, 197, 322, 1273, 448, 2697, 3034, 304, 419, 2197, 198, 9598, 2947, 2461, 28959, 1691, 915, 1155, 11, 330, 4592, 16591, 3945, 14203, 16, 497, 895, 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 TestReadHalfpipeFilesIsHappyWithOneOfTheOptions(t *testing.T) { fs := testFs() fs.WriteFile(".halfpipe.io", []byte("foo"), 0700) _, err := GetHalfpipeFileName(fs, "") assert.Nil(t, err) }
explode_data.jsonl/71225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 4418, 42627, 13768, 10809, 3872, 32847, 2354, 3966, 2124, 785, 3798, 1155, 353, 8840, 836, 8, 341, 53584, 1669, 1273, 48300, 741, 53584, 4073, 1703, 5680, 37006, 13768, 4245, 497, 3056, 3782, 445, 7975, 3975, 220, 15, 22, 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
func TestClient_CreateETHKey(t *testing.T) { t.Parallel() ethClient := newEthMock(t) ethClient.On("BalanceAt", mock.Anything, mock.Anything, mock.Anything).Return(big.NewInt(42), nil) ethClient.On("GetLINKBalance", mock.Anything, mock.Anything).Return(assets.NewLinkFromJuels(42), nil) app := startNewApplication(t...
explode_data.jsonl/79044
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 780 }
[ 2830, 3393, 2959, 34325, 7625, 1592, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 769, 2959, 1669, 501, 65390, 11571, 1155, 340, 197, 769, 2959, 8071, 445, 21190, 1655, 497, 7860, 13311, 1596, 11, 7860, 13311, 1596, 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 TestClientHappyPath(t *testing.T) { var ( afterCalledKey = "AC" beforeHeaderKey = "BF" beforeHeaderValue = "beforeFuncWozEre" testbody = `{"jsonrpc":"2.0", "result":5}` requestBody []byte beforeFunc = func(ctx context.Context, r *http.Request) context.Context { r.Header.A...
explode_data.jsonl/1077
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1128 }
[ 2830, 3393, 2959, 32847, 1820, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 10694, 20960, 1592, 262, 284, 330, 1706, 698, 197, 63234, 4047, 1592, 256, 284, 330, 19883, 698, 197, 63234, 97721, 284, 330, 14801, 9626, 54, 9510, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcilePodFetchError(t *testing.T) { taskRun := tb.TaskRun("test-taskrun-run-success", tb.TaskRunNamespace("foo"), tb.TaskRunSpec(tb.TaskRunTaskRef("test-task")), tb.TaskRunStatus(tb.PodName("will-not-be-found")), ) d := test.Data{ TaskRuns: []*v1beta1.TaskRun{taskRun}, Tasks: []*v1beta1.Task...
explode_data.jsonl/60080
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 693, 40446, 457, 23527, 20714, 1454, 1155, 353, 8840, 836, 8, 341, 49115, 6727, 1669, 16363, 28258, 6727, 445, 1944, 52579, 6108, 22973, 13102, 756, 197, 62842, 28258, 6727, 22699, 445, 7975, 4461, 197, 62842, 28258, 6727, 832...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMongo_ReadOnly(t *testing.T) { m, skip := prepMongo(t, true) // adds two comments if skip { return } assert.False(t, m.IsReadOnly(store.Locator{SiteID: "radio-t", URL: "url-1"}), "nothing ro") assert.NoError(t, m.SetReadOnly(store.Locator{SiteID: "radio-t", URL: "url-1"}, true)) assert.True(t, m.IsRea...
explode_data.jsonl/54201
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 412 }
[ 2830, 3393, 54998, 62, 20914, 1155, 353, 8840, 836, 8, 341, 2109, 11, 10706, 1669, 21327, 54998, 1155, 11, 830, 8, 442, 11367, 1378, 6042, 198, 743, 10706, 341, 197, 853, 198, 197, 532, 6948, 50757, 1155, 11, 296, 4506, 20914, 31200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStripActionRequired(t *testing.T) { notes := []string{ "[action required] The note text", "[ACTION REQUIRED] The note text", "[AcTiOn ReQuIrEd] The note text", } for _, note := range notes { require.Equal(t, "The note text", stripActionRequired(note)) } }
explode_data.jsonl/5292
{ "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, 5901, 2512, 8164, 1155, 353, 8840, 836, 8, 341, 197, 18286, 1669, 3056, 917, 515, 197, 197, 36864, 1311, 2567, 60, 576, 5185, 1467, 756, 197, 197, 36864, 41895, 66577, 60, 576, 5185, 1467, 756, 197, 197, 36864, 11654, 4535...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPopUp_Resize(t *testing.T) { label := NewLabel("Hi") win := test.NewWindow(NewLabel("OK")) win.Resize(fyne.NewSize(80, 80)) pop := NewPopUp(label, win.Canvas()) size := fyne.NewSize(50, 40) pop.Resize(size) innerSize := pop.Content.Size() assert.Equal(t, size.Width-theme.Padding()*2, innerSize.Width)...
explode_data.jsonl/65218
{ "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, 11598, 2324, 62, 30561, 1155, 353, 8840, 836, 8, 341, 29277, 1669, 1532, 2476, 445, 13048, 1138, 68452, 1669, 1273, 7121, 4267, 35063, 2476, 445, 3925, 5455, 68452, 77707, 955, 81708, 7121, 1695, 7, 23, 15, 11, 220, 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...
1
func TestUploadOrderReadFail2(t *testing.T) { s, ops, _ := loggingSvc([]string{"UploadPart"}) mgr := s3manager.NewUploaderWithClient(s, func(u *s3manager.Uploader) { u.Concurrency = 1 }) _, err := mgr.Upload(&s3manager.UploadInput{ Bucket: aws.String("Bucket"), Key: aws.String("Key"), Body: &failreader...
explode_data.jsonl/55643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 384 }
[ 2830, 3393, 13844, 4431, 4418, 19524, 17, 1155, 353, 8840, 836, 8, 341, 1903, 11, 27132, 11, 716, 1669, 8392, 92766, 10556, 917, 4913, 13844, 5800, 23625, 2109, 901, 1669, 274, 18, 13297, 7121, 67574, 2354, 2959, 1141, 11, 2915, 8154, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAggregatedResultFail(t *testing.T) { syncher := setupTest(len(totalSuccessTestConsts)+1, totalSuccessTestConsts) startTime := time.Now() go addResultToSyncher(syncher,result{"ipvlan", errors.New("not this time"), nil, ""}) err := syncher.GetAggregatedResult() endTime := time.Now() if err == nil ...
explode_data.jsonl/69737
{ "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, 1949, 9042, 93040, 2077, 19524, 1155, 353, 8840, 836, 8, 341, 220, 6782, 9034, 1669, 6505, 2271, 6901, 22842, 7188, 2271, 19167, 82, 7257, 16, 11, 2790, 7188, 2271, 19167, 82, 340, 220, 22858, 1669, 882, 13244, 741, 220, 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...
3
func TestUnmarshalMap(t *testing.T) { testUnmarshal(t, []testcase{ { data: ` name = "evan" foo = 1 `, expect: map[string]interface{}{"name": "evan", "foo": int64(1)}, }, { data: `[""] a = 1 `, expect: map[string]interface{}{"": map[string]interface{}{"a": int64(1)}}, }, { data: `["table"] a = ...
explode_data.jsonl/52967
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 570 }
[ 2830, 3393, 1806, 27121, 2227, 1155, 353, 8840, 836, 8, 341, 18185, 1806, 27121, 1155, 11, 3056, 1944, 5638, 515, 197, 197, 515, 298, 8924, 25, 22074, 606, 284, 330, 5120, 276, 698, 7975, 284, 220, 16, 198, 12892, 298, 24952, 25, 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...
1
func TestSet_Intersect(t *testing.T) { gtest.C(t, func(t *gtest.T) { s1 := gset.NewSet() s2 := gset.NewSet() s1.Add(1, 2, 3) s2.Add(3, 4, 5) s3 := s1.Intersect(s2) t.Assert(s3.Contains(1), false) t.Assert(s3.Contains(2), false) t.Assert(s3.Contains(3), true) t.Assert(s3.Contains(4), false) }) }
explode_data.jsonl/34386
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 1649, 79717, 9687, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 1903, 16, 1669, 342, 746, 7121, 1649, 741, 197, 1903, 17, 1669, 342, 746, 7121, 1649, 741, 197, 1903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMakeFamilyKey(t *testing.T) { const maxFamID = math.MaxUint32 key := MakeFamilyKey(nil, maxFamID) if expected, n := 6, len(key); expected != n { t.Errorf("expected %d bytes, but got %d: [% x]", expected, n, key) } }
explode_data.jsonl/56599
{ "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, 8078, 15192, 1592, 1155, 353, 8840, 836, 8, 341, 4777, 1932, 37, 309, 915, 284, 6888, 14535, 21570, 18, 17, 198, 23634, 1669, 7405, 15192, 1592, 27907, 11, 1932, 37, 309, 915, 340, 743, 3601, 11, 308, 1669, 220, 21, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPullPolicy(t *testing.T) { var table = []struct { image string policy corev1.PullPolicy }{ { image: "quay.io/operator-framework/olm@sha256:b9d011c0fbfb65b387904f8fafc47ee1a9479d28d395473341288ee126ed993b", policy: corev1.PullIfNotPresent, }, { image: "gcc@sha256:06a6f170d7fff592e44b089c...
explode_data.jsonl/8416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 560 }
[ 2830, 3393, 36068, 13825, 1155, 353, 8840, 836, 8, 341, 2405, 1965, 284, 3056, 1235, 341, 197, 31426, 220, 914, 198, 197, 3223, 8018, 6200, 85, 16, 97357, 13825, 198, 197, 59403, 197, 197, 515, 298, 31426, 25, 220, 330, 446, 352, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestEtcdDeleteController(t *testing.T) { ctx := api.NewDefaultContext() fakeClient := tools.NewFakeEtcdClient(t) registry := NewTestEtcdRegistry(fakeClient) key, _ := makeControllerKey(ctx, "foo") err := registry.DeleteController(ctx, "foo") if err != nil { t.Errorf("unexpected error: %v", err) } if len...
explode_data.jsonl/8160
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 31860, 4385, 6435, 2051, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6330, 7121, 3675, 1972, 741, 1166, 726, 2959, 1669, 7375, 7121, 52317, 31860, 4385, 2959, 1155, 340, 197, 29172, 1669, 1532, 2271, 31860, 4385, 15603, 74138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseConfigUseDefaultServiceNoConsole(t *testing.T) { services := []string{ "s0", "s1", "s3", } loggerConfig := []byte(fmt.Sprintf(`{ "console": false }`)) config, err := ParseConfig([]byte(loggerConfig), services, nil) if err != nil { t.Errorf("Unexpected error: %s", err) } if config.Ser...
explode_data.jsonl/27530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 14463, 2648, 10253, 3675, 1860, 2753, 12372, 1155, 353, 8840, 836, 8, 341, 1903, 2161, 1669, 3056, 917, 515, 197, 197, 40787, 15, 756, 197, 197, 40787, 16, 756, 197, 197, 40787, 18, 756, 197, 630, 17060, 2648, 1669, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRunLong(t *testing.T) { rand.Seed(time.Now().UnixNano()) size := 1000000 existingNumbers := make(map[int]bool) args := make([]int, size, size) for index := range args { args[index] = rand.Intn(size+1) - size/2 if args[index] > 0 { existingNumbers[args[index]] = true } } expectedResult := 1 for...
explode_data.jsonl/51752
{ "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, 6727, 6583, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 9730, 13244, 1005, 55832, 83819, 2398, 13832, 1669, 220, 16, 15, 15, 15, 15, 15, 15, 198, 8122, 11083, 27237, 1669, 1281, 9147, 18640, 96436, 340, 31215, 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...
6
func TestCreateGCP(t *testing.T) { aclip.Unsupported = true tempdir, err := ioutil.TempDir("", "gopass-") assert.NoError(t, err) defer func() { _ = os.RemoveAll(tempdir) }() s := creator{mockstore.New("")} ctx := context.Background() ctx = ctxutil.WithAlwaysYes(ctx, true) ctx = ctxutil.WithClipTimeout(ctx,...
explode_data.jsonl/23338
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 4021, 38, 7123, 1155, 353, 8840, 836, 8, 341, 11323, 7974, 65017, 284, 830, 198, 16280, 3741, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 70, 453, 395, 12, 1138, 6948, 35699, 1155, 11, 1848, 340, 16867, 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
func TestForAll(t *testing.T) { nodes := []Node{ Parameter{Field: "repo", Value: "foo"}, Parameter{Field: "repo", Value: "bar"}, } result := ForAll(nodes, func(node Node) bool { _, ok := node.(Parameter) return ok }) if !result { t.Errorf("Expected all nodes to be parameters.") } }
explode_data.jsonl/58373
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 2461, 2403, 1155, 353, 8840, 836, 8, 341, 79756, 1669, 3056, 1955, 515, 197, 197, 4971, 90, 1877, 25, 330, 23476, 497, 5162, 25, 330, 7975, 7115, 197, 197, 4971, 90, 1877, 25, 330, 23476, 497, 5162, 25, 330, 2257, 7115, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientAuthMaxAuthTries(t *testing.T) { user := "testuser" serverConfig := &ServerConfig{ MaxAuthTries: 2, PasswordCallback: func(conn ConnMetadata, pass []byte) (*Permissions, error) { if conn.User() == "testuser" && string(pass) == "right" { return nil, nil } return nil, errors.New("passwo...
explode_data.jsonl/6948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 585 }
[ 2830, 3393, 2959, 5087, 5974, 5087, 51, 4019, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 330, 1944, 872, 1837, 41057, 2648, 1669, 609, 5475, 2648, 515, 197, 197, 5974, 5087, 51, 4019, 25, 220, 17, 345, 197, 197, 4876, 7494, 25, 2915...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatabaseNameReplaceByKeyspaceNameBeginExecuteMethod(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: []*qu...
explode_data.jsonl/80031
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 382 }
[ 2830, 3393, 5988, 675, 23107, 1359, 8850, 1306, 675, 11135, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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