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 TestModels_Marshal_Unmarshal_Time(t *testing.T) { testModel1 := TestModel{} testModel1.Time1 = &Time{} testModel1.Time1.Time = time.Now() b, err := json.Marshal(testModel1) if err != nil { t.Errorf(err.Error()) } testModel2 := TestModel{} err = json.Unmarshal(b, &testModel2) if err != nil { t.Errorf(...
explode_data.jsonl/38128
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 16969, 1245, 28423, 40687, 27121, 39080, 1155, 353, 8840, 836, 8, 341, 18185, 1712, 16, 1669, 3393, 1712, 16094, 18185, 1712, 16, 16299, 16, 284, 609, 1462, 16094, 18185, 1712, 16, 16299, 16, 16299, 284, 882, 13244, 741, 223...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDifference(t *testing.T) { nums := []int{1, 3, 5, 6, 7, 9} reject := []int{9, 7, 5, 4} want := []int{1, 3, 6} assert.Equal(t, want, u.Difference(nums, reject)) }
explode_data.jsonl/49541
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 62707, 1155, 353, 8840, 836, 8, 341, 22431, 82, 1669, 3056, 396, 90, 16, 11, 220, 18, 11, 220, 20, 11, 220, 21, 11, 220, 22, 11, 220, 24, 532, 17200, 583, 1669, 3056, 396, 90, 24, 11, 220, 22, 11, 220, 20, 11, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestScriptCompressionErrors(t *testing.T) { t.Parallel() // A nil script must result in a decoded size of 0. if gotSize := decodeCompressedScriptSize(nil, 1); gotSize != 0 { t.Fatalf("decodeCompressedScriptSize with nil script did not "+ "return 0 - got %d", gotSize) } // A nil script must result in a ...
explode_data.jsonl/8789
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 5910, 81411, 13877, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 362, 2092, 5316, 1969, 1102, 304, 264, 29213, 1379, 315, 220, 15, 624, 743, 2684, 1695, 1669, 16895, 1092, 14318, 5910, 1695, 27907, 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...
4
func TestFileWriter(t *testing.T) { fw := NewFileWriter(t.Name()+".log", time.Hour, 0) defer fw.Close() s := fmt.Sprintf("open file: %s", time.Now()) fw.Write([]byte(s)) }
explode_data.jsonl/74558
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 1703, 6492, 1155, 353, 8840, 836, 8, 341, 1166, 86, 1669, 1532, 1703, 6492, 1155, 2967, 17140, 3263, 839, 497, 882, 73550, 11, 220, 15, 340, 16867, 33886, 10421, 741, 1903, 1669, 8879, 17305, 445, 2508, 1034, 25, 1018, 82,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContainerNamesUniqueAndValid(t *testing.T) { // Container names have to be unique within a Pod. The number of containers // we deploy should be few enough that we can name them uniquely across all // pods. // - https://docs.k8s.io/reference/kubernetes-api/workload-resources/pod-v1/ names := sets.NewStrin...
explode_data.jsonl/22344
{ "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, 4502, 7980, 22811, 3036, 4088, 1155, 353, 8840, 836, 8, 341, 197, 322, 9678, 5036, 614, 311, 387, 4911, 2878, 264, 16821, 13, 576, 1372, 315, 23853, 198, 197, 322, 582, 10517, 1265, 387, 2421, 3322, 429, 582, 646, 829, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildCmdEnvSeveralAppNames(t *testing.T) { appNameFirst := "test5" appNameSecond := "test6" appNames := []string{"test5", "test6"} err := secretStore.LoadSecrets(appNameFirst, scopes[0]) assert.NoError(t, err) err = secretStore.SetSecret(appNameFirst, "anything_5", "must_be_set", scopes[0]) assert.NoE...
explode_data.jsonl/8943
{ "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, 11066, 15613, 14359, 34762, 2164, 7980, 1155, 353, 8840, 836, 8, 341, 28236, 675, 5338, 1669, 330, 1944, 20, 698, 28236, 675, 15666, 1669, 330, 1944, 21, 698, 28236, 7980, 1669, 3056, 917, 4913, 1944, 20, 497, 330, 1944, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBufferDelete(t *testing.T) { tab := []struct { q0, q1 int tb RuneArray expected string }{ {0, 5, RuneArray([]rune("0123456789")), "56789"}, {0, 0, RuneArray([]rune("0123456789")), "0123456789"}, {0, 10, RuneArray([]rune("0123456789")), ""}, {1, 5, RuneArray([]rune("0123456789")), "05678...
explode_data.jsonl/37930
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 4095, 6435, 1155, 353, 8840, 836, 8, 341, 58149, 1669, 3056, 1235, 341, 197, 18534, 15, 11, 2804, 16, 256, 526, 198, 197, 62842, 981, 70778, 1857, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 90, 15, 11, 220, 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...
3
func TestSumDistanceGreaterThanZero(t *testing.T) { // Generate two sequences at random in parallel seqchan := make(chan dna.Sequence, 2) go func(seq chan dna.Sequence) { seq <- utils.RandSeq(rand.Intn(math.MaxInt16)) }(seqchan) go func(seq chan dna.Sequence) { seq <- utils.RandSeq(rand.Intn(math.MaxInt16)) }...
explode_data.jsonl/41094
{ "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, 9190, 14778, 85720, 17999, 1155, 353, 8840, 836, 8, 341, 197, 322, 19813, 1378, 23700, 518, 4194, 304, 15279, 198, 78561, 5658, 1669, 1281, 35190, 75334, 63537, 11, 220, 17, 340, 30680, 2915, 34820, 26023, 75334, 63537, 8, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeletedUnmount(t *testing.T) { ts := NewTestCase(t) defer ts.Cleanup() submnt := filepath.Join(ts.mnt, "mnt") pfs2 := pathfs.NewPathNodeFs(pathfs.NewLoopbackFileSystem(ts.orig), nil) code := ts.connector.Mount(ts.rootNode(), "mnt", pfs2.Root(), nil) if !code.Ok() { t.Fatal("Mount error", code) } f, ...
explode_data.jsonl/9157
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 405 }
[ 2830, 3393, 26039, 59539, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 1532, 16458, 1155, 340, 16867, 10591, 727, 60639, 2822, 28624, 40882, 1669, 26054, 22363, 35864, 744, 406, 11, 330, 40882, 1138, 3223, 3848, 17, 1669, 1815, 3848, 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...
7
func TestLibraryVariableSetGetByName(t *testing.T) { libraryVariableSet := createTestLibraryVariableSet(t, getRandomName()) defer cleanLibraryVariableSet(t, libraryVariableSet.ID) foundLibraryVariableSet, err := client.LibraryVariableSet.GetByName(libraryVariableSet.Name) assert.Nil(t, err, "error when looking for...
explode_data.jsonl/65969
{ "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, 16915, 7827, 1649, 1949, 16898, 1155, 353, 8840, 836, 8, 341, 197, 18065, 7827, 1649, 1669, 1855, 2271, 16915, 7827, 1649, 1155, 11, 52436, 675, 2398, 16867, 4240, 16915, 7827, 1649, 1155, 11, 6733, 7827, 1649, 9910, 692, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestThreatCrowd(t *testing.T) { if *networkTest == false { return } result := testDNSRequest("ThreatCrowd") if result < expectedTest { t.Errorf("Found %d names, expected at least %d instead", result, expectedTest) } }
explode_data.jsonl/75806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 82 }
[ 2830, 3393, 1001, 1222, 93926, 67, 1155, 353, 8840, 836, 8, 341, 743, 353, 17511, 2271, 621, 895, 341, 197, 853, 198, 197, 630, 9559, 1669, 1273, 61088, 1900, 445, 1001, 1222, 93926, 67, 1138, 743, 1102, 366, 3601, 2271, 341, 197, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestChaincodeStatusFromResponse(t *testing.T) { //For error response response := &pb.ProposalResponse{ Response: &pb.Response{Status: 500, Payload: []byte("Unknown function"), Message: "Chaincode error"}, } err := extractChaincodeErrorFromResponse(response) s, ok := status.FromError(err) assert.True(t, ok)...
explode_data.jsonl/45095
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1009 }
[ 2830, 3393, 18837, 1851, 2522, 3830, 2582, 1155, 353, 8840, 836, 8, 341, 197, 322, 2461, 1465, 2033, 198, 21735, 1669, 609, 16650, 42483, 32556, 2582, 515, 197, 69604, 25, 609, 16650, 12574, 90, 2522, 25, 220, 20, 15, 15, 11, 52916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCephUpgradeSuite(t *testing.T) { if installer.SkipTestSuite(installer.CephTestSuite) { t.Skip() } // Skip the suite if CSI is not supported kh, err := utils.CreateK8sHelper(func() *testing.T { return t }) require.NoError(t, err) checkSkipCSITest(t, kh) s := new(UpgradeSuite) defer func(s *UpgradeSu...
explode_data.jsonl/35454
{ "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, 34, 23544, 43861, 28000, 1155, 353, 8840, 836, 8, 341, 743, 43052, 57776, 2271, 28000, 35687, 13956, 727, 23544, 2271, 28000, 8, 341, 197, 3244, 57776, 741, 197, 630, 197, 322, 25784, 279, 16182, 421, 87064, 374, 537, 7248, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCopyExecuteCmd(t *testing.T) { tempDir := setupTestTemp(t) cfg := &v1.Config{ Cmd: nil, Env: []string{}, WorkingDir: tempDir, } fileContext := util.FileContext{Root: tempDir} for _, test := range copyTests { t.Run(test.name, func(t *testing.T) { dirList := []string{} cmd := ...
explode_data.jsonl/68572
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 562 }
[ 2830, 3393, 12106, 17174, 15613, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 1669, 6505, 2271, 12151, 1155, 692, 50286, 1669, 609, 85, 16, 10753, 515, 197, 6258, 2277, 25, 286, 2092, 345, 197, 197, 14359, 25, 286, 3056, 917, 38837, 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...
7
func TestHandlerSetErrorsPercentageConfigError(t *testing.T) { config := mockConfig{ doSetErrorsPercentage: func(value int) error { return errors.New("error") }, } response := doSetErrorsPercentageRequest(handlerForConfig(config), strings.NewReader("12")) checkStatusCode(t, response, http.StatusBadRequest)...
explode_data.jsonl/48343
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 3050, 1649, 13877, 36167, 2648, 1454, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 7860, 2648, 515, 197, 19935, 1649, 13877, 36167, 25, 2915, 3679, 526, 8, 1465, 341, 298, 853, 5975, 7121, 445, 841, 1138, 197, 197, 1583, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIndexReuse(t *testing.T) { queryBytes := make([]byte, 1+3*entrySize) queryLogger := ActiveQueryTracker{ mmapedFile: queryBytes, logger: nil, getNextIndex: make(chan int, 3), } queryLogger.generateIndices(3) queryLogger.Insert(context.Background(), "TestQuery1") queryLogger.Insert(context.B...
explode_data.jsonl/81183
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 432 }
[ 2830, 3393, 1552, 38081, 1155, 353, 8840, 836, 8, 341, 27274, 7078, 1669, 1281, 10556, 3782, 11, 220, 16, 10, 18, 9, 4085, 1695, 340, 27274, 7395, 1669, 9905, 2859, 31133, 515, 197, 2109, 2186, 291, 1703, 25, 256, 3239, 7078, 345, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parseGetPublicKey(t *testing.T) { assert := assert.New(t) type args struct { queryParams map[string]string } tests := []struct { name string args args wantRes *GetPublicKeyRequest wantErr bool }{ { "success", args{ map[string]string{ "address": "0x5602ea95540bee46d03ba33...
explode_data.jsonl/17092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1205 }
[ 2830, 3393, 21039, 1949, 61822, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 13158, 2827, 2036, 341, 197, 27274, 4870, 2415, 14032, 30953, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestBackupRestoreChecksum(t *testing.T) { defer leaktest.AfterTest(t)() const numAccounts = 1000 _, _, sqlDB, dir, cleanupFn := BackupRestoreTestSetup(t, singleNode, numAccounts, InitNone) defer cleanupFn() dir = filepath.Join(dir, "foo") sqlDB.Exec(t, `BACKUP DATABASE data TO $1`, LocalFoo) var backupMa...
explode_data.jsonl/57598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 590 }
[ 2830, 3393, 56245, 56284, 73190, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 4777, 1629, 41369, 284, 220, 16, 15, 15, 15, 198, 197, 6878, 8358, 5704, 3506, 11, 5419, 11, 21290, 24911, 1669, 43438, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWebSocketReverseProxyNonHijackerPanic(t *testing.T) { // Capture the expected panic defer func() { r := recover() if _, ok := r.(httpserver.NonHijackerError); !ok { t.Error("not get the expected panic") } }() var connCount int32 wsNop := httptest.NewServer(websocket.Handler(func(ws *websocket.Co...
explode_data.jsonl/64229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 372 }
[ 2830, 3393, 61238, 45695, 16219, 8121, 39, 3172, 9683, 47, 31270, 1155, 353, 8840, 836, 8, 341, 197, 322, 39885, 279, 3601, 21975, 198, 16867, 2915, 368, 341, 197, 7000, 1669, 11731, 741, 197, 743, 8358, 5394, 1669, 435, 12832, 1254, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewTransportConfig(t *testing.T) { type testCase struct { Description string UserInputValConfig userInputValidationConfig ExpectedTransportConfig transportConfig ShouldUnmarshalFail bool ExpectedErr error } tcs := []testCase{ { Description: "Unmarshal...
explode_data.jsonl/70138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 840 }
[ 2830, 3393, 3564, 27560, 2648, 1155, 353, 8840, 836, 8, 341, 13158, 54452, 2036, 341, 197, 47414, 1797, 914, 198, 197, 31672, 2505, 2208, 2648, 414, 64173, 13799, 2648, 198, 197, 197, 18896, 27560, 2648, 7557, 2648, 198, 197, 197, 14996...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateBucket(t *testing.T) { //@TODO(jb): implement them for sanity reasons ts := newTestServer(t) defer ts.Close() svc := ts.s3Client() ts.OKAll(svc.CreateBucket(&s3.CreateBucketInput{ Bucket: aws.String("testbucket"), })) ts.OKAll(svc.HeadBucket(&s3.HeadBucketInput{ Bucket: aws.String("testbuck...
explode_data.jsonl/22248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 4021, 36018, 1155, 353, 8840, 836, 8, 341, 197, 36585, 14732, 3325, 65, 1648, 4211, 1105, 369, 46842, 7966, 271, 57441, 1669, 501, 2271, 5475, 1155, 340, 16867, 10591, 10421, 2822, 1903, 7362, 1669, 10591, 514, 18, 2959, 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 TestCatchUpClient_PullBlocksRetry(t *testing.T) { dir, err := ioutil.TempDir("", "catchup") require.NoError(t, err) defer os.RemoveAll(dir) var retryCount int var wgRetry1 sync.WaitGroup wgRetry1.Add(1) var wgRetry2 sync.WaitGroup wgRetry2.Add(1) lg, err := logger.New( &logger.Config{ Level: ...
explode_data.jsonl/70497
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 960 }
[ 2830, 3393, 57760, 2324, 2959, 1088, 617, 29804, 51560, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 7173, 454, 1138, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 14161, 692, 2405, 22683, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_parseEndpointPortV1Beta1(t *testing.T) { type args struct { port slim_discovery_v1beta1.EndpointPort } tests := []struct { name string args args portName string l4Addr *loadbalancer.L4Addr }{ { name: "tcp-port", args: args{ port: slim_discovery_v1beta1.EndpointPort{ Na...
explode_data.jsonl/31606
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1051 }
[ 2830, 3393, 21039, 27380, 7084, 53, 16, 64811, 16, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 52257, 29353, 9932, 7449, 2273, 16, 19127, 16, 90409, 7084, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestQuotedStringArg(t *testing.T) { cl := client.NewURIClient(tcpAddr) // should NOT be unquoted val := "\"abc\"" got, err := echoViaHTTP(cl, val) require.Nil(t, err) assert.Equal(t, got, val) }
explode_data.jsonl/47836
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 2183, 9253, 703, 2735, 1155, 353, 8840, 836, 8, 341, 39407, 1669, 2943, 7121, 1511, 98900, 98203, 13986, 340, 197, 322, 1265, 4183, 387, 650, 63725, 198, 19302, 1669, 15898, 13683, 2105, 698, 3174, 354, 11, 1848, 1669, 1687,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("set @tmp = 0") tk.MustExec("set @tmp := @tmp + 1") tk.MustQuery("select @tmp").Check(testkit.Rows("1")) tk.MustQuery("select @tmp1 = 1, @tmp...
explode_data.jsonl/5792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 328 }
[ 2830, 3393, 1649, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestThrowIfEmpty(t *testing.T) { NewTestSuite(t).Case( rx.Empty().Pipe( operators.ThrowIfEmpty(rx.ErrEmpty), ), rx.ErrEmpty, ).Case( rx.Throw(ErrTest).Pipe( operators.ThrowIfEmpty(rx.ErrEmpty), ), ErrTest, ).Case( rx.Just(1).Pipe( operators.ThrowIfEmpty(rx.ErrEmpty), ), 1, Completed, ...
explode_data.jsonl/45488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 23079, 2679, 3522, 1155, 353, 8840, 836, 8, 341, 197, 3564, 2271, 28000, 1155, 568, 4207, 1006, 197, 7000, 87, 11180, 1005, 34077, 1006, 298, 197, 32838, 73372, 2679, 3522, 75279, 27862, 3522, 1326, 197, 197, 1326, 197, 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 TestGetTraderFuturesAccountRatio(t *testing.T) { t.Parallel() _, err := b.GetTraderFuturesAccountRatio(context.Background(), "BTCUSD", "5m", 0, time.Time{}, time.Time{}) if err != nil { t.Error(err) } _, err = b.GetTraderFuturesAccountRatio(context.Background(), "BTCUSD", "5m", 0, time.Unix(1577836800, 0), ...
explode_data.jsonl/76613
{ "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, 1949, 93172, 37, 74606, 7365, 22777, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 6878, 1848, 1669, 293, 2234, 93172, 37, 74606, 7365, 22777, 5378, 19047, 1507, 330, 59118, 26749, 497, 330, 20, 76, 497, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_decodeImages(t *testing.T) { body := ` image: cn-app-integration:v1.0.0 image: registry.cn-shanghai.aliyuncs.com/cnip/cn-app-integration:v1.0.0 imagePullPolicy: Always image: cn-app-integration:v1.0.0 # image: cn-app-integration:v1.0.0 name: cn-app-demo` ...
explode_data.jsonl/608
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 419 }
[ 2830, 3393, 15227, 14228, 1155, 353, 8840, 836, 8, 341, 35402, 1669, 22074, 688, 2168, 25, 13665, 20023, 20052, 17376, 52649, 16, 13, 15, 13, 15, 198, 688, 2168, 25, 19424, 22057, 7514, 30070, 72514, 88, 1347, 82, 905, 2899, 69773, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrorTypeWrongKey(t *testing.T) { //defer afterTest(t) ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello, checkTypeWrongKey") })) defer ts.Close() _, _, err := New(). Get(ts.URL). Type("wrongtype"). End() if len(err) != 0 { if err[0...
explode_data.jsonl/25477
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 202 }
[ 2830, 3393, 1454, 929, 29185, 1592, 1155, 353, 8840, 836, 8, 341, 197, 322, 62095, 1283, 2271, 1155, 340, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 11009, 991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultiContainerWait(t *testing.T) { containerIDs := []string{ testutil.UniqueContainerID(), testutil.UniqueContainerID(), } containerAnnotations := []map[string]string{ // The first container creates a sandbox. map[string]string{ specutils.ContainerdContainerTypeAnnotation: specutils.ContainerdCon...
explode_data.jsonl/48931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1366 }
[ 2830, 3393, 20358, 4502, 14190, 1155, 353, 8840, 836, 8, 341, 53290, 30466, 1669, 3056, 917, 515, 197, 18185, 1314, 87443, 4502, 915, 3148, 197, 18185, 1314, 87443, 4502, 915, 3148, 197, 532, 53290, 21418, 1669, 3056, 2186, 14032, 30953, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerifyBlock(t *testing.T) { aliceSigner := &mockscrypto.LocalSigner{Identity: []byte("Alice")} policyManagerGetter := &mocks.ChannelPolicyManagerGetterWithManager{ Managers: map[string]policies.Manager{ "A": &mocks.ChannelPolicyManager{ Policy: &mocks.Policy{Deserializer: &mocks.IdentityDeserializer...
explode_data.jsonl/26113
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1164 }
[ 2830, 3393, 32627, 4713, 1155, 353, 8840, 836, 8, 341, 197, 63195, 7264, 261, 1669, 609, 16712, 2388, 9444, 20856, 7264, 261, 90, 18558, 25, 3056, 3782, 445, 61686, 42132, 3223, 8018, 2043, 31485, 1669, 609, 16712, 82, 38716, 13825, 204...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPPD__createPPDBatch(t *testing.T) { depID, userID := base.ID(), id.User(base.ID()) keeper := secrets.TestStringKeeper(t) gateway := &model.Gateway{ ID: model.GatewayID(base.ID()), Origin: "987654320", OriginName: "My Bank", Destination: "123456780", DestinationName:...
explode_data.jsonl/7634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1201 }
[ 2830, 3393, 4406, 35, 563, 3182, 4406, 3506, 754, 1155, 353, 8840, 836, 8, 341, 197, 14891, 915, 11, 35204, 1669, 2331, 9910, 1507, 877, 7344, 12663, 9910, 2398, 197, 18861, 1669, 23594, 8787, 703, 77233, 1155, 692, 3174, 12043, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPidPath(t *testing.T) { _, err := v1MountPoint() if err == ErrMountPointNotExist { t.Skip("skipping test that requires cgroup hierarchy") } else if err != nil { t.Fatal(err) } paths, err := parseCgroupFile("/proc/self/cgroup") if err != nil { t.Fatal(err) } dp := strings.TrimPrefix(paths["devices...
explode_data.jsonl/1198
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 227 }
[ 2830, 3393, 32339, 1820, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 348, 16, 16284, 2609, 741, 743, 1848, 621, 15495, 16284, 2609, 45535, 341, 197, 3244, 57776, 445, 4886, 5654, 1273, 429, 7460, 272, 4074, 28922, 1138, 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...
6
func TestStatementErrorAfterClose(t *testing.T) { db := newTestDB(t, "people") defer closeDB(t, db) stmt, err := db.Prepare("SELECT|people|age|name=?") if err != nil { t.Fatalf("Prepare: %v", err) } err = stmt.Close() if err != nil { t.Fatalf("Close: %v", err) } var name string err = stmt.QueryRow("foo")....
explode_data.jsonl/15964
{ "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, 8636, 1454, 6025, 7925, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 501, 2271, 3506, 1155, 11, 330, 16069, 1138, 16867, 3265, 3506, 1155, 11, 2927, 340, 55822, 11, 1848, 1669, 2927, 28770, 3380, 445, 4858, 91, 16069, 91, 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...
4
func Test_ServicePrincipalProfile_ValidateSecretOrKeyvaultSecretRef(t *testing.T) { t.Run("ServicePrincipalProfile with secret should pass", func(t *testing.T) { t.Parallel() cs := getK8sDefaultContainerService(false) if err := cs.Validate(false); err != nil { t.Errorf("should not error %v", err) } }) ...
explode_data.jsonl/17870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 912 }
[ 2830, 3393, 52548, 31771, 8526, 62, 17926, 19773, 2195, 1592, 82983, 19773, 3945, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 1860, 31771, 8526, 448, 6234, 1265, 1494, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRuleFromBody(t *testing.T) { testModule := `package a.b.c pi = 3.14159 p[x] { x = 1 } greeting = "hello" cores = [{0: 1}, {1: 2}] wrapper = cores[0][1] pi = [3, 1, 4, x, y, z] foo["bar"] = "buz" foo["9"] = "10" foo.buz = "bar" bar[1] bar[[{"foo":"baz"}]] bar.qux input = 1 data = 2 f(1) = 2 f(1) d1 := 1234 ` ...
explode_data.jsonl/50494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2007 }
[ 2830, 3393, 11337, 59692, 1155, 353, 8840, 836, 8, 341, 18185, 3332, 1669, 1565, 1722, 264, 948, 520, 271, 2493, 284, 220, 18, 13, 16, 19, 16, 20, 24, 198, 79, 8323, 60, 314, 856, 284, 220, 16, 456, 70, 43632, 284, 330, 14990, 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...
8
func TestHostParser(t *testing.T) { tests := []struct { host, expected string }{ {"https://localhost", "https://localhost"}, {"http://localhost:9191", "http://localhost:9191"}, {"localhost", "tcp://localhost"}, {"localhost:9191", "tcp://localhost:9191"}, {"tcp://localhost:9191", "tcp://localhost:9191"}, ...
explode_data.jsonl/69483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 9296, 6570, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 63104, 11, 3601, 914, 198, 197, 59403, 197, 197, 4913, 2428, 1110, 8301, 497, 330, 2428, 1110, 8301, 7115, 197, 197, 4913, 1254, 1110, 8301, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestContextSetGetValues(t *testing.T) { c, _ := CreateTestContext(httptest.NewRecorder()) c.Set("string", "this is a string") c.Set("int32", int32(-42)) c.Set("int64", int64(42424242424242)) c.Set("uint64", uint64(42)) c.Set("float32", float32(4.2)) c.Set("float64", 4.2) var a interface{} = 1 c.Set("intIn...
explode_data.jsonl/26745
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 321 }
[ 2830, 3393, 1972, 1649, 1949, 6227, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 4230, 2271, 1972, 73392, 83, 70334, 7121, 47023, 2398, 1444, 4202, 445, 917, 497, 330, 574, 374, 264, 914, 1138, 1444, 4202, 445, 396, 18, 17, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestScratchCode(t *testing.T) { var cotp OTPConfig cotp.ScratchCodes = []int{11112222, 22223333} var scratchTests = []struct { code int result bool }{ {33334444, false}, {11112222, true}, {11112222, false}, {22223333, true}, {22223333, false}, {33334444, false}, } for _, s := range scra...
explode_data.jsonl/75088
{ "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, 65508, 754, 2078, 1155, 353, 8840, 836, 8, 1476, 2405, 47581, 79, 80868, 2648, 271, 1444, 48708, 808, 86284, 20871, 284, 3056, 396, 90, 16, 16, 16, 16, 17, 17, 17, 17, 11, 220, 17, 17, 17, 17, 18, 18, 18, 18, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSwiftChunkStorage(t *testing.T) { s, err := e2e.NewScenario(networkName) require.NoError(t, err) defer s.Close() swift := e2edb.NewSwiftStorage() require.NoError(t, s.StartAndWaitReady(swift)) var ( cfg storage.Config storeConfig chunk.StoreConfig schemaConfig chunk.SchemaConfig defau...
explode_data.jsonl/5390
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1120 }
[ 2830, 3393, 55336, 28304, 5793, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 384, 17, 68, 7121, 54031, 46542, 675, 340, 17957, 35699, 1155, 11, 1848, 340, 16867, 274, 10421, 741, 77295, 2085, 1669, 384, 17, 93727, 7121, 55336, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlockSigsGet(t *testing.T) { type hashSig struct { hash cipher.SHA256 sig cipher.Sig } type expect struct { exist bool sig cipher.Sig err error } hashSigs := []hashSig{} for i := 0; i < 5; i++ { _, s := cipher.GenerateKeyPair() h := testutil.RandSHA256(t) sig := cipher.SignHash(h,...
explode_data.jsonl/799
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 721 }
[ 2830, 3393, 4713, 50, 14462, 1949, 1155, 353, 8840, 836, 8, 341, 13158, 5175, 47246, 2036, 341, 197, 50333, 31088, 808, 17020, 17, 20, 21, 198, 197, 84841, 220, 31088, 808, 343, 198, 197, 630, 13158, 1720, 2036, 341, 197, 8122, 380, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCommandsAtLeastOneArgument(t *testing.T) { commands := []commandWithFunction{ {"ENV", func(args []string) error { return env(nil, args, nil, "") }}, {"LABEL", func(args []string) error { return label(nil, args, nil, "") }}, {"ONBUILD", func(args []string) error { return onbuild(nil, args, nil, "") }}, ...
explode_data.jsonl/28269
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 30479, 1655, 81816, 3966, 9171, 1155, 353, 8840, 836, 8, 341, 197, 24270, 1669, 3056, 5631, 2354, 5152, 515, 197, 197, 4913, 30360, 497, 2915, 7356, 3056, 917, 8, 1465, 314, 470, 6105, 27907, 11, 2827, 11, 2092, 11, 11700,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZenkakuASCII2HankakuASCIISymbol(t *testing.T) { opt := NewOption() tp := newTextProcessor(opt) actual := tp.zenkaku2Hankaku(":;<=>?@[\]^_`{|}~!"#$%&'()*,-./a") expected := ":;<=>?@[\\]^_`{|}~!\"#$%&'()*,-./a" if actual != expected { t.Errorf("expected %v, but got %v", expected, actual) } }
explode_data.jsonl/25038
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 57, 78571, 23557, 56450, 17, 39, 1180, 23557, 1911, 11237, 1637, 4001, 1155, 353, 8840, 836, 8, 341, 64838, 1669, 1532, 5341, 741, 73423, 1669, 94653, 22946, 24539, 692, 88814, 1669, 18101, 3938, 78571, 23557, 17, 39, 1180, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetYAxisCount(t *testing.T) { tests := []struct { in string out int }{ {"TBB", 2}, {"TBTB", 1}, {"TTTB", 0}, {"TTBB", 0}, {"TTBBT", 0}, {"TBBBBT", 4}, {"TBBTBBTBB", 2}, } for _, test := range tests { c := getYAxisCount(test.in) if test.out != c { t.Errorf("Want %d got %d", test.o...
explode_data.jsonl/49304
{ "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, 88300, 8143, 2507, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 220, 914, 198, 197, 13967, 526, 198, 197, 59403, 197, 197, 4913, 51, 10098, 497, 220, 17, 1583, 197, 197, 4913, 51, 17602, 33, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestForPhraseUDT3(t *testing.T) { gopClTest(t, ` type foo struct { } func (p *foo) Gop_Enum(c func(val string)) { } println([v for v <- new(foo)]) `, `package main import fmt "fmt" type foo struct { } func (p *foo) Gop_Enum(c func(val string)) { } func main() { fmt.Println(func() (_gop_ret []string) { new...
explode_data.jsonl/73643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 2461, 46806, 4656, 51, 18, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1313, 15229, 2036, 341, 630, 2830, 320, 79, 353, 7975, 8, 479, 453, 62, 10766, 1337, 2915, 9098, 914, 593, 341, 630, 33655,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCloudTasksGetTaskError(t *testing.T) { errCode := codes.PermissionDenied mockCloudTasks.err = gstatus.Error(errCode, "test error") var formattedName string = fmt.Sprintf("projects/%s/locations/%s/queues/%s/tasks/%s", "[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]") var request = &taskspb.GetTaskRequest{ ...
explode_data.jsonl/30864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 16055, 25449, 1949, 6262, 1454, 1155, 353, 8840, 836, 8, 341, 9859, 2078, 1669, 13912, 73409, 54481, 198, 77333, 16055, 25449, 18441, 284, 342, 2829, 6141, 3964, 2078, 11, 330, 1944, 1465, 5130, 2405, 23126, 675, 914, 284, 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...
4
func TestNewResponseFromRequest(t *testing.T) { prov := getProvider(t) store := mockstorage.NewMockStoreProvider() k := newKMS(t, store) t.Run("successful new response from request", func(t *testing.T) { ctx := getContext(t, &prov, kms.ED25519Type, kms.X25519ECDHKWType, transport.MediaTypeRFC0019EncryptedEnvelop...
explode_data.jsonl/2101
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1801 }
[ 2830, 3393, 3564, 2582, 3830, 1900, 1155, 353, 8840, 836, 8, 341, 197, 42947, 1669, 633, 5179, 1155, 340, 57279, 1669, 7860, 16172, 7121, 11571, 6093, 5179, 741, 16463, 1669, 501, 42, 4826, 1155, 11, 3553, 692, 3244, 16708, 445, 30950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccounts_GetBalances(t *testing.T) { mutableTree, _ := tree.NewMutableTree(0, db.NewMemDB(), 1024) b := bus.NewBus() b.SetChecker(checker.NewChecker(b)) busCoins, err := coins.NewCoins(b, mutableTree) if err != nil { t.Fatal(err) } b.SetCoins(coins.NewBus(busCoins)) accounts, err := NewAccounts(b, mu...
explode_data.jsonl/23599
{ "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, 41369, 13614, 37889, 3020, 1155, 353, 8840, 836, 8, 341, 2109, 5922, 6533, 11, 716, 1669, 4916, 7121, 11217, 6533, 7, 15, 11, 2927, 7121, 18816, 3506, 1507, 220, 16, 15, 17, 19, 340, 2233, 1669, 5828, 7121, 15073, 741, 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...
9
func TestSRVGetCluster(t *testing.T) { defer func() { lookupSRV = net.LookupSRV resolveTCPAddr = net.ResolveTCPAddr }() name := "dnsClusterTest" dns := map[string]string{ "1.example.com.:2480": "10.0.0.1:2480", "2.example.com.:2480": "10.0.0.2:2480", "3.example.com.:2480": "10.0.0.3:2480", "4.example.c...
explode_data.jsonl/46793
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1266 }
[ 2830, 3393, 14557, 53, 1949, 28678, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 197, 21020, 14557, 53, 284, 4179, 79261, 14557, 53, 198, 197, 87778, 49896, 13986, 284, 4179, 57875, 49896, 13986, 198, 197, 66816, 11609, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetProvider(t *testing.T) { tests := []struct { name string input *v1beta1.Ingress expected string }{ { "should return default(ATS) provider for empty Ingress", &v1beta1.Ingress{}, ATS, }, { "should return ATS provider when annotation set to different provider", &v1beta1.Ing...
explode_data.jsonl/15640
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 496 }
[ 2830, 3393, 1949, 5179, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 353, 85, 16, 19127, 16, 5337, 2483, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 1, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDefaultPath(t *testing.T) { for path, want := range defaultPathTests { if got := defaultPath(path); got != want { t.Errorf("%q: got %q, want %q", path, got, want) } } }
explode_data.jsonl/14664
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 3675, 1820, 1155, 353, 8840, 836, 8, 341, 2023, 1815, 11, 1366, 1669, 2088, 1638, 1820, 18200, 341, 197, 743, 2684, 1669, 1638, 1820, 5581, 1215, 2684, 961, 1366, 341, 298, 3244, 13080, 4430, 80, 25, 2684, 1018, 80, 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 ]
3
func TestCompliantName(t *testing.T) { testcases := []struct { in, out string }{{ in: "aa", out: "aa", }, { in: "1a", out: "_a", }, { in: "a1", out: "a1", }, { in: "a.b", out: "a_b", }, { in: ".ab", out: "_ab", }} for _, tc := range testcases { out := NewColIdent(tc.in).CompliantNam...
explode_data.jsonl/3387
{ "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, 1092, 59852, 675, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 17430, 11, 700, 914, 198, 197, 15170, 515, 197, 17430, 25, 220, 330, 5305, 756, 197, 13967, 25, 330, 5305, 756, 197, 2137, 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 TestTlfHistoryComplexRename(t *testing.T) { aliceName := "alice" aliceUID := keybase1.MakeTestUID(1) tlfID, err := tlf.MakeRandomID(tlf.Private) require.NoError(t, err) var aliceMessages []string nn := nextNotification{1, 0, tlfID, nil} // Alice creates "a", and adds a file to it. _ = nn.makeWithType( ...
explode_data.jsonl/34574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 773 }
[ 2830, 3393, 51, 11008, 13424, 31137, 88757, 1155, 353, 8840, 836, 8, 341, 197, 63195, 675, 1669, 330, 63195, 698, 197, 63195, 6463, 1669, 1376, 3152, 16, 50133, 2271, 6463, 7, 16, 340, 3244, 11008, 915, 11, 1848, 1669, 259, 11008, 501...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBasicUnmarshal(t *testing.T) { result := basicMarshalTestStruct{} err := Unmarshal(basicTestToml, &result) expected := basicTestData if err != nil { t.Fatal(err) } if !reflect.DeepEqual(result, expected) { t.Errorf("Bad unmarshal: expected %v, got %v", expected, result) } }
explode_data.jsonl/46305
{ "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, 15944, 1806, 27121, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 6770, 55438, 2271, 9422, 16094, 9859, 1669, 1230, 27121, 1883, 5971, 2271, 24732, 75, 11, 609, 1382, 340, 42400, 1669, 6770, 83920, 198, 743, 1848, 961, 2092, 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...
3
func TestEmbeddingGzipFilesIntoApp(t *testing.T) { app := newApp() e := httptest.New(t, app) if runtime.GOOS != "windows" { // remove the embedded static favicon for !windows, // it should be built for unix-specific in order to be work urls = urls[0 : len(urls)-1] } for i, u := range urls { url := u.Stri...
explode_data.jsonl/37859
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 541 }
[ 2830, 3393, 25486, 6968, 38, 9964, 10809, 26591, 2164, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 501, 2164, 741, 7727, 1669, 54320, 70334, 7121, 1155, 11, 906, 692, 743, 15592, 97574, 3126, 961, 330, 27077, 1, 341, 197, 197, 322, 405...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultCfg(t *testing.T) { cmd := new(cobra.Command) o := newOptions() o.addFlags(cmd) require.Nil(t, cmd.ParseFlags([]string{})) err := o.complete(cmd) require.Nil(t, err) defaultCfg := config.GetDefaultServerConfig() require.Nil(t, defaultCfg.ValidateAndAdjust()) require.Equal(t, defaultCfg, o.ser...
explode_data.jsonl/41632
{ "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, 3675, 42467, 1155, 353, 8840, 836, 8, 341, 25920, 1669, 501, 1337, 28856, 12714, 340, 22229, 1669, 501, 3798, 741, 22229, 1364, 9195, 14160, 692, 17957, 59678, 1155, 11, 5439, 8937, 9195, 10556, 917, 6257, 1171, 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 TestMixedTxnBuffer(t *testing.T) { testtype.SkipUnlessTestType(t, testtype.UnitTestType) buffer := NewBuffer() txnByID, err := mapTestTxnByID() if err != nil { t.Fatal(err) } streams := make([][]db.Oplog, len(testCases)) for i, c := range testCases { streams[i] = c.ops } ops := testutil.MergeOplogSt...
explode_data.jsonl/34651
{ "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, 86433, 31584, 77, 4095, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 57776, 35587, 2271, 929, 1155, 11, 1273, 1313, 25159, 2271, 929, 692, 31122, 1669, 1532, 4095, 741, 3244, 42967, 60572, 11, 1848, 1669, 2415, 2271, 31584, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRenderDependency(t *testing.T) { deptpl := `{{define "myblock"}}World{{end}}` toptpl := `Hello {{template "myblock"}}` ch := &chart.Chart{ Metadata: &chart.Metadata{Name: "outerchart"}, Templates: []*chart.File{ {Name: "templates/outer", Data: []byte(toptpl)}, }, } ch.AddDependency(&chart.Chart{ ...
explode_data.jsonl/74705
{ "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, 6750, 36387, 1155, 353, 8840, 836, 8, 341, 197, 40585, 500, 1669, 1565, 2979, 1289, 330, 2408, 4574, 30975, 10134, 2979, 408, 3417, 3989, 31709, 417, 500, 1669, 1565, 9707, 5867, 4214, 330, 2408, 4574, 30975, 3989, 23049, 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...
4
func TestEd25519SelfSigned(t *testing.T) { der, _ := pem.Decode([]byte(ed25519Certificate)) if der == nil { t.Fatalf("Failed to find PEM block") } cert, err := ParseCertificate(der.Bytes) if err != nil { t.Fatalf("Failed to parse: %s", err) } if cert.PublicKeyAlgorithm != Ed25519 { t.Fatalf("Parsed key a...
explode_data.jsonl/81501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 2715, 17, 20, 20, 16, 24, 12092, 49312, 1155, 353, 8840, 836, 8, 341, 197, 1107, 11, 716, 1669, 54184, 56372, 10556, 3782, 49810, 17, 20, 20, 16, 24, 33202, 1171, 743, 2694, 621, 2092, 341, 197, 3244, 30762, 445, 9408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnitScheduleDeleteTransactionValidate(t *testing.T) { client := ClientForTestnet() client.SetAutoValidateChecksums(true) scheduleID, err := ScheduleIDFromString("0.0.123-rmkyk") assert.NoError(t, err) scheduleDelete := NewScheduleDeleteTransaction(). SetScheduleID(scheduleID) err = scheduleDelete._Va...
explode_data.jsonl/19818
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 4562, 32210, 6435, 8070, 17926, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 8423, 2461, 2271, 4711, 741, 25291, 4202, 13253, 17926, 73190, 82, 3715, 340, 1903, 8796, 915, 11, 1848, 1669, 23512, 915, 44491, 445, 15, 13, 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 TestHandlerReturnsCorrectValues(t *testing.T) { req := events.APIGatewayProxyRequest{ Path: "/test", HTTPMethod: http.MethodPost, } expectedResp := events.APIGatewayProxyResponse{ Body: "Test", } route := &Route{ func(_ events.APIGatewayProxyRequest) bool { return true }, func(_ events....
explode_data.jsonl/4495
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 3050, 16446, 33092, 6227, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 4357, 24922, 40709, 16219, 1900, 515, 197, 69640, 25, 981, 3521, 1944, 756, 197, 197, 9230, 3523, 25, 1758, 20798, 4133, 345, 197, 630, 42400, 36555, 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 TestQuerySliceStringNoParam(t *testing.T) { assert.NoError(t, prepareEngine()) type GetVar6 struct { Id int64 `xorm:"autoincr pk"` Msg bool `xorm:"bit"` } assert.NoError(t, testEngine.Sync2(new(GetVar6))) var data = GetVar6{ Msg: false, } _, err := testEngine.Insert(data) assert.NoError(t, err) ...
explode_data.jsonl/70219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 456 }
[ 2830, 3393, 2859, 33236, 703, 2753, 2001, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 10549, 4571, 12367, 13158, 2126, 3962, 21, 2036, 341, 197, 67211, 220, 526, 21, 19, 1565, 87, 493, 2974, 3902, 98428, 22458, 8805, 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...
5
func TestWriteToFile(t *testing.T) { err := WriteToFile("/file-does-not-exist", []byte("test-data")) assert.NotNil(t, err) tmpFile, err := ioutil.TempFile("", "test_append_file") assert.Nil(t, err) filename := tmpFile.Name() defer os.Remove(filename) tmpFile.Close() testData := []byte("test-data") err = Wr...
explode_data.jsonl/8209
{ "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, 7985, 41550, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 9645, 41550, 4283, 1192, 1737, 7072, 29169, 10187, 380, 497, 3056, 3782, 445, 1944, 13945, 5455, 6948, 93882, 1155, 11, 1848, 692, 20082, 1703, 11, 1848, 1669, 43144, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLogFileTruncated(t *testing.T) { f := createTestLogFile() defer f.Close() defer os.Remove(f.Name()) reader, err := newFileReader(logp.L(), context.TODO(), f, readerConfig{}, closerConfig{}) if err != nil { t.Fatalf("error while creating logReader: %+v", err) } buf := make([]byte, 1024) _, err = rea...
explode_data.jsonl/44848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 98857, 1282, 38007, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1855, 2271, 98857, 741, 16867, 282, 10421, 741, 16867, 2643, 13270, 955, 2967, 12367, 61477, 11, 1848, 1669, 501, 1703, 5062, 12531, 79, 1214, 1507, 2266, 90988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlushManagerFlushTimeStart(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() inputs := []struct { ts time.Time expected time.Time }{ {time.Unix(86400*2, 0), time.Unix(0, 0)}, {time.Unix(86400*2+7200, 0), time.Unix(7200, 0)}, {time.Unix(86400*2+10800, 0), time.Unix(7200, 0...
explode_data.jsonl/82129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 46874, 2043, 46874, 1462, 3479, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 22427, 82, 1669, 3056, 1235, 341, 197, 57441, 981, 882, 16299, 198, 197, 42400...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRejectUnhealthyAdd(t *testing.T) { defer testutil.AfterTest(t) c := NewCluster(t, 3) for _, m := range c.Members { m.ServerConfig.StrictReconfigCheck = true } c.Launch(t) defer c.Terminate(t) // make cluster unhealthy and wait for downed peer c.Members[0].Stop(t) c.WaitLeader(t) // all attempts t...
explode_data.jsonl/16304
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 78413, 1806, 37028, 2212, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1314, 36892, 2271, 1155, 340, 1444, 1669, 1532, 28678, 1155, 11, 220, 18, 340, 2023, 8358, 296, 1669, 2088, 272, 91758, 341, 197, 2109, 22997, 2648, 77428,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJSONNil(t *testing.T) { const SCRIPT = ` JSON.stringify(i); ` vm := New() var i interface{} vm.Set("i", i) ret, err := vm.RunString(SCRIPT) if err != nil { t.Fatal(err) } if ret.String() != "null" { t.Fatalf("Expected 'null', got: %v", ret) } }
explode_data.jsonl/10488
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 5370, 19064, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 197, 5370, 10052, 1956, 317, 197, 19324, 54879, 1669, 1532, 741, 2405, 600, 3749, 16094, 54879, 4202, 445, 72, 497, 600, 340, 11262, 11, 1848, 1669, 10995, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplySkipTrue(t *testing.T) { t.Parallel() rootPath := copyEnvironment(t, TEST_FIXTURE_SKIP) rootPath = util.JoinPath(rootPath, TEST_FIXTURE_SKIP, "skip-true") showStdout := bytes.Buffer{} showStderr := bytes.Buffer{} err := runTerragruntCommand(t, fmt.Sprintf("terragrunt apply -auto-approve --terragr...
explode_data.jsonl/10119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 28497, 35134, 2514, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 33698, 1820, 1669, 2975, 12723, 1155, 11, 13602, 42635, 41486, 67756, 340, 33698, 1820, 284, 4094, 22363, 1820, 9206, 1820, 11, 13602, 42635, 41486, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseOperator(t *testing.T) { type testoperator struct { Operator string ExpectedOperator APIRequestFilteringOperator } operators := []testoperator{ testoperator{ Operator: "EQ", ExpectedOperator: EQOperator, }, testoperator{ Operator: "LK", ExpectedOperator: LK...
explode_data.jsonl/44627
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 634 }
[ 2830, 3393, 14463, 18461, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 7884, 2036, 341, 197, 197, 18461, 260, 914, 198, 197, 197, 18896, 18461, 5333, 1900, 5632, 287, 18461, 198, 197, 532, 197, 32838, 1669, 3056, 1944, 7884, 515, 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
func TestMsgWithdraw_ValidateBasic(t *testing.T) { tests := []struct { name string msg types.MsgWithdraw err error }{ { name: "invalid address", msg: types.MsgWithdraw{ Creator: "invalid_address", WithdrawAmount: sdk.NewInt(10), }, err: sdkerrors.ErrInvalidAddress, }, { name:...
explode_data.jsonl/2049
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 319 }
[ 2830, 3393, 6611, 92261, 62, 17926, 15944, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 21169, 220, 4494, 30365, 92261, 198, 197, 9859, 220, 1465, 198, 197, 59403, 197, 197, 515, 298, 11609, 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 TestVerifyBin(t *testing.T) { cases := []struct { proc string psOut string exp bool }{ {proc: "single", psOut: "single", exp: true}, {proc: "single", psOut: "", exp: false}, {proc: "two words", psOut: "two words", exp: true}, {proc: "two words", psOut: "", exp: false}, {proc: "cmd", psOut: "cm...
explode_data.jsonl/60194
{ "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, 32627, 28794, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 197, 15782, 220, 914, 198, 197, 35009, 2662, 914, 198, 197, 48558, 256, 1807, 198, 197, 59403, 197, 197, 90, 15782, 25, 330, 15338, 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...
2
func TestCollection_FindOne(t *testing.T) { mgoClient := Ins() findResult := mgoClient.C("test").FindOne(bson.M{"name": "henry"}) if findResult.Err() != nil { t.Errorf("FindOne error: %s", findResult.Err()) t.FailNow() } result := bson.D{} if err := findResult.Decode(&result); err != nil { t.Errorf("FindOne...
explode_data.jsonl/30094
{ "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, 6482, 95245, 3966, 1155, 353, 8840, 836, 8, 341, 2109, 3346, 2959, 1669, 9726, 741, 80603, 2077, 1669, 296, 3346, 2959, 727, 445, 1944, 1827, 9885, 3966, 1883, 930, 1321, 4913, 606, 788, 330, 12032, 884, 23625, 743, 1477, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBindError(t *testing.T) { db := openTestConn(t) defer db.Close() _, err := db.Exec("create temp table test (i integer)") if err != nil { t.Fatal(err) } _, err = db.Query("select * from test where i=$1", "hhh") if err == nil { t.Fatal("expected an error") } // Should not get error here r, err :...
explode_data.jsonl/63433
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 9950, 1454, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 1787, 2271, 9701, 1155, 340, 16867, 2927, 10421, 2822, 197, 6878, 1848, 1669, 2927, 30798, 445, 3182, 2730, 1965, 1273, 320, 72, 7546, 19107, 743, 1848, 961, 2092, 341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestClientReturnsCloseErrors(t *testing.T) { h := PickyHatmaker(1) s := httptest.NewServer(NewHaberdasherServer(h, nil)) defer s.Close() httpClient := &bodyCloseErrClient{base: http.DefaultClient} testcase := func(client Haberdasher) func(*testing.T) { return func(t *testing.T) { _, err := client.MakeH...
explode_data.jsonl/621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 2959, 16446, 7925, 13877, 1155, 353, 8840, 836, 8, 341, 9598, 1669, 393, 18964, 72287, 25766, 7, 16, 340, 1903, 1669, 54320, 70334, 7121, 5475, 35063, 39, 370, 14348, 33767, 5475, 3203, 11, 2092, 1171, 16867, 274, 10421, 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...
3
func TestNilAddPayload(t *testing.T) { t.Parallel() mc := &mockCommitter{Mock: &mock.Mock{}} mc.On("LedgerHeight", mock.Anything).Return(uint64(1), nil) g := &mocks.GossipMock{} g.On("Accept", mock.Anything, false).Return(make(<-chan *proto.GossipMessage), nil) g.On("Accept", mock.Anything, true).Return(nil, make...
explode_data.jsonl/5634
{ "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, 19064, 2212, 29683, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 97662, 1669, 609, 16712, 1092, 16126, 90, 11571, 25, 609, 16712, 24664, 6257, 532, 97662, 8071, 445, 60850, 1389, 3640, 497, 7860, 13311, 1596, 568, 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 TestPKIidOfCert(t *testing.T) { deserializersManager := &mocks.DeserializersManager{ LocalDeserializer: &mocks.IdentityDeserializer{Identity: []byte("Alice"), Msg: []byte("msg1"), Mock: mock.Mock{}}, } signer := &mocks.SignerSerializer{} signer.SerializeReturns([]byte("Alice"), nil) cryptoProvider, err := s...
explode_data.jsonl/20522
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 598 }
[ 2830, 3393, 22242, 40, 307, 2124, 36934, 1155, 353, 8840, 836, 8, 341, 52912, 2848, 12230, 2043, 1669, 609, 16712, 82, 23548, 2848, 12230, 2043, 515, 197, 82404, 80097, 25, 609, 16712, 82, 24423, 80097, 90, 18558, 25, 3056, 3782, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestImageExtractionTransform(t *testing.T) { var expectedManifests []transform.Manifest expectedImageCRYAML, err := ioutil.ReadFile("testdata/expected-CR-image.yaml") require.NoError(t, err) expectedManifests = append(expectedManifests, transform.Manifest{Name: "100_CPMA-cluster-config-image.yaml", CRD: ex...
explode_data.jsonl/5949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 738 }
[ 2830, 3393, 1906, 840, 26425, 8963, 1155, 353, 8840, 836, 8, 341, 2405, 3601, 38495, 82, 3056, 4701, 72272, 271, 42400, 1906, 35462, 31102, 11, 1848, 1669, 43144, 78976, 445, 92425, 14, 7325, 7658, 49, 13746, 33406, 1138, 17957, 35699, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAccAWSS3BucketObject_acl(t *testing.T) { var obj1, obj2, obj3 s3.GetObjectOutput resourceName := "aws_s3_bucket_object.object" rInt := acctest.RandInt() resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheck...
explode_data.jsonl/64966
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 738 }
[ 2830, 3393, 14603, 14419, 1220, 18, 36018, 1190, 63692, 1155, 353, 8840, 836, 8, 341, 2405, 2839, 16, 11, 2839, 17, 11, 2839, 18, 274, 18, 25618, 5097, 198, 50346, 675, 1669, 330, 8635, 643, 18, 38749, 5314, 6035, 698, 7000, 1072, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_NewGenericDriver_driver_nil(t *testing.T) { db, _, _ := sqlmock.New() defer db.Close() assertPanic(t, func() { NewGenericDriver(db, nil) }) }
explode_data.jsonl/78089
{ "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, 39582, 19964, 11349, 20602, 36175, 1155, 353, 8840, 836, 8, 341, 20939, 11, 8358, 716, 1669, 5704, 16712, 7121, 2822, 16867, 2927, 10421, 2822, 6948, 47, 31270, 1155, 11, 2915, 368, 341, 197, 197, 3564, 19964, 11349, 9791, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransportDialCancelRace(t *testing.T) { defer afterTest(t) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) {})) defer ts.Close() tr := &Transport{} defer tr.CloseIdleConnections() req, err := NewRequest("GET", ts.URL, nil) if err != nil { t.Fatal(err) } SetEnterRoundTripHo...
explode_data.jsonl/4924
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 232 }
[ 2830, 3393, 27560, 35, 530, 9269, 55991, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 692, 57441, 1669, 54320, 70334, 7121, 5475, 7, 3050, 9626, 18552, 3622, 5949, 6492, 11, 435, 353, 1900, 8, 4687, 1171, 16867, 10591, 10421, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTuplePqLen(t *testing.T) { st := []struct { name string pq TuplePriorityQueue nodes [][3]int exp int }{ {"empty nodes", TuplePriorityQueue{}, nil, 0}, {"nodes' len eq 1", TuplePriorityQueue{}, [][3]int{[3]int{1, 2, 3}, [3]int{2, 2, 4}}, 2}, {"nodes' len eq 2", TuplePriorityQueue{}, [][3]i...
explode_data.jsonl/28730
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 28681, 47, 80, 11271, 1155, 353, 8840, 836, 8, 341, 18388, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 3223, 80, 262, 24622, 20555, 7554, 198, 197, 79756, 508, 1457, 18, 63025, 198, 197, 48558, 256, 526, 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...
3
func TestRecover_completeHandlerFunc_POST_VerificationFails(t *testing.T) { t.Parallel() rec, _, _ := testSetup() ctx, w, r, _ := testRequest(rec.Authboss, "POST", "token", testURLBase64Token, authboss.StorePassword, "abcd", "confirm_"+authboss.StorePassword, "abcd") if err := rec.completeHandlerFunc(ctx, w, r); ...
explode_data.jsonl/61505
{ "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, 693, 3688, 27675, 3050, 9626, 20506, 2334, 261, 2404, 37, 6209, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 67904, 11, 8358, 716, 1669, 1273, 21821, 741, 20985, 11, 289, 11, 435, 11, 716, 1669, 1273, 1900, 20635...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClearAllSessionTimers(t *testing.T) { dir1, s1 := testServer(t) defer os.RemoveAll(dir1) defer s1.Shutdown() s1.sessionTimersLock.Lock() s1.resetSessionTimerLocked("foo", 10*time.Millisecond) s1.resetSessionTimerLocked("bar", 10*time.Millisecond) s1.resetSessionTimerLocked("baz", 10*time.Millisecond) ...
explode_data.jsonl/35335
{ "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, 14008, 2403, 5283, 20217, 388, 1155, 353, 8840, 836, 8, 341, 48532, 16, 11, 274, 16, 1669, 1273, 5475, 1155, 340, 16867, 2643, 84427, 14161, 16, 340, 16867, 274, 16, 10849, 18452, 2822, 1903, 16, 10177, 20217, 388, 11989, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartOfMonth(t *testing.T) { res := StartOfMonth(testDate) str := Date(res, "Y-m-d H:i:s") require.Equal(t, "2020-03-01 00:00:00", str) }
explode_data.jsonl/45316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 3479, 59646, 1155, 353, 8840, 836, 8, 341, 10202, 1669, 5145, 59646, 8623, 1916, 340, 11355, 1669, 2631, 4590, 11, 330, 56, 1448, 1737, 472, 14665, 14495, 1138, 17957, 12808, 1155, 11, 330, 17, 15, 17, 15, 12, 15, 18, 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
func TestGameServerApplyDefaults(t *testing.T) { t.Parallel() type expected struct { protocol corev1.Protocol state GameServerState policy PortPolicy health Health scheduling apis.SchedulingStrategy } data := map[string]struct { gameServer GameServer container string expected expe...
explode_data.jsonl/19630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1988 }
[ 2830, 3393, 4868, 5475, 28497, 16273, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 13158, 3601, 2036, 341, 197, 197, 17014, 256, 6200, 85, 16, 54096, 198, 197, 24291, 414, 4050, 5475, 1397, 198, 197, 3223, 8018, 257, 5776, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewClient(t *testing.T) { c := NewClient(nil, "") expectedBaseURL := defaultBaseURL + apiVersionPath if c.BaseURL().String() != expectedBaseURL { t.Errorf("NewClient BaseURL is %s, want %s", c.BaseURL().String(), expectedBaseURL) } if c.UserAgent != userAgent { t.Errorf("NewClient UserAgent is %s, wa...
explode_data.jsonl/47239
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 3564, 2959, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 1532, 2959, 27907, 11, 14676, 42400, 3978, 3144, 1669, 1638, 3978, 3144, 488, 6330, 5637, 1820, 271, 743, 272, 13018, 3144, 1005, 703, 368, 961, 3601, 3978, 3144, 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...
3
func Test_validateConfig(t *testing.T) { config := &Config{} err := readConfigFile("test-fixtures/config.json", config) assert.EnsureNil(t, err, "readConfigFile() returned an unexpected error: %v", err) errs := validateConfig(config) assert.Empty(t, errs, "validateConfig() returned non-empty slice of errors: %v",...
explode_data.jsonl/63314
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 42681, 2648, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 609, 2648, 16094, 9859, 1669, 1349, 2648, 1703, 445, 1944, 70913, 18513, 14730, 4323, 497, 2193, 340, 6948, 22834, 19098, 19064, 1155, 11, 1848, 11, 330, 878, 2648, 170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_NewTeams(t *testing.T) { // error payload w := httptest.NewRecorder() jsonData, _ := json.Marshal(map[string]interface{}{ "Name": "vidar", "Logo": "", }) req, _ := http.NewRequest("POST", "/api/manager/teams", bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", managerToken) router.ServeHTTP...
explode_data.jsonl/77157
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1095 }
[ 2830, 3393, 39582, 60669, 1155, 353, 8840, 836, 8, 341, 197, 322, 1465, 7729, 198, 6692, 1669, 54320, 70334, 7121, 47023, 741, 30847, 1043, 11, 716, 1669, 2951, 37271, 9147, 14032, 31344, 67066, 197, 197, 1, 675, 788, 330, 1301, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChainProviderWithNoProvider(t *testing.T) { p := &ChainProvider{ Providers: []Provider{}, } if !p.IsExpired() { t.Errorf("Expect expired with no providers") } _, err := p.Retrieve() if e, a := ErrNoValidProvidersFoundInChain, err; e != a { t.Errorf("Expect no providers error returned, %v, got %v",...
explode_data.jsonl/34838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 18837, 5179, 2354, 2753, 5179, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 609, 18837, 5179, 515, 197, 197, 37351, 25, 3056, 5179, 38837, 197, 630, 743, 753, 79, 4506, 54349, 368, 341, 197, 3244, 13080, 445, 17536, 26391, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJsOn(t *testing.T) { t.Parallel() t.Run("noEvent", func(t *testing.T) { t.Parallel() engine := New(emptyReader) err := engine.AddScript("test.js", ` import {on, sleep} from 'mokapi' export default function() {} `) test.Ok(t, err) test.Assert(t, len(engine.scripts) == 1, "script length not 1...
explode_data.jsonl/32512
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1579 }
[ 2830, 3393, 30480, 1925, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3244, 16708, 445, 2152, 1556, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 741, 197, 80118, 1669, 1532, 24216, 5062, 340, 197, 9859, 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 TestCentroidDistanceSwap(t *testing.T) { dp1 := newBasicNodeWithLen(nil) dp2 := newBasicNodeWithLen([]int{1, 2, 3}) centroid := newBasicNodeWithLen(nil) data := []Node{dp1, dp2} cd := newCentroidDistance(centroid, data) cd.Swap(0, 1) if !Equal(cd.members[0], dp2) { t.Errorf("Expected dp1 and dp2 to sw...
explode_data.jsonl/9172
{ "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, 22233, 1577, 14778, 46179, 1155, 353, 8840, 836, 8, 341, 55256, 16, 1669, 501, 15944, 1955, 2354, 11271, 27907, 340, 55256, 17, 1669, 501, 15944, 1955, 2354, 11271, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 18, 8824, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestListRepositories(t *testing.T) { assert := assert.New(t) bb, _, teardown := bitbucketTestClient(stubRepositoriesResponse) defer teardown() resp, err := bb.Repositories.List("ACE") if !assert.NoError(err) { return } assert.NotNil(resp) assert.Len(resp.Values, 12) }
explode_data.jsonl/76093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 852, 44814, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 2233, 65, 11, 8358, 49304, 1669, 2699, 30410, 2271, 2959, 5895, 392, 44814, 2582, 340, 16867, 49304, 741, 34653, 11, 1848, 1669, 16520, 46658, 5814...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPoolBorrowReturn(ot *testing.T) { maxAge := 1 * time.Second birthdate := time.Now() succeedingConnect := func(s string, _ log.BoltLogger) (db.Connection, error) { return &testutil.ConnFake{Name: s, Alive: true, Birth: birthdate}, nil } failingError := errors.New("whatever") failingConnect := func(s s...
explode_data.jsonl/49910
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1736 }
[ 2830, 3393, 10551, 33, 7768, 5598, 7, 354, 353, 8840, 836, 8, 341, 22543, 16749, 1669, 220, 16, 353, 882, 32435, 198, 2233, 4809, 1028, 1669, 882, 13244, 2822, 1903, 29264, 287, 14611, 1669, 2915, 1141, 914, 11, 716, 1487, 1785, 6181,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRenegotiateTwiceRejected(t *testing.T) { config := testConfig.Clone() config.Renegotiation = RenegotiateOnceAsClient test := &clientTest{ name: "RenegotiateTwiceRejected", args: []string{"-state"}, config: config, numRenegotiations:...
explode_data.jsonl/27724
{ "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, 34625, 65978, 6493, 22816, 558, 77693, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1273, 2648, 64463, 741, 25873, 2013, 268, 65978, 7101, 284, 13775, 65978, 6493, 12522, 2121, 2959, 271, 18185, 1669, 609, 2972, 2271, 515, 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 TestVariables_ListsAndNullability_AllowsListsToContainNull(t *testing.T) { doc := ` query q($input: [String]) { list(input: $input) } ` params := map[string]interface{}{ "input": []interface{}{"A", nil, "B"}, } expected := &graphql.Result{ Data: map[string]interface{}{ "list"...
explode_data.jsonl/6454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 22678, 27104, 82, 3036, 3280, 2897, 53629, 4241, 37848, 1249, 46522, 3280, 1155, 353, 8840, 836, 8, 341, 59536, 1669, 22074, 286, 3239, 2804, 699, 1355, 25, 508, 703, 2467, 341, 688, 1140, 5384, 25, 400, 1355, 340, 286, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewDispatcherHealthServer(t *testing.T) { // Create A Health Server health := NewDispatcherHealthServer(testHttpPort) // Validate The EventProxy assert.NotNil(t, health) assert.Equal(t, false, health.Alive()) assert.Equal(t, false, health.dispatcherReady) }
explode_data.jsonl/66549
{ "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, 3564, 21839, 14542, 5475, 1155, 353, 8840, 836, 8, 1476, 197, 322, 4230, 362, 6267, 8422, 198, 197, 12120, 1669, 1532, 21839, 14542, 5475, 8623, 2905, 7084, 692, 197, 322, 23282, 576, 3665, 16219, 198, 6948, 93882, 1155, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestApplyStripsFields(t *testing.T) { f := NewDefaultTestFieldManager(schema.FromAPIVersionAndKind("apps/v1", "Deployment")) newObj := &unstructured.Unstructured{ Object: map[string]interface{}{ "apiVersion": "apps/v1", "kind": "Deployment", }, } newObj.SetName("b") newObj.SetNamespace("b") ...
explode_data.jsonl/53742
{ "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, 28497, 2580, 3077, 8941, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 1532, 3675, 2271, 1877, 2043, 42735, 11439, 7082, 5637, 3036, 10629, 445, 27635, 5457, 16, 497, 330, 75286, 28075, 8638, 5261, 1669, 609, 359, 51143, 10616, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_CheckDown(t *testing.T) { // not begin timer.Get().Status = "wait" w := httptest.NewRecorder() jsonData, _ := json.Marshal(map[string]interface{}{ "GameBoxID": 4, }) req, _ := http.NewRequest("POST", "/api/manager/checkDown", bytes.NewBuffer(jsonData)) req.Header.Set("Authorization", managerToken) r...
explode_data.jsonl/77172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 655 }
[ 2830, 3393, 28188, 4454, 1155, 353, 8840, 836, 8, 341, 197, 322, 537, 3161, 198, 51534, 2234, 1005, 2522, 284, 330, 11489, 698, 6692, 1669, 54320, 70334, 7121, 47023, 741, 30847, 1043, 11, 716, 1669, 2951, 37271, 9147, 14032, 31344, 670...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddEmailAddress(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) assert.NoError(t, AddEmailAddress(db.DefaultContext, &EmailAddress{ Email: "user1234567890@example.com", LowerEmail: "user1234567890@example.com", IsPrimary: true, IsActivated: true, })) // ErrEmailAlreadyU...
explode_data.jsonl/67886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 2212, 79986, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 12367, 6948, 35699, 1155, 11, 2691, 79986, 9791, 13275, 1972, 11, 609, 79986, 515, 197, 197, 4781, 25, 981, 330, 872, 16, 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...
1
func TestGetNewUsersInTeam(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.Client teamId := th.BasicTeam.Id rusers, resp := Client.GetNewUsersInTeam(teamId, 0, 60, "") CheckNoError(t, resp) lastCreateAt := model.GetMillis() for _, u := range rusers { if u.CreateAt > lastCreateAt {...
explode_data.jsonl/21536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 1949, 3564, 7137, 641, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 197, 9196, 764, 1669, 270, 48868, 14597, 6444, 271, 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...
4