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 TestModifiedStatFails(t *testing.T) { for _, alg := range hashAlgs { vfsObj, root, ctx, err := newVerityRoot(t, alg) if err != nil { t.Fatalf("newVerityRoot: %v", err) } filename := "verity-test-file" fd, _, err := newFileFD(ctx, t, vfsObj, root, filename, 0644) if err != nil { t.Fatalf("newFil...
explode_data.jsonl/56766
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 363 }
[ 2830, 3393, 19148, 15878, 37, 6209, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17345, 1669, 2088, 5175, 2101, 5857, 341, 197, 5195, 3848, 5261, 11, 3704, 11, 5635, 11, 1848, 1669, 501, 10141, 487, 8439, 1155, 11, 17345, 340, 197, 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...
6
func TestSetExternalTagInvalidTagsList(t *testing.T) { // Reset memory counters helpers.ResetMemoryStats() code := ` tags = [ ('hostname', {'source_type': {'tag1': 'tag2'}}), ('hostname2', {'source_type2': ['tag3', 'tag4']}), ] datadog_agent.set_external_tags(tags) ` out, err := run(code) if err != nil { ...
explode_data.jsonl/24557
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 1649, 25913, 5668, 7928, 15930, 852, 1155, 353, 8840, 836, 8, 341, 197, 322, 16932, 4938, 31532, 198, 197, 21723, 36660, 10642, 16635, 2822, 43343, 1669, 22074, 3244, 2032, 284, 2278, 197, 197, 492, 27806, 516, 5360, 2427, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogUnparsedMessageError(t *testing.T) { consumer := constructTestConsumer() originalMessage := sarama.ConsumerMessage{} // try to call the tested function and capture its output output, err := capture.ErrorOutput(func() { log.Logger = log.Output(zerolog.New(os.Stderr)) main.LogUnparsedMessageError(con...
explode_data.jsonl/45133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 2201, 1806, 41030, 2052, 1454, 1155, 353, 8840, 836, 8, 341, 37203, 11761, 1669, 9245, 2271, 29968, 741, 197, 9889, 2052, 1669, 274, 637, 64, 70471, 2052, 31483, 197, 322, 1430, 311, 1618, 279, 12510, 729, 323, 12322, 1181, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSelectChar(t *testing.T) { t.Parallel() tableName := tableName() if _, err := testDb.Exec("CREATE TABLE " + tableName + "(c1 CHAR(1), c2 CHAR(4))"); err != nil { t.Fatal(err) } testSes := getSes(t) defer testSes.Close() if _, err := testSes.PrepAndExe("INSERT INTO "+tableName+" VALUES (:1, :2)", "A...
explode_data.jsonl/48074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 550 }
[ 2830, 3393, 3379, 4768, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 26481, 675, 1669, 29544, 741, 743, 8358, 1848, 1669, 1273, 7994, 30798, 445, 22599, 14363, 330, 488, 29544, 488, 11993, 66, 16, 23997, 7, 16, 701, 272, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestUpdate(t *testing.T) { nodeNum := 5 bootPeers := []string{bootPeer(6611), bootPeer(6612)} instances := []*gossipInstance{} inst := createDiscoveryInstance(6611, "d1", bootPeers) instances = append(instances, inst) inst = createDiscoveryInstance(6612, "d2", bootPeers) instances = append(instances, inst...
explode_data.jsonl/62261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 488 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 20831, 4651, 1669, 220, 20, 198, 197, 4619, 10197, 388, 1669, 3056, 917, 90, 4619, 30888, 7, 21, 21, 16, 16, 701, 10459, 30888, 7, 21, 21, 16, 17, 10569, 197, 47825, 1669, 29838, 70,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstallRelease_TillerVersion(t *testing.T) { version.Version = "2.2.0" c := helm.NewContext() rs := rsFixture() // TODO: Refactor this into a mock. req := &services.InstallReleaseRequest{ Namespace: "spaced", Chart: &chart.Chart{ Metadata: &chart.Metadata{Name: "hello", TillerVersion: ">=2.2.0"}, ...
explode_data.jsonl/45607
{ "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, 24690, 16077, 1139, 15252, 5637, 1155, 353, 8840, 836, 8, 341, 74954, 35842, 284, 330, 17, 13, 17, 13, 15, 698, 1444, 1669, 33765, 7121, 1972, 741, 41231, 1669, 10036, 18930, 2822, 197, 322, 5343, 25, 8550, 5621, 419, 1119...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExpandFileSourceWithKey(t *testing.T) { fakeFS := fs.MakeFakeFS() fakeFS.Create("dir/faaaaaaaaaabbbbbbbbbccccccccccccccccc") fakeFS.Create("dir/foobar") fakeFS.Create("dir/simplebar") fakeFS.Create("dir/readme") fa := flagsAndArgs{ FileSources: []string{"foo-key=dir/fa*", "bar-key=dir/foobar", "dir/sim...
explode_data.jsonl/53905
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 255 }
[ 2830, 3393, 38946, 1703, 3608, 2354, 1592, 1155, 353, 8840, 836, 8, 341, 1166, 726, 8485, 1669, 8619, 50133, 52317, 8485, 741, 1166, 726, 8485, 7251, 445, 3741, 87562, 69440, 370, 87609, 87609, 55597, 55597, 55597, 638, 37054, 1138, 1166,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetFileContentTypeMP4(t *testing.T) { file := `../testdata/files/test7.mp4` fileType, err := GetFileContentType(file) if err != nil { t.Log("Error -> ", err) t.Fail() } if fileType != "video/mp4" { t.Log(fileType) t.Fail() } file = `../testdata/files/test8.mp4` fileType, err = GetFileContentT...
explode_data.jsonl/24012
{ "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, 1949, 1703, 29504, 5781, 19, 1155, 353, 8840, 836, 8, 341, 17661, 1669, 1565, 1244, 92425, 33220, 12697, 22, 16870, 19, 3989, 17661, 929, 11, 1848, 1669, 2126, 1703, 29504, 4866, 692, 743, 1848, 961, 2092, 341, 197, 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...
5
func TestCASignPathlen(t *testing.T) { var csrPathlenTests = []struct { name string caCertFile string caKeyFile string caProfile bool csrFile string err error pathlen int isZero bool isCA bool }{ { name: "pathlen 1 signing pathlen 0", caCertFile: testECDS...
explode_data.jsonl/71286
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2049 }
[ 2830, 3393, 87516, 622, 1820, 2892, 1155, 353, 8840, 836, 8, 341, 2405, 68932, 1820, 2892, 18200, 284, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 197, 924, 36934, 1703, 914, 198, 197, 197, 924, 1592, 1703, 220, 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...
9
func Test_LoadDatastore(t *testing.T) { testConfig, _ = config.LoadConfig(testConfigFile) testConfig.Datastore.TypeConfig["mapping_file"] = testEssMapFile ds, err := LoadDatastore(&testConfig.Datastore, simplelog.NewStdLogger()) if err != nil { t.Fatalf("%s", err) } t.Logf("%v", ds) }
explode_data.jsonl/44269
{ "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, 19553, 1043, 4314, 1155, 353, 8840, 836, 8, 341, 18185, 2648, 11, 716, 284, 2193, 13969, 2648, 8623, 2648, 1703, 340, 18185, 2648, 3336, 4314, 10184, 2648, 1183, 40792, 2458, 1341, 284, 1273, 37438, 2227, 1703, 271, 83336, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteOperatorScenarios(t *testing.T) { for _, tt := range deleteOperatorScenarios { testScenario(t, &tt) } documentScenarios(t, "Delete", deleteOperatorScenarios) }
explode_data.jsonl/36683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 68 }
[ 2830, 3393, 6435, 18461, 3326, 60494, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3698, 18461, 3326, 60494, 341, 197, 18185, 54031, 1155, 11, 609, 5566, 340, 197, 532, 17470, 3326, 60494, 1155, 11, 330, 6435, 497, 3698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomer_GetBalance(t *testing.T) { key := "test api key" mockResponse := new(invdendpoint.Balance) mockResponse.TotalOutstanding = 1 server, err := invdmockserver.New(200, mockResponse, "json", true) if err != nil { t.Fatal(err) } defer server.Close() conn := mockConnection(key, server) entity :...
explode_data.jsonl/15010
{ "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, 12792, 13614, 21190, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 330, 1944, 6330, 1376, 1837, 77333, 2582, 1669, 501, 5900, 16598, 32540, 1785, 4978, 340, 77333, 2582, 35997, 2662, 10070, 284, 220, 16, 271, 41057, 11, 1848, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetTeamByName(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() team := th.BasicTeam th.TestForAllClients(t, func(t *testing.T, client *model.Client4) { rteam, resp := client.GetTeamByName(team.Name, "") CheckNoError(t, resp) require.Equal(t, rteam.Name, team.Name, "wrong team") _, ...
explode_data.jsonl/70715
{ "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, 1949, 14597, 16898, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 197, 9196, 1669, 270, 48868, 14597, 271, 70479, 8787, 2461, 2403, 47174, 1155, 11, 2915, 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 TestPopUp_Move(t *testing.T) { label := NewLabel("Hi") win := test.NewWindow(NewLabel("OK")) win.Resize(fyne.NewSize(50, 50)) pop := NewPopUp(label, win.Canvas()) pos := fyne.NewPos(10, 10) pop.Move(pos) innerPos := pop.Content.Position() assert.Equal(t, pos.X+theme.Padding(), innerPos.X) assert.Equal(t...
explode_data.jsonl/65215
{ "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, 11598, 2324, 66352, 1155, 353, 8840, 836, 8, 341, 29277, 1669, 1532, 2476, 445, 13048, 1138, 68452, 1669, 1273, 7121, 4267, 35063, 2476, 445, 3925, 5455, 68452, 77707, 955, 81708, 7121, 1695, 7, 20, 15, 11, 220, 20, 15, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRemovePKCS7Padding(t *testing.T) { type args struct { s string blockSize int } tests := []struct { name string args args want bool want1 string }{ {"HasPadding", args{"YELLOW\x04\x04\x04\x04", 10}, true, "YELLOW"}, {"NoPadding", args{"YELLOW\x04\x04\x04", 10}, false, "YELLOW\x04\...
explode_data.jsonl/66880
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 13021, 22242, 6412, 22, 21616, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 1903, 260, 914, 198, 197, 47996, 1695, 526, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 31215, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInterfaceExtraction(t *testing.T) { var s struct { W io.Writer } s.W = os.Stdout v := Indirect(ValueOf(&s)).Field(0).Interface() if v != s.W.(interface{}) { t.Error("Interface() on interface: ", v, s.W) } }
explode_data.jsonl/29545
{ "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, 5051, 840, 26425, 1155, 353, 8840, 836, 8, 341, 2405, 274, 2036, 341, 197, 17300, 6399, 47838, 198, 197, 630, 1903, 1175, 284, 2643, 83225, 198, 5195, 1669, 2263, 1226, 25346, 2124, 2099, 82, 4579, 1877, 7, 15, 568, 5051, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestManageData(t *testing.T) { kp0 := newKeypair0() sourceAccount := NewSimpleAccount(kp0.Address(), int64(3556091187167235)) manageData := ManageData{ Name: "Fruit preference", Value: []byte("Apple"), } received, err := newSignedTransaction( TransactionParams{ SourceAccount: &sourceAccount...
explode_data.jsonl/20662
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 428 }
[ 2830, 3393, 33076, 1043, 1155, 353, 8840, 836, 8, 341, 16463, 79, 15, 1669, 501, 6608, 1082, 1310, 15, 741, 47418, 7365, 1669, 1532, 16374, 7365, 5969, 79, 15, 26979, 1507, 526, 21, 19, 7, 18, 20, 20, 21, 15, 24, 16, 16, 23, 22,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMatcherWildcards(t *testing.T) { matcher := NewMatcher(testSectionSize, [][][]byte{ {common.Address{}.Bytes(), common.Address{0x01}.Bytes()}, // Default address is not a wildcard {common.Hash{}.Bytes(), common.Hash{0x01}.Bytes()}, // Default hash is not a wildcard {common.Hash{0x01}.Bytes()}, ...
explode_data.jsonl/51279
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 653 }
[ 2830, 3393, 37554, 40603, 25024, 1155, 353, 8840, 836, 8, 341, 2109, 28058, 1669, 1532, 37554, 8623, 9620, 1695, 11, 3056, 16613, 3782, 515, 197, 197, 90, 5464, 26979, 46391, 7078, 1507, 4185, 26979, 90, 15, 87, 15, 16, 7810, 7078, 76...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExportWildcardFSNodeES6(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` export * from 'fs' `, }, entryPaths: []string{"/entry.js"}, options: config.Options{ Mode: config.ModeBundle, OutputFormat: config.FormatESModule, AbsOu...
explode_data.jsonl/38503
{ "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, 16894, 92988, 8485, 1955, 1570, 21, 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, 59440, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCloudHypervisorAddVSock(t *testing.T) { assert := assert.New(t) clh := cloudHypervisor{} clh.addVSock(1, "path") assert.Equal(clh.vmconfig.Vsock.Cid, int64(1)) assert.Equal(clh.vmconfig.Vsock.Socket, "path") }
explode_data.jsonl/68494
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 16055, 39, 1082, 31396, 2212, 26050, 1176, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 39407, 71, 1669, 9437, 39, 1082, 31396, 31483, 39407, 71, 1364, 26050, 1176, 7, 16, 11, 330, 2343, 1138, 6948, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseErrors(t *testing.T) { tests := []struct { in string wantErr bool }{ {"http://[::1]", false}, {"http://[::1]:80", false}, {"http://[::1]:namedport", true}, // rfc3986 3.2.3 {"http://x:namedport", true}, // rfc3986 3.2.3 {"http://[::1]/", false}, {"http://[::1]a", true}, {"http...
explode_data.jsonl/71731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 846 }
[ 2830, 3393, 14463, 13877, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 414, 914, 198, 197, 50780, 7747, 1807, 198, 197, 59403, 197, 197, 4913, 1254, 1110, 58, 486, 16, 19076, 895, 1583, 197, 197, 4913, 1254,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestProbe(t *testing.T) { comm1, port1 := newCommInstance(t, naiveSec) defer comm1.Stop() comm2, port2 := newCommInstance(t, naiveSec) time.Sleep(time.Duration(1) * time.Second) require.NoError(t, comm1.Probe(remotePeer(port2))) _, err := comm1.Handshake(remotePeer(port2)) require.NoError(t, err) tempPort,...
explode_data.jsonl/42173
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 629 }
[ 2830, 3393, 81426, 1155, 353, 8840, 836, 8, 341, 197, 3621, 16, 11, 2635, 16, 1669, 501, 17977, 2523, 1155, 11, 49665, 8430, 340, 16867, 1063, 16, 30213, 741, 197, 3621, 17, 11, 2635, 17, 1669, 501, 17977, 2523, 1155, 11, 49665, 843...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHistogramDataPointSlice_CopyTo(t *testing.T) { dest := NewHistogramDataPointSlice() // Test CopyTo to empty NewHistogramDataPointSlice().CopyTo(dest) assert.EqualValues(t, NewHistogramDataPointSlice(), dest) // Test CopyTo larger slice generateTestHistogramDataPointSlice().CopyTo(dest) assert.EqualValu...
explode_data.jsonl/19545
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 77210, 1043, 2609, 33236, 77637, 1249, 1155, 353, 8840, 836, 8, 341, 49616, 1669, 1532, 77210, 1043, 2609, 33236, 741, 197, 322, 3393, 14540, 1249, 311, 4287, 198, 197, 3564, 77210, 1043, 2609, 33236, 1005, 12106, 1249, 27010,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenesisStateFromGenFile(t *testing.T) { cdc := codec.NewLegacyAmino() genFile := "../../../tests/fixtures/adr-024-coin-metadata_genesis.json" genesisState, _, err := types.GenesisStateFromGenFile(genFile) require.NoError(t, err) var bankGenesis banktypes.GenesisState cdc.MustUnmarshalJSON(genesisState[...
explode_data.jsonl/76047
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 415 }
[ 2830, 3393, 84652, 1397, 3830, 9967, 1703, 1155, 353, 8840, 836, 8, 341, 1444, 7628, 1669, 34647, 7121, 77415, 32, 31824, 2822, 82281, 1703, 1669, 30630, 23841, 94275, 14, 14666, 12, 15, 17, 19, 12, 7160, 96431, 16322, 13774, 4323, 698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateEdgeCases(t *testing.T) { t.Parallel() // A single import, but with brackets is ok. imports := `import ( "os" )` testValidate(t, grouperGoimports{}, vopts{}, imports) // Comments are allowed. imports = `import ( // Comment on a line "os" // End-of-line comment /* Multi line ...
explode_data.jsonl/508
{ "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, 17926, 11656, 37302, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 362, 3175, 1159, 11, 714, 448, 38929, 374, 5394, 624, 21918, 82, 1669, 1565, 474, 2399, 197, 197, 34482, 698, 197, 49237, 18185, 17926, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetSecrets(t *testing.T) { kubeClient := fakek8s.NewSimpleClientset() secretClient := kubeinformers.NewSharedInformerFactory(kubeClient, 0).Core().V1().Secrets() createSecret := func(secret *corev1.Secret) { kubeClient.CoreV1().Secrets(secret.Namespace).Create(secret) secretClient.Informer().GetIndexer(...
explode_data.jsonl/18883
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 624 }
[ 2830, 3393, 1949, 19773, 82, 1155, 353, 8840, 836, 8, 341, 16463, 3760, 2959, 1669, 12418, 74, 23, 82, 7121, 16374, 2959, 746, 741, 197, 20474, 2959, 1669, 80958, 40440, 388, 7121, 16997, 641, 34527, 4153, 5969, 3760, 2959, 11, 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, 1...
1
func TestSyncReplicaSetDormancy(t *testing.T) { // Setup a test server so we can lie about the current state of pods fakeHandler := utiltesting.FakeHandler{ StatusCode: 200, ResponseBody: "{}", SkipRequestFn: skipListerFunc, T: t, } testServer := httptest.NewServer(&fakeHandler) defer testS...
explode_data.jsonl/7972
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 872 }
[ 2830, 3393, 12154, 18327, 15317, 1649, 35, 493, 6572, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 264, 1273, 3538, 773, 582, 646, 10246, 911, 279, 1482, 1584, 315, 54587, 198, 1166, 726, 3050, 1669, 4094, 8840, 991, 726, 3050, 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 TestGossipStateProvider_TestStateMessages(t *testing.T) { t.Parallel() bootPeer, bootPort := newBootNode(0, newCommitter(), noopPeerIdentityAcceptor) defer bootPeer.shutdown() peer := newPeerNode(1, newCommitter(), noopPeerIdentityAcceptor, bootPort) defer peer.shutdown() naiveStateMsgPredicate := func(mes...
explode_data.jsonl/5645
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 701 }
[ 2830, 3393, 38, 41473, 1397, 5179, 32541, 1397, 15820, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 4619, 30888, 11, 10459, 7084, 1669, 501, 17919, 1955, 7, 15, 11, 501, 1092, 16126, 1507, 60829, 30888, 18558, 11654, 15349...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRecursiveNext(t *testing.T) { protest.AllowRecording(t) testcases := []nextTest{ {6, 7}, {7, 10}, {10, 11}, {11, 17}, } testseq("increment", contNext, testcases, "main.Increment", t) withTestProcess("increment", t, func(p *proc.Target, fixture protest.Fixture) { bp := setFunctionBreakpoint(p, t...
explode_data.jsonl/56287
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 479 }
[ 2830, 3393, 78542, 5847, 1155, 353, 8840, 836, 8, 341, 197, 776, 1944, 29081, 52856, 1155, 340, 18185, 23910, 1669, 3056, 3600, 2271, 515, 197, 197, 90, 21, 11, 220, 22, 1583, 197, 197, 90, 22, 11, 220, 16, 15, 1583, 197, 197, 90,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestArgon2idHashSaltValidValues(t *testing.T) { var err error var hash string datas := utils.SliceString(HashingPossibleSaltCharacters, 16) for _, salt := range datas { hash, err = HashPassword("password", salt, HashingAlgorithmArgon2id, 1, 8, 1, 32, 16) assert.NoError(t, err) assert.Equal(t, fmt.Spri...
explode_data.jsonl/40167
{ "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, 2735, 263, 17, 307, 6370, 47318, 4088, 6227, 1155, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 271, 2405, 5175, 914, 271, 2698, 19346, 1669, 12439, 95495, 703, 7, 6370, 287, 65222, 47318, 37489, 11, 220, 16, 21, 692, 2023, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWithClient(t *testing.T) { is := is.New(t) var calls int testClient := &http.Client{ Transport: roundTripperFunc(func(req *http.Request) (*http.Response, error) { calls++ resp := &http.Response{ Body: ioutil.NopCloser(strings.NewReader(`{"data":{"key":"value"}}`)), } return resp, nil }),...
explode_data.jsonl/53420
{ "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, 2354, 2959, 1155, 353, 8840, 836, 8, 341, 19907, 1669, 374, 7121, 1155, 340, 2405, 6738, 526, 198, 18185, 2959, 1669, 609, 1254, 11716, 515, 197, 197, 27560, 25, 4778, 21884, 6922, 9626, 18552, 6881, 353, 1254, 9659, 8, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestValidateHTTPMethod(t *testing.T) { type testCases struct { Value string ErrCount int } invalidCases := []testCases{ { Value: "incorrect", ErrCount: 1, }, { Value: "delete", ErrCount: 1, }, } for _, tc := range invalidCases { _, errors := validateHTTPMethod(tc.Value, "h...
explode_data.jsonl/78567
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 17926, 9230, 3523, 1155, 353, 8840, 836, 8, 341, 13158, 1273, 37302, 2036, 341, 197, 47399, 262, 914, 198, 197, 197, 7747, 2507, 526, 198, 197, 630, 197, 11808, 37302, 1669, 3056, 1944, 37302, 515, 197, 197, 515, 298, 4739...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPolylineSmoothen(t *testing.T) { test.T(t, (&Polyline{}).Smoothen(), MustParseSVG("")) test.T(t, (&Polyline{}).Add(0, 0).Add(10, 0).Smoothen(), MustParseSVG("M0 0L10 0")) test.T(t, (&Polyline{}).Add(0, 0).Add(5, 10).Add(10, 0).Add(5, -10).Smoothen(), MustParseSVG("M0 0C1.444444 5.111111 2.888889 10.22222 5 ...
explode_data.jsonl/42816
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 38164, 1056, 10673, 2624, 3391, 1155, 353, 8840, 836, 8, 341, 18185, 836, 1155, 11, 15899, 38164, 1056, 6257, 568, 10673, 2624, 3391, 1507, 15465, 14463, 64397, 73303, 18185, 836, 1155, 11, 15899, 38164, 1056, 6257, 568, 2212,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSwiftTestCase(t *testing.T) { reader := strings.NewReader(`import XCTest import SwiftFonts class FontSorterTests: XCTestCase { let sorter = FontSorter() func testCompareHyphenWithNoHyphen() { let fonts = ["Arial-ItalicMT", "ArialMT"] let expected = ["ArialMT", "Arial-ItalicMT"] ...
explode_data.jsonl/44409
{ "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, 55336, 16458, 1155, 353, 8840, 836, 8, 341, 61477, 1669, 9069, 68587, 5809, 474, 41240, 198, 474, 23670, 55369, 271, 1040, 9562, 10231, 261, 18200, 25, 62810, 1476, 262, 1077, 90452, 284, 9562, 10231, 261, 2822, 262, 2915, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestRPC_Relay(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode") } codec.UpgradeHeight = 7000 kb := getInMemoryKeybase() genBZ, _, validators, app := fiveValidatorsOneAppGenesis() _, _, cleanup := NewInMemoryTendermintNode(t, genBZ) // setup relay endpoint expectedRequest := `"jsonrpc...
explode_data.jsonl/44729
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1327 }
[ 2830, 3393, 29528, 2568, 6895, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 304, 2805, 3856, 1138, 197, 532, 43343, 66, 13, 43861, 3640, 284, 220, 22, 15, 15, 15, 271, 16463, 65, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestMulUnbalanced(t *testing.T) { defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(1)) x := rndNat(50000) y := rndNat(40) allocSize := allocBytes(func() { nat(nil).mul(x, y) }) inputSize := uint64(len(x)+len(y)) * _S if ratio := allocSize / uint64(inputSize); ratio > 10 { t.Errorf("multiplication uses too mu...
explode_data.jsonl/2184
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 59155, 1806, 58402, 1155, 353, 8840, 836, 8, 341, 16867, 15592, 1224, 1898, 2954, 9117, 6412, 89467, 1224, 1898, 2954, 9117, 6412, 7, 16, 1171, 10225, 1669, 37193, 65214, 7, 20, 15, 15, 15, 15, 340, 14522, 1669, 37193, 652...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInstallHgHooksQuoted(t *testing.T) { assert := assert.New(t) repo, client := helpers.CreateHgRepo(t, "hg-repo with a space") defer helpers.CleanupHgRepo(t, client) repo.InstallHooks("/tmp/config with a space.json", false) hgrc, err := ini.Load(filepath.Join(repo.Path, ".hg", "hgrc")) assert.Nil(err) ...
explode_data.jsonl/57195
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 24690, 39, 70, 67769, 2183, 9253, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 17200, 5368, 11, 2943, 1669, 30187, 7251, 39, 70, 25243, 1155, 11, 330, 66602, 5504, 5368, 448, 264, 3550, 1138, 16867, 301...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateCreate(t *testing.T) { defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)() namespace := "test" handler := NewPodResourceAllocation() pod := api.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "pod1", Namespace: namespace}, Sp...
explode_data.jsonl/16636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 901 }
[ 2830, 3393, 17926, 4021, 1155, 353, 8840, 836, 8, 341, 16867, 4565, 70, 266, 57824, 287, 4202, 13859, 42318, 16014, 2271, 1155, 11, 4094, 12753, 13275, 13859, 42318, 11, 4419, 5337, 17371, 23527, 18612, 59684, 11, 830, 8, 741, 56623, 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...
6
func TestStoreBySafeIndex(t *testing.T) { st, closer := makeStore() defer closer() _ , err := st.Set(schema.KeyValue{Key: []byte(`myFirstElementKey`), Value: []byte(`firstValue`)}) assert.NoError(t, err) _ , err = st.Set(schema.KeyValue{Key: []byte(`mySecondElementKey`), Value: []byte(`secondValue`)}) assert.NoE...
explode_data.jsonl/77973
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 663 }
[ 2830, 3393, 6093, 1359, 25663, 1552, 1155, 353, 8840, 836, 8, 341, 18388, 11, 12128, 1669, 1281, 6093, 741, 16867, 12128, 2822, 197, 62, 1154, 1848, 1669, 357, 4202, 42735, 9610, 1130, 90, 1592, 25, 3056, 3782, 5809, 2408, 5338, 1691, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEmoji(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.Client EnableCustomEmoji := *th.App.Config().ServiceSettings.EnableCustomEmoji defer func() { th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableCustomEmoji = EnableCustomEmoji }) }() th.App.Upda...
explode_data.jsonl/76084
{ "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, 1949, 92731, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 271, 197, 11084, 10268, 92731, 1669, 353, 339, 5105, 10753, 1005, 1860, 6086, 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 TestZonesListAllIntegrationFilterForNonexistentName(t *testing.T) { c := client() zones, err := c.ZonesListAll(ListFilter{ NameFilter: "foo", }) if err != nil { t.Error(err) } if len(zones) > 0 { t.Error("Expected ZonesListAll for zones named 'foo' to yield no results") } }
explode_data.jsonl/12118
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 116 }
[ 2830, 3393, 57, 3154, 852, 2403, 52464, 5632, 2461, 8121, 64085, 675, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2943, 741, 20832, 3154, 11, 1848, 1669, 272, 13476, 3154, 852, 2403, 10278, 5632, 515, 197, 21297, 5632, 25, 330, 7975, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAttributes_UpdateFromAttribute(t *testing.T) { testCases := []testCase{ // Ensure no changes to the span as there is no attributes map. { name: "UpdateNoAttributes", inputAttributes: map[string]pdata.AttributeValue{}, expectedAttributes: map[string]pdata.AttributeValue{}, }, ...
explode_data.jsonl/11510
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 666 }
[ 2830, 3393, 10516, 47393, 3830, 3907, 1155, 353, 8840, 836, 8, 1476, 18185, 37302, 1669, 3056, 66194, 515, 197, 197, 322, 29279, 902, 4344, 311, 279, 9390, 438, 1052, 374, 902, 8201, 2415, 624, 197, 197, 515, 298, 11609, 25, 2290, 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...
2
func TestJetStreamManagement_GetMsg(t *testing.T) { t.Run("1-node", func(t *testing.T) { withJSServer(t, testJetStreamManagement_GetMsg) }) t.Run("3-node", func(t *testing.T) { withJSCluster(t, "GET", 3, testJetStreamManagement_GetMsg) }) }
explode_data.jsonl/29163
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 103 }
[ 2830, 3393, 35641, 3027, 22237, 13614, 6611, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 16, 39054, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 46948, 41, 1220, 2836, 1155, 11, 1273, 35641, 3027, 22237, 13614, 6611, 340, 197, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterExtractFromDNF(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, b int, c int)") tests := []struct { exprStr string result string }{ ...
explode_data.jsonl/65462
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 994 }
[ 2830, 3393, 5632, 28959, 3830, 31264, 37, 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, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContainsElement(t *testing.T) { s := NewSet() e := "dummy" f := "empty" s.Add(e) if !s.Contains(e) || s.Contains(f) { t.Fail() } s.Add(f) if !s.Contains(e) || !s.Contains(f) { t.Fail() } }
explode_data.jsonl/16577
{ "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, 23805, 1691, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 1649, 741, 7727, 1669, 330, 31390, 698, 1166, 1669, 330, 3194, 1837, 1903, 1904, 2026, 340, 743, 753, 82, 11545, 2026, 8, 1369, 274, 11545, 955, 8, 341, 197, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestDownloader(t *testing.T) { if testing.Short() { return } file, err := Download(log.NewNopLogger(), "") if err != nil { t.Fatal(err) } if file == "" { t.Fatal("no DPL file") } defer os.RemoveAll(filepath.Dir(file)) if !strings.EqualFold("dpl.txt", filepath.Base(file)) { t.Errorf("unknown file...
explode_data.jsonl/68074
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 148 }
[ 2830, 3393, 92698, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 853, 198, 197, 630, 17661, 11, 1848, 1669, 8577, 12531, 7121, 45, 453, 7395, 1507, 14676, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 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...
5
func TestCreate(t *testing.T) { storage, _, fakeClient := newStorage(t) test := registrytest.New(t, fakeClient, storage.Etcd) ds := newValidDaemonSet() ds.ObjectMeta = api.ObjectMeta{} test.TestCreate( // valid ds, // invalid (invalid selector) &experimental.DaemonSet{ Spec: experimental.DaemonSetSpec{ ...
explode_data.jsonl/56656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 4021, 1155, 353, 8840, 836, 8, 341, 197, 16172, 11, 8358, 12418, 2959, 1669, 501, 5793, 1155, 340, 18185, 1669, 19424, 1944, 7121, 1155, 11, 12418, 2959, 11, 5819, 5142, 83, 4385, 340, 83336, 1669, 501, 4088, 89177, 1649, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckSMSGlobalConfigValues(t *testing.T) { t.Parallel() checkSMSGlobalConfigValues := GetConfig() err := checkSMSGlobalConfigValues.LoadConfig(ConfigTestFile) if err != nil { t.Errorf("Test failed. checkSMSGlobalConfigValues.LoadConfig: %s", err) } err = checkSMSGlobalConfigValues.CheckSMSGlobalConfig...
explode_data.jsonl/21899
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 469 }
[ 2830, 3393, 3973, 65565, 11646, 2648, 6227, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 25157, 65565, 11646, 2648, 6227, 1669, 2126, 2648, 741, 9859, 1669, 1779, 65565, 11646, 2648, 6227, 13969, 2648, 33687, 2271, 1703, 340, 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...
6
func TestStoreOrder(t *testing.T) { // In the function below, v2 depends on v3 and v4, v4 depends on v3, and v3 depends on store v5. // storeOrder did not handle this case correctly. c := testConfig(t) fun := c.Fun("entry", Bloc("entry", Valu("mem0", OpInitMem, types.TypeMem, 0, nil), Valu("a", OpAdd64, c.c...
explode_data.jsonl/3318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 680 }
[ 2830, 3393, 6093, 4431, 1155, 353, 8840, 836, 8, 341, 197, 322, 758, 279, 729, 3685, 11, 348, 17, 13798, 389, 348, 18, 323, 348, 19, 11, 348, 19, 13798, 389, 348, 18, 11, 323, 348, 18, 13798, 389, 3553, 348, 20, 624, 197, 322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFromError(t *testing.T) { t.Run("input general error", func(t *testing.T) { err := errors.New("general error") gst := FromError(err) assert.Equal(t, codes.Unknown, gst.Code()) assert.Contains(t, gst.Message(), "general") }) t.Run("input wrap error", func(t *testing.T) { err := pkgerr.Wrap(ecode.R...
explode_data.jsonl/58602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 680 }
[ 2830, 3393, 3830, 1454, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1355, 4586, 1465, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 9859, 1669, 5975, 7121, 445, 24595, 1465, 1138, 197, 3174, 267, 1669, 5542, 1454, 3964, 692, 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 TestIsContainerEntry(t *testing.T) { source := config.NewLogSource("", &config.LogsConfig{}) tailer := NewTailer(source, nil) var entry *sdjournal.JournalEntry entry = &sdjournal.JournalEntry{ Fields: map[string]string{ containerIDKey: "0123456789", }, } assert.True(t, tailer.isContainerEntry(entry)...
explode_data.jsonl/26854
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 3872, 4502, 5874, 1155, 353, 8840, 836, 8, 341, 47418, 1669, 2193, 7121, 2201, 3608, 19814, 609, 1676, 5247, 82, 2648, 37790, 3244, 38782, 1669, 1532, 51, 38782, 12437, 11, 2092, 692, 2405, 4343, 353, 13446, 42518, 3503, 493...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPullRequestDecorator_CommentQualityGate_CheckErrorOnSendRequest(t *testing.T) { wantError := errors.New("failure") mockConn := &mocks.MockConnection{ PostMock: func(endpoint string, content []byte, contentType string) (<-chan []byte, <-chan error) { chOut := make(chan []byte, 1) chErr := make(chan e...
explode_data.jsonl/5655
{ "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, 36068, 1900, 47951, 16946, 478, 33074, 42318, 28188, 1454, 1925, 11505, 1900, 1155, 353, 8840, 836, 8, 341, 50780, 1454, 1669, 5975, 7121, 445, 28939, 5130, 77333, 9701, 1669, 609, 16712, 82, 24664, 4526, 515, 197, 197, 4133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMWStatic(t *testing.T) { rankStr := strconv.Itoa(rand.Intn(100)); s := omg.New(); i := 1; s.Handle("/", func(ctx *omg.Context) (string, error) { sessionPlugin, _ := ctx.Plugin("session"); sessionInstance := sessionPlugin.(*Session); sessionValue, _ := sessionInstance.Get(); if i == 1 { sessionIn...
explode_data.jsonl/5050
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 440 }
[ 2830, 3393, 54173, 11690, 1155, 353, 8840, 836, 8, 341, 7000, 1180, 2580, 1669, 33317, 64109, 37595, 7371, 77, 7, 16, 15, 15, 1106, 1903, 1669, 7861, 70, 7121, 543, 8230, 1669, 220, 16, 280, 1903, 31421, 35460, 2915, 7502, 353, 316, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatchBody(t *testing.T) { cases := []struct { value string body string matches bool }{ {"foo bar", "foo bar\n", true}, {"foo", "foo bar\n", true}, {"f[o]+", "foo\n", true}, {`"foo"`, `{"foo":"bar"}\n`, true}, {`{"foo":"bar"}`, `{"foo":"bar"}\n`, true}, {`{"foo":"foo"}`, `{"foo":"bar"}\...
explode_data.jsonl/9203
{ "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, 8331, 5444, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 16309, 256, 914, 198, 197, 35402, 262, 914, 198, 197, 2109, 9118, 1807, 198, 197, 59403, 197, 197, 4913, 7975, 3619, 497, 330, 7975, 3619, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPutChaincode(t *testing.T) { ccname := "" ccver := "1.0" ccpath := "github.com/hyperledger/fabric/examples/chaincode/go/example02/cmd" ccinfoFs := &mockCCInfoFSStorageMgrImpl{CCMap: map[string]CCPackage{}} NewCCInfoCache(ccinfoFs) //错误案例1:ccname为空 //创建要放置的DEP规范 _, err := getDepSpec(ccname, ccpath, ccve...
explode_data.jsonl/10594
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 454 }
[ 2830, 3393, 19103, 18837, 1851, 1155, 353, 8840, 836, 8, 341, 63517, 606, 1669, 8389, 63517, 423, 1669, 330, 16, 13, 15, 698, 63517, 2343, 1669, 330, 5204, 905, 7530, 39252, 50704, 6663, 28897, 67020, 14, 8819, 1851, 25525, 65182, 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 TestBootstrapClusterRoles(t *testing.T) { roles := bootstrappolicy.GetBootstrapClusterRoles() list := &api.List{} for i := range roles { list.Items = append(list.Items, &roles[i]) } testObjects(t, list, "bootstrap_cluster_roles.yaml") }
explode_data.jsonl/10200
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 45511, 28678, 25116, 1155, 353, 8840, 836, 8, 341, 197, 14643, 1669, 10459, 495, 676, 8018, 2234, 45511, 28678, 25116, 741, 14440, 1669, 609, 2068, 5814, 16094, 2023, 600, 1669, 2088, 12783, 341, 197, 14440, 12054, 284, 8737, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseMonthYearToDate(t *testing.T) { type args struct { s string } t1 := args{"January 2006"} t2 := args{"December 2010"} t3 := args{"March 2019"} tests := []struct { name string args args want time.Time }{ {"string March 2020 to datetime", t1, time.Date(2006, time.January, 01, 00, 00, 00, ...
explode_data.jsonl/32663
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 14463, 11318, 9490, 76054, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 1903, 914, 198, 197, 630, 3244, 16, 1669, 2827, 4913, 32227, 220, 17, 15, 15, 21, 16707, 3244, 17, 1669, 2827, 4913, 32146, 220, 17, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestShow(t *testing.T) { node := &ast.ShowStmt{} tps := []ast.ShowStmtType{ ast.ShowEngines, ast.ShowDatabases, ast.ShowTables, ast.ShowTableStatus, ast.ShowColumns, ast.ShowWarnings, ast.ShowCharset, ast.ShowVariables, ast.ShowStatus, ast.ShowCollation, ast.ShowCreateTable, ast.ShowCreat...
explode_data.jsonl/25784
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 7812, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 609, 559, 9060, 31063, 16094, 73423, 82, 1669, 3056, 559, 9060, 31063, 929, 515, 197, 88836, 9060, 4106, 1543, 345, 197, 88836, 9060, 35, 23822, 345, 197, 88836, 9060, 21670, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteErrorsWithLabels(t *testing.T) { clientOpts := options.Client().SetRetryWrites(false).SetWriteConcern(mtest.MajorityWc). SetReadConcern(mtest.MajorityRc) mtOpts := mtest.NewOptions().ClientOptions(clientOpts).MinServerVersion("4.0").Topologies(mtest.ReplicaSet). CreateClient(false) mt := mtest.New(...
explode_data.jsonl/8328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1155 }
[ 2830, 3393, 7985, 13877, 2354, 23674, 1155, 353, 8840, 836, 8, 341, 25291, 43451, 1669, 2606, 11716, 1005, 1649, 51560, 93638, 3576, 568, 1649, 7985, 62142, 1255, 1944, 1321, 3035, 487, 54, 66, 4292, 197, 22212, 4418, 62142, 1255, 1944, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExportCreatesFileProperly(t *testing.T) { tempDir, err := setupTempDir() if err != nil { t.Fatal(err) } defer os.RemoveAll(tempDir) ex := Exporter{ Source: "testdata/examplebun", Destination: filepath.Join(tempDir, "random-directory", "examplebun-whatev.tgz"), Thin: true, Logs: ...
explode_data.jsonl/27760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 421 }
[ 2830, 3393, 16894, 54868, 1703, 1336, 712, 398, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 11, 1848, 1669, 6505, 12151, 6184, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2643, 84427, 9758, 6184, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddConjDistributiveInt64(t *testing.T) { f := func(x, y *Int64) bool { // t.Logf("x = %v, y = %v", x, y) l, r := new(Int64), new(Int64) l.Add(x, y) l.Conj(l) r.Add(r.Conj(x), new(Int64).Conj(y)) return l.Equals(r) } if err := quick.Check(f, nil); err != nil { t.Error(err) } }
explode_data.jsonl/29673
{ "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, 2212, 1109, 73, 35, 4789, 6704, 1072, 21, 19, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 2075, 11, 379, 353, 1072, 21, 19, 8, 1807, 341, 197, 197, 322, 259, 98954, 445, 87, 284, 1018, 85, 11, 379, 284, 1018, 85,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLicenseService_ProtectCode(t *testing.T) { services := InitMockEnvironment(t) ls, err := NewLicenseService(services.conf) assert.NoError(t, err) services.license.EXPECT().ProtectCode().Return(nil) err = ls.ProtectCode() assert.NoError(t, err) }
explode_data.jsonl/46595
{ "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, 9827, 1860, 1088, 4640, 439, 2078, 1155, 353, 8840, 836, 8, 341, 1903, 2161, 1669, 15690, 11571, 12723, 1155, 340, 197, 4730, 11, 1848, 1669, 1532, 9827, 1860, 1141, 2161, 13937, 340, 6948, 35699, 1155, 11, 1848, 340, 1903, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMatchedStyle(t *testing.T) { t.Parallel() tests := []struct { sel string by QueryOption }{ {`//*[@id="input1"]`, BySearch}, {`body > input[type="number"]:nth-child(1)`, ByQueryAll}, {`body > input[type="number"]:nth-child(1)`, ByQuery}, {`#input1`, ByID}, {`document.querySelector('#input1')`...
explode_data.jsonl/59488
{ "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, 8331, 291, 2323, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 78216, 1669, 3056, 1235, 341, 197, 1903, 301, 914, 198, 197, 197, 1694, 220, 11361, 5341, 198, 197, 59403, 197, 197, 90, 63, 37318, 307, 428, 1355, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateServerFiles_InvalidInput(t *testing.T) { var tests = []struct { name string filesInput []models.File }{ {"Invalid File info, missing both", []models.File{ models.File{ "", "", }, }, }, {"Invalid File info, missing source", []models.File{ models.File{ ...
explode_data.jsonl/71213
{ "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, 17926, 5475, 10809, 62, 7928, 2505, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 74075, 2505, 3056, 6507, 8576, 198, 197, 59403, 197, 197, 4913, 7928, 2887, 3546, 11, 7402...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCastType(t *testing.T) { log.SetLevel(log.DebugLevel) typedef := "object" res := castType(typedef) if res != "dbus.ObjectPath" { t.Fatal(fmt.Sprintf("%s != %s", typedef, res)) } typedef = "array{objects, properties}" res = castType(typedef) if res != "[]dbus.ObjectPath, string" { t.Fatal(fmt.S...
explode_data.jsonl/68476
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 156 }
[ 2830, 3393, 18714, 929, 1155, 353, 8840, 836, 8, 1476, 6725, 4202, 4449, 12531, 20345, 4449, 692, 31199, 1669, 330, 1700, 698, 10202, 1669, 6311, 929, 66783, 4219, 692, 743, 592, 961, 330, 78986, 8348, 1820, 1, 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...
3
func TestDocstore_PutEntity(t *testing.T) { cases := []struct { name string dbFile string conn string cid string put *store.AnchorEntity }{ {"normal", testdb2, conn2, cid1, ae1}, } for _, c := range cases { c := c t.Run(c.name, func(t *testing.T) { docs := store.NewDocstore(c.conn) ...
explode_data.jsonl/61309
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 9550, 4314, 1088, 332, 3030, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 256, 914, 198, 197, 20939, 1703, 914, 198, 197, 32917, 256, 914, 198, 197, 1444, 307, 262, 914, 198, 197, 45062, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAsContentType(t *testing.T) { r, err := Prepare(mocks.NewRequest(), AsContentType("application/text")) if err != nil { fmt.Printf("ERROR: %v", err) } if r.Header.Get(headerContentType) != "application/text" { t.Fatalf("autorest: AsContentType failed to add header (%s=%s)", headerContentType, r.He...
explode_data.jsonl/20946
{ "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, 2121, 29504, 1155, 353, 8840, 836, 8, 972, 7000, 11, 1848, 1669, 31166, 1255, 25183, 75274, 1507, 1634, 29504, 445, 5132, 36271, 26043, 743, 1848, 961, 2092, 972, 197, 11009, 19367, 445, 3682, 25, 1018, 85, 497, 1848, 1218, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_Hoverfly_SetMiddleware_WillErrorIfGivenBadRemote(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) err := unit.SetMiddleware("", "", "[]somemadeupwebsite*&*^&$%^") Expect(err).ToNot(BeNil()) Expect(unit.Cfg.Middleware.Binary).To(Equal("")) script, _ := unit.C...
explode_data.jsonl/45387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 2039, 1975, 21642, 14812, 24684, 2763, 483, 1454, 2679, 22043, 17082, 24703, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 9859, 1669, 4982, 4202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_buildRoutesAllowlist(t *testing.T) { type expectedAllowedRoute struct { method string regexString string } testCases := []struct { name string skipAuthRegex []string skipAuthRoutes []string expectedRoutes []expectedAllowedRoute shouldError bool }{ { name: "...
explode_data.jsonl/36424
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1798 }
[ 2830, 3393, 20801, 26653, 18605, 1607, 1155, 353, 8840, 836, 8, 341, 13158, 3601, 35382, 4899, 2036, 341, 197, 42257, 414, 914, 198, 197, 197, 26387, 703, 914, 198, 197, 630, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 1843, 914, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetContainerID(t *testing.T) { fakeDocker := &FakeDockerClient{} fakeDocker.ContainerList = []docker.APIContainers{ { ID: "foobar", Names: []string{"/k8s_foo_qux_ns_1234_42"}, }, { ID: "barbar", Names: []string{"/k8s_bar_qux_ns_2565_42"}, }, } fakeDocker.Container = &docker.Contai...
explode_data.jsonl/11442
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 430 }
[ 2830, 3393, 1949, 4502, 915, 1155, 353, 8840, 836, 8, 341, 1166, 726, 35, 13659, 1669, 609, 52317, 35, 13659, 2959, 16094, 1166, 726, 35, 13659, 33672, 852, 284, 3056, 28648, 24922, 74632, 515, 197, 197, 515, 298, 29580, 25, 262, 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...
7
func TestAttrsUpdateLDErrorContext(t *testing.T) { c := setupTest([]string{"update", "attrs", "--host", "orion-ld", "--id", "urn:ngsi-ld:Product:010", "--data", "{\"specialOffer\":{\"value\": true}}", "--context", "[\"http://context\""}) err := attrsUpdate(c, c.Ngsi, c.Client) if assert.Error(t, err) { ngsiErr :...
explode_data.jsonl/33075
{ "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, 53671, 4289, 43, 1150, 1275, 1972, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 6505, 2271, 10556, 917, 4913, 2386, 497, 330, 20468, 497, 14482, 3790, 497, 330, 269, 290, 12, 507, 497, 14482, 307, 497, 330, 399, 25, 968, 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 Test_StoreRepo_FindAll(t *testing.T) { s := sample.NewStore() page := 1 limit := 10 sort := "created_at" testCases := []struct { name string page int limit int sort string expectedErr bool prepare func(mock sqlmock.Sqlmock) }{ { name: "failure_get_all_...
explode_data.jsonl/20619
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1358 }
[ 2830, 3393, 92684, 25243, 95245, 2403, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6077, 7121, 6093, 2822, 35272, 1669, 220, 16, 198, 8810, 2353, 1669, 220, 16, 15, 198, 39487, 1669, 330, 7120, 3752, 1837, 18185, 37302, 1669, 3056, 1235, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnonymousAccess(t *testing.T) { assert := assert.New(t) { // anonymous to access public project ctl := &projecttesting.Controller{} mock.OnAnything(ctl, "Get").Return(public, nil) resource := NewNamespace(public.ProjectID).Resource(rbac.ResourceRepository) evaluator := NewEvaluator(ctl, NewBuild...
explode_data.jsonl/75360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 274 }
[ 2830, 3393, 32684, 6054, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 197, 515, 197, 197, 322, 22151, 311, 2615, 584, 2390, 198, 197, 197, 12373, 1669, 609, 4987, 8840, 29112, 16094, 197, 77333, 8071, 77303, 7, 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...
1
func TestNode_ParseNode(t *testing.T) { _, err := ParseNode("xxx:123") assert.Error(t, err) _, err = ParseNode("1.1.1.1123") assert.Error(t, err) _, err = ParseNode("1.1.1.1:-1") assert.Error(t, err) _, err = ParseNode("1.1.1.1:65536") assert.Error(t, err) node, err := ParseNode("1.1.1.1:65535") assert.No...
explode_data.jsonl/48085
{ "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, 1955, 77337, 1955, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 14775, 1955, 445, 24048, 25, 16, 17, 18, 1138, 6948, 6141, 1155, 11, 1848, 692, 197, 6878, 1848, 284, 14775, 1955, 445, 16, 13, 16, 13, 16, 13, 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 TestTimeMicrosLogicalTypeEncode(t *testing.T) { schema := `{"type": "long", "logicalType": "time-micros"}` testBinaryDecodeFail(t, schema, []byte(""), "short buffer") testBinaryEncodeFail(t, schema, "test", "cannot transform to binary time-micros, expected time.Duration") testBinaryCodecPass(t, schema, 6690402...
explode_data.jsonl/12009
{ "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, 1462, 34609, 82, 64312, 929, 32535, 1155, 353, 8840, 836, 8, 341, 1903, 3416, 1669, 1565, 4913, 1313, 788, 330, 4825, 497, 330, 30256, 929, 788, 330, 1678, 1448, 2754, 82, 9207, 3989, 18185, 21338, 32564, 19524, 1155, 11, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMemberRollWithFailedSubjectAccessReview(t *testing.T) { validator, _, tracker := createMemberRollValidatorTestFixture(smcp) tracker.AddReactor("create", "subjectaccessreviews", createSubjectAccessReviewReactor(false, false, nil)) roll := newMemberRoll("default", "istio-system", "app-namespace") response :...
explode_data.jsonl/70266
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 9366, 32355, 2354, 9408, 13019, 6054, 19432, 1155, 353, 8840, 836, 8, 341, 197, 16112, 11, 8358, 28331, 1669, 1855, 9366, 32355, 14256, 69356, 55280, 4672, 340, 25583, 9683, 1904, 693, 5621, 445, 3182, 497, 330, 11501, 5211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCancelMultipleSpotOrdersOverCurrencyLimits(t *testing.T) { TestSetRealOrderDefaults(t) request := okgroup.CancelMultipleSpotOrdersRequest{ InstrumentID: spotCurrency, OrderIDs: []int64{1, 2, 3, 4, 5}, } _, err := o.CancelMultipleSpotOrders(request) if err.Error() != "maximum 4 order cancellations...
explode_data.jsonl/30162
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 9269, 32089, 47049, 24898, 1918, 26321, 94588, 1155, 353, 8840, 836, 8, 341, 73866, 1649, 12768, 4431, 16273, 1155, 340, 23555, 1669, 5394, 4074, 36491, 32089, 47049, 24898, 1900, 515, 197, 197, 56324, 915, 25, 7702, 26321, 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 TestSSLRequireWithRootCert(t *testing.T) { maybeSkipSSLTests(t) // Environment sanity check: should fail without SSL checkSSLSetup(t, "sslmode=disable user=pqgossltest") bogusRootCertPath := filepath.Join(os.Getenv("PQSSLCERTTEST_PATH"), "bogus_root.crt") bogusRootCert := "sslrootcert=" + bogusRootCertPath +...
explode_data.jsonl/1384
{ "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, 22594, 17959, 2354, 8439, 36934, 1155, 353, 8840, 836, 8, 341, 2109, 49791, 35134, 22594, 18200, 1155, 340, 197, 322, 11586, 46842, 1779, 25, 1265, 3690, 2041, 25316, 198, 25157, 22594, 21821, 1155, 11, 330, 24635, 8516, 28, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_RenameTable_Migration(t *testing.T) { argsss := []string{"add", "rt", "old_test123", "new_test123"} fileName, mm, _ := generateMigration(argsss) expectedString := `{"id":"` + getID(fileName) + `","up":{"renameTable":[{"oldTableName":"old_test123","newTableName":"new_test123"}]},"down":{"renameTable":[{"old...
explode_data.jsonl/22635
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 2568, 1840, 2556, 1245, 5033, 1155, 353, 8840, 836, 8, 341, 47903, 84160, 1669, 3056, 917, 4913, 718, 497, 330, 3342, 497, 330, 813, 4452, 16, 17, 18, 497, 330, 931, 4452, 16, 17, 18, 16707, 17661, 675, 11, 9465, 11, 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...
1
func TestSendRequestResponseNotFound(t *testing.T) { // Handler returns 404 page not found server := httptest.NewServer(http.NotFoundHandler()) defer server.Close() status_code, body, err := sendRequest("POST", server.URL, "token", nil) assert.Equal(t, 404, status_code) assert.Contains(t, string(body), "page not...
explode_data.jsonl/32246
{ "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, 11505, 1900, 2582, 10372, 1155, 353, 8840, 836, 8, 341, 197, 322, 19954, 4675, 220, 19, 15, 19, 2150, 537, 1730, 198, 41057, 1669, 54320, 70334, 7121, 5475, 19886, 67255, 3050, 2398, 16867, 3538, 10421, 2822, 23847, 4136, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSuspendJobJob(t *testing.T) { responsecommand := v1alpha1.Command{} responsejob := v1alpha1batch.Job{} handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if strings.HasSuffix(r.URL.Path, "command") { w.Header().Set("Content-Type", "application/json") val, err := json.Marshal...
explode_data.jsonl/1854
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 432 }
[ 2830, 3393, 50, 12758, 12245, 12245, 1155, 353, 8840, 836, 8, 341, 21735, 5631, 1669, 348, 16, 7141, 16, 12714, 16094, 21735, 8799, 1669, 348, 16, 7141, 16, 14049, 45293, 31483, 53326, 1669, 1758, 89164, 18552, 3622, 1758, 37508, 11, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGoldenWeights(t *testing.T) { gllGoldenTests, err := filepath.Glob("testdata/wiki_*.gob.gz") if err != nil { t.Fatal(err) } for _, goldenPath := range gllGoldenTests { golden := &GoldenTest{} if err := golden.DecodeFromFile(goldenPath); err != nil { t.Fatal(err) } for _, goldenCase := range ...
explode_data.jsonl/30979
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 412 }
[ 2830, 3393, 59790, 55630, 1155, 353, 8840, 836, 8, 341, 3174, 654, 59790, 18200, 11, 1848, 1669, 26054, 1224, 1684, 445, 92425, 25502, 62, 19922, 70, 674, 20963, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestVoteReviser(t *testing.T) { r := require.New(t) // make sure the prefix stays constant, they affect the key to store objects to DB r.Equal(byte(0), _const) r.Equal(byte(1), _bucket) r.Equal(byte(2), _voterIndex) r.Equal(byte(3), _candIndex) ctrl := gomock.NewController(t) defer ctrl.Finish() sm := t...
explode_data.jsonl/17376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1182 }
[ 2830, 3393, 41412, 693, 2682, 261, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 692, 197, 322, 1281, 2704, 279, 9252, 26558, 6783, 11, 807, 7802, 279, 1376, 311, 3553, 6171, 311, 5952, 198, 7000, 12808, 19738, 7, 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...
6
func Test_ResetPassword(t *testing.T) { tests := []struct { name string prep func(*testSetup) password string passwordConfirm string jwt string userId string wantResCode int }{ { name: "should return 400 when password not specified", ...
explode_data.jsonl/32965
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1864 }
[ 2830, 3393, 67771, 4876, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 40346, 79, 310, 2915, 4071, 1944, 21821, 340, 197, 58199, 286, 914, 198, 197, 58199, 16728, 914, 198, 197, 12428, 930...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGet(t *testing.T) { const case1_empty = "/" const case2_set_header = "/set_header" ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // check method is GET before going to check other features if r.Method != GET { t.Errorf("Expected method %q; got %q", GET, r.Me...
explode_data.jsonl/25463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 391 }
[ 2830, 3393, 1949, 1155, 353, 8840, 836, 8, 341, 4777, 1142, 16, 15124, 284, 80455, 4777, 1142, 17, 2602, 8757, 284, 3521, 746, 8757, 698, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestPodNodeConstraintsResources(t *testing.T) { ns := metav1.NamespaceDefault testconfigs := []struct { config *podnodeconstraints.PodNodeConstraintsConfig userinfo user.Info reviewResponse *authorizationapi.SubjectAccessReviewResponse }{ { config: testConfig(), userinfo: ...
explode_data.jsonl/37022
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1603 }
[ 2830, 3393, 23527, 1955, 12925, 11277, 1155, 353, 8840, 836, 8, 341, 84041, 1669, 77520, 16, 46011, 3675, 198, 18185, 53978, 1669, 3056, 1235, 341, 197, 25873, 260, 353, 39073, 3509, 65312, 88823, 1955, 12925, 2648, 198, 197, 19060, 2733,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInactiveNodes(t *testing.T) { opts := NewOptions() opts.Logger = newTestLogger(t) opts.InactiveProducerTimeout = 200 * time.Millisecond tcpAddr, httpAddr, nsqlookupd := mustStartLookupd(opts) defer nsqlookupd.Exit() lookupdHTTPAddrs := []string{fmt.Sprintf("%s", httpAddr)} topicName := "inactive_nodes...
explode_data.jsonl/12602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 72214, 12288, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 1532, 3798, 741, 64734, 12750, 284, 501, 2271, 7395, 1155, 340, 64734, 5337, 3028, 45008, 7636, 284, 220, 17, 15, 15, 353, 882, 71482, 198, 3244, 4672, 13986, 11, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetVersionsGithub(t *testing.T) { // Ensure a clean environment. tests := []struct { Name string Path string ResponseBody string ExpectedErr string ExpectedVer string }{ { "RC releases are skipped", "/no_rc", `[ { "url": "https://api.github.com/repos/dapr/dapr/r...
explode_data.jsonl/11967
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1213 }
[ 2830, 3393, 1949, 69015, 78717, 1155, 353, 8840, 836, 8, 341, 197, 322, 29279, 264, 4240, 4573, 382, 78216, 1669, 3056, 1235, 341, 197, 21297, 260, 914, 198, 197, 69640, 260, 914, 198, 197, 197, 29637, 914, 198, 197, 197, 18896, 7747,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMuxRedirectLeadingSlashes(t *testing.T) { paths := []string{"//foo.txt", "///foo.txt", "/../../foo.txt"} for _, path := range paths { req, err := ReadRequest(bufio.NewReader(strings.NewReader("GET " + path + " HTTP/1.1\r\nHost: test\r\n\r\n"))) if err != nil { t.Errorf("%s", err) } mux := NewServe...
explode_data.jsonl/22395
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 44, 2200, 17725, 69750, 7442, 14051, 1155, 353, 8840, 836, 8, 341, 197, 21623, 1669, 3056, 917, 4913, 322, 7975, 3909, 497, 330, 2575, 7975, 3909, 497, 3521, 2748, 7975, 3909, 16707, 2023, 8358, 1815, 1669, 2088, 12716, 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...
5
func TestVTGateExecuteWithKeyspace(t *testing.T) { createSandbox(KsTestUnsharded) hcVTGateTest.Reset() hcVTGateTest.AddTestTablet("aa", "1.1.1.1", 1001, KsTestUnsharded, "0", topodatapb.TabletType_MASTER, true, 1, nil) qr, err := rpcVTGate.Execute(context.Background(), "select id from none", nil, KsTestUnshar...
explode_data.jsonl/7830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 386 }
[ 2830, 3393, 20457, 42318, 17174, 2354, 8850, 1306, 1155, 353, 8840, 836, 8, 341, 39263, 50, 31536, 16738, 82, 2271, 1806, 927, 20958, 340, 9598, 66, 20457, 42318, 2271, 36660, 741, 9598, 66, 20457, 42318, 2271, 1904, 2271, 2556, 83, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPriorityQueue_UpdateNominatedPodForNode(t *testing.T) { objs := []runtime.Object{medPriorityPodInfo.Pod, unschedulablePodInfo.Pod, highPriorityPodInfo.Pod} q := NewTestQueueWithObjects(context.Background(), newDefaultQueueSort(), objs) if err := q.Add(medPriorityPodInfo.Pod); err != nil { t.Errorf("add fa...
explode_data.jsonl/68194
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1255 }
[ 2830, 3393, 20555, 7554, 47393, 45, 49515, 23527, 2461, 1955, 1155, 353, 8840, 836, 8, 341, 22671, 82, 1669, 3056, 22255, 8348, 90, 2061, 20555, 23527, 1731, 88823, 11, 6975, 2397, 360, 480, 23527, 1731, 88823, 11, 1550, 20555, 23527, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeploymentTransform(t *testing.T) { for _, tt := range updateDeploymentImageTests { t.Run(tt.name, func(t *testing.T) { runDeploymentTransformTest(t, &tt) }) } }
explode_data.jsonl/17099
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 73 }
[ 2830, 3393, 75286, 8963, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 2647, 75286, 1906, 18200, 341, 197, 3244, 16708, 47152, 2644, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 56742, 75286, 8963, 2271, 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
func TestDeviceCodeReturnsErrorIfEmptyDeviceCode(t *testing.T) { sender := mocks.NewSender() body := mocks.NewBody("") sender.AppendResponse(mocks.NewResponseWithBodyAndStatus(body, http.StatusOK, "OK")) _, err := InitiateDeviceAuth(sender, TestOAuthConfig, TestClientID, TestResource) if err != ErrDeviceCodeEmpty...
explode_data.jsonl/27500
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 6985, 2078, 16446, 1454, 2679, 3522, 6985, 2078, 1155, 353, 8840, 836, 8, 341, 1903, 1659, 1669, 68909, 7121, 20381, 741, 35402, 1669, 68909, 7121, 5444, 31764, 1903, 1659, 8982, 2582, 1255, 25183, 7121, 2582, 2354, 5444, 3036...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRealClock(t *testing.T) { c := Clock{} n := c.Now() now := time.Now() diff := now.Sub(n) tolerance := time.Millisecond if diff > tolerance { t.Fatalf("Got time %v, want %v to within %v tolerance. Diff was %v.", n, now, tolerance, diff) } }
explode_data.jsonl/25153
{ "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, 12768, 26104, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 26142, 16094, 9038, 1669, 272, 13244, 741, 80922, 1669, 882, 13244, 741, 80564, 1669, 1431, 12391, 1445, 340, 3244, 31661, 1669, 882, 71482, 198, 743, 3638, 861, 24098, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlagNameCompletionInGo(t *testing.T) { rootCmd := &Command{ Use: "root", Run: emptyRun, } childCmd := &Command{ Use: "childCmd", Run: emptyRun, } rootCmd.AddCommand(childCmd) rootCmd.Flags().IntP("first", "f", -1, "first flag") rootCmd.PersistentFlags().BoolP("second", "s", false, "second flag"...
explode_data.jsonl/43740
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 765 }
[ 2830, 3393, 12135, 675, 33190, 641, 10850, 1155, 353, 8840, 836, 8, 341, 33698, 15613, 1669, 609, 4062, 515, 197, 95023, 25, 330, 2888, 756, 197, 85952, 25, 4287, 6727, 345, 197, 532, 58391, 15613, 1669, 609, 4062, 515, 197, 95023, 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...
9
func TestTaskRunWithSpecDescribe_custom_timeout(t *testing.T) { trs := []*v1alpha1.TaskRun{ tb.TaskRun("tr-custom-timeout", tb.TaskRunNamespace("ns"), tb.TaskRunSpec(tb.TaskRunTimeout(time.Minute)), ), } cs, _ := test.SeedTestData(t, pipelinetest.Data{ TaskRuns: trs, Namespaces: []*corev1.Namespace{ {...
explode_data.jsonl/77401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 447 }
[ 2830, 3393, 6262, 51918, 8327, 74785, 15875, 20537, 1155, 353, 8840, 836, 8, 341, 25583, 82, 1669, 29838, 85, 16, 7141, 16, 28258, 6727, 515, 197, 62842, 28258, 6727, 445, 376, 36898, 7246, 411, 497, 16363, 28258, 6727, 22699, 445, 4412...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArg(t *testing.T) { b := newBuilderWithMockBackend() sb := newDispatchRequest(b, '`', nil, newBuildArgs(make(map[string]*string)), newStagesBuildResults()) argName := "foo" argVal := "bar" cmd := &instructions.ArgCommand{Key: argName, Value: &argVal} err := dispatch(sb, cmd) require.NoError(t, err) e...
explode_data.jsonl/34877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 2735, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 501, 3297, 2354, 11571, 29699, 741, 24842, 1669, 501, 11283, 1900, 1883, 11, 55995, 516, 2092, 11, 501, 11066, 4117, 36944, 9147, 14032, 8465, 917, 5731, 501, 623, 1134, 11066,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRateSetter_ErrorHandling(t *testing.T) { localID := identity.GenerateLocalIdentity() localNode := identity.New(localID.PublicKey()) tangle := newTestTangle(Identity(localID), RateSetterConfig(testRateSetterParams)) defer tangle.Shutdown() rateSetter := NewRateSetter(tangle) defer rateSetter.Shutdown() ...
explode_data.jsonl/39584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 349 }
[ 2830, 3393, 11564, 44294, 28651, 38606, 1155, 353, 8840, 836, 8, 341, 8854, 915, 1669, 9569, 57582, 7319, 18558, 741, 8854, 1955, 1669, 9569, 7121, 18082, 915, 49139, 1592, 12367, 3244, 4044, 1669, 501, 2271, 51, 4044, 7, 18558, 18082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandlerErrors(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() tests := []struct { desc string format tchannel.Format headers []byte wantHeaders map[string]string newResponseWriter func(inboundCallResponse, tchannel.Format, header...
explode_data.jsonl/53837
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1907 }
[ 2830, 3393, 3050, 13877, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 2822, 78216, 1669, 3056, 1235, 341, 197, 41653, 1060, 914, 198, 197, 59416, 310, 259, 1011...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApp_CreateModifyDeleteCDP(t *testing.T) { // Setup mapp, keeper := setUpMockAppWithoutGenesis() genAccs, addrs, _, privKeys := mock.CreateGenAccounts(1, cs(c("xrp", 100))) testAddr := addrs[0] testPrivKey := privKeys[0] mock.SetGenesis(mapp, genAccs) // setup pricefeed, TODO can this be shortened a bit?...
explode_data.jsonl/78112
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 723 }
[ 2830, 3393, 2164, 34325, 44427, 6435, 6484, 47, 1155, 353, 8840, 836, 8, 341, 197, 322, 18626, 198, 2109, 676, 11, 53416, 1669, 18620, 11571, 2164, 26040, 84652, 741, 82281, 14603, 82, 11, 912, 5428, 11, 8358, 6095, 8850, 1669, 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...
1