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 TestProcess(t *testing.T) { startTime := time.Now() datasetID := "werqae-asdqwrwf-erwe" reader := strings.NewReader(exampleHeaderLine + exampleCsvLine + "\n" + exampleCsvLine) url, _ := url.Parse("s3://bucket/dir/test.csv") s3URL := event.NewS3URL(url) uploadEvent := &event.FileUploaded{S3URL: s3URL, Time:...
explode_data.jsonl/68893
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 682 }
[ 2830, 3393, 7423, 1155, 353, 8840, 836, 8, 1476, 21375, 1462, 1669, 882, 13244, 741, 2698, 8369, 915, 1669, 330, 6566, 80, 5918, 32434, 85646, 18718, 43083, 12, 261, 896, 698, 61477, 1669, 9069, 68587, 66203, 4047, 2460, 488, 3110, 9482...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRMIDComparisonDifferentGroups(t *testing.T) { a := "rmid1:0d77c-b0b2e66aece-00000000-00000001" b := "rmid1:0d77c-b0b2e66aecd-00000000-00000002" rmidA, err := ReplicationGroupMessageIDFromString(a) if err != nil { t.Error(err) } if rmidA == nil { t.Error("Expected non nil RMID, got nil") } rmidB, er...
explode_data.jsonl/72227
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 387 }
[ 2830, 3393, 23652, 915, 33487, 69123, 22173, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 330, 8719, 307, 16, 25, 15, 67, 22, 22, 66, 1455, 15, 65, 17, 68, 21, 21, 5918, 346, 12, 15, 15, 15, 15, 15, 15, 15, 15, 12, 15, 15, 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...
9
func TestValidateNamespaceFinalizeUpdate(t *testing.T) { tests := []struct { oldNamespace core.Namespace namespace core.Namespace valid bool }{ {core.Namespace{}, core.Namespace{}, true}, {core.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: "foo"}}, core.Namespace{ ObjectMeta: metav...
explode_data.jsonl/1048
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 723 }
[ 2830, 3393, 17926, 22699, 19357, 551, 4289, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 61828, 22699, 6200, 46011, 198, 197, 56623, 262, 6200, 46011, 198, 197, 56322, 286, 1807, 198, 197, 59403, 197, 197, 90, 2153, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuild(t *testing.T) { kp0 := newKeypair0() sourceAccount := NewSimpleAccount(kp0.Address(), int64(9605939170639897)) createAccount := CreateAccount{ Destination: "GCCOBXW2XQNUSL467IEILE6MMCNRR66SSVL4YQADUNYYNUVREF3FIV2Z", Amount: "10", } tx, err := NewTransaction( TransactionParams{ SourceA...
explode_data.jsonl/20696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 668 }
[ 2830, 3393, 11066, 1155, 353, 8840, 836, 8, 341, 16463, 79, 15, 1669, 501, 6608, 1082, 1310, 15, 741, 47418, 7365, 1669, 1532, 16374, 7365, 5969, 79, 15, 26979, 1507, 526, 21, 19, 7, 24, 21, 15, 20, 24, 18, 24, 16, 22, 15, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLedDriverToggle(t *testing.T) { d := initTestLedDriver(newGpioTestAdaptor()) d.Off() d.Toggle() gobottest.Assert(t, d.State(), true) d.Toggle() gobottest.Assert(t, d.State(), false) }
explode_data.jsonl/55080
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 60850, 11349, 18897, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 2930, 2271, 60850, 11349, 1755, 38, 11917, 2271, 2589, 32657, 2398, 2698, 13, 4596, 741, 2698, 80700, 741, 3174, 674, 1716, 477, 11711, 1155, 11, 294, 18942, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsLeapYear(t *testing.T) { for _, i := range []uint{1600, 2000, 2012, 2016, 2020} { if !isLeapYear(i) { t.Errorf("isLeapYear(%d) got false, want true", i) } } for _, i := range []uint{1601, 2002, 2015, 2017, 2018} { if isLeapYear(i) { t.Errorf("isLeapYear(%d) got true, want false", i) } } }
explode_data.jsonl/65319
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 3872, 96657, 9490, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 600, 1669, 2088, 3056, 2496, 90, 16, 21, 15, 15, 11, 220, 17, 15, 15, 15, 11, 220, 17, 15, 16, 17, 11, 220, 17, 15, 16, 21, 11, 220, 17, 15, 17, 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...
5
func TestInvalidRanges(t *testing.T) { var invalidRangeTests = []struct { floor int ceil int }{ {10, 10}, {100, 100}, {990, 998}, } for _, tt := range invalidRangeTests { _, err := LargestPalindromeFromProductOfNumbers(tt.floor, tt.ceil) assert.Equal(t, err, ErrNoPalindromesInRange, "the range %d ...
explode_data.jsonl/10875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 7928, 74902, 1155, 353, 8840, 836, 8, 341, 2405, 8318, 6046, 18200, 284, 3056, 1235, 341, 197, 1166, 3993, 526, 198, 197, 197, 22058, 220, 526, 198, 197, 59403, 197, 197, 90, 16, 15, 11, 220, 16, 15, 1583, 197, 197, 90...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodeAddresses(t *testing.T) { // Note these instances have the same name // (we test that this produces an error) var instance0 ec2.Instance var instance1 ec2.Instance var instance2 ec2.Instance //0 instance0.InstanceId = aws.String("i-0") instance0.PrivateDnsName = aws.String("instance-same.ec2.inter...
explode_data.jsonl/12847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1185 }
[ 2830, 3393, 1955, 52290, 1155, 353, 8840, 836, 8, 341, 197, 322, 7036, 1493, 13121, 614, 279, 1852, 829, 198, 197, 322, 320, 896, 1273, 429, 419, 18644, 458, 1465, 340, 2405, 2867, 15, 11942, 17, 12688, 198, 2405, 2867, 16, 11942, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUploads(t *testing.T) { app := createTestApp(t) defer app.Close() // Write 9 uploads to the database. These uploads have 1-9 // results each, a common label "i" set to the upload number, // and a label "j" set to the record number within the upload. var uploadIDs []string for i := 0; i < 9; i++ { sta...
explode_data.jsonl/4951
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1184 }
[ 2830, 3393, 13844, 82, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 1855, 2271, 2164, 1155, 340, 16867, 906, 10421, 2822, 197, 322, 9645, 220, 24, 66563, 311, 279, 4625, 13, 4220, 66563, 614, 220, 16, 12, 24, 198, 197, 322, 3059, 1817...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReceive_1(t *testing.T) { _, teardown := setupIpTest(t) defer teardown() dev := createTapDevice() iface := createIface() _ = repo.IfaceRepo.Register(iface, dev) // ICMP packet := createIpPacket() want := psErr.OK got := Receive(packet, dev) if got != want { t.Errorf("Receive() = %s; want %s", got...
explode_data.jsonl/8506
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 14742, 62, 16, 1155, 353, 8840, 836, 8, 341, 197, 6878, 49304, 1669, 6505, 23378, 2271, 1155, 340, 16867, 49304, 2822, 27302, 1669, 1855, 23879, 6985, 741, 743, 578, 1669, 1855, 40, 1564, 741, 197, 62, 284, 15867, 2447, 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...
4
func TestServerTimeoutErrorWithCode(t *testing.T) { s := &Server{ Handler: func(ctx *RequestCtx) { go func() { ctx.Success("aaa/bbb", []byte("xxxyyy")) }() ctx.TimeoutErrorWithCode("should be ignored", 234) ctx.TimeoutErrorWithCode("stolen ctx", StatusBadRequest) }, } rw := &readWriter{} rw.r.W...
explode_data.jsonl/73302
{ "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, 5475, 7636, 1454, 2354, 2078, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 5475, 515, 197, 197, 3050, 25, 2915, 7502, 353, 1900, 23684, 8, 341, 298, 30680, 2915, 368, 341, 571, 20985, 33320, 445, 32646, 3470, 6066, 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 TestRouterStaticDynamicConflict(t *testing.T) { e := New() r := e.router r.Add(http.MethodGet, "/dictionary/skills", handlerHelper("a", 1)) r.Add(http.MethodGet, "/dictionary/:name", handlerHelper("b", 2)) r.Add(http.MethodGet, "/users/new", handlerHelper("d", 4)) r.Add(http.MethodGet, "/users/:name", handl...
explode_data.jsonl/47129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 713 }
[ 2830, 3393, 9523, 11690, 21752, 57974, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 1532, 741, 7000, 1669, 384, 22125, 271, 7000, 1904, 19886, 20798, 1949, 11, 3521, 35671, 2687, 60925, 497, 7013, 5511, 445, 64, 497, 220, 16, 1171, 7000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPushWithHostsDir(t *testing.T) { // Skip docker, because Docker doesn't have `--hosts-dir` option, and we don't want to contaminate the global /etc/docker/certs.d during this test testutil.DockerIncompatible(t) base := testutil.NewBase(t) reg := testregistry.NewHTTPS(base, "admin", "badmin") defer reg.Cl...
explode_data.jsonl/51087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 16644, 2354, 9296, 82, 6184, 1155, 353, 8840, 836, 8, 341, 197, 322, 25784, 26588, 11, 1576, 40549, 3171, 944, 614, 1565, 313, 44692, 45283, 63, 2999, 11, 323, 582, 1513, 944, 1366, 311, 683, 309, 3277, 279, 3644, 608, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMixedOSBuildKojiJob(t *testing.T) { require := require.New(t) emptyManifestV2 := distro.Manifest(`{"version":"2","pipelines":{}}`) server := newTestServer(t, t.TempDir(), time.Duration(0), "/api/worker/v1") fbPipelines := &worker.PipelineNames{Build: distro.BuildPipelinesFallback(), Payload: distro.Payloa...
explode_data.jsonl/1110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1956 }
[ 2830, 3393, 86433, 3126, 11066, 42, 26902, 12245, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 197, 3194, 38495, 53, 17, 1669, 1582, 299, 72272, 5809, 4913, 4366, 3252, 17, 2198, 51501, 10999, 788, 90, 3417, 24183, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddItemAuthor(t *testing.T) { t.Parallel() // arrange theAuthor := podcast.Author{Name: "Jane Doe", Email: "me@janedoe.com"} p := podcast.New("title", "link", "description", nil, nil) i := podcast.Item{Title: "title", Description: "desc", Link: "http://a.co/"} i.Author = &theAuthor // act added, err ...
explode_data.jsonl/73082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 2212, 1234, 7133, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 30893, 198, 32088, 7133, 1669, 17711, 33858, 63121, 25, 330, 62502, 49628, 497, 8299, 25, 330, 2660, 31, 22838, 291, 4644, 905, 16707, 3223, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContext2Plan_preventDestroy_bad(t *testing.T) { m := testModule(t, "plan-prevent-destroy-bad") p := testProvider("aws") p.DiffFn = testDiffFn ctx := testContext2(t, &ContextOpts{ Config: m, ProviderResolver: providers.ResolverFixed( map[string]providers.Factory{ "aws": testProviderFuncFixed(p), ...
explode_data.jsonl/28660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 423 }
[ 2830, 3393, 1972, 17, 20485, 10442, 684, 14245, 34199, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 21334, 684, 12, 15518, 1455, 329, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 98063, 24911, 284,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMultiError_Append(t *testing.T) { multiErrors := MultiError{} multiErrors.Errors = append(multiErrors.Errors, errors.New("invalid")) multiErrors.Errors = append(multiErrors.Errors, errors.New("fatal")) if len(multiErrors.Errors) != 2 { t.Fatal("Test Append()") } }
explode_data.jsonl/57818
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 20358, 1454, 36117, 408, 1155, 353, 8840, 836, 8, 341, 2109, 7068, 13877, 1669, 17439, 1454, 16094, 2109, 7068, 13877, 61745, 284, 8737, 1255, 7068, 13877, 61745, 11, 5975, 7121, 445, 11808, 5455, 2109, 7068, 13877, 61745, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCollectorAutoscalersDisabledByExplicitOption(t *testing.T) { // prepare disabled := false jaeger := v1.NewJaeger(types.NamespacedName{Name: "my-instance"}) jaeger.Spec.Collector.Autoscale = &disabled c := NewCollector(jaeger) // test a := c.Autoscalers() // verify assert.Len(t, a, 0) }
explode_data.jsonl/59536
{ "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, 53694, 19602, 436, 5416, 388, 25907, 1359, 98923, 5341, 1155, 353, 8840, 836, 8, 341, 197, 322, 10549, 198, 34597, 2312, 1669, 895, 198, 197, 5580, 1878, 1669, 348, 16, 7121, 52445, 1878, 52613, 98932, 68552, 675, 63121, 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...
1
func TestTransactionalUpsert(t *testing.T) { s, c := setupMiniredis() defer s.Close() ss := &StateStore{ client: c, json: jsoniter.ConfigFastest, logger: logger.NewLogger("test"), } err := ss.Multi(&state.TransactionalStateRequest{ Operations: []state.TransactionalStateOperation{{ Operation: state.U...
explode_data.jsonl/78640
{ "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, 31375, 98778, 529, 1155, 353, 8840, 836, 8, 341, 1903, 11, 272, 1669, 6505, 6217, 2690, 285, 741, 16867, 274, 10421, 2822, 34472, 1669, 609, 1397, 6093, 515, 197, 25291, 25, 272, 345, 197, 30847, 25, 256, 2951, 2015, 10753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEditIngress(t *testing.T) { rh, cc, done := setup(t) defer done() meta := metav1.ObjectMeta{Name: "kuard", Namespace: "default"} s1 := &v1.Service{ ObjectMeta: metav1.ObjectMeta{ Name: "kuard", Namespace: "default", }, Spec: v1.ServiceSpec{ Ports: []v1.ServicePort{{ Name: "h...
explode_data.jsonl/70750
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 927 }
[ 2830, 3393, 4036, 641, 2483, 1155, 353, 8840, 836, 8, 341, 7000, 71, 11, 12527, 11, 2814, 1669, 6505, 1155, 340, 16867, 2814, 2822, 84004, 1669, 77520, 16, 80222, 63121, 25, 330, 74, 11034, 497, 41962, 25, 330, 2258, 63159, 1903, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestResponse_GetRolesVerboseEqual(t *testing.T) { popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano())) p := NewPopulatedResponse_GetRoles(popr, false) data, err := github_com_gogo_protobuf_proto.Marshal(p) if err != nil { panic(err) } msg := &Response_GetRoles{} if err := github_com_gogo_prot...
explode_data.jsonl/42029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 2582, 13614, 25116, 63404, 2993, 1155, 353, 8840, 836, 8, 341, 3223, 46288, 1669, 6888, 33864, 7121, 37270, 33864, 7121, 3608, 9730, 13244, 1005, 55832, 83819, 12145, 3223, 1669, 1532, 11598, 7757, 2582, 13614, 25116, 40148, 81,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImplementsProvisioner(t *testing.T) { var raw interface{} raw = &Provisioner{} if _, ok := raw.(packer.Provisioner); !ok { t.Fatalf("Interface packer.Provisioner is not implemented") } }
explode_data.jsonl/1404
{ "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, 1427, 4674, 1336, 13013, 261, 1155, 353, 8840, 836, 8, 341, 220, 762, 7112, 3749, 31483, 220, 7112, 284, 609, 1336, 13013, 261, 31483, 220, 421, 8358, 5394, 1669, 7112, 12832, 4748, 261, 7763, 13013, 261, 1215, 753, 562, 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 ]
2
func Test_Pack(t *testing.T) { gtest.C(t, func(t *gtest.T) { srcPath := gdebug.TestDataPath("files") data, err := gres.Pack(srcPath) t.Assert(err, nil) r := gres.New() err = r.Add(string(data)) t.Assert(err, nil) t.Assert(r.Contains("files"), true) }) }
explode_data.jsonl/26297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 1088, 473, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 41144, 1820, 1669, 342, 8349, 8787, 1043, 1820, 445, 7198, 1138, 197, 8924, 11, 1848, 1669, 342, 416, 1069, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGeoCounterLabel(t *testing.T) { collector := metrics.New(&geoIpLookupProvider{}) counter, err := collector.CreateCounterGeo("test", "seconds", "Hello world!") assert.Nil(t, err, "creating counter returned an error") counter.Increment(net.ParseIP("127.0.0.2")) newCounter := counter.WithLabels(metrics.Label...
explode_data.jsonl/71468
{ "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, 37344, 14099, 2476, 1155, 353, 8840, 836, 8, 341, 1444, 24605, 269, 1669, 16734, 7121, 2099, 13052, 23378, 34247, 5179, 37790, 58261, 11, 1848, 1669, 31953, 7251, 14099, 37344, 445, 1944, 497, 330, 17403, 497, 330, 9707, 1879,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRandomStream(t *testing.T) { r, err := NewRandomStream(1024) require.NoError(t, err) a := make([]byte, 500) n, err := r.Read(a) require.NoError(t, err) require.Equal(t, 500, n) require.NotEqual(t, a, make([]byte, 500)) b := make([]byte, 500) n, err = r.Read(b) require.NoError(t, err) require.Equal...
explode_data.jsonl/44846
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 13999, 3027, 1155, 353, 8840, 836, 8, 341, 7000, 11, 1848, 1669, 1532, 13999, 3027, 7, 16, 15, 17, 19, 340, 17957, 35699, 1155, 11, 1848, 692, 11323, 1669, 1281, 10556, 3782, 11, 220, 20, 15, 15, 340, 9038, 11, 1848, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPongWire(t *testing.T) { tests := []struct { in wire.MsgPong // Message to encode out wire.MsgPong // Expected decoded message buf []byte // Wire encoding pver uint32 // Protocol version for wire encoding }{ // Latest protocol version. { wire.MsgPong{Nonce: 123123}, // 0x1e0f3 ...
explode_data.jsonl/6622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 695 }
[ 2830, 3393, 47, 644, 37845, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 256, 9067, 30365, 47, 644, 442, 4856, 311, 16164, 198, 197, 13967, 220, 9067, 30365, 47, 644, 442, 31021, 29213, 1943, 198, 197, 26398...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvokeBinding(t *testing.T) { port, _ := freeport.GetFreePort() srv := &api{ sendToOutputBindingFn: func(name string, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error) { if name == "error-binding" { return nil, errors.New("error when invoke binding") } return &bindings.InvokeRespo...
explode_data.jsonl/21738
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 17604, 15059, 1155, 353, 8840, 836, 8, 341, 52257, 11, 716, 1669, 1910, 403, 2234, 10940, 7084, 741, 1903, 10553, 1669, 609, 2068, 515, 197, 32817, 1249, 5097, 15059, 24911, 25, 2915, 3153, 914, 11, 4232, 353, 65495, 32784, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue15315(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustQuery("select '0-3261554956'+0.0").Check(testkit.Rows("0")) tk.MustQuery("select cast('0-1234' as real)").Check(testkit.Rows("0")) }
explode_data.jsonl/65502
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 42006, 16, 20, 18, 16, 20, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreatesCorrectBoxFromSimpleBox(t *testing.T) { assert := assert.New(t) bh := BoxHandler{} boxes := []SimpleBox{SimpleBox{Boxname: "dev", Username: "benphegan", Provider: "virtualbox", Version: "2.0"}} host := "localhost" bh.createBoxes(boxes, 80, &host) assert.Equal(1, len(bh.Boxes["benphegan"])) assert...
explode_data.jsonl/51584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 54868, 33092, 1611, 3830, 16374, 1611, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 2233, 71, 1669, 8261, 3050, 16094, 197, 22204, 1669, 3056, 16374, 1611, 90, 16374, 1611, 90, 1611, 606, 25, 330, 3583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_ColumnInt(t *testing.T) { t.Run("ChangeTypeNull", func(t *testing.T) { liteRun(t, func(t *liteTest) { usersT := &schema.Table{ Name: "users", Columns: []*schema.Column{{Name: "a", Type: &schema.ColumnType{Type: &schema.IntegerType{T: "integer"}}}}, } t.migrate(&schema.AddTable{T: ...
explode_data.jsonl/20088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 823 }
[ 2830, 3393, 81772, 96622, 1072, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4072, 929, 3280, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 8810, 632, 6727, 1155, 11, 2915, 1155, 353, 68078, 2271, 8, 341, 298, 90896, 51, 1669, 60...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateLogsReceiver_error(t *testing.T) { cfg := createDefaultConfig().(*Config) cfg.ProtocolVersion = "2.0.0" // disable contacting broker at startup cfg.Metadata.Full = false f := kafkaReceiverFactory{logsUnmarshalers: defaultLogsUnmarshalers()} r, err := f.createLogsReceiver(context.Background(), compo...
explode_data.jsonl/70860
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 4021, 51053, 25436, 4096, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 1855, 3675, 2648, 1005, 4071, 2648, 340, 50286, 54096, 5637, 284, 330, 17, 13, 15, 13, 15, 698, 197, 322, 11156, 46108, 22316, 518, 20567, 198, 50286, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSwitchExists(t *testing.T) { s1, err := NewSwitch() if err != nil { t.Fatal(err) } defer s1.Release() if !s1.Exists() { t.Fatal("Expecting switch", s1.NodeName(), "exists") } s2 := Switch{Name: "xcvxcvcxv"} if s2.Exists() { t.Fatal("Expecting switch", s2.NodeName(), "does not exist") } }
explode_data.jsonl/34909
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 16837, 15575, 1155, 353, 8840, 836, 8, 341, 1903, 16, 11, 1848, 1669, 1532, 16837, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 16867, 274, 16, 58693, 2822, 743, 753, 82, 16, 26996, 368, 341, 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 TestCreatePool(t *testing.T) { if _, err := fc.CreatePool(c.NewAdminContext(), &model.StoragePoolSpec{BaseModel: &model.BaseModel{}}); err != nil { t.Error("Create pool failed:", err) } }
explode_data.jsonl/50705
{ "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, 4021, 10551, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 25563, 7251, 10551, 1337, 7121, 7210, 1972, 1507, 609, 2528, 43771, 10551, 8327, 90, 3978, 1712, 25, 609, 2528, 13018, 1712, 90, 3417, 1215, 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 ]
2
func TestEntry_Disable_KeyDown(t *testing.T) { entry := widget.NewEntry() test.Type(entry, "H") entry.Disable() test.Type(entry, "i") assert.Equal(t, "H", entry.Text) entry.Enable() test.Type(entry, "i") assert.Equal(t, "Hi", entry.Text) }
explode_data.jsonl/12366
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 5874, 45525, 480, 81459, 1155, 353, 8840, 836, 8, 341, 48344, 1669, 9086, 7121, 5874, 2822, 18185, 10184, 18238, 11, 330, 39, 1138, 48344, 10166, 480, 741, 18185, 10184, 18238, 11, 330, 72, 1138, 6948, 12808, 1155, 11, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNew(t *testing.T) { newFn := func() (toil.Toiler, error) { return nil, nil } newer := newFuncNewer(newFn) toilForker := New(newer) if nil == toilForker { t.Errorf("After calling New(), expected returned value not to be nil, but instead was: %v", toilForker) } }
explode_data.jsonl/15804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 3564, 1155, 353, 8840, 836, 8, 1476, 8638, 24911, 1669, 2915, 368, 320, 983, 321, 3274, 5769, 11, 1465, 8, 341, 197, 853, 2092, 11, 2092, 198, 197, 630, 8638, 261, 1669, 501, 9626, 3564, 261, 1755, 24911, 692, 31709, 321...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplicationResolver_DeleteApplication(t *testing.T) { // GIVEN fixName := "fix" appSvc := automock.NewApplicationSvc() defer appSvc.AssertExpectations(t) appSvc.On("Delete", fixName).Return(nil) resolver := application.NewApplicationResolver(appSvc, nil) // WHEN out, err := resolver.DeleteApplication...
explode_data.jsonl/28761
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 4988, 18190, 57418, 4988, 1155, 353, 8840, 836, 8, 341, 197, 322, 89836, 198, 1166, 941, 675, 1669, 330, 5743, 698, 28236, 92766, 1669, 5006, 1176, 7121, 4988, 92766, 741, 16867, 906, 92766, 11711, 17536, 804, 1155, 340, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccOrganisation_basic(t *testing.T) { var organisationResponse organisations.GetUnitsIDOK parentOrganisationId := os.Getenv("FORM3_ORGANISATION_ID") organisationId := uuid.NewV4().String() resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, ...
explode_data.jsonl/58662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 577 }
[ 2830, 3393, 14603, 23227, 7923, 34729, 1155, 353, 8840, 836, 8, 341, 2405, 21424, 2582, 28433, 2234, 26314, 915, 3925, 198, 24804, 23227, 7923, 764, 1669, 2643, 64883, 445, 10818, 18, 19834, 58487, 1637, 3495, 3450, 1138, 197, 57804, 764,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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(t *testing.T) { s := new(S) s.browser = rod.New().Client(nil).Connect() defer s.browser.Close() s.page = s.browser.Page("") s.page.Viewport(800, 600, 1, false) suite.Run(t, s) }
explode_data.jsonl/15071
{ "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, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 3759, 340, 1903, 38611, 284, 20589, 7121, 1005, 2959, 27907, 568, 14611, 2822, 16867, 274, 38611, 10421, 2822, 1903, 10460, 284, 274, 38611, 17558, 31764, 1903, 10460, 6382, 403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestController_GetOperations(t *testing.T) { controller, err := New(&operation.Config{ VDRI: &vdrmock.MockVDRegistry{}, StoreProvider: ariesmemstorage.NewProvider(), }) require.NoError(t, err) require.NotNil(t, controller) ops := controller.GetOperations() require.Equal(t, 6, len(ops)) }
explode_data.jsonl/26410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 2051, 13614, 35120, 1155, 353, 8840, 836, 8, 341, 61615, 11, 1848, 1669, 1532, 2099, 9262, 10753, 515, 197, 197, 12474, 4305, 25, 688, 609, 85, 3612, 16712, 24664, 12474, 15603, 38837, 197, 197, 6093, 5179, 25, 264, 4019, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsBasePoint(t *testing.T) { k256 := btcec.S256() p224 := elliptic.P224() p256 := elliptic.P256() notG_p224, err := NewScalarBaseMult(p224, tt.B10("9876453120")) require.NoError(t, err) tests := []struct { name string curve elliptic.Curve x, y *big.Int expected bool }{ {"k256-posit...
explode_data.jsonl/75671
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 499 }
[ 2830, 3393, 3872, 3978, 2609, 1155, 353, 8840, 836, 8, 341, 16463, 17, 20, 21, 1669, 19592, 68955, 808, 17, 20, 21, 741, 3223, 17, 17, 19, 1669, 77783, 292, 1069, 17, 17, 19, 741, 3223, 17, 20, 21, 1669, 77783, 292, 1069, 17, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFormatBytes(t *testing.T) { tests := []struct { val uint64 want string }{ {1023, "1023 bytes"}, {1024, "1.00KB (1024 bytes)"}, {1024*1024 - 100, "1023.90KB (1048476 bytes)"}, {1024 * 1024, "1.00MB (1048576 bytes)"}, {1024 * 1025, "1.00MB (1049600 bytes)"}, {1024 * 1024 * 1024, "1.00GB (10737...
explode_data.jsonl/16615
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 322 }
[ 2830, 3393, 4061, 7078, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 19302, 220, 2622, 21, 19, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 90, 16, 15, 17, 18, 11, 330, 16, 15, 17, 18, 5820, 7115, 197, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestExtractTrigrams(t *testing.T) { var tests = []struct { input string trigrams []string }{ { input: "word", trigrams: []string{" w", " wo", "wor", "ord", "rd "}, }, { input: "two words", trigrams: []string{" t", " tw", "two", "wo ", " w", " wo", "wor", "ord", "rds", "ds "}, },...
explode_data.jsonl/30742
{ "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, 28959, 1282, 83109, 1155, 353, 8840, 836, 8, 1476, 2405, 7032, 284, 3056, 1235, 341, 197, 22427, 262, 914, 198, 197, 25583, 83109, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 22427, 25, 262, 330, 1158, 756, 298, 25583,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPushImageJSONIndex(t *testing.T) { r := spawnTestRegistrySession(t) imgData := []*ImgData{ { ID: "77dbf71da1d00e3fbddc480176eac8994025630c6590d11cfc8fe1209c2a1d20", Checksum: "sha256:1ac330d56e05eef6d438586545ceff7550d3bdcb6b19961f12c5ba714ee1bb37", }, { ID: "42d718c941f5c532ac049b...
explode_data.jsonl/13111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 427 }
[ 2830, 3393, 16644, 1906, 5370, 1552, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 18042, 2271, 15603, 5283, 1155, 340, 39162, 1043, 1669, 29838, 13033, 1043, 515, 197, 197, 515, 298, 29580, 25, 981, 330, 22, 22, 1999, 69, 22, 16, 3235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDgraphUniverseRepositoryFind(t *testing.T) { wantUniverse := &Universe{ Name: "TestDgraphUniverseRepositoryFind_name", User: "TestDgraphUniverseRepositoryFind_user", Description: "TestDgraphUniverseRepositoryFind_description", } graphql := graphql.NewClient(graphqlUri, nil) repo := &Gr...
explode_data.jsonl/12304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 480 }
[ 2830, 3393, 35, 4439, 1806, 8034, 4624, 9885, 1155, 353, 8840, 836, 8, 341, 50780, 1806, 8034, 1669, 609, 1806, 8034, 515, 197, 21297, 25, 286, 330, 2271, 35, 4439, 1806, 8034, 4624, 9885, 1269, 756, 197, 31672, 25, 286, 330, 2271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVariousDeadlines1Proc(t *testing.T) { // Cannot use t.Parallel - modifies global GOMAXPROCS. if testing.Short() { t.Skip("skipping in short mode") } defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1)) testVariousDeadlines(t) }
explode_data.jsonl/57687
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 72641, 28320, 7969, 16, 24508, 1155, 353, 8840, 836, 8, 341, 197, 322, 34655, 990, 259, 41288, 7957, 481, 82949, 3644, 479, 1898, 2954, 9117, 6412, 624, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 304, 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 TestContextAbortWithError(t *testing.T) { w := httptest.NewRecorder() c, _ := CreateTestContext(w) c.AbortWithError(http.StatusUnauthorized, errors.New("bad input")).SetMeta("some input") // nolint: errcheck assert.Equal(t, http.StatusUnauthorized, w.Code) assert.Equal(t, abortIndex, c.index) assert.True(t...
explode_data.jsonl/26815
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 1972, 85891, 66102, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 54320, 70334, 7121, 47023, 741, 1444, 11, 716, 1669, 4230, 2271, 1972, 3622, 692, 1444, 25206, 371, 66102, 19886, 10538, 51181, 11, 5975, 7121, 445, 13855, 1946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSharedBufferSingleton(t *testing.T) { buf := NewSharedBuffer(3) ch := buf.NewChannel() for i := 0; i < 5; i++ { ch.In() <- (*int)(nil) ch.In() <- (*int)(nil) ch.In() <- (*int)(nil) select { case ch.In() <- (*int)(nil): t.Error("Wrote to full shared-buffer") default: } <-ch.Out() <-ch....
explode_data.jsonl/59663
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 16997, 4095, 25915, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 1532, 16997, 4095, 7, 18, 692, 23049, 1669, 6607, 7121, 9629, 741, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 20, 26, 600, 1027, 341, 197, 23049, 5337, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCanSupport(t *testing.T) { tmpDir, err := utiltesting.MkTmpdir("gcepdTest") if err != nil { t.Fatalf("can't make a temp dir: %v", err) } defer os.RemoveAll(tmpDir) plugMgr := volume.VolumePluginMgr{} plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, volumetest.NewFakeVolumeHost(tmpDir, nil, n...
explode_data.jsonl/65181
{ "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, 6713, 7916, 1155, 353, 8840, 836, 8, 341, 20082, 6184, 11, 1848, 1669, 4094, 8840, 1321, 74, 35986, 3741, 445, 70, 346, 15360, 2271, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 4814, 944, 1281, 264, 2730, 5419,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseErrors(t *testing.T) { t.Parallel() cases := []struct { name string input string expect string }{ {"disallow-before", "Disallow: /\nUser-agent: bot", "Disallow before User-agent"}, {"crawl-delay-syntax", "User-agent: bot\nCrawl-delay: bad-time-value", "invalid syntax"}, {"crawl-delay-inf...
explode_data.jsonl/51681
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 14463, 13877, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 22427, 220, 914, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 4913, 4243, 7183, 694...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFuncMap(t *testing.T) { fns := funcMap() forbidden := []string{"env", "expandenv"} for _, f := range forbidden { if _, ok := fns[f]; ok { t.Errorf("Forbidden function %s exists in FuncMap.", f) } } // Test for Engine-specific template functions. expect := []string{"include", "required", "tpl", "t...
explode_data.jsonl/74698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 9626, 2227, 1155, 353, 8840, 836, 8, 341, 1166, 4412, 1669, 2915, 2227, 741, 2023, 22108, 1669, 3056, 917, 4913, 3160, 497, 330, 32317, 3160, 16707, 2023, 8358, 282, 1669, 2088, 36813, 341, 197, 743, 8358, 5394, 1669, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckMergeBoundedQuantilesStateChecks(t *testing.T) { for _, tc := range []struct { state1 aggregationState state2 aggregationState wantErr bool }{ {defaultState, defaultState, false}, {resultReturned, defaultState, true}, {defaultState, resultReturned, true}, {serialized, defaultState, true}...
explode_data.jsonl/80643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 322 }
[ 2830, 3393, 3973, 52096, 33, 13082, 44220, 3658, 1397, 49820, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 24291, 16, 220, 51629, 1397, 198, 197, 24291, 17, 220, 51629, 1397, 198, 197, 50780, 7747, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOFctrlFlow(t *testing.T) { br := "br03" err := PrepareOVSBridge(br) if err != nil { t.Fatalf("Failed to prepare OVS bridge: %v", err) } defer func() { err = DeleteOVSBridge(br) if err != nil { t.Errorf("error while deleting OVS bridge: %v", err) } }() bridge := binding.NewOFBridge(br) table...
explode_data.jsonl/23785
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 859 }
[ 2830, 3393, 12483, 11933, 18878, 1155, 353, 8840, 836, 8, 341, 80255, 1669, 330, 1323, 15, 18, 698, 9859, 1669, 31166, 38957, 16680, 11183, 41237, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 9408, 311, 10549, 506, 26050, 1416...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExportContainerAfterDaemonRestart(t *testing.T) { skip.If(t, testEnv.DaemonInfo.OSType != "linux") skip.If(t, testEnv.IsRemoteDaemon()) d := daemon.New(t, "", "dockerd", daemon.Config{}) client, err := d.NewClient() assert.NilError(t, err) d.StartWithBusybox(t) defer d.Stop(t) ctx := context.Backgro...
explode_data.jsonl/34688
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 16894, 4502, 6025, 89177, 59354, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 32901, 1155, 11, 1273, 14359, 909, 64, 7291, 1731, 13, 4233, 499, 961, 330, 14210, 1138, 1903, 13389, 32901, 1155, 11, 1273, 14359, 4506, 24703, 891...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAdapterCookieSyncMetric(t *testing.T) { m := createMetricsForTesting() adapterName := "anyName" privacyBlocked := true m.RecordAdapterCookieSync(openrtb_ext.BidderName(adapterName), privacyBlocked) expectedCount := float64(1) assertCounterVecValue(t, "", "adapterCookieSync", m.adapterCookieSync, expe...
explode_data.jsonl/13953
{ "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, 5940, 20616, 12154, 54310, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1855, 27328, 2461, 16451, 741, 197, 19731, 675, 1669, 330, 3767, 675, 698, 197, 46821, 95847, 1669, 830, 271, 2109, 49959, 5940, 20616, 12154, 30981, 3342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFetchIntoObjectPool_Failure(t *testing.T) { cfgBuilder := testcfg.NewGitalyCfgBuilder() cfg, repos := cfgBuilder.BuildWithRepoAt(t, t.Name()) locator := config.NewLocator(cfg) gitCmdFactory := git.NewExecCommandFactory(cfg) catfileCache := catfile.NewCache(cfg) t.Cleanup(catfileCache.Stop) server := N...
explode_data.jsonl/62527
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 695 }
[ 2830, 3393, 20714, 26591, 1190, 10551, 1400, 9373, 1155, 353, 8840, 836, 8, 341, 50286, 3297, 1669, 1273, 14072, 7121, 38, 2174, 88, 42467, 3297, 741, 50286, 11, 45774, 1669, 13286, 3297, 25212, 2354, 25243, 1655, 1155, 11, 259, 2967, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInt64ArrayScanBytes(t *testing.T) { for _, tt := range Int64ArrayStringTests { bytes := []byte(tt.str) arr := Int64Array{5, 5, 5} err := arr.Scan(bytes) if err != nil { t.Fatalf("Expected no error for %q, got %v", bytes, err) } if !reflect.DeepEqual(arr, tt.arr) { t.Errorf("Expected %+v for...
explode_data.jsonl/5328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 1072, 21, 19, 1857, 26570, 7078, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 1333, 21, 19, 1857, 703, 18200, 341, 197, 70326, 1669, 3056, 3782, 47152, 9528, 340, 197, 36511, 1669, 1333, 21, 19, 1857, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsCanonicalHeader(t *testing.T) { expected := true result := isCanonicalHeader("content-type") if result != expected { t.Error(util.FormatTest("isCanonicalHeader", strconv.FormatBool(result), strconv.FormatBool(expected))) } expected = false result = isCanonicalHeader("Accept-Encoding") if result !...
explode_data.jsonl/27170
{ "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, 3872, 70914, 4047, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 830, 198, 9559, 1669, 374, 70914, 4047, 445, 1796, 10604, 5130, 743, 1102, 961, 3601, 341, 197, 3244, 6141, 67811, 9978, 2271, 445, 285, 70914, 4047, 497, 33317, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGlobalToGlobal(t *testing.T) { if globalV4 == nil { t.Skip("no globalV4 addresses configured") return } testUseFirst(t, globalV4, globalV4, loopbackV4) testUseFirst(t, globalV6, globalV6, loopbackV6) }
explode_data.jsonl/3802
{ "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, 11646, 1249, 11646, 1155, 353, 8840, 836, 8, 341, 743, 3644, 53, 19, 621, 2092, 341, 197, 3244, 57776, 445, 2152, 3644, 53, 19, 14230, 19755, 1138, 197, 853, 198, 197, 532, 18185, 10253, 5338, 1155, 11, 3644, 53, 19, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTaskConversion(t *testing.T) { versions := []apis.Convertible{&v1beta1.Task{}} tests := []struct { name string in *Task wantErr bool }{{ name: "simple conversion", in: &Task{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: "bar", Generation: 1, }, Spec: ...
explode_data.jsonl/15946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1763 }
[ 2830, 3393, 6262, 48237, 1155, 353, 8840, 836, 8, 341, 197, 28290, 1669, 3056, 13725, 36179, 1238, 90, 5, 85, 16, 19127, 16, 28258, 6257, 630, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 17430, 414, 353, 6262, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestNullAt(t *testing.T) { for i := uint16(0); i < BatchSize; i++ { if i%3 == 0 { require.True(t, nulls3.NullAt(i)) } else { require.False(t, nulls3.NullAt(i)) } } }
explode_data.jsonl/37154
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 3280, 1655, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 2622, 16, 21, 7, 15, 1215, 600, 366, 33904, 1695, 26, 600, 1027, 341, 197, 743, 600, 4, 18, 621, 220, 15, 341, 298, 17957, 32443, 1155, 11, 845, 82, 18, 2397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandleSyntaxErr(t *testing.T) { var testData = []string{ "asdasdasd", "((a=1", "((a='foo'", "((a='foo')", "a=foo", "a in (foo,bar)", "a in (foo)", "a ∩ (foo)", "a != foo", } data := map[string]interface{}{ "a": "foo", } ass := assert.New(t) for _, tc := range testData { ok, err :=...
explode_data.jsonl/65934
{ "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, 6999, 33890, 7747, 1155, 353, 8840, 836, 8, 341, 2405, 67348, 284, 3056, 917, 515, 197, 197, 1, 300, 34889, 34889, 67, 756, 197, 197, 1, 1188, 64, 28, 16, 756, 197, 197, 1, 1188, 64, 1131, 7975, 38330, 197, 197, 1, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTuple(t *testing.T) { require := require.New(t) tup := NewTuple( NewLiteral(int64(1), sql.Int64), NewLiteral(float64(3.14), sql.Float64), NewLiteral("foo", sql.LongText), ) ctx := sql.NewEmptyContext() require.False(tup.IsNullable()) require.True(tup.Resolved()) require.Equal(sql.CreateTuple(sq...
explode_data.jsonl/58254
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 535 }
[ 2830, 3393, 28681, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 692, 3244, 454, 1669, 1532, 28681, 1006, 197, 197, 3564, 17350, 1548, 21, 19, 7, 16, 701, 5704, 7371, 21, 19, 1326, 197, 197, 3564, 17350, 8268, 21, 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 TestBasic(t *testing.T) { tc := setup(t, "basic", false) defer tc.cleanup() fmt.Printf("Test: Basic Join/Leave ...\n") tc.join(0) ck := tc.clerk() ck.Put("a", "x") ck.Append("a", "b") if ck.Get("a") != "xb" { t.Fatalf("Get got wrong value") } keys := make([]string, 10) vals := make([]string, len(...
explode_data.jsonl/18805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 624 }
[ 2830, 3393, 15944, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 6505, 1155, 11, 330, 22342, 497, 895, 340, 16867, 17130, 87689, 2822, 11009, 19367, 445, 2271, 25, 14625, 16471, 14, 21833, 98760, 77, 5130, 78255, 5446, 7, 15, 692, 197, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestWebSocketEmptyTLS(t *testing.T) { testSrv := getTestServer(t, "127.0.0.1:8000") defer testSrv.Close() wsYaml := ` kind: WebSocketServer name: websocket-demo port: 10081 https: true backend: wss://127.0.0.1:8000 certBase64: 1234 keyBase64: 2234 wssCertBase64: 3234 wssKeyBase64: 4234 ` super := supervisor.N...
explode_data.jsonl/65817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 61238, 3522, 45439, 1155, 353, 8840, 836, 8, 341, 18185, 50, 10553, 1669, 633, 2271, 5475, 1155, 11, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 23, 15, 15, 15, 1138, 16867, 1273, 50, 10553, 10421, 2822, 6692, 82, 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...
1
func TestConfigRefine(t *testing.T) { cfgFile, ctx, cluster, ns := "testdata/kubeconfig-test.yml", "test2", "cluster2", "ns2" uu := map[string]struct { flags *genericclioptions.ConfigFlags issue bool context, cluster, namespace string }{ "plain": { flags: &g...
explode_data.jsonl/19249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 709 }
[ 2830, 3393, 2648, 3945, 482, 1155, 353, 8840, 836, 8, 341, 50286, 1703, 11, 5635, 11, 10652, 11, 12268, 1669, 330, 92425, 14109, 3760, 1676, 16839, 33936, 497, 330, 1944, 17, 497, 330, 18855, 17, 497, 330, 4412, 17, 698, 10676, 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...
2
func TestTransactionFetcherDrop(t *testing.T) { testTransactionFetcherParallel(t, txFetcherTest{ init: func() *TxFetcher { return NewTxFetcher( func(common.Hash) bool { return false }, func(txs []*types.Transaction) []error { return make([]error, len(txs)) }, func(string, []common.Hash) error...
explode_data.jsonl/52226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 8070, 97492, 19871, 1155, 353, 8840, 836, 8, 341, 18185, 8070, 97492, 16547, 1155, 11, 259, 9770, 2995, 261, 2271, 515, 197, 28248, 25, 2915, 368, 353, 51, 9770, 2995, 261, 341, 298, 853, 1532, 51, 9770, 2995, 261, 1006, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewMarkdownMessage(t *testing.T) { tests := []struct { name string want *MarkdownMessage }{ { name: "Should return a MarkdownMessage instance", want: &MarkdownMessage{}, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := NewMarkdownMessage(); !reflect.DeepEqual...
explode_data.jsonl/74059
{ "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, 3564, 68005, 2052, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 50780, 353, 68005, 2052, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 14996, 470, 264, 73192, 2052, 2867, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBytes_Type(t *testing.T) { tests := []struct { name string e Bytes want Type }{ {name: "", e: Bytes{[]byte("")}, want: ValTypes.Bytes}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.e.Type(); !got.Equal(tt.want) { t.Errorf("Bytes.Type() = %v, want %v", go...
explode_data.jsonl/34754
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 7078, 13729, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 7727, 262, 30024, 198, 197, 50780, 3990, 198, 197, 59403, 197, 197, 47006, 25, 7342, 384, 25, 30024, 90, 1294, 3782, 39047...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaoUV(t *testing.T) { convey.Convey("addUV+countUV", t, func(ctx convey.C) { var ( action = "test" hour = 0 slot = 0 kind = "test" mid = int64(0) err error counts []int64 ) ctx.Convey("When everything goes positive", func(ctx convey.C) { err = d.AddUV(context.Backgrou...
explode_data.jsonl/21784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 12197, 22246, 1155, 353, 8840, 836, 8, 341, 37203, 5617, 4801, 5617, 445, 718, 22246, 10, 1830, 22246, 497, 259, 11, 2915, 7502, 20001, 727, 8, 341, 197, 2405, 2399, 298, 38933, 284, 330, 1944, 698, 298, 9598, 413, 256, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDownload(t *testing.T) { co := newCapturedOutput() co.override() defer co.reset() testCases := []struct { requester bool expectedDir string flags map[string]string }{ { requester: true, expectedDir: "", flags: map[string]string{"exercise": "bogus-exercise"}, }, { r...
explode_data.jsonl/15069
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 809 }
[ 2830, 3393, 11377, 1155, 353, 8840, 836, 8, 341, 197, 1015, 1669, 501, 40536, 3073, 5097, 741, 197, 1015, 96802, 741, 16867, 1062, 13857, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 23555, 261, 256, 1807, 198, 197, 42400, 6184, 914,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestUpdateUserPassword(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() password := "newpassword1" _, err := th.Client.UpdateUserPassword(th.BasicUser.Id, th.BasicUser.Password, password) require.NoError(t, err) resp, err := th.Client.UpdateUserPassword(th.BasicUser.Id, password, "") require...
explode_data.jsonl/47527
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 808 }
[ 2830, 3393, 4289, 1474, 4876, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 58199, 1669, 330, 931, 3833, 16, 698, 197, 6878, 1848, 1669, 270, 11716, 16689, 1474, 4876, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListBuckets(t *testing.T) { ts := newTestServer(t, withoutInitialBuckets()) defer ts.Close() svc := ts.s3Client() assertBuckets := func(expected ...string) { t.Helper() rs, err := svc.ListBuckets(&s3.ListBucketsInput{}) ts.OK(err) var found []string for _, bucket := range rs.Buckets { found ...
explode_data.jsonl/22249
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 567 }
[ 2830, 3393, 852, 33, 38551, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 501, 2271, 5475, 1155, 11, 2041, 6341, 33, 38551, 2398, 16867, 10591, 10421, 741, 1903, 7362, 1669, 10591, 514, 18, 2959, 2822, 6948, 33, 38551, 1669, 2915, 15253, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconciler_PromoteCanaries_Unblock(t *testing.T) { job := mock.Job() job.TaskGroups[0].Update = canaryUpdate // Create an existing deployment that has placed some canaries and mark them // promoted d := structs.NewDeployment(job) s := &structs.DeploymentState{ Promoted: true, DesiredTotal: ...
explode_data.jsonl/67266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 889 }
[ 2830, 3393, 693, 40446, 5769, 1088, 441, 1272, 6713, 5431, 40687, 4574, 1155, 353, 8840, 836, 8, 341, 68577, 1669, 7860, 45293, 741, 68577, 28258, 22173, 58, 15, 936, 4289, 284, 646, 658, 4289, 271, 197, 322, 4230, 458, 6350, 23172, 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 TestCopyWriterWrite(t *testing.T) { resp := httptest.NewRecorder() cr := util.NewCopyWriter(resp) b := []byte("data") _, err := cr.Write(b) require.NoError(t, err) cb, err := cr.Body() require.NoError(t, err) assert.Equal(t, b, cb) }
explode_data.jsonl/63015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 12106, 6492, 7985, 1155, 353, 8840, 836, 8, 341, 34653, 1669, 54320, 70334, 7121, 47023, 2822, 91492, 1669, 4094, 7121, 12106, 6492, 20267, 692, 2233, 1669, 3056, 3782, 445, 691, 5130, 197, 6878, 1848, 1669, 1560, 4073, 1883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTxnCoordSenderCondenseLockSpans(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) a := roachpb.Span{Key: roachpb.Key("a"), EndKey: roachpb.Key(nil)} b := roachpb.Span{Key: roachpb.Key("b"), EndKey: roachpb.Key(nil)} c := roachpb.Span{Key: roachpb.Key("c"), EndKey: roachpb.Key(nil)}...
explode_data.jsonl/76883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2234 }
[ 2830, 3393, 31584, 77, 19437, 20381, 49696, 1117, 11989, 6406, 596, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 340, 11323, 1669, 926, 610, 16650, 85309, 90, 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...
4
func TestDeployInjectImageEnvVar(t *testing.T) { f := newIBDFixture(t, k8s.EnvGKE) defer f.TearDown() manifest := NewSanchoManifestWithImageInEnvVar(f) _, err := f.ibd.BuildAndDeploy(f.ctx, f.st, buildTargets(manifest), store.BuildStateSet{}) if err != nil { t.Fatal(err) } entities, err := k8s.ParseYAMLFromS...
explode_data.jsonl/38269
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 470 }
[ 2830, 3393, 69464, 13738, 1906, 14359, 3962, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 3256, 5262, 12735, 1155, 11, 595, 23, 82, 81214, 38, 3390, 340, 16867, 282, 836, 682, 4454, 2822, 197, 42315, 1669, 1532, 23729, 958, 38495, 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...
5
func TestUnmarshalNestedAnonymousStructs_Controversial(t *testing.T) { type Nested struct { Value string `toml:"nested"` } type Deep struct { Nested } type Document struct { Deep Value string `toml:"own"` } var doc Document err := Unmarshal([]byte(`nested = "nested value"`+"\n"+`own = "own value"`), &...
explode_data.jsonl/46355
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 1806, 27121, 71986, 32684, 9422, 82, 62, 818, 12563, 530, 1155, 353, 8840, 836, 8, 341, 13158, 71742, 2036, 341, 197, 47399, 914, 1565, 37401, 75, 2974, 59271, 8805, 197, 532, 13158, 18183, 2036, 341, 197, 18317, 9980, 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...
2
func TestPlayer_IsSpottedBy_HasSpotted_False(t *testing.T) { pl := playerWithProperty("m_bSpottedByMask.000", st.PropertyValue{IntVal: 0}) pl.EntityID = 1 other := newPlayer(0) other.EntityID = 2 assert.False(t, pl.IsSpottedBy(other)) assert.False(t, other.HasSpotted(pl)) }
explode_data.jsonl/12174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 4476, 31879, 6406, 15521, 1359, 2039, 300, 6406, 15521, 1400, 710, 1155, 353, 8840, 836, 8, 341, 72213, 1669, 2781, 2354, 3052, 445, 76, 880, 6406, 15521, 1359, 12686, 13, 15, 15, 15, 497, 357, 15727, 1130, 90, 1072, 2208,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestService_Handle_Inviter(t *testing.T) { mockStore := &mockstorage.MockStore{Store: make(map[string]mockstorage.DBEntry)} storeProv := mockstorage.NewCustomMockStoreProvider(mockStore) k := newKMS(t, storeProv) prov := &protocol.MockProvider{ StoreProvider: storeProv, ServiceMap: map[string]interface{}{ ...
explode_data.jsonl/30516
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1357 }
[ 2830, 3393, 1860, 42714, 62, 15174, 2015, 1155, 353, 8840, 836, 8, 341, 77333, 6093, 1669, 609, 16712, 16172, 24664, 6093, 90, 6093, 25, 1281, 9147, 14032, 60, 16712, 16172, 22537, 5874, 10569, 57279, 80261, 1669, 7860, 16172, 7121, 10268...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiagnosticsCountMigrator(t *testing.T) { db := dbtest.NewDB(t) store := lsifstore.NewStore(db, conf.DefaultClient(), &observation.TestContext) migrator := NewDiagnosticsCountMigrator(store, 250) serializer := lsifstore.NewSerializer() assertProgress := func(expectedProgress float64) { if progress, err ...
explode_data.jsonl/1836
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 881 }
[ 2830, 3393, 35, 18938, 2507, 44, 5233, 850, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 2927, 1944, 7121, 3506, 1155, 340, 57279, 1669, 19597, 333, 4314, 7121, 6093, 9791, 11, 2335, 13275, 2959, 1507, 609, 77960, 8787, 1972, 340, 2109, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRocksPebbleCheck(t *testing.T) { defer leaktest.AfterTest(t) ctx := context.Background() if *check != "" { if _, err := os.Stat(*check); os.IsNotExist(err) { t.Fatal(err) } run := testRun{ ctx: ctx, t: t, checkFile: *check, restarts: true, engineSequences: [][]engine...
explode_data.jsonl/82664
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 221 }
[ 2830, 3393, 49, 25183, 47, 3065, 891, 3973, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 340, 20985, 1669, 2266, 19047, 2822, 743, 353, 2028, 961, 1591, 341, 197, 743, 8358, 1848, 1669, 2643, 53419, 4071, 2028, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntry_SelectHomeEnd(t *testing.T) { e, window := setupSelection(t, false) defer teardownImageTest(window) c := window.Canvas() // Hold shift to continue selection typeKeys(e, keyShiftLeftDown) // T e[s t i]n g -> end -> // T e[s t i n g] typeKeys(e, fyne.KeyEnd) test.AssertRendersToMarkup(t, "entry/s...
explode_data.jsonl/12356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 5874, 58073, 7623, 3727, 1155, 353, 8840, 836, 8, 341, 7727, 11, 3241, 1669, 6505, 11177, 1155, 11, 895, 340, 16867, 49304, 1906, 2271, 15906, 340, 1444, 1669, 3241, 54121, 2822, 197, 322, 22749, 6407, 311, 3060, 6589, 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 TestEscapeStringField(t *testing.T) { cases := []struct { in string expOut string }{ {in: "abcdefg", expOut: "abcdefg"}, {in: `one double quote " .`, expOut: `one double quote \" .`}, {in: `quote " then backslash \ .`, expOut: `quote \" then backslash \\ .`}, {in: `backslash \ then quote " .`, ex...
explode_data.jsonl/16977
{ "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, 48124, 703, 1877, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 17430, 257, 914, 198, 197, 48558, 2662, 914, 198, 197, 59403, 197, 197, 90, 258, 25, 330, 41202, 70, 497, 1343, 2662, 25, 330, 41202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMenusPageMultipleOutputFormats(t *testing.T) { config := ` baseURL = "https://example.com" # DAMP is similar to AMP, but not permalinkable. [outputFormats] [outputFormats.damp] mediaType = "text/html" path = "damp" ` b := newTestSitesBuilder(t).WithConfigFile("toml", config) b.WithContent("_index.md", ` ...
explode_data.jsonl/51843
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 453 }
[ 2830, 3393, 77944, 2665, 32089, 5097, 44599, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 22074, 3152, 3144, 284, 330, 2428, 1110, 8687, 905, 1837, 2, 12360, 47, 374, 4428, 311, 62908, 11, 714, 537, 79228, 480, 624, 58, 3006, 44599, 921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCantMergeConflict(t *testing.T) { onGiteaRun(t, func(t *testing.T, giteaURL *url.URL) { session := loginUser(t, "user1") testRepoFork(t, session, "user2", "repo1", "user1", "repo1") testEditFileToNewBranch(t, session, "user1", "repo1", "master", "conflict", "README.md", "Hello, World (Edited Once)\n") ...
explode_data.jsonl/70639
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 775 }
[ 2830, 3393, 34, 517, 52096, 57974, 1155, 353, 8840, 836, 8, 341, 24630, 38, 632, 64, 6727, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 342, 632, 64, 3144, 353, 1085, 20893, 8, 341, 197, 25054, 1669, 87169, 1155, 11, 330, 872, 16, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNoClassDefaultDependency(t *testing.T) { moduleSystem := NewModuleSystem( map[string][]string{ "client": {"clients/*"}, "endpoint": {"endpoints/*"}, }, map[string][]string{ "endpoint": { "clients/example", }, }, false, ) var err error err = moduleSystem.RegisterClass(ModuleClas...
explode_data.jsonl/34588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 547 }
[ 2830, 3393, 2753, 1957, 3675, 36387, 1155, 353, 8840, 836, 8, 341, 54020, 2320, 1669, 1532, 3332, 2320, 1006, 197, 19567, 14032, 45725, 917, 515, 298, 197, 1, 2972, 788, 256, 5212, 31869, 1057, 7115, 298, 197, 1, 32540, 788, 5212, 408...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKnativeServiceWithCustomContainerName(t *testing.T) { catalog, err := camel.DefaultCatalog() assert.Nil(t, err) traitCatalog := NewCatalog(context.TODO(), nil) environment := Environment{ CamelCatalog: catalog, Catalog: traitCatalog, Integration: &v1.Integration{ ObjectMeta: metav1.ObjectMe...
explode_data.jsonl/55846
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 890 }
[ 2830, 3393, 42, 29738, 1860, 2354, 10268, 4502, 675, 1155, 353, 8840, 836, 8, 341, 1444, 7750, 11, 1848, 1669, 49152, 13275, 41606, 741, 6948, 59678, 1155, 11, 1848, 692, 25583, 1315, 41606, 1669, 1532, 41606, 5378, 90988, 1507, 2092, 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 TestCollection_BulkWrite(t *testing.T) { mgoClient := Ins() result, err := mgoClient.C("test").BulkWrite([]mongo.WriteModel{ &mongo.InsertOneModel{Document: bson.M{"name": "x"}}, &mongo.DeleteOneModel{Filter: bson.M{"name": "x"}}, }) if err != nil { t.Errorf("BulkWrite error: %s", err) t.FailNow() } ...
explode_data.jsonl/30098
{ "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, 6482, 1668, 21785, 7985, 1155, 353, 8840, 836, 8, 341, 2109, 3346, 2959, 1669, 9726, 2822, 9559, 11, 1848, 1669, 296, 3346, 2959, 727, 445, 1944, 1827, 88194, 7985, 10556, 53070, 4073, 1712, 515, 197, 197, 5, 53070, 23142, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBasicGetInvalid(t *testing.T) { client := newBasicClient() result, err := client.GetInvalid(context.Background(), nil) if err == nil { t.Fatal("GetInvalid expected an error") } if r := cmp.Diff(result, BasicGetInvalidResponse{}); r != "" { t.Fatal(r) } }
explode_data.jsonl/15339
{ "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, 15944, 1949, 7928, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 501, 15944, 2959, 741, 9559, 11, 1848, 1669, 2943, 2234, 7928, 5378, 19047, 1507, 2092, 340, 743, 1848, 621, 2092, 341, 197, 3244, 26133, 445, 1949, 7928, 3601, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlobberGRPCService_GetReferencePath_Success(t *testing.T) { req := &blobbergrpc.GetReferencePathRequest{ Context: &blobbergrpc.RequestContext{ Client: "client", ClientKey: "", Allocation: "", }, Paths: `["something"]`, Path: "", Allocation: "", } mockStorageHandler := &st...
explode_data.jsonl/66834
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 416 }
[ 2830, 3393, 37985, 652, 8626, 4872, 1860, 13614, 8856, 1820, 87161, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 609, 35112, 652, 56585, 2234, 8856, 1820, 1900, 515, 197, 70871, 25, 609, 35112, 652, 56585, 9659, 1972, 515, 298, 71724, 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 TestLogRestore(t *testing.T) { logdir, err := ioutil.TempDir("", "backupds-test-") require.NoError(t, err) defer os.RemoveAll(logdir) // nolint ds1 := datastore.NewMapDatastore() putVals(t, ds1, 0, 10) bds, err := Wrap(ds1, logdir) require.NoError(t, err) putVals(t, bds, 10, 20) require.NoError(t, bd...
explode_data.jsonl/26962
{ "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, 2201, 56284, 1155, 353, 8840, 836, 8, 341, 6725, 3741, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 31371, 5356, 16839, 12, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 12531, 3741, 8, 442, 308, 337, 396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCluserStatus(t *testing.T) { _, err := c.ClusterStatus() if err != nil { t.Fatal(err) } // TODO Here we could do a little more testing // with an active cluster }
explode_data.jsonl/77820
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 5066, 872, 2522, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 272, 72883, 2522, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 197, 322, 5343, 5692, 582, 1410, 653, 264, 2632, 803, 7497, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConverter_ToEntity(t *testing.T) { t.Run("success all nullable properties filled", func(t *testing.T) { versionModel := *fixModelVersion("v1.2", true, "v1.1", false) versionConv := version.NewConverter() //WHEN versionEntity, err := versionConv.ToEntity(versionModel) //THEN require.NoError(t, err)...
explode_data.jsonl/37072
{ "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, 14920, 38346, 3030, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 5630, 678, 13258, 5888, 10199, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 74954, 1712, 1669, 353, 5743, 1712, 5637, 445, 85, 16, 13, 17, 497, 830, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMD5(t *testing.T) { for i, this := range []struct { input string expectedHash string }{ {"Hello world, gophers!", "b3029f756f98f79e7f1b7f1d1f0dd53b"}, {"Lorem ipsum dolor", "06ce65ac476fc656bea3fca5d02cfd81"}, } { result, err := md5(this.input) if err != nil { t.Errorf("md5 returned er...
explode_data.jsonl/9255
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 6076, 20, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 419, 1669, 2088, 3056, 1235, 341, 197, 22427, 286, 914, 198, 197, 42400, 6370, 914, 198, 197, 59403, 197, 197, 4913, 9707, 1879, 11, 342, 5127, 388, 18789, 330, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestIntegrationDNSLookupUnknownDNS(t *testing.T) { ctx := context.Background() results := DNSLookup(ctx, DNSLookupConfig{ Hostname: "ooni.io", ServerNetwork: "antani", }) if !strings.HasSuffix(results.Error.Error(), "unsupported network value") { t.Fatal("expected a different error here") } }
explode_data.jsonl/53532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 52464, 61088, 34247, 13790, 61088, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 55497, 1669, 27598, 34247, 7502, 11, 27598, 34247, 2648, 515, 197, 197, 88839, 25, 414, 330, 9009, 72, 4245, 756, 197, 92075, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCommentsWhitespace(t *testing.T) { cases := []struct { note string module string expected []string }{ { note: "trailing spaces", module: "# a comment \t \n", expected: []string{" a comment \t "}, }, { note: "trailing carriage return", module: "# a commen...
explode_data.jsonl/50490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 637 }
[ 2830, 3393, 17373, 73804, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 9038, 1272, 257, 914, 198, 197, 54020, 256, 914, 198, 197, 42400, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 9038, 1272, 25, 257, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSeries_StartsWith(t *testing.T) { // assert that function returns a correct bool Series s := NewSeries("test", nil, "foo", "bar is", "food now", "now now!!") assert.Equal(t, NewSeries("HasPrefix(test)", false, true, false, true, false), s.StartsWith("foo")) }
explode_data.jsonl/54087
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 25544, 38056, 16056, 1155, 353, 8840, 836, 8, 341, 197, 322, 2060, 429, 729, 4675, 264, 4396, 1807, 11131, 198, 1903, 1669, 1532, 25544, 445, 1944, 497, 2092, 11, 330, 7975, 497, 330, 2257, 374, 497, 330, 13915, 1431, 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 TestEscapingBlockResource(t *testing.T) { // (this also tests escaping blocks in provisioner blocks, because // they only appear nested inside resource blocks.) parser := NewParser(nil) mod, diags := parser.LoadConfigDir("testdata/escaping-blocks/resource") assertNoDiagnostics(t, diags) if mod == nil { t....
explode_data.jsonl/58362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1354 }
[ 2830, 3393, 36121, 14216, 4713, 4783, 1155, 353, 8840, 836, 8, 341, 197, 322, 320, 574, 1083, 7032, 52654, 10010, 304, 17136, 261, 10010, 11, 1576, 198, 197, 322, 807, 1172, 4994, 24034, 4766, 5101, 10010, 9272, 55804, 1669, 1532, 6570,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHealthCheckStreamError(t *testing.T) { ts := memorytopo.NewServer("cell") hc := createTestHc(ts) defer hc.Close() tablet := topo.NewTablet(0, "cell", "a") tablet.PortMap["vt"] = 1 input := make(chan *querypb.StreamHealthResponse) resultChan := hc.Subscribe() fc := createFakeConn(tablet, input) fc.err...
explode_data.jsonl/47685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 966 }
[ 2830, 3393, 14542, 3973, 3027, 1454, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 4938, 3481, 78, 7121, 5475, 445, 5873, 1138, 9598, 66, 1669, 1855, 2271, 39, 66, 35864, 340, 16867, 50394, 10421, 2822, 26481, 83, 1669, 72519, 7121, 2556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCAinitEnrollmentSigner(t *testing.T) { testDirClean(t) cfg = CAConfig{} ca, err := newCA(configFile, &cfg, &srv, true) if err != nil { t.Fatal("newCA FAILED", err) } cfg.Intermediate.ParentServer.URL = "1" ca, err = newCA(configFile, &cfg, &srv, false) if err != nil { t.Fatal("newCA FAILED", err) ...
explode_data.jsonl/82704
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 5049, 2327, 1702, 25864, 7264, 261, 1155, 353, 8840, 836, 8, 341, 18185, 6184, 27529, 1155, 340, 50286, 284, 9183, 2648, 16094, 197, 924, 11, 1848, 1669, 501, 5049, 8754, 1703, 11, 609, 14072, 11, 609, 40020, 11, 830, 340,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4