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 TestJetStream_ClusterReconnect(t *testing.T) { t.Skip("This test need to be revisited") n := 3 replicas := []int{1, 3} t.Run("pull sub", func(t *testing.T) { for _, r := range replicas { t.Run(fmt.Sprintf("n=%d r=%d", n, r), func(t *testing.T) { stream := &nats.StreamConfig{ Name: fmt.Sprint...
explode_data.jsonl/29184
{ "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, 35641, 3027, 85110, 4993, 693, 6459, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 1986, 1273, 1184, 311, 387, 17493, 1608, 1138, 9038, 1669, 220, 18, 198, 73731, 52210, 1669, 3056, 396, 90, 16, 11, 220, 18, 630, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGenerateIfExpired(t *testing.T) { authKey, _ := token.AuthKeyFromFile("_fixtures/authkey-valid.p8") token := &token.Token{ AuthKey: authKey, } token.GenerateIfExpired() assert.Equal(t, time.Now().Unix(), token.IssuedAt) }
explode_data.jsonl/74825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 31115, 2679, 54349, 1155, 353, 8840, 836, 8, 341, 78011, 1592, 11, 716, 1669, 3950, 25233, 1592, 43633, 16975, 45247, 17369, 792, 84810, 556, 23, 1138, 43947, 1669, 609, 5839, 32277, 515, 197, 197, 5087, 1592, 25, 4166, 1592...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MergeTextValueResponses(t *testing.T) { mct := newMemcacheTest(defaultConfig) msg1 := textParseNoFail(t, "VALUE k 1 6 3\r\nvalue1\r\n") msg2 := textParseNoFail(t, "VALUE k 1 6 3\r\nvalue2\r\n") msg3 := textParseNoFail(t, "END\r\n") b, err := tryMergeResponses(mct.mc, msg1, msg2) assert.True(t, b) asse...
explode_data.jsonl/15054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 1245, 10080, 1178, 1130, 70743, 1155, 353, 8840, 836, 8, 341, 2109, 302, 1669, 501, 18816, 9360, 2271, 18978, 2648, 340, 21169, 16, 1669, 1467, 14463, 2753, 19524, 1155, 11, 330, 23832, 595, 220, 16, 220, 21, 220, 18, 1201...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDateTimeExtension_Decode(t *testing.T) { ext := EsonDatetime{} // Timestamp expectedTime := time.Unix(1598887850, 0) decodedTime := ext.Decode(float64(1598887850000)).(time.Time) if expectedTime != decodedTime { t.Error("Timestamp not decoded to the expected time") t.Error(expectedTime, expectedTime.U...
explode_data.jsonl/43230
{ "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, 7689, 12049, 78668, 534, 1155, 353, 8840, 836, 8, 341, 95450, 1669, 468, 930, 94191, 16094, 197, 322, 32758, 198, 42400, 1462, 1669, 882, 10616, 941, 7, 16, 20, 24, 23, 23, 23, 22, 23, 20, 15, 11, 220, 15, 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 TestConfigureSecurityGroupPermissionsDockerAndSsh(t *testing.T) { driver := NewTestDriver() group := securityGroup group.IpPermissions = []*ec2.IpPermission{ { IpProtocol: aws.String("tcp"), FromPort: aws.Int64(testSSHPort), ToPort: aws.Int64(testSSHPort), }, { IpProtocol: aws.String("tc...
explode_data.jsonl/7406
{ "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, 28560, 15352, 2808, 23851, 35, 13659, 3036, 50, 927, 1155, 353, 8840, 836, 8, 341, 33652, 1669, 1532, 2271, 11349, 741, 44260, 1669, 4763, 2808, 198, 44260, 2447, 79, 23851, 284, 29838, 757, 17, 2447, 79, 14966, 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
func TestCreateNotificationChannel(t *testing.T) { tests := []struct { in NotificationChannel want map[string]interface{} }{ { in: &NotificationChannelEmail{ Name: "notification-test", Emails: []string{"my.address@example.com"}, UserIDs: []string{"userId"}, Events: []NotificationEvent{...
explode_data.jsonl/61829
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1336 }
[ 2830, 3393, 4021, 11196, 9629, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 256, 16571, 9629, 198, 197, 50780, 2415, 14032, 31344, 16094, 197, 59403, 197, 197, 515, 298, 17430, 25, 609, 11196, 9629, 4781, 515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBase64UserDataGeneratesErrorIfFileNotFound(t *testing.T) { dir, err := ioutil.TempDir("", "awsuserdata") assert.NoError(t, err, "Unable to create temporary directory.") defer os.RemoveAll(dir) userdata_path := filepath.Join(dir, "does-not-exist.yml") driver := NewTestDriver() driver.UserDataFile = user...
explode_data.jsonl/7428
{ "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, 3978, 21, 19, 39485, 5531, 973, 1454, 2679, 1703, 10372, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 8635, 23496, 1138, 6948, 35699, 1155, 11, 1848, 11, 330, 17075, 311, 1855, 13340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveUserByUsernameAndOrigin(t *testing.T) { Convey("Remove user by username and origin", t, func() { expectedBody := `{"origin":"ldap","username":"user-name"}` setup(MockRoute{"POST", "/v2/organizations/bc7b4caf-f4b8-4d85-b126-0729b9351e56/users/remove", []string{""}, "", 204, "", &expectedBody}, t) d...
explode_data.jsonl/4462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 13021, 1474, 91519, 3036, 13298, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 13021, 1196, 553, 5934, 323, 6238, 497, 259, 11, 2915, 368, 341, 197, 42400, 5444, 1669, 1565, 4913, 8611, 3252, 38665, 2198, 5113, 3252, 872, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDaysShort(t *testing.T) { trans := New() days := trans.WeekdaysShort() for i, day := range days { s := trans.WeekdayShort(time.Weekday(i)) if s != day { t.Errorf("Expected '%s' Got '%s'", day, s) } } tests := []struct { idx int expected string }{ // { // idx: 0, // expec...
explode_data.jsonl/1284
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 20557, 12472, 1155, 353, 8840, 836, 8, 1476, 72453, 1669, 1532, 741, 2698, 942, 1669, 1356, 22404, 1225, 13778, 12472, 2822, 2023, 600, 11, 1899, 1669, 2088, 2849, 341, 197, 1903, 1669, 1356, 22404, 1225, 1292, 12472, 9730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateFileShare(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() cloud := &Cloud{} mockFileClient := mockfileclient.NewMockInterface(ctrl) mockFileClient.EXPECT().CreateFileShare(gomock.Any(), gomock.Any(), gomock.Any(), gomock.Any()).Return(nil).AnyTimes() cloud.FileClient = mockFile...
explode_data.jsonl/10210
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1411 }
[ 2830, 3393, 4021, 1703, 12115, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 12361, 1669, 609, 16055, 16094, 77333, 1703, 2959, 1669, 7860, 1192, 2972, 7121, 11571, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 Test_TX_Replace(t *testing.T) { table := createInitTable() defer dropTable(table) gtest.C(t, func(t *gtest.T) { tx, err := db.Begin() if err != nil { gtest.Error(err) } if _, err := tx.Replace(table, g.Map{ "id": 1, "passport": "USER_1", "password": "PASS_1", "nickname": ...
explode_data.jsonl/41310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 314 }
[ 2830, 3393, 18819, 62, 23107, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 1855, 3803, 2556, 741, 16867, 5943, 2556, 15761, 692, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 46237, 11, 1848, 1669, 2927, 28467, 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...
5
func TestAdmin_ExportFile(t *testing.T) { srv, ts := prep(t) assert.NotNil(t, srv) defer cleanup(ts) c1 := store.Comment{Text: "test test #1", Locator: store.Locator{SiteID: "radio-t", URL: "https://radio-t.com/blah1"}} c2 := store.Comment{Text: "test test #2", ParentID: "p1", Locator: store.Locator{SiteID: "...
explode_data.jsonl/70325
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 453 }
[ 2830, 3393, 7210, 62, 16894, 1703, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 11, 10591, 1669, 21327, 1155, 340, 6948, 93882, 1155, 11, 43578, 340, 16867, 21290, 35864, 692, 1444, 16, 1669, 3553, 56730, 90, 1178, 25, 330, 1944, 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 TestProcessArguments(t *testing.T) { values := map[string]interface{}{ "name": "Azmy", "age": 36, } args := map[string]interface{}{ "intvalue": 100, "strvalue": "hello {name}", "deeplist": []string{"my", "age", "is", "{age}"}, "deepmap": map[string]interface{}{ "subkey": "my name is {name} and...
explode_data.jsonl/66026
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 303 }
[ 2830, 3393, 7423, 19139, 1155, 353, 8840, 836, 8, 1476, 45939, 1669, 2415, 14032, 31344, 67066, 197, 197, 31486, 788, 330, 37199, 2408, 756, 197, 197, 1, 424, 788, 220, 220, 18, 21, 345, 197, 630, 31215, 1669, 2415, 14032, 31344, 6706...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImagesContext(t *testing.T) { imageID := stringid.GenerateRandomID() unix := time.Now().Unix() var ctx imageContext cases := []struct { imageCtx imageContext expValue string expHeader string call func() string }{ {imageContext{ i: types.Image{ID: imageID}, trunc: true, }, str...
explode_data.jsonl/1
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 783 }
[ 2830, 3393, 14228, 1972, 1155, 353, 8840, 836, 8, 341, 31426, 915, 1669, 914, 307, 57582, 13999, 915, 741, 20479, 941, 1669, 882, 13244, 1005, 55832, 2822, 2405, 5635, 2168, 1972, 198, 1444, 2264, 1669, 3056, 1235, 341, 197, 31426, 2368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBoot_GetEntry(t *testing.T) { config := ` --- gin: - name: ut-gin port: 8080 enabled: true ` filePath := createFileAtTestTempDir(t, "ut-boot-gin.yaml", config) boot := NewBoot(WithBootConfigPath(filePath)) boot.Bootstrap(context.TODO()) assert.Nil(t, boot.GetEntry(rkentry.GlobalAppCtx.GetAppI...
explode_data.jsonl/59559
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 17919, 13614, 5874, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 22074, 10952, 8163, 510, 220, 481, 829, 25, 8621, 2371, 258, 198, 262, 2635, 25, 220, 23, 15, 23, 15, 198, 262, 8970, 25, 830, 198, 19324, 17661, 1820, 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 TestGetRemoteImageJSON(t *testing.T) { r := spawnTestRegistrySession(t) json, size, err := r.GetRemoteImageJSON(imageID, makeURL("/v1/")) if err != nil { t.Fatal(err) } assertEqual(t, size, int64(154), "Expected size 154") if len(json) <= 0 { t.Fatal("Expected non-empty json") } _, _, err = r.GetRemot...
explode_data.jsonl/13099
{ "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, 1949, 24703, 1906, 5370, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 18042, 2271, 15603, 5283, 1155, 340, 30847, 11, 1379, 11, 1848, 1669, 435, 2234, 24703, 1906, 5370, 10075, 915, 11, 1281, 3144, 4283, 85, 16, 14, 5455, 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...
4
func TestCreateNode(t *testing.T) { testCases := []struct { description string pods []v1.Pod node *v1.Node expectDelete bool }{ { description: "Creating Node matching already assigned Pod", pods: []v1.Pod{ *testutil.NewPod("pod1", "node1"), }, node: testutil.NewNode(...
explode_data.jsonl/47588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 726 }
[ 2830, 3393, 4021, 1955, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 42407, 220, 914, 198, 197, 3223, 29697, 260, 3056, 85, 16, 88823, 198, 197, 20831, 260, 353, 85, 16, 21714, 198, 197, 24952, 6435, 1807, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_objectProperties(t *testing.T) { t.Parallel() type args struct { prefix []string ls []VSchema } type want struct { want map[string]*Schema err error } type test struct { name string args args want want checkFunc func(want, map[string]*Schema, error) error before...
explode_data.jsonl/42610
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 895 }
[ 2830, 3393, 5314, 7903, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 13158, 2827, 2036, 341, 197, 3223, 5060, 3056, 917, 198, 197, 197, 4730, 257, 3056, 53, 8632, 198, 197, 532, 13158, 1366, 2036, 341, 197, 50780, 2415, 14032...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoadFieldList(t *testing.T) { var got FieldList want := searchFieldsWithLang if err := loadDoc(&got, &pb.Document{Field: protoFields}, nil); err != nil { t.Fatalf("loadDoc: %v", err) } if !reflect.DeepEqual(got, want) { t.Errorf("\ngot %v\nwant %v", got, want) } }
explode_data.jsonl/27947
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 119 }
[ 2830, 3393, 5879, 1877, 852, 1155, 353, 8840, 836, 8, 341, 2405, 2684, 8601, 852, 198, 50780, 1669, 2711, 8941, 2354, 26223, 198, 743, 1848, 1669, 2795, 9550, 2099, 22390, 11, 609, 16650, 26256, 90, 1877, 25, 18433, 8941, 2137, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestEquals(t *testing.T) { testCases := map[string]struct { a api.ResourceList b api.ResourceList expected bool }{ "isEqual": { a: api.ResourceList{}, b: api.ResourceList{}, expected: true, }, "isEqualWithKeys": { a: api.ResourceList{ api.ResourceCPU: re...
explode_data.jsonl/59924
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 658 }
[ 2830, 3393, 4315, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 11323, 286, 6330, 20766, 852, 198, 197, 2233, 286, 6330, 20766, 852, 198, 197, 42400, 1807, 198, 197, 59403, 197, 197, 72155, 2993, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestIssue_nested_closures(t *testing.T) { code := `all(1..3, { all(1..3, { # > 0 }) and # > 0 })` program, err := expr.Compile(code) require.NoError(t, err) output, err := expr.Run(program, nil) require.NoError(t, err) require.True(t, output.(bool)) }
explode_data.jsonl/36918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 42006, 66279, 666, 41206, 1155, 353, 8840, 836, 8, 341, 43343, 1669, 1565, 541, 7, 16, 496, 18, 11, 314, 678, 7, 16, 496, 18, 11, 314, 671, 861, 220, 15, 6413, 323, 671, 861, 220, 15, 6413, 19324, 197, 14906, 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, 1, 1, 1...
1
func TestDaoMFilter(t *testing.T) { var ( c = context.Background() msgs = []string{"22娘", "unit test", "ut"} ) convey.Convey("MFilter", t, func(ctx convey.C) { checked, err := d.MFilter(c, msgs) ctx.Convey("Then err should be nil.checked should not be nil.", func(ctx convey.C) { ctx.So(err, convey.Shou...
explode_data.jsonl/48143
{ "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, 12197, 44, 5632, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1444, 262, 284, 2266, 19047, 741, 197, 21169, 82, 284, 3056, 917, 4913, 17, 17, 100103, 497, 330, 3843, 1273, 497, 330, 332, 16707, 197, 340, 37203, 5617, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMoveTablesAllAndExclude(t *testing.T) { ms := &vtctldatapb.MaterializeSettings{ Workflow: "workflow", SourceKeyspace: "sourceks", TargetKeyspace: "targetks", TableSettings: []*vtctldatapb.TableMaterializeSettings{{ TargetTable: "t1", SourceExpression: "select * from t1", }, { Tar...
explode_data.jsonl/61851
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 805 }
[ 2830, 3393, 9860, 21670, 2403, 3036, 95239, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 609, 9708, 302, 507, 266, 391, 65, 44253, 551, 6086, 515, 197, 197, 62768, 25, 981, 330, 56249, 756, 197, 197, 3608, 8850, 1306, 25, 330, 2427, 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 TestAutoQuery_SetQueryConfig(t *testing.T) { eslog.InitSilent() query := new(autoQuery) query.name = "test" c := config.ManualQueryList{} config.G_Config.Config = &config.Config{ QueryList: map[string]config.Query{ "test": config.Query{ Query: config.QueryInfo{ Index: "test*", Limit: 50, ...
explode_data.jsonl/39395
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 546 }
[ 2830, 3393, 13253, 2859, 14812, 2859, 2648, 1155, 353, 8840, 836, 8, 341, 78966, 839, 26849, 27571, 306, 741, 27274, 1669, 501, 21680, 2859, 340, 27274, 2644, 284, 330, 1944, 698, 1444, 1669, 2193, 29902, 928, 2859, 852, 16094, 25873, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegrationTxnDelete(t *testing.T) { c := basictestutils.MakeTestConfig(t) stopfn := testutils.CreateTestApp(c, t) defer stopfn() k := testutils.RandKey(16) v := testutils.RandStringRunes(16) client := testutils.MakeTestEtcdClient(c, t) ctx := context.TODO() res, err := client.Put(ctx, k, v) if err...
explode_data.jsonl/19175
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 52464, 31584, 77, 6435, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 3046, 849, 477, 6031, 50133, 2271, 2648, 1155, 340, 62644, 8822, 1669, 1273, 6031, 7251, 2271, 2164, 1337, 11, 259, 340, 16867, 2936, 8822, 2822, 16463, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestGetProofsMode(t *testing.T) { ctx := context.Background() st, vms := core.CreateStorages(ctx, t) gasTracker := vm.NewGasTracker() gasTracker.MsgGasLimit = 99999 t.Run("in TestMode", func(t *testing.T) { vmCtx := vm.NewVMContext(vm.NewContextParams{ From: &actor.Actor{}, To: &acto...
explode_data.jsonl/55771
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 576 }
[ 2830, 3393, 1949, 31076, 82, 3636, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 18388, 11, 348, 1011, 1669, 6200, 7251, 623, 269, 1134, 7502, 11, 259, 692, 3174, 300, 31133, 1669, 10995, 7121, 58728, 31133, 741, 3174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFaultSlasher_OnNewHeaviestTipSet(t *testing.T) { tf.UnitTest(t) ctx := context.Background() signer, _ := types.NewMockSignersAndKeyInfo(3) data, err := encoding.Encode(&map[string]uint64{}) require.NoError(t, err) snapshot := makeSnapshot([][]byte{data}) getf := address.NewForTestGetter() ownMiner :...
explode_data.jsonl/46782
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 58780, 7442, 33767, 35482, 3564, 1519, 98362, 16011, 1649, 1155, 353, 8840, 836, 8, 341, 3244, 69, 25159, 2271, 1155, 692, 20985, 1669, 2266, 19047, 741, 69054, 261, 11, 716, 1669, 4494, 7121, 11571, 7264, 388, 3036, 1592, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetGetTag(t *testing.T) { opentracer, tc := NewTracer("x", NewConstSampler(true), NewNullReporter()) tracer := opentracer.(*Tracer) defer tc.Close() value, ok := tracer.getTag(TracerIPTagKey) assert.True(t, ok) _, ok = value.(string) assert.True(t, ok) assert.True(t, tracer.hostIPv4 != 0) ipStr := "1...
explode_data.jsonl/44657
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 403 }
[ 2830, 3393, 1649, 1949, 5668, 1155, 353, 8840, 836, 8, 341, 39703, 23745, 9584, 11, 17130, 1669, 1532, 1282, 9584, 445, 87, 497, 1532, 19167, 66048, 3715, 701, 1532, 3280, 52766, 2398, 25583, 9584, 1669, 1179, 23745, 9584, 41399, 1282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubQueryWithQueryOption(t *testing.T) { db := DB.New() subQuery := db.Model(User{}).Select("users.id"). Set("gorm:query_option", "WHERE users.name='user2'"). SubQuery() matched, _ := regexp.MatchString( `^&{.+\s+WHERE users\.name='user2'.*\s\[]}$`, fmt.Sprint(subQuery)) if !matched { t.Error("Une...
explode_data.jsonl/28071
{ "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, 3136, 2859, 2354, 2859, 5341, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 5952, 7121, 2822, 28624, 2859, 1669, 2927, 5659, 13087, 6257, 568, 3379, 445, 4218, 1764, 38609, 197, 22212, 445, 73281, 25, 1631, 9672, 497, 330, 2651...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSupervisedPool_Idle(t *testing.T) { var cfgExecTTL = &Config{ NumWorkers: uint64(1), AllocateTimeout: time.Second, DestroyTimeout: time.Second, Supervisor: &SupervisorConfig{ WatchTick: 1 * time.Second, TTL: 100 * time.Second, IdleTTL: 1 * time.Second, ExecT...
explode_data.jsonl/78515
{ "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, 10048, 77990, 10551, 21576, 273, 1155, 353, 8840, 836, 8, 341, 2405, 13286, 10216, 51, 13470, 284, 609, 2648, 515, 197, 197, 4651, 74486, 25, 414, 2622, 21, 19, 7, 16, 1326, 197, 197, 75380, 7636, 25, 882, 32435, 345, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRegister2(t *testing.T) { testRegisterWithFrontEnd(func() lib.Reactor { return NewFrontEnd2() }, 1000.0, t, 5, []lib.Fault{ lib.Fault{ Kind: "omission", Args: lib.Omission{From: "frontend", To: "register1", At: 7}}, lib.Fault{ Kind: "omission", Args: lib.Omission{From: "frontend", To...
explode_data.jsonl/79904
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 8690, 17, 1155, 353, 8840, 836, 8, 341, 18185, 8690, 2354, 23395, 3727, 18552, 368, 3051, 2817, 5621, 314, 470, 1532, 23395, 3727, 17, 368, 2470, 220, 16, 15, 15, 15, 13, 15, 11, 259, 345, 197, 197, 20, 345, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLock(t *testing.T) { s := snap.NewSnap("testdata", "testdata", nil) if err := os.MkdirAll("testdata/var/lock", 0755); err != nil { t.Fatalf("Failed to create directory: %s", err) } defer os.RemoveAll("testdata/var") for _, tc := range []struct { name string file string hasLock func() bool }...
explode_data.jsonl/9638
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 476 }
[ 2830, 3393, 11989, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 10658, 7121, 61871, 445, 92425, 497, 330, 92425, 497, 2092, 340, 743, 1848, 1669, 2643, 1321, 12438, 2403, 445, 92425, 92146, 14, 1023, 497, 220, 15, 22, 20, 20, 1215, 1848,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_parseTypeMetaSkeletonInvalidJson(t *testing.T) { type args struct { data []byte } tests := []struct { name string args args wantErr bool }{ { name: "test invalid json in input", args: args{ data: []byte{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}, }, wantErr: true, }, } for _, tt := ...
explode_data.jsonl/78921
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 21039, 929, 12175, 77568, 7928, 5014, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 8924, 3056, 3782, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 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...
2
func TestClusterStore(t *testing.T) { startTime := 1501569018 metav1StartTime := metav1.Unix(int64(startTime), 0) cases := []generateMetricsTestCase{ { Obj: &clusterv1.Cluster{ ObjectMeta: metav1.ObjectMeta{ Name: "cluster1", Namespace: "ns1", CreationTimestamp: metav1St...
explode_data.jsonl/3487
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1888 }
[ 2830, 3393, 28678, 6093, 1155, 353, 8840, 836, 8, 341, 21375, 1462, 1669, 220, 16, 20, 15, 16, 20, 21, 24, 15, 16, 23, 198, 2109, 295, 402, 16, 40203, 1669, 77520, 16, 10616, 941, 1548, 21, 19, 88090, 701, 220, 15, 692, 1444, 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...
3
func TestModifyTeam(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() team := th.CreateTeam() th.CheckCommand(t, "team", "modify", team.Name, "--private") updatedTeam, _ := th.App.GetTeam(team.Id) require.False(t, !updatedTeam.AllowOpenInvite && team.Type == model.TEAM_INVITE, "Failed modifying t...
explode_data.jsonl/59050
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 189 }
[ 2830, 3393, 44427, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 197, 9196, 1669, 270, 7251, 14597, 2822, 70479, 10600, 4062, 1155, 11, 330, 9196, 497, 330, 34053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTLSServer(t *testing.T) { defer afterTest(t) ts := httptest.NewTLSServer(HandlerFunc(func(w ResponseWriter, r *Request) { if r.TLS != nil { w.Header().Set("X-TLS-Set", "true") if r.TLS.HandshakeComplete { w.Header().Set("X-TLS-HandshakeComplete", "true") } } })) ts.Config.ErrorLog = log.Ne...
explode_data.jsonl/22410
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 606 }
[ 2830, 3393, 13470, 1220, 2836, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 7, 3050, 9626, 18552, 3622, 5949, 6492, 11, 435, 353, 1900, 8, 341, 197, 743, 435, 836, 726...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransactionService_GetTransactions(t *testing.T) { mockServer.AddRouter(&mock.Router{ Path: "/transaction", RespBody: "[" + transactionJson + "]", }) cl := mockServer.getTestNetClientUnsafe() transactions, err := cl.Transaction.GetTransactions(context.Background(), []string{ transactionId, }) ...
explode_data.jsonl/69184
{ "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, 8070, 1860, 13614, 48761, 1155, 353, 8840, 836, 8, 341, 77333, 5475, 1904, 9523, 2099, 16712, 31413, 515, 197, 69640, 25, 257, 3521, 13528, 756, 197, 197, 36555, 5444, 25, 50681, 488, 7745, 5014, 488, 21299, 756, 197, 8824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPriority_Validate(t *testing.T) { t.Parallel() tests := []struct { name string input internal.Priority withErr bool }{ { "OK: PriorityNone", internal.PriorityNone, false, }, { "OK: PriorityLow", internal.PriorityLow, false, }, { "OK: PriorityMedium", internal.Pr...
explode_data.jsonl/74767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 429 }
[ 2830, 3393, 20555, 62, 17926, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 22427, 256, 5306, 83590, 198, 197, 46948, 7747, 1807, 198, 197, 59403, 197, 197, 515, 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...
4
func TestCounterVecEndToEndWithCollision(t *testing.T) { vec := NewCounterVec( CounterOpts{ Name: "test", Help: "helpless", }, []string{"labelname"}, ) vec.WithLabelValues("77kepQFQ8Kl").Inc() vec.WithLabelValues("!0IC=VloaY").Add(2) m := &dto.Metric{} if err := vec.WithLabelValues("77kepQFQ8Kl").Wri...
explode_data.jsonl/14624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 420 }
[ 2830, 3393, 14099, 10050, 3727, 66573, 2354, 32280, 1155, 353, 8840, 836, 8, 341, 40213, 1669, 1532, 14099, 10050, 1006, 197, 197, 14099, 43451, 515, 298, 21297, 25, 330, 1944, 756, 298, 197, 12689, 25, 330, 8653, 1717, 756, 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...
7
func TestSupervisor_New(t *testing.T) { // given var bs bytes.Buffer cfg := Config{ RestartInterval: 100 * time.Millisecond, Clock: systemclock.New(), Logger: testr.NewTestLogger(t), } supervisor := New(&cfg) // when the supervisor is started ctx, cancel := context.WithTimeout(context.Ba...
explode_data.jsonl/9755
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 187 }
[ 2830, 3393, 10048, 31396, 39582, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 2405, 17065, 5820, 22622, 198, 50286, 1669, 5532, 515, 197, 11143, 477, 471, 10256, 25, 220, 16, 15, 15, 353, 882, 71482, 345, 197, 6258, 1023, 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 TestColumnTypeChangeGenUniqueChangingName(t *testing.T) { store, dom, clean := testkit.CreateMockStoreAndDomainWithSchemaLease(t, columnModifyLease) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") hook := &ddl.TestDDLCallback{} var checkErr error assertChangingColName := "_col$_c2...
explode_data.jsonl/51322
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2155 }
[ 2830, 3393, 62438, 4072, 9967, 22811, 59046, 675, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4719, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 3036, 13636, 2354, 8632, 2304, 519, 1155, 11, 3250, 44427, 2304, 519, 340, 16867, 4240, 2822...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue10675(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec(`drop table if exists t;`) tk.MustExec(`create table t(a int);`) tk.MustExec(`insert into t values(1);`) tk.MustQuery(`select * from t where a < -1...
explode_data.jsonl/65495
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 646 }
[ 2830, 3393, 42006, 16, 15, 21, 22, 20, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSendVerificationEmail(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() _, err := th.Client.SendVerificationEmail(th.BasicUser.Email) require.NoError(t, err) resp, err := th.Client.SendVerificationEmail("") require.Error(t, err) CheckBadRequestStatus(t, resp) // Even non-existent emails...
explode_data.jsonl/47537
{ "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, 11505, 62339, 4781, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 197, 6878, 1848, 1669, 270, 11716, 20176, 62339, 4781, 24365, 48868, 1474, 24066, 340, 17957,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPodHostNetwork(t *testing.T) { c, _ := newTestClient(t) assert.Equal(t, 0, len(c.Pods)) pod := &api_v1.Pod{} pod.Name = "podA" pod.Status.PodIP = "1.1.1.1" pod.Spec.HostNetwork = true c.handlePodAdd(pod) assert.Equal(t, len(c.Pods), 1) got := c.Pods["1.1.1.1"] assert.Equal(t, got.Address, "1.1.1.1")...
explode_data.jsonl/56843
{ "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, 23527, 9296, 12320, 1155, 353, 8840, 836, 8, 341, 1444, 11, 716, 1669, 501, 2271, 2959, 1155, 340, 6948, 12808, 1155, 11, 220, 15, 11, 2422, 1337, 1069, 29697, 4390, 3223, 347, 1669, 609, 2068, 2273, 16, 88823, 16094, 3223...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInterpreterLen(t *testing.T) { s, err := parseFile("src/parse/asp/test_data/interpreter/len.build") assert.NoError(t, err) assert.EqualValues(t, "sync", s.Lookup("y")) }
explode_data.jsonl/81082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 58426, 11271, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 4715, 1703, 445, 3548, 14, 6400, 14, 13367, 12697, 1769, 14, 90554, 14, 2892, 13239, 1138, 6948, 35699, 1155, 11, 1848, 340, 6948, 12808, 6227, 1155, 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
func TestEmptyEndpoints(t *testing.T) { t.Parallel() noopFactory := func(endpoint string) (*grpc.ClientConn, error) { return nil, nil } assert.Nil(t, NewConnectionProducer(noopFactory, []string{})) }
explode_data.jsonl/63951
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 3522, 80786, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 40162, 4153, 1669, 2915, 54869, 914, 8, 4609, 56585, 11716, 9701, 11, 1465, 8, 341, 197, 853, 2092, 11, 2092, 198, 197, 532, 6948, 59678, 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
func TestServer_FileUpdate(t *testing.T) { token, trx, down, err := models.NewArbitrarilyTokenForTest(nil, t) assert.Nil(t, err) testDbConn = trx tempDir := models.NewTempDirForTest() testRootPath = &tempDir defer func() { down(t) if util.IsDir(tempDir) { os.RemoveAll(tempDir) } }() randomBytes := mode...
explode_data.jsonl/30083
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 572 }
[ 2830, 3393, 5475, 34061, 4289, 1155, 353, 8840, 836, 8, 341, 43947, 11, 73021, 11, 1495, 11, 1848, 1669, 4119, 7121, 6953, 4489, 81, 6613, 3323, 2461, 2271, 27907, 11, 259, 340, 6948, 59678, 1155, 11, 1848, 340, 18185, 7994, 9701, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDeleteTemplate(t *testing.T) { t.Parallel() ctx := context.Background() _, tinkDB, cl := NewPostgresDatabaseClient(t, ctx, NewPostgresDatabaseRequest{ ApplyMigration: true, }) defer func() { err := cl() if err != nil { t.Error(err) } }() w := workflow.MustParseFromFile("./testdata/template_h...
explode_data.jsonl/65343
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 6435, 7275, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 20985, 1669, 2266, 19047, 741, 197, 6878, 90584, 3506, 11, 1185, 1669, 1532, 4133, 17818, 5988, 2959, 1155, 11, 5635, 11, 1532, 4133, 17818, 5988, 1900, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTxnEventMarshalWithAttributes(t *testing.T) { aci := sampleAttributeConfigInput aci.TransactionEvents.Exclude = append(aci.TransactionEvents.Exclude, "zap") aci.TransactionEvents.Exclude = append(aci.TransactionEvents.Exclude, AttributeHostDisplayName.name()) cfg := CreateAttributeConfig(aci, true) attr :...
explode_data.jsonl/37462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 31584, 77, 1556, 55438, 2354, 10516, 1155, 353, 8840, 836, 8, 341, 197, 24464, 1669, 6077, 3907, 2648, 2505, 198, 197, 24464, 29284, 7900, 5121, 857, 284, 8737, 7, 24464, 29284, 7900, 5121, 857, 11, 330, 92371, 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...
1
func TestSubquery(t *testing.T) { var input, output []string planSuiteUnexportedData.GetTestCases(t, &input, &output) s := createPlannerSuite() ctx := context.Background() for ith, ca := range input { comment := fmt.Sprintf("for %s", ca) stmt, err := s.p.ParseOneStmt(ca, "", "") require.NoError(t, err, comm...
explode_data.jsonl/50211
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 361 }
[ 2830, 3393, 3136, 1631, 1155, 353, 8840, 836, 8, 341, 2405, 1946, 11, 2550, 3056, 917, 198, 197, 10393, 28000, 1806, 1533, 291, 1043, 2234, 2271, 37302, 1155, 11, 609, 1355, 11, 609, 3006, 692, 1903, 1669, 1855, 2120, 4887, 28000, 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 TestDHCPv6EncodeRequest(t *testing.T) { dhcpv6 := &DHCPv6{MsgType: DHCPv6MsgTypeRequest, HopCount: 0, TransactionID: []byte{87, 25, 88}} client := &DHCPv6DUID{Type: DHCPv6DUIDTypeLLT, HardwareType: []byte{0, 1}, Time: []byte{28, 56, 38, 45}, LinkLayerAddress: []byte{8, 0, 39, 254, 143, 149}} dhcpv6.Options = a...
explode_data.jsonl/75027
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 51326, 7123, 85, 21, 32535, 1900, 1155, 353, 8840, 836, 8, 341, 2698, 62169, 85, 21, 1669, 609, 51326, 7123, 85, 21, 90, 6611, 929, 25, 57587, 85, 21, 6611, 929, 1900, 11, 25553, 2507, 25, 220, 15, 11, 17869, 915, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSplitList(t *testing.T) { tests := splitlisttests if runtime.GOOS == "windows" { tests = append(tests, winsplitlisttests...) } for _, test := range tests { if l := filepath.SplitList(test.list); !reflect.DeepEqual(l, test.result) { t.Errorf("SplitList(%#q) = %#q, want %#q", test.list, l, test.result...
explode_data.jsonl/1655
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 20193, 852, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 6718, 1607, 23841, 198, 743, 15592, 97574, 3126, 621, 330, 27077, 1, 341, 197, 78216, 284, 8737, 8623, 82, 11, 14816, 2292, 1607, 23841, 31218, 197, 532, 2023, 8358, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResetDefaultIsolationSegmentForOrg(t *testing.T) { Convey("Reset Default IsolationSegment", t, func() { resetIsolationSegmentPayload := `{"data":null}` mocks := []MockRoute{ {"PATCH", "/v3/organizations/3b6f763f-aae1-4177-9b93-f2de6f2a48f2/relationships/default_isolation_segment", []string{""}, "", 200...
explode_data.jsonl/4468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 14828, 3675, 3872, 34962, 21086, 2461, 42437, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 14828, 7899, 2160, 34962, 21086, 497, 259, 11, 2915, 368, 341, 197, 70343, 3872, 34962, 21086, 29683, 1669, 1565, 4913, 691, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMachinesFromMHC(t *testing.T) { machines := []mapiv1beta1.Machine{ *maotesting.NewMachine("test1", "node1"), *maotesting.NewMachine("test2", "node2"), } testCases := []struct { testCase string mhc *mapiv1beta1.MachineHealthCheck machines []mapiv1beta1.Machine expe...
explode_data.jsonl/31001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1062 }
[ 2830, 3393, 1949, 44, 70142, 3830, 44, 22455, 1155, 353, 8840, 836, 8, 341, 2109, 70142, 1669, 3056, 2186, 344, 16, 19127, 16, 1321, 3814, 515, 197, 197, 9, 1728, 354, 59855, 7121, 21605, 445, 1944, 16, 497, 330, 3509, 16, 4461, 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 TestPrinter_PrintError(t *testing.T) { w := &mockWriter{} underTest := &Printer{MaxLineLength: 120} underTest.Interruptions(nil, fmt.Errorf("borked")) underTest.Print(w) want := `🚇⚠️ --- borked` got := w.String() if got != want { t.Fatalf("Wrong format printed. Got: \n%s\nWant: \n%s", got, want) } }
explode_data.jsonl/43081
{ "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, 45660, 45788, 1454, 1155, 353, 8840, 836, 8, 341, 6692, 1669, 609, 16712, 6492, 31483, 197, 7995, 2271, 1669, 609, 45660, 90, 5974, 2460, 4373, 25, 220, 16, 17, 15, 532, 197, 7995, 2271, 7371, 615, 84, 1300, 27907, 11, 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...
2
func TestUploadByteSlicePool_Failures(t *testing.T) { const ( putObject = "PutObject" createMultipartUpload = "CreateMultipartUpload" uploadPart = "UploadPart" completeMultipartUpload = "CompleteMultipartUpload" ) cases := map[string]struct { PartSize int64 FileSize int6...
explode_data.jsonl/73209
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1152 }
[ 2830, 3393, 13844, 7153, 33236, 10551, 1400, 604, 1413, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 45062, 1190, 2290, 284, 330, 19103, 1190, 698, 197, 39263, 44, 18204, 13844, 256, 284, 330, 4021, 44, 18204, 13844, 698, 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 Test_endpoint_Targets(t *testing.T) { tests := []struct { name string Subsets []*subset ingSvcPort string targetPort *backendPort want []string }{ { name: "single node and port fully specified by name", Subsets: []*subset{ { Addresses: []*address{ { IP: "1...
explode_data.jsonl/60360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1417 }
[ 2830, 3393, 36699, 75823, 82, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 197, 3136, 4917, 262, 29838, 38253, 198, 197, 197, 287, 92766, 7084, 914, 198, 197, 28861, 7084, 353, 20942, 708...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmpty(t *testing.T) { key := []byte("aaa") l := NewSkiplist(arenaSize, new(y.DefaultKeyComparator)) v := l.Get(key) require.True(t, v.Value == nil) // Cannot use require.Nil for unsafe.Pointer nil. for _, less := range []bool{true, false} { for _, allowEqual := range []bool{true, false} { n, found ...
explode_data.jsonl/49649
{ "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, 3522, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 3056, 3782, 445, 32646, 1138, 8810, 1669, 1532, 50, 6642, 39934, 7, 30527, 1695, 11, 501, 7021, 13275, 1592, 38658, 4390, 5195, 1669, 326, 2234, 4857, 340, 17957, 32443, 1155,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestToYAML(t *testing.T) { // The TestParse does the hard part. We just verify that YAML formatting is // happening. o, err := ToYAML("name=value") if err != nil { t.Fatal(err) } expect := "name: value" if o != expect { t.Errorf("Expected %q, got %q", expect, o) } }
explode_data.jsonl/2417
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 118 }
[ 2830, 3393, 1249, 56, 31102, 1155, 353, 8840, 836, 8, 341, 197, 322, 576, 3393, 14463, 1558, 279, 2588, 949, 13, 1205, 1101, 10146, 429, 53127, 36566, 374, 198, 197, 322, 12482, 624, 22229, 11, 1848, 1669, 2014, 56, 31102, 445, 606, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewRedfishRemoteDirectClient(t *testing.T) { m := &redfishMocks.RedfishAPI{} defer m.AssertExpectations(t) _, err := NewRedfishRemoteDirectClient( context.Background(), defaultURL, computerSystemID, "/tmp/test.iso", ) assert.NoError(t, err) // Test with empty remote URL _, err = NewRedfishRemo...
explode_data.jsonl/12283
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 362 }
[ 2830, 3393, 3564, 6033, 18170, 24703, 16027, 2959, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 609, 1151, 18170, 72577, 20943, 18170, 7082, 16094, 16867, 296, 11711, 17536, 804, 1155, 692, 197, 6878, 1848, 1669, 1532, 6033, 18170, 24703, 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 TestNoFilesFound(t *testing.T) { defer restoreDflts(dfltFiles, dfltDirs) dfltFiles = []string{"baz.txt"} dfltDirs = []string{"./foo/bar"} c := &Conntrack{} acc := &testutil.Accumulator{} err := c.Gather(acc) require.EqualError(t, err, "Conntrack input failed to collect metrics. "+ "Is the conntrack kern...
explode_data.jsonl/37564
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 2753, 10809, 6650, 1155, 353, 8840, 836, 8, 341, 16867, 14952, 35, 1489, 2576, 1500, 79209, 10809, 11, 294, 79209, 97384, 692, 2698, 79209, 10809, 284, 3056, 917, 4913, 42573, 3909, 16707, 2698, 79209, 97384, 284, 3056, 917, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_TryMergeUnmergeableRespnses(t *testing.T) { mct := newMemcacheTest(defaultConfig) msg1 := textParseNoFail(t, "STORED\r\n") msg2 := textParseNoFail(t, "0\r\n") b, err := tryMergeResponses(mct.mc, msg1, msg2) assert.False(t, b) assert.Nil(t, err) }
explode_data.jsonl/15051
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 1139, 884, 52096, 1806, 19052, 480, 36555, 4412, 288, 1155, 353, 8840, 836, 8, 341, 2109, 302, 1669, 501, 18816, 9360, 2271, 18978, 2648, 340, 21169, 16, 1669, 1467, 14463, 2753, 19524, 1155, 11, 330, 43950, 35, 12016, 1699,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_createDefaultContainer(t *testing.T) { dockerExecutor, errCreateExecutor := NewDockerExecutor() if errCreateExecutor != nil { t.Error("can not create client for docker manipulation. Error: ", errCreateExecutor.Error()) return } if err := dockerExecutor.RemoveContainer("container_test_test10"); err != ...
explode_data.jsonl/75805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 330 }
[ 2830, 3393, 8657, 3675, 4502, 1155, 353, 8840, 836, 8, 341, 2698, 13659, 25255, 11, 1848, 4021, 25255, 1669, 1532, 35, 13659, 25255, 741, 743, 1848, 4021, 25255, 961, 2092, 341, 197, 3244, 6141, 445, 4814, 537, 1855, 2943, 369, 26588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPartitionStart(t *testing.T) { table := GetValidTable() maxPart := len(table.Partitions) request := maxPart - 1 start := table.Partitions[request].GetStart() expected := int64(table.Partitions[request].Start) if start != expected { t.Errorf("Received start %d instead of %d", start, expected) } }
explode_data.jsonl/61029
{ "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, 1949, 49978, 3479, 1155, 353, 8840, 836, 8, 341, 26481, 1669, 2126, 4088, 2556, 741, 22543, 5800, 1669, 2422, 15761, 52250, 5930, 340, 23555, 1669, 1932, 5800, 481, 220, 16, 198, 21375, 1669, 1965, 52250, 5930, 58, 2035, 936...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegerExpressionEQ(t *testing.T) { assertClauseSerialize(t, table1ColInt.EQ(table2ColInt), "(table1.col_int = table2.col_int)") assertClauseSerialize(t, table1ColInt.EQ(Int(11)), "(table1.col_int = $1)", int64(11)) }
explode_data.jsonl/41449
{ "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, 3486, 9595, 54007, 1155, 353, 8840, 836, 8, 341, 6948, 28482, 15680, 1155, 11, 1965, 16, 6127, 1072, 5142, 48, 15761, 17, 6127, 1072, 701, 11993, 2005, 16, 13414, 4042, 284, 1965, 17, 13414, 4042, 19107, 6948, 28482, 15680, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MergeTextValueResponsesNoLimits(t *testing.T) { config := defaultConfig config.MaxValues = -1 config.MaxBytesPerValue = 1000 mct := newMemcacheTest(config) msg1 := textParseNoFail(t, "VALUE k1 1 6 3\r\nvalue1\r\n") msg2 := textParseNoFail(t, "VALUE k2 1 6 3\r\nvalue2\r\n") msg3 := textParseNoFail(t, "E...
explode_data.jsonl/15057
{ "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, 1245, 10080, 1178, 1130, 70743, 2753, 94588, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1638, 2648, 198, 25873, 14535, 6227, 284, 481, 16, 198, 25873, 14535, 7078, 3889, 1130, 284, 220, 16, 15, 15, 15, 198, 2109, 302, 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 TestNoQueueSidecarImageUpdateFail(t *testing.T) { kubeClient, _, servingClient, cachingClient, _, controller, kubeInformer, _, servingInformer, cachingInformer, _, _ := newTestController(t) rev := getTestRevision() config := getTestConfiguration() rev.OwnerReferences = append( rev.OwnerReferences, *kmeta.N...
explode_data.jsonl/27422
{ "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, 2753, 7554, 16384, 6918, 1906, 4289, 19524, 1155, 353, 8840, 836, 8, 341, 16463, 3760, 2959, 11, 8358, 13480, 2959, 11, 47430, 2959, 11, 8358, 6461, 11, 80958, 641, 34527, 11, 8358, 13480, 641, 34527, 11, 47430, 641, 34527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnknownHashType(t *testing.T) { hasher, err := DefaultFactory.GetHasher(HashType(99)) if hasher != nil { t.Fatal("Invalid Hasher returned") } if err != errUnknownHashType { t.Fatal("Incorrect error returned") } }
explode_data.jsonl/42625
{ "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, 13790, 6370, 929, 1155, 353, 8840, 836, 8, 341, 50333, 261, 11, 1848, 1669, 7899, 4153, 2234, 6370, 261, 7, 6370, 929, 7, 24, 24, 1171, 743, 90819, 961, 2092, 341, 197, 3244, 26133, 445, 7928, 6531, 261, 5927, 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 ]
3
func TestAccumulator(t *testing.T) { lookback := time.Minute start := time.Now().Truncate(time.Hour) iterCount := 2 acc := NewStepLookbackAccumulator( lookback, lookback, start, iterCount, ) // NB: lookback limit: start-1 actual := acc.AccumulateAndMoveToNext() expected := []xts.Datapoints{{}, {}} as...
explode_data.jsonl/52102
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 597 }
[ 2830, 3393, 14603, 372, 10511, 1155, 353, 8840, 836, 8, 341, 197, 7201, 1419, 1669, 882, 75770, 198, 21375, 1669, 882, 13244, 1005, 1282, 26900, 9730, 73550, 340, 79924, 2507, 1669, 220, 17, 271, 197, 4475, 1669, 1532, 8304, 10380, 1419...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChildOrders(t *testing.T) { // var m map[string]interface{} // toml.DecodeFile("xxx.toml", &m) // fmt.Printf("%+v\n", m) client := v1.New(&v1.Config{ Key: os.Getenv("BFKEY"), Secret: os.Getenv("BFSECRET"), // Key: fmt.Sprintf("%s", m["KEY"]), // Secret: fmt.Sprintf("%s", m["SECRET"]), }) r...
explode_data.jsonl/41215
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 3652, 24898, 1155, 353, 8840, 836, 8, 341, 197, 322, 762, 296, 2415, 14032, 31344, 16094, 197, 322, 311, 1014, 56372, 1703, 445, 24048, 73494, 75, 497, 609, 76, 340, 197, 322, 8879, 19367, 4430, 10, 85, 1699, 497, 296, 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...
2
func TestAutoRetryExhaustRetries(t *testing.T) { t.Parallel() out := new(bytes.Buffer) rootPath := copyEnvironment(t, TEST_FIXTURE_AUTO_RETRY_EXHAUST) modulePath := util.JoinPath(rootPath, TEST_FIXTURE_AUTO_RETRY_EXHAUST) err := runTerragruntCommand(t, fmt.Sprintf("terragrunt apply -auto-approve --terragrunt-non-...
explode_data.jsonl/10094
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 204 }
[ 2830, 3393, 13253, 51560, 840, 15074, 12020, 4019, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 13967, 1669, 501, 23158, 22622, 340, 33698, 1820, 1669, 2975, 12723, 1155, 11, 13602, 42635, 41486, 29013, 77924, 4966, 17020, 8553, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCollectionSpecDetach(t *testing.T) { coll := Collection{ Maps: map[string]*Map{ "foo": new(Map), }, Programs: map[string]*Program{ "bar": new(Program), }, } foo := coll.DetachMap("foo") if foo == nil { t.Error("Program not returned from DetachMap") } if _, ok := coll.Programs["foo"]; ok...
explode_data.jsonl/27739
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 229 }
[ 2830, 3393, 6482, 8327, 89306, 1155, 353, 8840, 836, 8, 341, 1444, 965, 1669, 11101, 515, 197, 26873, 82, 25, 2415, 14032, 8465, 2227, 515, 298, 197, 1, 7975, 788, 501, 21253, 1326, 197, 197, 1583, 197, 197, 10690, 82, 25, 2415, 140...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmapColSpec(t *testing.T) { e := Engine{prefix: []byte("e-prefix.")} dbID, tableID, colID, colType, err := e.unmapColSpec(nil) require.ErrorIs(t, err, ErrIllegalMappedKey) require.Zero(t, dbID) require.Zero(t, tableID) require.Zero(t, colID) require.Zero(t, colType) dbID, tableID, colID, colType, er...
explode_data.jsonl/64094
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 608 }
[ 2830, 3393, 1806, 2186, 6127, 8327, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 8200, 90, 11849, 25, 3056, 3782, 445, 68, 67181, 38739, 630, 20939, 915, 11, 1965, 915, 11, 1375, 915, 11, 1375, 929, 11, 1848, 1669, 384, 6307, 2186, 612...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestImageDecoding(t *testing.T) { p, err := LoadFromString(testMultipleLayers) if err != nil { t.Error(err) t.Fail() return } assert.NotNil(t, p) assert.NotNil(t, p.Content) assert.NotNil(t, p.Content.Layers) assert.Equal(t, 2, len(p.Content.Layers)) assert.Equal(t, 1, len(p.Content.Layers[0].Chunks)...
explode_data.jsonl/30015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 1906, 4900, 3700, 1155, 353, 8840, 836, 8, 341, 3223, 11, 1848, 1669, 8893, 44491, 8623, 32089, 40235, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 3244, 57243, 741, 197, 853, 198, 197, 532, 6948, 93882...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryCount(t *testing.T) { setupServer() defer teardownServer() mux.HandleFunc("/url", func(w http.ResponseWriter, r *http.Request) { assertBody(t, `{"type":"count"}`, r.Body) fmt.Fprintf(w, `"body"`) }) req := URL("http://example.com/url").Count() if req.Query.Type != "count" { t.Errorf("Expect...
explode_data.jsonl/24769
{ "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, 2859, 2507, 1155, 353, 8840, 836, 8, 341, 84571, 5475, 741, 16867, 49304, 5475, 2822, 2109, 2200, 63623, 4283, 1085, 497, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6948, 5444, 1155, 11, 1565, 4913, 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 TestRunDefinitionStoreTests(t *testing.T) { // create consul server and consul client cfg := setupTestConfig(t) srv, _ := newTestConsulInstance(t, &cfg) defer func() { srv.Stop() os.RemoveAll(cfg.WorkingDirectory) }() t.Run("StoreTests", func(t *testing.T) { t.Run("TestTypesPath", func(t *testing.T) { ...
explode_data.jsonl/75422
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 6727, 10398, 6093, 18200, 1155, 353, 8840, 836, 8, 341, 197, 322, 1855, 74189, 3538, 323, 74189, 2943, 198, 50286, 1669, 6505, 2271, 2648, 1155, 340, 1903, 10553, 11, 716, 1669, 501, 2271, 15220, 360, 2523, 1155, 11, 609, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReloadConfig(t *testing.T) { th := Setup().InitBasic().InitSystemAdmin() defer th.TearDown() Client := th.Client flag, resp := Client.ReloadConfig() CheckForbiddenStatus(t, resp) if flag { t.Fatal("should not Reload the config due no permission.") } flag, resp = th.SystemAdminClient.ReloadConfig() ...
explode_data.jsonl/10678
{ "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, 50035, 2648, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 1005, 3803, 2320, 7210, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 30589, 11, 9039, 1669, 8423, 38939, 2731, 2648, 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 TestSigVerifier_Verify(t *testing.T) { rootCAPemCert, caPrivKey, err := testutils.GenerateRootCA("Clients RootCA", "127.0.0.1") require.NoError(t, err) require.NotNil(t, rootCAPemCert) require.NotNil(t, caPrivKey) keyPair, err := tls.X509KeyPair(rootCAPemCert, caPrivKey) require.NoError(t, err) require.Not...
explode_data.jsonl/66735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1144 }
[ 2830, 3393, 47246, 82394, 2334, 261, 1437, 1155, 353, 8840, 836, 8, 341, 33698, 31400, 336, 36934, 11, 2162, 32124, 1592, 11, 1848, 1669, 1273, 6031, 57582, 8439, 5049, 445, 47174, 18854, 5049, 497, 330, 16, 17, 22, 13, 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...
2
func TestFromWithArg(t *testing.T) { tag, expected := ":sometag", "expectedthisid" getImage := func(name string) (builder.Image, builder.ReleaseableLayer, error) { assert.Equal(t, "alpine"+tag, name) return &mockImage{id: "expectedthisid"}, nil, nil } b := newBuilderWithMockBackend() b.docker.(*MockBackend).g...
explode_data.jsonl/34864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 378 }
[ 2830, 3393, 3830, 2354, 2735, 1155, 353, 8840, 836, 8, 341, 60439, 11, 3601, 1669, 13022, 82, 4413, 351, 497, 330, 7325, 574, 307, 1837, 10366, 1906, 1669, 2915, 3153, 914, 8, 320, 17850, 7528, 11, 7363, 58693, 480, 9188, 11, 1465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNamespaceIndexQuery(t *testing.T) { ctrl := xtest.NewController(t) defer ctrl.Finish() idx := NewMockNamespaceIndex(ctrl) idx.EXPECT().Bootstrapped().Return(true) ns, closer := newTestNamespaceWithIndex(t, idx) defer closer() ctx := context.NewBackground() mtr := mocktracer.New() sp := mtr.StartSpa...
explode_data.jsonl/35376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 348 }
[ 2830, 3393, 22699, 1552, 2859, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 856, 1944, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 62077, 1669, 1532, 11571, 22699, 1552, 62100, 340, 62077, 22402, 7285, 1005, 17919, 495, 5677, 100...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIfdBuilder_SetNextIb(t *testing.T) { im := NewIfdMapping() err := LoadStandardIfds(im) log.PanicIf(err) ti := NewTagIndex() ib1 := NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDefaultByteOrder) ib2 := NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDe...
explode_data.jsonl/36622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 2679, 67, 3297, 14812, 5847, 40, 65, 1155, 353, 8840, 836, 8, 341, 54892, 1669, 1532, 2679, 67, 6807, 2822, 9859, 1669, 8893, 19781, 2679, 5356, 25107, 340, 6725, 1069, 31270, 2679, 3964, 692, 72859, 1669, 1532, 5668, 1552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCookieMetric(t *testing.T) { m := createMetricsForTesting() m.RecordCookieSync() expectedCount := float64(1) assertCounterValue(t, "", "cookieSync", m.cookieSync, expectedCount) }
explode_data.jsonl/13959
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 20616, 54310, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1855, 27328, 2461, 16451, 2822, 2109, 49959, 20616, 12154, 2822, 42400, 2507, 1669, 2224, 21, 19, 7, 16, 340, 6948, 14099, 1130, 1155, 11, 7342, 330, 16236, 12154, 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
func TestSubmitApplicationEventGetEvent(t *testing.T) { tests := []struct { name string appID string wantEvent events.ApplicationEventType }{ {TestEventName, "testAppId001", events.SubmitApplication}, } for _, tt := range tests { instance := NewSubmitApplicationEvent(tt.appID) event := instanc...
explode_data.jsonl/9783
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 8890, 4988, 1556, 1949, 1556, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 414, 914, 198, 197, 28236, 915, 257, 914, 198, 197, 50780, 1556, 4357, 17521, 47906, 198, 197, 59403, 197, 197, 90, 2271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEnableInt(t *testing.T) { d := setup() ni := NetInterface{} ni.IfNum = 1 ni, err := d.GetIntInfo(ni) notErr(t, err) assert(t, ni.MTU, 1500) ni, err = d.EnableInt(ni) notErr(t, err) assert(t, ni.Status, "enable") }
explode_data.jsonl/21117
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 11084, 1072, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 6505, 741, 197, 7751, 1669, 9374, 5051, 16094, 197, 7751, 32901, 4651, 284, 220, 16, 198, 197, 7751, 11, 1848, 1669, 294, 43148, 1731, 1445, 72, 340, 97266, 7747, 1155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExplodeUsersCreateTimeToMonths(t *testing.T) { totalmonths := 34 expireduser := 8 provider := turnOverRate{ users: testUserList, } firstCreatedAt := time.Date(2019, 02, 1, 0, 0, 0, 0, time.Now().Location()) today := time.Date(2021, 11, 1, 0, 0, 0, 0, time.Now().Location()) months := provider.generate...
explode_data.jsonl/46761
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 409 }
[ 2830, 3393, 43953, 534, 7137, 53251, 1249, 59184, 1155, 353, 8840, 836, 8, 341, 34493, 49714, 1669, 220, 18, 19, 198, 48558, 2690, 872, 1669, 220, 23, 198, 197, 19979, 1669, 2484, 1918, 11564, 515, 197, 90896, 25, 1273, 1474, 852, 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...
5
func TestGetConsumer(t *testing.T) { _, _, err := GetAllProviderIds(context.Background(), "", &discovery.MicroService{}) if err != nil { t.Fatalf("GetConsumerIdsByProvider invalid failed") } _, _, err = GetAllConsumerIds(context.Background(), "", &discovery.MicroService{ ServiceId: "a", }) if err != nil { ...
explode_data.jsonl/74438
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 1949, 29968, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 1848, 1669, 45587, 5179, 12701, 5378, 19047, 1507, 7342, 609, 4243, 7449, 1321, 2754, 1860, 37790, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 1949, 29968, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetDelimitedString(t *testing.T) { testdata := []struct { input string output string }{ {`"hello"`, `hello`}, {`'hello'`, `hello`}, {`'he"llo'`, `he"llo`}, {`"he'llo"`, `he'llo`}, } for _, td := range testdata { sr := strings.NewReader(td.input) res, err := getDelimitedString(sr) if err ...
explode_data.jsonl/36794
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 1949, 16532, 31511, 703, 1155, 353, 8840, 836, 8, 341, 18185, 691, 1669, 3056, 1235, 341, 197, 22427, 220, 914, 198, 197, 21170, 914, 198, 197, 59403, 197, 197, 90, 63, 1, 14990, 1, 7808, 1565, 14990, 63, 1583, 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...
4
func TestSequenceNumberToTransactionType(t *testing.T) { assert.Equal(t, TransactionTypeOpen, SequenceNumberToTransactionType(100, 100)) assert.Equal(t, TransactionTypeOpen, SequenceNumberToTransactionType(101, 101)) assert.Equal(t, TransactionTypeUnrecognized, SequenceNumberToTransactionType(100, 101)) assert.Equ...
explode_data.jsonl/27737
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 14076, 2833, 1249, 8070, 929, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 17869, 929, 5002, 11, 28871, 2833, 1249, 8070, 929, 7, 16, 15, 15, 11, 220, 16, 15, 15, 1171, 6948, 12808, 1155, 11, 17869, 929, 5002, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecoderBuffering(t *testing.T) { for bs := 1; bs <= 12; bs++ { decoder := NewDecoder(StdEncoding, strings.NewReader(bigtest.encoded)) buf := make([]byte, len(bigtest.decoded)+12) var total int var n int var err error for total = 0; total < len(bigtest.decoded) && err == nil; { n, err = decoder....
explode_data.jsonl/35054
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 262 }
[ 2830, 3393, 20732, 4095, 287, 1155, 353, 8840, 836, 8, 341, 2023, 17065, 1669, 220, 16, 26, 17065, 2651, 220, 16, 17, 26, 17065, 1027, 341, 197, 197, 48110, 1669, 1532, 20732, 7, 22748, 14690, 11, 9069, 68587, 75616, 1944, 13, 19329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPing(t *testing.T) { runTests(t, dsn, func(dbt *DBTest) { err := dbt.db.Ping() if err != nil { t.Errorf("Expected ping to succeed, got error: %s", err) } }) }
explode_data.jsonl/20923
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 69883, 1155, 353, 8840, 836, 8, 341, 56742, 18200, 1155, 11, 294, 9613, 11, 2915, 9791, 83, 353, 3506, 2271, 8, 341, 197, 9859, 1669, 2927, 83, 7076, 1069, 287, 2822, 197, 743, 1848, 961, 2092, 341, 298, 3244, 13080, 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 ]
2
func TestUrlArgument(t *testing.T) { check := func(url string, expected []string) { if !reflect.DeepEqual(processUrlString(url), expected) { t.Fatalf("Got wrong response processing URL: %q, RES: %#v\n", url, processUrlString(url)) } } // This is normal case oneExpected := []string{"nats://localhost:1222"} ...
explode_data.jsonl/44911
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 358 }
[ 2830, 3393, 2864, 9171, 1155, 353, 8840, 836, 8, 341, 25157, 1669, 2915, 6522, 914, 11, 3601, 3056, 917, 8, 341, 197, 743, 753, 34913, 94750, 21929, 2864, 703, 6522, 701, 3601, 8, 341, 298, 3244, 30762, 445, 32462, 4969, 2033, 8692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCredentialsListCmd(t *testing.T) { defer confhelpers.MockGlobalConf(t, true)() cs, err := credentials.NewStore() require.NoError(t, err) cs.Set(parseURL(t, "http://repo1.com"), "abc") cs.Set(parseURL(t, "http://repo2.com"), "def") require.NoError(t, cs.Flush()) cmd := rootCmd() cmd.SetArgs([]string{"c...
explode_data.jsonl/49058
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 27025, 852, 15613, 1155, 353, 8840, 836, 8, 341, 16867, 2335, 21723, 24664, 11646, 15578, 1155, 11, 830, 8, 741, 71899, 11, 1848, 1669, 16387, 7121, 6093, 741, 17957, 35699, 1155, 11, 1848, 340, 71899, 4202, 27762, 3144, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBoltPersistentStateMock(t *testing.T) { chezmoitest.WithTestFS(t, nil, func(fs vfs.FS) { var ( s = NewRealSystem(fs) path = AbsPath("/home/user/.config/chezmoi/chezmoistate.boltdb") bucket = []byte("bucket") key = []byte("key") value1 = []byte("value1") value2 = []byte("value2") ...
explode_data.jsonl/58722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 525 }
[ 2830, 3393, 33, 6181, 53194, 1397, 11571, 1155, 353, 8840, 836, 8, 341, 197, 34015, 6355, 97105, 26124, 2271, 8485, 1155, 11, 2092, 11, 2915, 31856, 92941, 991, 50, 8, 341, 197, 2405, 2399, 298, 1903, 414, 284, 1532, 12768, 2320, 3185...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSBSOnlyUnresolvedWriter(t *testing.T) { test(t, users("alice"), inPrivateTlf("alice@twitter"), as(alice, expectError(mkfile("foo.txt", "hello world"), "alice does not have read access to directory /keybase/private/alice@twitter"), ), addNewAssertion("alice", "alice@twitter"), inPrivateTlf...
explode_data.jsonl/41331
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 50, 7347, 7308, 1806, 39747, 6492, 1155, 353, 8840, 836, 8, 341, 18185, 1155, 345, 197, 90896, 445, 63195, 4461, 197, 17430, 16787, 51, 11008, 445, 63195, 31, 14679, 4461, 197, 60451, 17643, 558, 345, 298, 24952, 1454, 1255,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSendTransaction(t *testing.T) { mockJSONRPC := &mocks.JSONRPC{} mockGraphQL := &mocks.GraphQL{} c := &Client{ c: mockJSONRPC, g: mockGraphQL, traceSemaphore: semaphore.NewWeighted(100), } ctx := context.Background() mockJSONRPC.On( "CallContext", ctx, mock.Anything...
explode_data.jsonl/55511
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 443 }
[ 2830, 3393, 11505, 8070, 1155, 353, 8840, 836, 8, 341, 77333, 5370, 29528, 1669, 609, 16712, 82, 18009, 29528, 16094, 77333, 88637, 1669, 609, 16712, 82, 40237, 3588, 31483, 1444, 1669, 609, 2959, 515, 197, 1444, 25, 1060, 7860, 5370, 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 TestDefaultHeadersReturnsCopy(t *testing.T) { genericHeaders := DefaultGenericHeaders() bodyHeaders := DefaultBodyHeaders() assert.Equal(t, defaultGenericHeaders, genericHeaders) assert.Equal(t, defaultBodyHeaders, bodyHeaders) genericHeaders[0] = "mutate" bodyHeaders[0] = "mutate" assert.NotEqual(t, def...
explode_data.jsonl/64285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 3675, 10574, 16446, 12106, 1155, 353, 8840, 836, 8, 341, 3174, 3469, 10574, 1669, 7899, 19964, 10574, 741, 35402, 10574, 1669, 7899, 5444, 10574, 2822, 6948, 12808, 1155, 11, 1638, 19964, 10574, 11, 13954, 10574, 340, 6948, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMsgVote(t *testing.T) { tests := []struct { proposalID uint64 voterAddr sdk.AccAddress option VoteOption expectPass bool }{ {0, addrs[0], OptionYes, true}, {0, sdk.AccAddress{}, OptionYes, false}, {0, addrs[0], OptionNo, true}, {0, addrs[0], OptionNoWithVeto, true}, {0, addrs[0], Optio...
explode_data.jsonl/19187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 6611, 41412, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 73874, 915, 2622, 21, 19, 198, 197, 5195, 25392, 13986, 220, 45402, 77538, 4286, 198, 197, 80845, 257, 34034, 5341, 198, 197, 24952, 12187, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseGood(t *testing.T) { if _, err := Parse([]string{"testdata/*good.rules", "testdata/dir/*good.*"}, true, true); err != nil { t.Errorf("error parsing files %s", err) } }
explode_data.jsonl/45651
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 14463, 15216, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 14775, 10556, 917, 4913, 92425, 1057, 18536, 43651, 497, 330, 92425, 88226, 1057, 18536, 4908, 14345, 830, 11, 830, 1215, 1848, 961, 2092, 341, 197, 3244, 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 ]
2
func TestSetupOutputsValidPath(t *testing.T) { Logger.Enabled = trueptr Logger.File = "debug.txt" LogPath = "../testdata/" err := setupOutputs() if err != nil { t.Fatalf("SetupOutputs failed expected nil got %v", err) } os.Remove(path.Join(LogPath, Logger.File)) }
explode_data.jsonl/63110
{ "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, 21821, 61438, 4088, 1820, 1155, 353, 8840, 836, 8, 341, 55861, 13690, 284, 830, 3505, 198, 55861, 8576, 284, 330, 8349, 3909, 698, 24201, 1820, 284, 7005, 92425, 29555, 9859, 1669, 6505, 61438, 741, 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...
2
func TestTicker_C3(t *testing.T) { product := "btc_" + common.NativeToken timeMap := GetTimes() kline15s := prepareKlineMx(product, 15*60, 100.0, 200.0, 99.0, 210.0, []float64{100}, timeMap["-14d"]-types.SecondsInADay, timeMap["-14d"]) kline1s := prepareKlineMx(product, 60, 100.0, 200.0, 99.0, 210.0, []float64{100...
explode_data.jsonl/37822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1016 }
[ 2830, 3393, 87278, 920, 18, 1155, 353, 8840, 836, 8, 1476, 69288, 1669, 330, 92634, 18771, 488, 4185, 68624, 3323, 198, 21957, 2227, 1669, 2126, 18889, 741, 16463, 1056, 16, 20, 82, 1669, 10549, 42, 1056, 44, 87, 19475, 11, 220, 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