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 Test_Option_DefaultOption(t *testing.T) { opt := defaultOption() assert.Equal(t, false, opt.logResult) assert.Equal(t, opentracing.GlobalTracer(), opt.tracer) assert.Equal(t, true, opt.logSqlParameters) }
explode_data.jsonl/45440
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 2232, 560, 60336, 5341, 1155, 353, 8840, 836, 8, 341, 64838, 1669, 1638, 5341, 741, 6948, 12808, 1155, 11, 895, 11, 3387, 1665, 2077, 340, 6948, 12808, 1155, 11, 1179, 23745, 4527, 27381, 1282, 9584, 1507, 3387, 5427, 9584, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMessageExportSetDefaultsExportDisabledExportFromTimestampNonZero(t *testing.T) { // Test retained as protection against regression of MM-13185 mes := &MessageExportSettings{ EnableExport: NewBool(false), ExportFromTimestamp: NewInt64(12345), } mes.SetDefaults() require.False(t, *mes.EnableExpo...
explode_data.jsonl/50696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 2052, 16894, 1649, 16273, 16894, 25907, 16894, 3830, 20812, 8121, 17999, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 34263, 438, 9135, 2348, 30549, 315, 21665, 12, 16, 18, 16, 23, 20, 198, 2109, 288, 1669, 609, 2052, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseDefinitionFileFailure(t *testing.T) { tests := []struct { name string defPath string }{ {"BadSection", "../testdata_bad/bad_section"}, {"JSONInput1", "../testdata_bad/json_input_1"}, {"JSONInput2", "../testdata_bad/json_input_2"}, {"Empty", "../testdata_bad/empty"}, } for _, tt := rang...
explode_data.jsonl/30716
{ "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, 14463, 10398, 1703, 17507, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 7452, 1820, 914, 198, 197, 59403, 197, 197, 4913, 17082, 9620, 497, 7005, 92425, 34199, 3470, 329, 16221,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolveService(t *testing.T) { testCases := []struct { serviceID string serviceInspectFunc func(string) (swarm.Service, []byte, error) expectedID string }{ { serviceID: "serviceID", serviceInspectFunc: func(string) (swarm.Service, []byte, error) { return swarm.Service{}, []...
explode_data.jsonl/9041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 373 }
[ 2830, 3393, 56808, 1860, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 52934, 915, 688, 914, 198, 197, 52934, 58533, 9626, 2915, 3609, 8, 320, 2280, 2178, 13860, 11, 3056, 3782, 11, 1465, 340, 197, 42400, 915...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHashedKey(t *testing.T) { m := &HashMap{} _, ok := m.GetHashedKey(uintptr(0)) if ok { t.Error("empty map should not return an item.") } m.DelHashedKey(uintptr(0)) m.allocate(uintptr(64)) m.DelHashedKey(uintptr(0)) itemCount := 16 log := log2(uintptr(itemCount)) for i := 0; i < itemCount; i++ { ...
explode_data.jsonl/24432
{ "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, 6370, 291, 1592, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 609, 18497, 16094, 197, 6878, 5394, 1669, 296, 2234, 6370, 291, 1592, 8488, 3505, 7, 15, 1171, 743, 5394, 341, 197, 3244, 6141, 445, 3194, 2415, 1265, 537, 470, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestEvidenceList(t *testing.T) { ev := randomDuplicatedVoteEvidence() evl := EvidenceList([]Evidence{ev}) assert.NotNil(t, evl.Hash()) assert.True(t, evl.Has(ev)) assert.False(t, evl.Has(&DuplicateVoteEvidence{})) }
explode_data.jsonl/80947
{ "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, 92602, 852, 1155, 353, 8840, 836, 8, 341, 74837, 1669, 4194, 35, 98984, 41412, 92602, 741, 74837, 75, 1669, 43696, 852, 10556, 92602, 90, 5120, 8824, 6948, 93882, 1155, 11, 3637, 75, 15103, 2398, 6948, 32443, 1155, 11, 3637,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeviceByName(t *testing.T) { device := dtos.ToDeviceModel(buildTestDeviceRequest().Device) emptyName := "" notFoundName := "notFoundName" dic := mockDic() dbClientMock := &dbMock.DBClient{} dbClientMock.On("DeviceByName", device.Name).Return(device, nil) dbClientMock.On("DeviceByName", notFoundName).Re...
explode_data.jsonl/9307
{ "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, 6985, 16898, 1155, 353, 8840, 836, 8, 341, 54719, 1669, 7594, 436, 3274, 6985, 1712, 43333, 2271, 6985, 1900, 1005, 6985, 340, 197, 3194, 675, 1669, 8389, 97266, 6650, 675, 1669, 330, 1921, 6650, 675, 1837, 2698, 292, 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 TestRemoteIPRealIP(t *testing.T) { ipLookups := []string{"X-Real-IP", "X-Forwarded-For", "RemoteAddr"} ipv6 := "2601:7:1c82:4097:59a0:a80b:2841:b8c8" request, err := http.NewRequest("GET", "/", strings.NewReader("Hello, world!")) if err != nil { t.Errorf("Unable to create new HTTP request. Error: %v", err) ...
explode_data.jsonl/54314
{ "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, 24703, 3298, 12768, 3298, 1155, 353, 8840, 836, 8, 341, 46531, 10380, 8602, 1669, 3056, 917, 4913, 55, 12, 12768, 12, 3298, 497, 330, 55, 12, 25925, 291, 12, 2461, 497, 330, 24703, 13986, 16707, 197, 42676, 21, 1669, 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...
4
func TestFillPartial(t *testing.T) { _, back := testlib.Mktmp(t) defer back() testlib.GitInit(t) testlib.GitRemoteAdd(t, "git@github.com:goreleaser/goreleaser.git") var ctx = &context.Context{ Config: config.Project{ GitHubURLs: config.GitHubURLs{ Download: "https://github.company.com", }, Dist: "d...
explode_data.jsonl/35900
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 760 }
[ 2830, 3393, 14449, 37314, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1182, 1669, 1273, 2740, 1321, 74, 5173, 1155, 340, 16867, 1182, 741, 18185, 2740, 1224, 275, 3803, 1155, 340, 18185, 2740, 1224, 275, 24703, 2212, 1155, 11, 330, 12882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBackupRestoreCheckpointing(t *testing.T) { defer leaktest.AfterTest(t)() t.Skip("https://github.com/cockroachdb/cockroach/issues/33357") defer func(oldInterval time.Duration) { BackupCheckpointInterval = oldInterval }(BackupCheckpointInterval) BackupCheckpointInterval = 0 var checkpointPath string ...
explode_data.jsonl/57582
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 620 }
[ 2830, 3393, 56245, 56284, 92688, 287, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 2822, 3244, 57776, 445, 2428, 1110, 5204, 905, 14, 37153, 64500, 1999, 14, 37153, 64500, 38745, 14, 18, 18, 18, 20, 22, 5130...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetConsulServices(t *testing.T) { ctrl := gomock.NewController(assert.Tracing(t)) defer ctrl.Finish() want := map[string][]string{ "svca": {"tag", "tag2", "tag3"}, "svcb": {"tag", "tag2", "tag3"}, } catalog := newMockCatalogInterface(ctrl) catalog.EXPECT().Services(opts).Return(want, nil, nil) go...
explode_data.jsonl/71895
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 1949, 15220, 360, 11025, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 75846, 8240, 4527, 1155, 1171, 16867, 23743, 991, 18176, 2822, 50780, 1669, 2415, 14032, 45725, 917, 515, 197, 197, 1, 3492, 924...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTLSCAValidation(t *testing.T) { gt := gomega.NewGomegaWithT(t) t.Run("GoodCert", func(t *testing.T) { mspImpl := &bccspmsp{ opts: &x509.VerifyOptions{Roots: x509.NewCertPool(), Intermediates: x509.NewCertPool()}, } err := mspImpl.setupTLSCAs(&msp.FabricMSPConfig{ TlsRootCerts: [][]byte{[]byte(c...
explode_data.jsonl/59728
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 543 }
[ 2830, 3393, 13470, 3540, 32, 13799, 1155, 353, 8840, 836, 8, 341, 3174, 83, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 692, 3244, 16708, 445, 15216, 36934, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 47691, 79, 9673, 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 TestGerritRawYaml(t *testing.T) { t.Parallel() var testCases = []struct { name string expectError bool rawConfig string expected Gerrit }{ { name: "no-default", expectError: false, rawConfig: ` gerrit: `, expected: Gerrit{ TickInterval: &metav1.Duration{Duration: tim...
explode_data.jsonl/41008
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1099 }
[ 2830, 3393, 38, 615, 275, 20015, 56, 9467, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2405, 1273, 37302, 284, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 24952, 1454, 1807, 198, 197, 76559, 2648, 256, 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...
7
func TestUpdate_Run(t *testing.T) { ctrl := gomock.NewController(t) mockStore := mocks.NewMockBackupConfigUpdater(ctrl) defer ctrl.Finish() expected := &opsmngr.BackupConfig{} updateOpts := &UpdateOpts{ store: mockStore, } mockStore. EXPECT().UpdateBackupConfig(updateOpts.newBackupConfig()). Return(expe...
explode_data.jsonl/36619
{ "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, 4289, 84158, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 77333, 6093, 1669, 68909, 7121, 11571, 56245, 2648, 79854, 62100, 340, 16867, 23743, 991, 18176, 2822, 42400, 1669, 609, 453, 3563,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddByIndexOutOfDLL(t *testing.T) { dll := NewDoubleLinkedList() dll.AddByIndex("value-0", 0) dll.AddByIndex("value-5", 5) if dll.tail.data != "value-5" { t.Error("The out of scope item should be added to the end of linked list") } }
explode_data.jsonl/59814
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 2212, 1359, 1552, 31731, 64187, 1155, 353, 8840, 836, 8, 341, 2698, 654, 1669, 1532, 7378, 33915, 741, 2698, 654, 1904, 1359, 1552, 445, 957, 12, 15, 497, 220, 15, 340, 2698, 654, 1904, 1359, 1552, 445, 957, 12, 20, 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 TestSuccessfulSendWithTracking(t *testing.T) { expectedCode := MessageStatusCode(555) impl, err := newTestSenderCheckerImpl(&smscTestClientOptions{false, false, expectedCode}, time.Hour) if err != nil { t.Fatal(err) } id, err := impl.Send("+7 921 123 45 67", "test", true) if err != nil { t.Fatal(err) } ...
explode_data.jsonl/23020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 305 }
[ 2830, 3393, 36374, 11505, 2354, 37119, 1155, 353, 8840, 836, 8, 341, 42400, 2078, 1669, 4856, 15872, 7, 20, 20, 20, 340, 197, 6383, 11, 1848, 1669, 501, 2271, 20381, 35188, 9673, 2099, 41392, 66, 2271, 2959, 3798, 90, 3849, 11, 895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsert2AndRemove2AndRootShouldBeNil(t *testing.T) { tree := NewArtTree() tree.Insert([]byte("test"), []byte("data")) tree.Insert([]byte("test2"), []byte("data")) tree.Remove([]byte("test")) tree.Remove([]byte("test2")) if tree.size != 0 { t.Error("Unexpected tree size after inserting and removing") ...
explode_data.jsonl/43958
{ "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, 13780, 17, 3036, 13021, 17, 3036, 8439, 14996, 3430, 19064, 1155, 353, 8840, 836, 8, 341, 51968, 1669, 1532, 9286, 6533, 2822, 51968, 23142, 10556, 3782, 445, 1944, 3975, 3056, 3782, 445, 691, 5455, 51968, 23142, 10556, 3782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLibraryAssets(t *testing.T) { bp := ` android_app { name: "foo", sdk_version: "current", static_libs: ["lib1", "lib2", "lib3"], } android_library { name: "lib1", sdk_version: "current", asset_dirs: ["assets_a"], } android_library { name: "lib2", sdk_version: "c...
explode_data.jsonl/58484
{ "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, 16915, 26879, 1155, 353, 8840, 836, 8, 341, 2233, 79, 1669, 22074, 298, 197, 5954, 8191, 341, 571, 11609, 25, 330, 7975, 756, 571, 1903, 7584, 9438, 25, 330, 3231, 756, 571, 6977, 16142, 82, 25, 4383, 2740, 16, 497, 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...
4
func TestMapTransaction_MosaicDefinitionTransaction(t *testing.T) { txr := `{"transaction":{"signer":"9C2086FE49B7A00578009B705AD719DB7E02A27870C67966AAA40540C136E248","version":43010,"type":16717,"parentId":[2031553063,2912841636],"mosaicId":[1477049789,645988887],"properties":[{"key":0,"value":[2,0]},{"key":1,"value...
explode_data.jsonl/69208
{ "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, 2227, 8070, 1245, 44783, 10398, 8070, 1155, 353, 8840, 836, 8, 341, 46237, 81, 1669, 1565, 4913, 13528, 22317, 7752, 261, 3252, 24, 34, 17, 15, 23, 21, 11419, 19, 24, 33, 22, 32, 15, 15, 20, 22, 23, 15, 15, 24, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateHTTPSLoadBalancer(t *testing.T) { // This should NOT create the forwarding rule and target proxy // associated with the HTTP branch of this loadbalancer. lbInfo := &L7RuntimeInfo{ Name: "test", AllowHTTP: false, TLS: &TLSCerts{Key: "key", Cert: "cert"}, } f := NewFakeLoadBalancers(l...
explode_data.jsonl/49951
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 370 }
[ 2830, 3393, 4021, 82354, 5879, 93825, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 1265, 4183, 1855, 279, 62104, 5912, 323, 2169, 13291, 198, 197, 322, 5815, 448, 279, 10130, 8870, 315, 419, 2795, 13313, 11705, 624, 8810, 65, 1731, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyStruct(t *testing.T) { c := gs.New() objA := &emptyStructA{} c.Object(objA) objB := &emptyStructB{} c.Object(objB) err := c.Refresh() assert.Nil(t, err) // objA 和 objB 的地址相同但是类型确实不一样。 fmt.Printf("objA:%p objB:%p\n", objA, objB) fmt.Printf("objA:%#v objB:%#v\n", objA, objB) }
explode_data.jsonl/17436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 3522, 9422, 1155, 353, 8840, 836, 8, 1476, 1444, 1669, 28081, 7121, 741, 22671, 32, 1669, 609, 3194, 9422, 32, 16094, 1444, 8348, 6779, 32, 340, 22671, 33, 1669, 609, 3194, 9422, 33, 16094, 1444, 8348, 6779, 33, 340, 9859,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDiskQueueReaderResetRead(t *testing.T) { // backward, forward dqName := "test_disk_queue" + strconv.Itoa(int(time.Now().Unix())) tmpDir, err := ioutil.TempDir("", fmt.Sprintf("nsq-test-%d", time.Now().UnixNano())) test.Nil(t, err) defer os.RemoveAll(tmpDir) queue, _ := NewDiskQueueWriter(dqName, tmpDir,...
explode_data.jsonl/58219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1569 }
[ 2830, 3393, 47583, 7554, 5062, 14828, 4418, 1155, 353, 8840, 836, 8, 341, 197, 322, 27555, 11, 4637, 271, 2698, 80, 675, 1669, 330, 1944, 41687, 10841, 1, 488, 33317, 64109, 1548, 9730, 13244, 1005, 55832, 12145, 20082, 6184, 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...
4
func TestTestvariables2Prologue(t *testing.T) { withTestProcess("testvariables2", t, func(p *proc.Target, fixture protest.Fixture) { addrEntry := p.BinInfo().LookupFunc["main.main"].Entry addrPrologue := findFunctionLocation(p, t, "main.main") if addrEntry == addrPrologue { t.Fatalf("Prologue detection failed...
explode_data.jsonl/56257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 2271, 18616, 17, 1336, 67078, 1155, 353, 8840, 836, 8, 341, 46948, 2271, 7423, 445, 1944, 18616, 17, 497, 259, 11, 2915, 1295, 353, 15782, 35016, 11, 12507, 8665, 991, 12735, 8, 341, 197, 53183, 5874, 1669, 281, 1785, 258,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIncreasePullRTGetPullRT(t *testing.T) { ShutDownStatis() tests := []struct { RT int64 ExpectSum int64 }{ {1, 0}, {1, 1}, {1, 2}, {1, 3}, {1, 4}, {1, 5}, {1, 6}, {1, 6}, } for _, tt := range tests { increasePullRT("rocketmq", "default", tt.RT) topicAndGroupPullRT.samplingInS...
explode_data.jsonl/1963
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 69556, 36068, 5350, 1949, 36068, 5350, 1155, 353, 8840, 836, 8, 341, 197, 2016, 332, 4454, 623, 3605, 2822, 78216, 1669, 3056, 1235, 341, 197, 11826, 286, 526, 21, 19, 198, 197, 35911, 9190, 526, 21, 19, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDryRunUpdatePreconditions(t *testing.T) { s, destroy := NewDryRunnableTestStorage(t) defer destroy() obj := UnstructuredOrDie(`{"kind": "Pod", "metadata": {"uid": "my-uid"}}`) out := UnstructuredOrDie(`{}`) err := s.Create(context.Background(), "key", obj, out, 0, false) if err != nil { t.Fatalf("Fail...
explode_data.jsonl/5462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 458 }
[ 2830, 3393, 85215, 6727, 4289, 4703, 16495, 1155, 353, 8840, 836, 8, 341, 1903, 11, 6921, 1669, 1532, 85215, 68836, 2271, 5793, 1155, 340, 16867, 6921, 2822, 22671, 1669, 1230, 51143, 2195, 18175, 5809, 4913, 15314, 788, 330, 23527, 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 TestTableBuild_walk_Translate(t *testing.T) { testDataPath, err := filepath.Abs("./testdata") require.NoError(t, err) s := &Snmp{ ClientConfig: snmp.ClientConfig{ Path: []string{testDataPath}, }, } err = s.Init() require.NoError(t, err) tbl := Table{ Name: "atTable", IndexAsTag: true, Fi...
explode_data.jsonl/50792
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 739 }
[ 2830, 3393, 2556, 11066, 56131, 34932, 5075, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 1820, 11, 1848, 1669, 26054, 33255, 13988, 92425, 1138, 17957, 35699, 1155, 11, 1848, 340, 1903, 1669, 609, 20720, 1307, 515, 197, 71724, 2648, 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 TestSokuonT(t *testing.T) { const want = "ttatchittsuttetto" for _, v := range []string{"ったっちっつってっと", "ッタッチッツッテット"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11347
{ "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, 50, 16493, 263, 51, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 5566, 754, 1442, 82, 20826, 52879, 1837, 2023, 8358, 348, 1669, 2088, 3056, 917, 4913, 123857, 133266, 41791, 58639, 75847, 124870, 497, 330, 25204, 462...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStatusRelease(t *testing.T) { expectedArgs := []string{"status", releaseName} helm, runner := createHelm(t, nil, "") ns := "default" err := helm.StatusRelease(ns, releaseName) assert.NoError(t, err, "should get the status of a helm chart release without any error") verifyArgs(t, helm, runner, expectedA...
explode_data.jsonl/4651
{ "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, 2522, 16077, 1155, 353, 8840, 836, 8, 341, 42400, 4117, 1669, 3056, 917, 4913, 2829, 497, 4879, 675, 532, 9598, 23162, 11, 22259, 1669, 1855, 39, 23162, 1155, 11, 2092, 11, 14676, 84041, 1669, 330, 2258, 1837, 9859, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHandleReceivedVoteMsg(t *testing.T) { smr, err := MakeSmr(t) if err != nil { t.Error("TestHandleReceivedVoteMsg MakeSmr error", err) return } proposal := &pb.QuorumCert{ ProposalId: []byte("proposalQC ProposalId"), ViewNumber: 1005, } smr.localProposal.Store(string(proposal.GetProposalId()), prop...
explode_data.jsonl/33026
{ "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, 6999, 23260, 41412, 6611, 1155, 353, 8840, 836, 8, 341, 1903, 20946, 11, 1848, 1669, 7405, 10673, 81, 1155, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 2271, 6999, 23260, 41412, 6611, 7405, 10673, 81, 1465, 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...
3
func TestRegistryNameFromRepo(t *testing.T) { registries := [][]string{ // Ok, should work {"http://core.harbor.domain:8080", "library", "core.harbor.domain:8080/library"}, {"https://core.harbor.domain:8080", "testproject/repository/image", "core.harbor.domain:8080/testproject/repository/image"}, {"https://cor...
explode_data.jsonl/71413
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 15603, 675, 3830, 25243, 1155, 353, 8840, 836, 8, 341, 37013, 380, 4019, 1669, 52931, 917, 515, 197, 197, 322, 7622, 11, 1265, 975, 198, 197, 197, 4913, 1254, 1110, 2153, 86455, 9368, 11003, 25, 23, 15, 23, 15, 497, 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...
5
func TestStrokedPathZeroWidth(t *testing.T) { run(t, func(o *op.Ops) { const width = 2 var sty clip.StrokeStyle { p := new(clip.Path) p.Begin(o) p.Move(f32.Pt(10, 50)) p.Line(f32.Pt(50, 0)) p.Stroke(width, sty).Add(o) paint.Fill(o, colornames.Black) } { p := new(clip.Path) p.Begin(o...
explode_data.jsonl/18114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 623, 299, 47159, 1820, 17999, 3327, 1155, 353, 8840, 836, 8, 341, 56742, 1155, 11, 2915, 10108, 353, 453, 8382, 1690, 8, 341, 197, 4777, 2374, 284, 220, 17, 198, 197, 2405, 17613, 12327, 7758, 7441, 2323, 198, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFullJitterBackoff(t *testing.T) { expected := []time.Duration{ 724039541 * time.Nanosecond, 1603903257 * time.Nanosecond, 5232470547 * time.Nanosecond, 21467499218 * time.Nanosecond, } backoffTest(t, expected, func(c *Config) BackoffStrategy { return &FullJitterStrategy{cfg: c, rng: rand.New(rand....
explode_data.jsonl/40997
{ "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, 9432, 41, 3248, 3707, 1847, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 3056, 1678, 33795, 515, 197, 197, 22, 17, 19, 15, 18, 24, 20, 19, 16, 353, 882, 2067, 276, 960, 1297, 345, 197, 197, 16, 21, 15, 18, 24, 15, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExtractPersistTags(t *testing.T) { for testName, testCase := range map[string]struct { userData string expectFound bool expectedUserData string }{ "FindsAndRemovesAllInstancesOfPersist": { userData: "<persist>true</persist>\n<powershell>echo foo</powershell>\n<persist>true</pe...
explode_data.jsonl/3810
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 446 }
[ 2830, 3393, 28959, 61267, 15930, 1155, 353, 8840, 836, 8, 341, 2023, 94396, 11, 54452, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 19060, 1043, 260, 914, 198, 197, 24952, 6650, 414, 1807, 198, 197, 42400, 39485, 914, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestForLeader(t *testing.T) { g := NewWithT(t) tests := []struct { name string nodes []string cc clientCreator expectedErr string expectedClient etcd.Client }{ { name: "Returns client for leader successfully", nodes: []string{"node-1", "node-leader"}, cc: func(ctx context.Context,...
explode_data.jsonl/44418
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1274 }
[ 2830, 3393, 2461, 52621, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 1532, 2354, 51, 1155, 692, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 79756, 3056, 917, 198, 197, 63517, 262, 2943, 31865, 271, 197, 42400, 7747, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExportFormsCommonJS(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` require('./commonjs') require('./c') require('./d') require('./e') require('./f') require('./g') require('./h') `, "/commonjs.js": ` export default 12...
explode_data.jsonl/38449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 475 }
[ 2830, 3393, 16894, 20593, 10839, 12545, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 17957, 8283, 5464, 251...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProcessEvents(t *testing.T) { // Stub outlet for receiving events generated by the input. o := &stubOutleter{} out, err := newStubOutlet(o) if err != nil { t.Fatal(err) } input := azureInput{ config: config, outlet: out, } var sn int64 = 12 now := time.Now() var off int64 = 1234 var pID int16 ...
explode_data.jsonl/53934
{ "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, 7423, 7900, 1155, 353, 8840, 836, 8, 341, 197, 322, 66611, 26389, 369, 12308, 4357, 7907, 553, 279, 1946, 624, 22229, 1669, 609, 59398, 2662, 273, 465, 16094, 13967, 11, 1848, 1669, 501, 33838, 10643, 10108, 340, 743, 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...
4
func TestFuncConsumerGroupStaticMembership_Fenced(t *testing.T) { checkKafkaVersion(t, "2.3.0") setupFunctionalTest(t) defer teardownFunctionalTest(t) groupID := testFuncConsumerGroupID(t) t.Helper() config1 := NewTestConfig() config1.ClientID = "M1" config1.Version = V2_3_0_0 config1.Consumer.Offsets.Initia...
explode_data.jsonl/54829
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 596 }
[ 2830, 3393, 9626, 29968, 2808, 11690, 80904, 1400, 5767, 1155, 353, 8840, 836, 8, 341, 25157, 42, 21883, 5637, 1155, 11, 330, 17, 13, 18, 13, 15, 1138, 84571, 71271, 2271, 1155, 340, 16867, 49304, 71271, 2271, 1155, 340, 44260, 915, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMuxWith(t *testing.T) { var cmwInit1, cmwHandler1 uint64 var cmwInit2, cmwHandler2 uint64 mw1 := func(next http.Handler) http.Handler { cmwInit1++ return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { cmwHandler1++ r = r.WithContext(context.WithValue(r.Context(), ctxKey{"inline1"}...
explode_data.jsonl/42871
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 686 }
[ 2830, 3393, 44, 2200, 2354, 1155, 353, 8840, 836, 8, 341, 2405, 9961, 86, 3803, 16, 11, 9961, 86, 3050, 16, 2622, 21, 19, 198, 2405, 9961, 86, 3803, 17, 11, 9961, 86, 3050, 17, 2622, 21, 19, 198, 2109, 86, 16, 1669, 2915, 16913,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPreFilterDisabled(t *testing.T) { pod := &v1.Pod{} nodeInfo := framework.NewNodeInfo() node := v1.Node{} nodeInfo.SetNode(&node) p, err := NewFit(&config.NodeResourcesFitArgs{ScoringStrategy: defaultScoringStrategy}, nil, plfeature.Features{EnablePodOverhead: true}) if err != nil { t.Fatal(err) } cyc...
explode_data.jsonl/15791
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 244 }
[ 2830, 3393, 4703, 5632, 25907, 1155, 353, 8840, 836, 8, 341, 3223, 347, 1669, 609, 85, 16, 88823, 16094, 20831, 1731, 1669, 12626, 7121, 1955, 1731, 741, 20831, 1669, 348, 16, 21714, 16094, 20831, 1731, 4202, 1955, 2099, 3509, 340, 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...
3
func TestHandshakeClientAES256GCMSHA384(t *testing.T) { test := &clientTest{ name: "ECDHE-ECDSA-AES256-GCM-SHA384", command: []string{"openssl", "s_server", "-cipher", "ECDHE-ECDSA-AES256-GCM-SHA384"}, cert: testECDSACertificate, key: testECDSAPrivateKey, } runClientTestTLS12(t, test) }
explode_data.jsonl/19950
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 2314, 29661, 2959, 69168, 17, 20, 21, 22863, 4826, 17020, 18, 23, 19, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 609, 2972, 2271, 515, 197, 11609, 25, 262, 330, 36, 6484, 1799, 12, 7498, 72638, 6691, 1570, 17, 20, 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 TestValidateCleanWithCAClusterInfo(t *testing.T) { tempFile, _ := ioutil.TempFile("", "") defer os.Remove(tempFile.Name()) config := clientcmdapi.NewConfig() config.Clusters["clean"] = &clientcmdapi.Cluster{ Server: "anything", CertificateAuthority: tempFile.Name(), } test := configValidat...
explode_data.jsonl/13493
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 17926, 27529, 2354, 92832, 75, 4993, 1731, 1155, 353, 8840, 836, 8, 341, 16280, 1703, 11, 716, 1669, 43144, 65009, 1703, 19814, 14676, 16867, 2643, 13270, 9758, 1703, 2967, 12367, 25873, 1669, 2943, 8710, 2068, 7121, 2648, 741...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteNodeByValue(t *testing.T) { l := NewLinkList() strs := "hello" for _, str := range strs { l.InsertTail(string(str)) } tests := []struct { sep string }{ {sep: "o"}, {sep: "l"}, {sep: "l"}, {sep: "a"}, {sep: "e"}, {sep: "h"}, } for _, test := range tests { out := l.DeleteNodeByVa...
explode_data.jsonl/6117
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 6435, 1955, 1359, 1130, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 1532, 3939, 852, 741, 11355, 82, 1669, 330, 14990, 698, 2023, 8358, 607, 1669, 2088, 57584, 341, 197, 8810, 23142, 44795, 3609, 4199, 1171, 197, 630, 78216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestModule(t *testing.T) { service.Registry["clutch.service.github"] = githubmock.New() log := zaptest.NewLogger(t) scope := tally.NewTestScope("", nil) m, err := New(nil, log, scope) assert.NoError(t, err) r := moduletest.NewRegisterChecker() assert.NoError(t, m.Register(r)) assert.NoError(t, r.HasAPI(...
explode_data.jsonl/5979
{ "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, 3332, 1155, 353, 8840, 836, 8, 341, 52934, 89142, 1183, 564, 14061, 5736, 11021, 1341, 284, 31004, 16712, 7121, 2822, 6725, 1669, 32978, 1944, 7121, 7395, 1155, 340, 66836, 1669, 52295, 7121, 2271, 10803, 19814, 2092, 692, 210...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSessionReceiver_blankSessionIDs(t *testing.T) { client, cleanup, queueName := setupLiveTest(t, &admin.QueueProperties{ RequiresSession: to.Ptr(true), }) defer cleanup() ctx := context.Background() // send a message to a specific session sender, err := client.NewSender(queueName, nil) require.NoError...
explode_data.jsonl/70559
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 518 }
[ 2830, 3393, 5283, 25436, 56103, 5283, 30466, 1155, 353, 8840, 836, 8, 341, 25291, 11, 21290, 11, 7177, 675, 1669, 6505, 20324, 2271, 1155, 11, 609, 2882, 50251, 7903, 515, 197, 197, 46961, 5283, 25, 311, 94989, 3715, 1326, 197, 3518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteLayer_Progress_Retry(t *testing.T) { l, err := random.Layer(100000, types.OCIUncompressedLayer) if err != nil { t.Fatal(err) } c := make(chan v1.Update, 200) // Set up a fake registry. handler := registry.New() numOfInternalServerErrors := 0 registryThatFailsOnFirstUpload := http.HandlerFunc(f...
explode_data.jsonl/76479
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 627 }
[ 2830, 3393, 7985, 9188, 16670, 2483, 2568, 15149, 1155, 353, 8840, 836, 8, 341, 8810, 11, 1848, 1669, 4194, 66074, 7, 16, 15, 15, 15, 15, 15, 11, 4494, 13, 63983, 1806, 45703, 9188, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStatusCommands(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() commandAndTest(t, th, "away") commandAndTest(t, th, "offline") commandAndTest(t, th, "online") }
explode_data.jsonl/26351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 2522, 30479, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 45566, 3036, 2271, 1155, 11, 270, 11, 330, 13757, 1138, 45566, 3036, 2271, 1155, 11, 270, 11, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestContentToRegexp(t *testing.T) { for _, tt := range []struct { name string input *Content want string wantErr bool }{ { name: "simple content", input: &Content{ Pattern: []byte("abcd"), }, want: `abcd`, }, { name: "escaped content", input: &Content{ Pattern: []b...
explode_data.jsonl/59675
{ "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, 2762, 1249, 3477, 4580, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 22427, 256, 353, 2762, 198, 197, 50780, 262, 914, 198, 197, 50780, 7747, 1807, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestNormalizeSparkDependencies(t *testing.T) { trueVar := true falseVar := false tests := []struct { underTest v1.JaegerStorageSpec expected v1.JaegerStorageSpec }{ { underTest: v1.JaegerStorageSpec{Type: "elasticsearch", Options: v1.NewOptions(map[string]interface{}{"es.server-urls": "foo"})}, ex...
explode_data.jsonl/21859
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1046 }
[ 2830, 3393, 87824, 67483, 48303, 1155, 353, 8840, 836, 8, 341, 42808, 3962, 1669, 830, 198, 36012, 3962, 1669, 895, 198, 78216, 1669, 3056, 1235, 341, 197, 197, 7995, 2271, 348, 16, 3503, 64, 1878, 5793, 8327, 198, 197, 42400, 220, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBech32(t *testing.T) { for _, addr := range validChecksum { _, _, err := bech32.Decode(addr) assert.NoError(t, err) } for _, addr := range invalidAddress { _, _, err := bech32.Decode(addr) assert.NotNil(t, err) } }
explode_data.jsonl/81862
{ "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, 3430, 331, 18, 17, 1155, 353, 8840, 836, 8, 1476, 2023, 8358, 10789, 1669, 2088, 2697, 73190, 341, 197, 197, 6878, 8358, 1848, 1669, 387, 331, 18, 17, 56372, 24497, 340, 197, 6948, 35699, 1155, 11, 1848, 340, 197, 630, 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...
3
func TestInitAggregationProcess(t *testing.T) { input := AggregationInput{ MessageChan: nil, WorkerNum: 2, CorrelateFields: fields, } aggregationProcess, err := InitAggregationProcess(input) assert.NotNil(t, err) assert.Nil(t, aggregationProcess) messageChan := make(chan *entities.Message) input....
explode_data.jsonl/8696
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 3803, 9042, 34442, 7423, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 4598, 34442, 2505, 515, 197, 46733, 46019, 25, 257, 2092, 345, 197, 197, 21936, 4651, 25, 981, 220, 17, 345, 197, 6258, 269, 3748, 349, 8941, 25, 5043, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBinLog(t *testing.T) { cfg := new(config.Config) cfg.BinLog.MaxFileNum = 1 cfg.BinLog.MaxFileSize = 1024 cfg.DataDir = "/tmp/ledis_binlog" os.RemoveAll(cfg.DataDir) b, err := NewBinLog(cfg) if err != nil { t.Fatal(err) } if err := b.Log(make([]byte, 1024)); err != nil { t.Fatal(err) } if er...
explode_data.jsonl/23984
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 28794, 2201, 1155, 353, 8840, 836, 8, 341, 50286, 1669, 501, 8754, 10753, 692, 50286, 1785, 258, 2201, 14535, 1703, 4651, 284, 220, 16, 198, 50286, 1785, 258, 2201, 14535, 67649, 284, 220, 16, 15, 17, 19, 198, 50286, 3336,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOutOfOrderFlood(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() rcvBufSz := math.MaxUint16 c.CreateConnected(context.TestInitialSequenceNumber, 30000, rcvBufSz) ept := endpointTester{c.EP} ept.CheckReadError(t, &tcpip.ErrWouldBlock{}) // Send 100 packets before the actual one that i...
explode_data.jsonl/75949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 891 }
[ 2830, 3393, 31731, 4431, 37, 4556, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 30295, 85, 15064, 89837, 1669, 6888, 14535, 21570, 16, 21, 198, 1444, 7251, 21146, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNewEntryWithData(t *testing.T) { str := binding.NewString() err := str.Set("Init") assert.Nil(t, err) entry := widget.NewEntryWithData(str) waitForBinding() assert.Equal(t, "Init", entry.Text) entry.SetText("Typed") v, err := str.Get() assert.Nil(t, err) assert.Equal(t, "Typed", v) }
explode_data.jsonl/12380
{ "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, 3564, 5874, 80356, 1155, 353, 8840, 836, 8, 341, 11355, 1669, 10970, 7121, 703, 741, 9859, 1669, 607, 4202, 445, 3803, 1138, 6948, 59678, 1155, 11, 1848, 692, 48344, 1669, 9086, 7121, 5874, 80356, 4199, 340, 48750, 2461, 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, 1, 1, 1, 1...
1
func TestParseTokenResponse(t *testing.T) { type response struct { body string contentType string statusCode int // defaults to http.StatusOK } tests := []struct { resp response wantResp TokenResponse wantError *Error }{ { resp: response{ body: "{ \"error\": \"invalid_clien...
explode_data.jsonl/574
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2019 }
[ 2830, 3393, 14463, 3323, 2582, 1155, 353, 8840, 836, 8, 341, 13158, 2033, 2036, 341, 197, 35402, 286, 914, 198, 197, 27751, 929, 914, 198, 197, 23847, 2078, 220, 526, 442, 16674, 311, 1758, 52989, 198, 197, 532, 78216, 1669, 3056, 123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestORM_DeferRollbackTx(t *testing.T) { orm, err := NewSqlite3ORM(false, "/tmp/", "test_failed.db", nil) require.Nil(t, err) defer DeleteDB("/tmp/test_failed.db") defer orm.deferRollbackTx(orm.db, fmt.Errorf("failed to commit")) orm.db.AutoMigrate("rollback") panic("orm deferRollbackTx recover will catch th...
explode_data.jsonl/77894
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 4365, 24597, 802, 32355, 1419, 31584, 1155, 353, 8840, 836, 8, 1476, 197, 493, 11, 1848, 1669, 1532, 8269, 632, 18, 4365, 3576, 11, 3521, 5173, 28105, 330, 1944, 35060, 7076, 497, 2092, 340, 17957, 59678, 1155, 11, 1848, 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 TestRenderSuccess(t *testing.T) { tmpl := `Rendered template is: {{ .Test }}` expected := "Rendered template is: Success" tr := &testRenderer{Test: "Success"} output, err := template.Render(tmpl, tr) if err != nil { t.Fatalf("error rendering template not expected, got: %q", err) } if output != expected...
explode_data.jsonl/53783
{ "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, 6750, 7188, 1155, 353, 8840, 836, 8, 341, 3244, 54010, 1669, 1565, 6750, 291, 3811, 374, 25, 5867, 659, 2271, 3869, 3989, 42400, 1669, 330, 6750, 291, 3811, 374, 25, 13047, 1837, 25583, 1669, 609, 1944, 11541, 90, 2271, 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 TestIsAlphaNumeric(t *testing.T) { alphaStr := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" assert.True(t, IsAlphaNumeric(alphaStr)) // Ensure each rune is alpha numeric for _, r := range alphaStr { assert.True(t, IsRuneAlphaNumeric(r)) } }
explode_data.jsonl/51129
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 114 }
[ 2830, 3393, 3872, 19384, 36296, 1155, 353, 8840, 836, 8, 341, 73063, 2580, 1669, 330, 67512, 75902, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 698, 6948, 32443, 1155, 11, 2160, 19384, 36296, 36618, 2580, 4390, 197, 322, 29279, 1817, 63...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLexAccept(t *testing.T) { l := lex("xyz", nil) p0 := l.pos l.acceptRun(0, "abc") if p0 != l.pos { t.Error("Shouldn't find abc") } l.acceptRun(0, "yx") if p0 != l.pos-2 { t.Errorf("Should only advance 2 not %d", l.pos-p0) } l = lex(" \t\t x \n\n ", nil) l.acceptWS() c0 := l.next() if c0 != ...
explode_data.jsonl/81028
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 47778, 16646, 1155, 353, 8840, 836, 8, 341, 8810, 1669, 22429, 445, 28854, 497, 2092, 340, 3223, 15, 1669, 326, 13006, 198, 8810, 28562, 6727, 7, 15, 11, 330, 13683, 1138, 743, 281, 15, 961, 326, 13006, 341, 197, 3244, 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...
4
func TestMultipleSignaturePacketsDSA(t *testing.T) { kring, _ := ReadKeyRing(readerFromHex(dsaTestKeyHex)) testDetachedSignature(t, kring, readerFromHex(missingHashFunctionHex+detachedSignatureDSAHex), signedInput, "binary", testKey3KeyId) }
explode_data.jsonl/2285
{ "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, 32089, 25088, 47, 18382, 72638, 1155, 353, 8840, 836, 8, 341, 197, 9855, 287, 11, 716, 1669, 4457, 1592, 43466, 21987, 3830, 20335, 1500, 9081, 2271, 1592, 20335, 1171, 18185, 17076, 3854, 25088, 1155, 11, 595, 12640, 11, 66...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRebalance_CheckOwnership(t *testing.T) { c := newTestCluster(nil) defer c.teardown() checkOwnership := func(db *Olric) { for partID := uint64(0); partID < db.config.PartitionCount; partID++ { backup := db.backups[partID] part := db.partitions[partID] members := db.discovery.GetMembers() if le...
explode_data.jsonl/5868
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 693, 21571, 28188, 77166, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 501, 2271, 28678, 27907, 340, 16867, 272, 31853, 37496, 2822, 25157, 77166, 1669, 2915, 9791, 353, 42719, 2216, 8, 341, 197, 2023, 949, 915, 1669, 2622, 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...
6
func TestKeyPairService_All(t *testing.T) { driver := NewMockDriver() service := NewKeyPairService(driver) t.Run("when there are matching keyPairs", func(t *testing.T) { keyPair1 := &KeyPair{ID: 1} keyPair2 := &KeyPair{ID: 2} keyPair3 := &KeyPair{ID: 3} stubKeyPairs(driver, keyPair1, keyPair2, keyPair3) ...
explode_data.jsonl/13235
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 495 }
[ 2830, 3393, 1592, 12443, 1860, 53629, 1155, 353, 8840, 836, 8, 341, 33652, 1669, 1532, 11571, 11349, 741, 52934, 1669, 1532, 1592, 12443, 1860, 24032, 692, 3244, 16708, 445, 9309, 1052, 525, 12579, 1376, 54228, 497, 2915, 1155, 353, 8840,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestOverrides(t *testing.T) { var ctx = &context.Context{ Config: config.Project{ NFPMs: []config.NFPM{ { Bindir: "/bin", NFPMOverridables: config.NFPMOverridables{ FileNameTemplate: "foo", }, Overrides: map[string]config.NFPMOverridables{ "deb": { FileNameTemplate:...
explode_data.jsonl/21988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 350 }
[ 2830, 3393, 80010, 1155, 353, 8840, 836, 8, 341, 2405, 5635, 284, 609, 2147, 9328, 515, 197, 66156, 25, 2193, 30944, 515, 298, 18317, 37, 8795, 82, 25, 3056, 1676, 2067, 37, 8795, 515, 571, 197, 515, 464, 197, 9950, 404, 25, 3521, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_getImportAsCodeHandler(t *testing.T) { api, db, _ := newTestAPI(t) u, pass := assets.InsertAdminUser(db) repositoryService := services.NewRepository(func() *gorp.DbMap { return db }, api.Cache) mockService := &sdk.Service{Name: "Test_getImportAsCodeHandler", Type: services.TypeRepositories} repositor...
explode_data.jsonl/45913
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 704 }
[ 2830, 3393, 3062, 11511, 2121, 2078, 3050, 1155, 353, 8840, 836, 8, 341, 54299, 11, 2927, 11, 716, 1669, 501, 2271, 7082, 1155, 340, 10676, 11, 1494, 1669, 11770, 23142, 7210, 1474, 9791, 692, 17200, 3099, 1860, 1669, 3516, 7121, 4624, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBasicAuthSettings(t *testing.T) { requests := []testserver.TestRequestHandler{ { Path: "/api/v4/internal/get_endpoint", Handler: func(w http.ResponseWriter, r *http.Request) { require.Equal(t, http.MethodGet, r.Method) fmt.Fprint(w, r.Header.Get("Authorization")) }, }, { Path: "/api...
explode_data.jsonl/23657
{ "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, 15944, 5087, 6086, 1155, 353, 8840, 836, 8, 341, 23555, 82, 1669, 3056, 1944, 4030, 8787, 1900, 3050, 515, 197, 197, 515, 298, 69640, 25, 3521, 2068, 5457, 19, 30968, 23302, 36699, 756, 298, 197, 3050, 25, 2915, 3622, 1758...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCandles_NewKlinesFactory(t *testing.T) { dbDir, err := os.Getwd() require.Nil(t, err) orm, _ := NewSqlite3ORM(false, dbDir, "backend.db", nil) klines, e := types.NewKlinesFactory("kline_m1") assert.True(t, klines != nil && e == nil) product := types.TestTokenPair err = orm.GetLatestKlinesByProduct(pro...
explode_data.jsonl/77882
{ "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, 34, 20125, 39582, 42, 7969, 4153, 1155, 353, 8840, 836, 8, 1476, 20939, 6184, 11, 1848, 1669, 2643, 2234, 6377, 741, 17957, 59678, 1155, 11, 1848, 340, 197, 493, 11, 716, 1669, 1532, 8269, 632, 18, 4365, 3576, 11, 2927, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsLetter(t *testing.T) { if IsLetter('1') { t.Errorf("IsLetter:\n Expect => %v\n Got => %v\n", false, true) } if IsLetter('[') { t.Errorf("IsLetter:\n Expect => %v\n Got => %v\n", false, true) } if !IsLetter('a') { t.Errorf("IsLetter:\n Expect => %v\n Got => %v\n", true, false) } if !IsLetter('...
explode_data.jsonl/68414
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 3872, 34264, 1155, 353, 8840, 836, 8, 341, 743, 2160, 34264, 492, 16, 863, 341, 197, 3244, 13080, 445, 3872, 34264, 7190, 77, 32085, 589, 1018, 85, 1699, 24528, 589, 1018, 85, 1699, 497, 895, 11, 830, 340, 197, 630, 743,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAltKeyring_Get(t *testing.T) { keyring, err := New(t.Name(), BackendTest, t.TempDir(), nil) require.NoError(t, err) uid := someKey mnemonic, _, err := keyring.NewMnemonic(uid, English, sdk.FullFundraiserPath, hd.Secp256k1) require.NoError(t, err) key, err := keyring.Key(uid) require.NoError(t, err) r...
explode_data.jsonl/73454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 26017, 1592, 12640, 13614, 1155, 353, 8840, 836, 8, 341, 23634, 12640, 11, 1848, 1669, 1532, 1155, 2967, 1507, 55260, 2271, 11, 259, 65009, 6184, 1507, 2092, 340, 17957, 35699, 1155, 11, 1848, 692, 197, 2423, 1669, 1045, 159...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetReadingsByCreationTime(t *testing.T) { reset() myMock := &dbMock.DBClient{} myMock.On("ReadingsByCreationTime", mock.Anything, mock.Anything, mock.Anything).Return([]models.Reading{}, nil) dbClient = myMock _, err := getReadingsByCreationTime(0xBEEF, 0, 0, logger.NewMockClient()) if err != nil { ...
explode_data.jsonl/48183
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 1949, 4418, 819, 1359, 32701, 1462, 1155, 353, 8840, 836, 8, 341, 70343, 741, 13624, 11571, 1669, 609, 1999, 11571, 22537, 2959, 31483, 13624, 11571, 8071, 445, 4418, 819, 1359, 32701, 1462, 497, 7860, 13311, 1596, 11, 7860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChunkStoreLeastRead(t *testing.T) { // Test we don't read too much from the index ctx := context.Background() store := newTestChunkStore(t, "v6") defer store.Stop() // Put 24 chunks 1hr chunks in the store const chunkLen = 60 // in seconds for i := 0; i < 24; i++ { ts := model.TimeFromUnix(int64(i * ...
explode_data.jsonl/43822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 762 }
[ 2830, 3393, 28304, 6093, 81816, 4418, 1155, 353, 8840, 836, 8, 341, 197, 322, 3393, 582, 1513, 944, 1349, 2238, 1753, 504, 279, 1922, 198, 20985, 1669, 2266, 19047, 741, 57279, 1669, 501, 2271, 28304, 6093, 1155, 11, 330, 85, 21, 1138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExecutorDriverKillTaskEvent(t *testing.T) { setTestEnv(t) ch := make(chan bool, 2) // Mock Slave process to respond to registration event. server := testutil.NewMockSlaveHttpServer(t, func(rsp http.ResponseWriter, req *http.Request) { reqPath, err := url.QueryUnescape(req.URL.String()) assert.NoError(t...
explode_data.jsonl/76150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 406 }
[ 2830, 3393, 25255, 11349, 53734, 6262, 1556, 1155, 353, 8840, 836, 8, 341, 8196, 2271, 14359, 1155, 340, 23049, 1669, 1281, 35190, 1807, 11, 220, 17, 340, 197, 322, 14563, 59368, 1882, 311, 5889, 311, 12227, 1538, 624, 41057, 1669, 1273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTimer_StopWithStopFinishedCallback(t *testing.T) { testTimer(2000, func(timer *s_timer.Timer, index int32, finish chan int64) { id := timer.AfterFunc(time.Second, func() { t.Error(index, "execute error") }) time.AfterFunc(time.Second-time.Millisecond*precision, func() { timer.StopWithStopFinishedC...
explode_data.jsonl/7630
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 10105, 80308, 2354, 10674, 24890, 7494, 1155, 353, 8840, 836, 8, 341, 18185, 10105, 7, 17, 15, 15, 15, 11, 2915, 42892, 353, 82, 16255, 41143, 11, 1922, 526, 18, 17, 11, 6248, 26023, 526, 21, 19, 8, 341, 197, 15710, 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 TestCSV_ReadBenchmark(t *testing.T) { newCSV, err := NewCSVDefault("../_csv_tests/Benchmark001.csv") if err != nil { t.Error(err) return } sval := &testCsvNode{} newCSV.GetRow(0, sval) newCSV.CloseAll() }
explode_data.jsonl/10624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 44209, 38381, 84971, 1155, 353, 8840, 836, 8, 341, 8638, 44209, 11, 1848, 1669, 1532, 44209, 3675, 17409, 62, 18104, 32509, 16276, 39381, 15, 15, 16, 11219, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 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 TestSerializedPuller(t *testing.T) { pod := &api.Pod{ ObjectMeta: api.ObjectMeta{ Name: "test_pod", Namespace: "test-ns", UID: "bar", ResourceVersion: "42", SelfLink: "/api/v1/pods/foo", }} cases := []struct { containerImage string policy api....
explode_data.jsonl/18562
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1299 }
[ 2830, 3393, 77521, 36068, 261, 1155, 353, 8840, 836, 8, 341, 3223, 347, 1669, 609, 2068, 88823, 515, 197, 23816, 12175, 25, 6330, 80222, 515, 298, 21297, 25, 310, 330, 1944, 85337, 756, 298, 90823, 25, 981, 330, 1944, 12, 4412, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestStreamHandler(t *testing.T) { record := NewLogRecord(name, DebugLevel, pathname, fun, line, "%s", "debug", fields) record2 := NewLogRecord(name, InfoLevel, pathname, fun, line, "%s", "success", fields) handler := NewStreamHandler() // handler.Level = INFO err := handler.LoadConfig(Config{ "level": InfoL...
explode_data.jsonl/68216
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 3027, 3050, 1155, 353, 8840, 836, 8, 341, 71952, 1669, 1532, 2201, 6471, 3153, 11, 11091, 4449, 11, 39683, 11, 2464, 11, 1555, 11, 5962, 82, 497, 330, 8349, 497, 5043, 340, 71952, 17, 1669, 1532, 2201, 6471, 3153, 11, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreateRestrictedAudience(t *testing.T) { b, storage := getTestBackend(t) role := "tester" resp, err := writeConfig(b, storage, map[string]interface{}{ keyAudiencePattern: "[a-z]+\\.[a-z]+\\.[a-z]+", }) if err != nil { t.Fatalf("err:%s resp:%#v\n", err, resp) } err = writeRole(b, storage, role, ro...
explode_data.jsonl/1314
{ "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, 4021, 86405, 52949, 1835, 1155, 353, 8840, 836, 8, 341, 2233, 11, 5819, 1669, 633, 2271, 29699, 1155, 692, 197, 5778, 1669, 330, 73358, 1837, 34653, 11, 1848, 1669, 3270, 2648, 1883, 11, 5819, 11, 2415, 14032, 31344, 67066, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAssignConfig_03(t *testing.T) { jcf := &beeJson.JSONConfig{} ac, _ := jcf.ParseData([]byte(`{"AppName":"beego"}`)) ac.Set("AppName", "test_app") ac.Set("RunMode", "online") ac.Set("StaticDir", "download:down download2:down2") ac.Set("StaticExtensionsToGzip", ".css,.js,.html,.jpg,.png") ac.Set("StaticCac...
explode_data.jsonl/60517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 382 }
[ 2830, 3393, 28933, 2648, 62, 15, 18, 1155, 353, 8840, 836, 8, 341, 12428, 9792, 1669, 609, 32031, 5014, 18009, 2648, 16094, 81200, 11, 716, 1669, 502, 9792, 8937, 1043, 10556, 3782, 5809, 4913, 87994, 3252, 1371, 13243, 1, 5541, 1171, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCAgetCaCert(t *testing.T) { testDirClean(t) os.Remove(configFile) cfg = CAConfig{} cfg.CSR = api.CSRInfo{CA: &csr.CAConfig{}} cfg.CSR.CA.Expiry = string(0) _, err := newCA(configFile, &cfg, &srv, false) t.Log("getCaCert error: ", err) if err == nil { t.Error("newCA should have failed") } cfg.CSR....
explode_data.jsonl/82703
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 5049, 455, 22571, 36934, 1155, 353, 8840, 836, 8, 341, 18185, 6184, 27529, 1155, 340, 25078, 13270, 8754, 1703, 340, 50286, 284, 9183, 2648, 31483, 50286, 727, 14557, 284, 6330, 727, 14557, 1731, 90, 5049, 25, 609, 77851, 72...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetNode(t *testing.T) { testcases := []struct { t string n node s string err error }{ {t: `["store"]`, n: &MapSelection{Key: "store"}}, {t: `[10]`, n: &ArraySelection{Key: 10}}, {t: `[*]`, n: &WildCardSelection{}}, {t: `[..]`, n: &DescentSelection{}}, {t: `[?(@.lenght())]`, n: &WildCa...
explode_data.jsonl/27828
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 1949, 1955, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 3244, 256, 914, 198, 197, 9038, 256, 2436, 198, 197, 1903, 256, 914, 198, 197, 9859, 1465, 198, 197, 59403, 197, 197, 90, 83, 25, 1565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidation(t *testing.T) { framework.NewTest(t). // Limit to Kube environment as we're testing integration of webhook with K8s. RequiresEnvironment(environment.Kube). Run(func(ctx framework.TestContext) { dataset := loadTestData(t) denied := func(err error) bool { if err == nil { return...
explode_data.jsonl/24044
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 639 }
[ 2830, 3393, 13799, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 7121, 2271, 1155, 4292, 197, 197, 322, 28008, 311, 730, 3760, 4573, 438, 582, 2299, 7497, 17590, 315, 75268, 448, 730, 23, 82, 624, 197, 197, 46961, 12723, 67591, 11352, 376...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMalformedEnvVars(t *testing.T) { assert := assert.New(t) envVars := []string{"foo"} _, err := EnvVars(envVars) assert.Error(err) envVars = []string{"=foo"} _, err = EnvVars(envVars) assert.Error(err) envVars = []string{"=foo="} _, err = EnvVars(envVars) assert.Error(err) }
explode_data.jsonl/44036
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 29600, 10155, 14359, 28305, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 57538, 28305, 1669, 3056, 917, 4913, 7975, 16707, 197, 6878, 1848, 1669, 37039, 28305, 16978, 28305, 340, 6948, 6141, 3964, 692, 5753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateNewReport(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() { t.Skip("API keys required but not set, skipping test") } _, err := b.CreateNewReport("TransactionReport", "json") if err != nil { t.Error(err) } }
explode_data.jsonl/33167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 4021, 3564, 10361, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 341, 197, 3244, 57776, 445, 7082, 6894, 2567, 714, 537, 738, 11, 42659, 1273, 1138, 197, 532, 197, 6878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImageOptionsNewSystemContext(t *testing.T) { // Default state opts := fakeImageOptions(t, "dest-", []string{}, []string{}) res, err := opts.newSystemContext() require.NoError(t, err) assert.Equal(t, &types.SystemContext{ DockerRegistryUserAgent: defaultUserAgent, }, res) // Set everything to non-defa...
explode_data.jsonl/81902
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1414 }
[ 2830, 3393, 1906, 3798, 3564, 2320, 1972, 1155, 353, 8840, 836, 8, 341, 197, 322, 7899, 1584, 198, 64734, 1669, 12418, 1906, 3798, 1155, 11, 330, 4979, 73918, 3056, 917, 22655, 3056, 917, 37790, 10202, 11, 1848, 1669, 12185, 4618, 2320,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNumericOverflows(t *testing.T) { p := newValueProvider(math.MaxFloat64) conversions := map[string]func(p Provider) error{ "int": func(p Provider) error { var x int return p.Get(Root).Populate(&x) }, "uint": func(p Provider) error { var x uint return p.Get(Root).Populate(&x) }, "int8": ...
explode_data.jsonl/35431
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 671 }
[ 2830, 3393, 36296, 1918, 38140, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 24174, 5179, 37270, 14535, 5442, 21, 19, 692, 37203, 28290, 1669, 2415, 14032, 60, 2830, 1295, 22916, 8, 1465, 515, 197, 197, 1, 396, 788, 2915, 1295, 22916, 8,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServingRootNoFiles(t *testing.T) { tests := []testRun{{ Name: "rootlist", URL: "", Status: http.StatusOK, Contains: matchRemoteDirListing, }} opt := newTestOpt() opt.Serve = true opt.Files = "" testServer(t, tests, &opt) }
explode_data.jsonl/12966
{ "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, 50, 19505, 8439, 2753, 10809, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1944, 6727, 90, 515, 197, 21297, 25, 257, 330, 2888, 1607, 756, 197, 79055, 25, 414, 8324, 197, 58321, 25, 256, 1758, 52989, 345, 197, 197, 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 TestPostNotificationGetChannelName(t *testing.T) { sender := &model.User{Id: model.NewId(), Username: "sender", FirstName: "Sender", LastName: "Sender", Nickname: "Sender"} recipient := &model.User{Id: model.NewId(), Username: "recipient", FirstName: "Recipient", LastName: "Recipient", Nickname: "Recipient"} ot...
explode_data.jsonl/28310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1067 }
[ 2830, 3393, 4133, 11196, 1949, 9629, 675, 1155, 353, 8840, 836, 8, 341, 1903, 1659, 1669, 609, 2528, 7344, 90, 764, 25, 1614, 7121, 764, 1507, 29545, 25, 330, 11644, 497, 49467, 25, 330, 20381, 497, 48946, 25, 330, 20381, 497, 14991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPeerCheckRate(t *testing.T) { params := &BpPeerParams{ timeout: time.Second, minRecvRate: int64(100), // 100 bytes/sec exponential moving average } peer := NewBpPeer( p2p.ID(tmrand.Str(12)), 0, 10, func(err error, _ p2p.ID) {}, params) peer.SetLogger(log.TestingLogger()) require.Nil(t, peer...
explode_data.jsonl/35427
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 406 }
[ 2830, 3393, 30888, 3973, 11564, 1155, 353, 8840, 836, 8, 341, 25856, 1669, 609, 33, 79, 30888, 4870, 515, 197, 78395, 25, 257, 882, 32435, 345, 197, 25320, 63483, 11564, 25, 526, 21, 19, 7, 16, 15, 15, 701, 442, 220, 16, 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...
1
func TestX509Signer(t *testing.T) { ctx := MockCtx{} // test that x509Signer.Sign properly converts the PKCS#11 format signature to // the RFC 5480 format signature ctx.SignInitFunc = func(pkcs11.SessionHandle, []*pkcs11.Mechanism, pkcs11.ObjectHandle) error { return nil } tk, err := ecdsa.GenerateKey(elliptic...
explode_data.jsonl/1160
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 755 }
[ 2830, 3393, 55, 20, 15, 24, 7264, 261, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 14563, 23684, 31483, 197, 322, 1273, 429, 856, 20, 15, 24, 7264, 261, 41152, 10277, 32722, 279, 24826, 6412, 2, 16, 16, 3561, 11957, 311, 198, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInvalidUInt64Slice(t *testing.T) { type config struct { BadFloats []uint64 `env:"BADINTS"` } os.Setenv("BADFLOATS", "A,2,3") cfg := &config{} assert.EqualError(t, Parse(cfg), "env: parse error on field \"BadFloats\" of type \"[]uint64\": strconv.ParseUint: parsing \"A\": invalid syntax") }
explode_data.jsonl/78768
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 7928, 18777, 21, 19, 33236, 1155, 353, 8840, 836, 8, 341, 13158, 2193, 2036, 341, 197, 12791, 329, 5442, 82, 3056, 2496, 21, 19, 1565, 3160, 2974, 53572, 3221, 50, 8805, 197, 630, 25078, 4202, 3160, 445, 53572, 50915, 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 TestIpv4Cidr(t *testing.T) { for _, record := range Ipv4CidrCases { if golidators.Ipv4Cidr(record.TargetValue) != record.Expected { t.Error(record.TargetValue) } } }
explode_data.jsonl/4684
{ "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, 80656, 19, 34, 307, 81, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3255, 1669, 2088, 358, 30168, 19, 34, 307, 81, 37302, 341, 197, 743, 342, 5192, 2973, 2447, 30168, 19, 34, 307, 81, 23794, 35016, 1130, 8, 961, 3255, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
3
func TestCloseWhileRecv(t *testing.T) { fakeOrderer := mocks.NewOrderer(5611, t) time.Sleep(time.Second) defer fakeOrderer.Shutdown() cp := &connProducer{ordererEndpoint: "localhost:5611"} clFactory := func(conn *grpc.ClientConn) orderer.AtomicBroadcastClient { return orderer.NewAtomicBroadcastClient(conn)...
explode_data.jsonl/60880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 371 }
[ 2830, 3393, 7925, 7983, 63483, 1155, 353, 8840, 836, 8, 341, 49106, 1166, 726, 4431, 261, 1669, 68909, 7121, 4431, 261, 7, 20, 21, 16, 16, 11, 259, 340, 21957, 31586, 9730, 32435, 340, 16867, 12418, 4431, 261, 10849, 18452, 741, 52018...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestComputeInputOutput(t *testing.T) { tests := []struct { name string in, exp map[string]*pipepb.PTransform }{ { name: "singleton composite", in: map[string]*pipepb.PTransform{ "1": { UniqueName: "a", Subtransforms: []string{"2"}, }, "2": { UniqueName: "b", Inpu...
explode_data.jsonl/63891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2425 }
[ 2830, 3393, 46254, 2505, 5097, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 17430, 11, 1343, 2415, 14032, 8465, 13768, 16650, 1069, 8963, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestBreakersDo(t *testing.T) { assert.Nil(t, Do("any", func() error { return nil })) errDummy := errors.New("any") assert.Equal(t, errDummy, Do("any", func() error { return errDummy })) }
explode_data.jsonl/20897
{ "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, 22524, 388, 5404, 1155, 353, 8840, 836, 8, 341, 6948, 59678, 1155, 11, 3155, 445, 3767, 497, 2915, 368, 1465, 341, 197, 853, 2092, 198, 197, 93596, 9859, 43344, 1669, 5975, 7121, 445, 3767, 1138, 6948, 12808, 1155, 11, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetGodaddyARecordIp(t *testing.T) { type args struct { client *http.Client domainName string apiKey string secretKey string } tests := []struct { name string args args want net.IP hasError bool }{ {"Should parse the ip from the JSON", args{mockHTTPClient(200, "200 OK"...
explode_data.jsonl/72053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 708 }
[ 2830, 3393, 1949, 27522, 22478, 32, 6471, 23378, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 25291, 257, 353, 1254, 11716, 198, 197, 2698, 3121, 675, 914, 198, 197, 54299, 1592, 257, 914, 198, 197, 197, 20474, 1592, 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...
6
func TestRedeploy(t *testing.T) { chainID := util.GetTestChainID() //invalid arguments spec := &pb.ChaincodeSpec{Type: 1, ChaincodeId: &pb.ChaincodeID{Name: "ex02", Path: "github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02", Version: "0"}, Input: &pb.ChaincodeInput{Args: [][]byte{[]byte("init")...
explode_data.jsonl/27802
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 445 }
[ 2830, 3393, 6033, 747, 1989, 1155, 353, 8840, 836, 8, 341, 197, 8819, 915, 1669, 4094, 2234, 2271, 18837, 915, 2822, 197, 322, 11808, 5977, 198, 98100, 1669, 609, 16650, 98269, 1851, 8327, 90, 929, 25, 220, 16, 11, 28525, 1851, 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...
3
func TestTLSConfigErrorAddingCertificate(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() config := mockfab.BadTLSClientMockConfig(mockCtrl) _, err := TLSConfig(mockfab.BadCert, "", config) if err == nil { t.Fatal("Expected failure adding invalid certificate") } if !strings.Contai...
explode_data.jsonl/64480
{ "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, 45439, 2648, 1454, 32308, 33202, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 2822, 25873, 1669, 7860, 36855, 45946, 45439, 2959, 11571, 2648, 30389, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPutTaskPosition(t *testing.T) { s := &etcdTester{} s.setUpTest(t) defer s.tearDownTest(t) ctx := context.Background() info := &model.TaskPosition{ ResolvedTs: 99, CheckPointTs: 77, } feedID := "feedid" captureID := "captureid" updated, err := s.client.PutTaskPositionOnChange(ctx, feedID, ca...
explode_data.jsonl/70530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 1949, 19103, 6262, 3812, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 295, 4385, 58699, 16094, 1903, 77700, 2271, 1155, 340, 16867, 274, 31853, 59342, 2271, 1155, 340, 20985, 1669, 2266, 19047, 741, 27043, 1669, 609, 2528, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOnStepCancelDefaultCancelReason(t *testing.T) { w := testWorkflow() s := &Step{name: "s", w: w} err := w.onStepCancel(s, "Dummy") expectedErrorMessage := "Step \"s\" (Dummy) is canceled." if err.Error() != expectedErrorMessage { t.Errorf("Expected error message `%v` but got `%v` ", expectedErrorMessage,...
explode_data.jsonl/3893
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 1925, 8304, 9269, 3675, 9269, 25139, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 1273, 62768, 741, 1903, 1669, 609, 8304, 47006, 25, 330, 82, 497, 289, 25, 289, 532, 9859, 1669, 289, 3488, 8304, 9269, 1141, 11, 330, 43344, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateMapInvalidWidth(t *testing.T) { m := generateMap(MapConfig{ Height: 100, Width:0, Terrain: TERRAIN_PLAIN, }) if m != nil { t.Error("Should return nil for GameMap") } }
explode_data.jsonl/24691
{ "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, 31115, 2227, 7928, 3327, 1155, 353, 8840, 836, 8, 1476, 2109, 1669, 6923, 2227, 21253, 2648, 515, 197, 197, 3640, 25, 220, 16, 15, 15, 345, 197, 197, 3327, 25, 15, 345, 197, 10261, 615, 466, 25, 350, 2650, 6836, 11082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTagsForBranchOnBranch(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) result, err := testRepo.sut.TagsForBranch(testRepo.branchName) require.Nil(t, err) require.Equal(t, []string{ testRepo.thirdTagName, testRepo.firstTagName, testRepo.secondTagName, }, result) }
explode_data.jsonl/14011
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 15930, 2461, 18197, 1925, 18197, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 9559, 11, 1848, 1669, 1273, 25243, 514, 332, 73522, 2461, 18197, 8623, 25243...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListL7Policies(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleL7PolicyListSuccessfully(t) pages := 0 err := l7policies.List(fake.ServiceClient(), l7policies.ListOpts{}).EachPage(func(page pagination.Page) (bool, error) { pages++ actual, err := l7policies.ExtractL7Policies(page) if er...
explode_data.jsonl/79633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 285 }
[ 2830, 3393, 852, 43, 22, 47, 42038, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 43, 22, 13825, 852, 35959, 1155, 692, 3223, 1134, 1669, 220, 15, 198, 9859, 1669, 326, 22, 79...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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