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 TestImportImportRole(t *testing.T) { th := Setup(t) defer th.TearDown() // Try importing an invalid role in dryRun mode. rid1 := model.NewId() data := RoleImportData{ Name: &rid1, } err := th.App.importRole(&data, true, false) require.NotNil(t, err, "Should have failed to import.") _, err = th.App.Sr...
explode_data.jsonl/67135
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1094 }
[ 2830, 3393, 11511, 11511, 9030, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 197, 322, 9735, 49895, 458, 8318, 3476, 304, 9058, 6727, 3856, 624, 197, 1869, 16, 1669, 1614, 7121, 764, 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 TestSnapgeneGenbankRegression(t *testing.T) { snapgene := Read("../../data/puc19_snapgene.gb") if snapgene.Sequence == "" { t.Errorf("Parsing snapgene returned an empty string") } }
explode_data.jsonl/74812
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 75 }
[ 2830, 3393, 61871, 42371, 9967, 17033, 45200, 1155, 353, 8840, 836, 8, 341, 1903, 6861, 42371, 1669, 4457, 36800, 691, 4322, 1754, 16, 24, 74175, 42371, 77262, 5130, 743, 10658, 42371, 63537, 621, 1591, 341, 197, 3244, 13080, 445, 68839, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEngine_DeleteSeries(t *testing.T) { for _, index := range tsdb.RegisteredIndexes() { t.Run(index, func(t *testing.T) { // Create a few points. p1 := MustParsePointString("cpu,host=A value=1.1 1000000000") p2 := MustParsePointString("cpu,host=B value=1.2 2000000000") p3 := MustParsePointString("c...
explode_data.jsonl/28090
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 632 }
[ 2830, 3393, 4571, 57418, 25544, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1922, 1669, 2088, 10591, 1999, 19983, 291, 62229, 368, 341, 197, 3244, 16708, 7195, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 197, 322, 4230, 264, 2421, 3501...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewDefaultManifest(t *testing.T) { manifest := newDefaultManifest() assert.Equal(t, "Go", manifest.Template.Format) assert.Equal(t, "snake_case", manifest.Output.FileNaming.Style) assert.Equal(t, "service.tmpl", manifest.TemplateFiles["service"].FilePath) assert.Equal(t, "sub_service.tmpl", manifest.Temp...
explode_data.jsonl/48936
{ "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, 3564, 3675, 38495, 1155, 353, 8840, 836, 8, 341, 197, 42315, 1669, 501, 3675, 38495, 2822, 6948, 12808, 1155, 11, 330, 10850, 497, 14455, 52530, 9978, 340, 6948, 12808, 1155, 11, 330, 72139, 19096, 497, 14455, 34246, 8576, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestServiceCreateInvalidDataJSON(t *testing.T) { tempDir, err := ioutil.TempDir("", "kn-file") defer os.RemoveAll(tempDir) assert.NilError(t, err) tempFile := filepath.Join(tempDir, "invalid.json") // Double curly bracket at the beginning of file invalidData := strings.Replace(serviceJSON, "{\n", "{{\n", 1)...
explode_data.jsonl/42463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 510 }
[ 2830, 3393, 1860, 4021, 7928, 1043, 5370, 1155, 353, 8840, 836, 8, 341, 16280, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 19095, 14203, 1138, 16867, 2643, 84427, 9758, 6184, 340, 6948, 59678, 1454, 1155, 11, 1848, 340, 16280, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_etcdRepository_CreateCoordinates(t *testing.T) { r := &etcdRepository{} assert.Panics(t, func() { _ = r.CreateCoordinates(context.Background(), "a", 1, 1) }) }
explode_data.jsonl/11285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 45668, 4385, 4624, 34325, 43876, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 609, 295, 4385, 4624, 16094, 6948, 1069, 276, 1211, 1155, 11, 2915, 368, 314, 716, 284, 435, 7251, 43876, 5378, 19047, 1507, 330, 64, 497, 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
func TestMultipleGroupSnapshots(t *testing.T) { defer resetTest() name1 := "test-group-snap-1" name2 := "test-group-snap-2" namespace := "default" selectors := map[string]string{"app": "mysql"} _, err := core.Instance().CreateNamespace(&v1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: namespace}}) require.NoEr...
explode_data.jsonl/20431
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 771 }
[ 2830, 3393, 32089, 2808, 61871, 27634, 1155, 353, 8840, 836, 8, 341, 16867, 7585, 2271, 2822, 11609, 16, 1669, 330, 1944, 4351, 1331, 6861, 12, 16, 698, 11609, 17, 1669, 330, 1944, 4351, 1331, 6861, 12, 17, 698, 56623, 1669, 330, 2258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateTask(t *testing.T) { serv, client := setUp(t) defer tearDown(t, serv) createdQueue := createTestQueue(t, client) createTaskRequest := taskspb.CreateTaskRequest{ Parent: createdQueue.GetName(), Task: &taskspb.Task{ MessageType: &taskspb.Task_HttpRequest{ HttpRequest: &taskspb.HttpRequest{...
explode_data.jsonl/72416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 311 }
[ 2830, 3393, 4021, 6262, 1155, 353, 8840, 836, 8, 341, 1903, 648, 11, 2943, 1669, 18620, 1155, 340, 16867, 32825, 1155, 11, 4853, 692, 197, 7120, 7554, 1669, 1855, 2271, 7554, 1155, 11, 2943, 692, 39263, 6262, 1900, 1669, 3383, 43467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStream_ReadWriteTo(t *testing.T) { addr := genAddr(t) done := make(chan struct{}) want := "HELLO" go func() { defer close(done) stream := makeReadStream(addr, t) reader := stream.Reader() read := 0 buf := make([]byte, 1) res := bytes.NewBuffer(nil) for { n, err := reader.Read(buf) if e...
explode_data.jsonl/58209
{ "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, 3027, 38381, 7985, 1249, 1155, 353, 8840, 836, 8, 341, 53183, 1669, 4081, 13986, 1155, 340, 40495, 1669, 1281, 35190, 2036, 37790, 50780, 1669, 330, 50712, 1593, 1837, 30680, 2915, 368, 341, 197, 16867, 3265, 34232, 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...
3
func TestRemoveBillingManager(t *testing.T) { Convey("Remove billing manager", t, func() { setup(MockRoute{"DELETE", "/v2/organizations/bc7b4caf-f4b8-4d85-b126-0729b9351e56/billing_managers/user-guid", []string{""}, "", 204, "", nil}, t) defer teardown() c := &Config{ ApiAddress: server.URL, Token: "f...
explode_data.jsonl/4453
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 13021, 82007, 2043, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 13021, 33531, 6645, 497, 259, 11, 2915, 368, 341, 197, 84571, 66436, 4899, 4913, 14424, 497, 3521, 85, 17, 14, 69253, 3470, 66, 22, 65, 19, 68796, 2220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResultOutputs_GetGeneratedByBundle(t *testing.T) { testcases := []struct { value string wantValue bool wantOK bool }{ {value: "true", wantValue: true, wantOK: true}, {value: "false", wantValue: false, wantOK: true}, {value: "invalid", wantValue: false, wantOK: false}, } for _, tc := ran...
explode_data.jsonl/70429
{ "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, 2077, 61438, 13614, 15741, 1359, 8409, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 16309, 257, 914, 198, 197, 50780, 1130, 1807, 198, 197, 50780, 3925, 262, 1807, 198, 197, 59403, 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...
1
func TestExpressionLessThanEqualToUnsatisfiable(t *testing.T) { x := NewVariable("x") solver := NewSolver() err := solver.AddConstraint(NewExpression(100).LessThanOrEqualToVariable(x)) assert.NoError(t, err) solver.UpdateVariables() assert.True(t, x.Value <= 100) err = solver.AddConstraint(x.EqualsFloat(10)) as...
explode_data.jsonl/36237
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 9595, 27451, 26067, 22759, 1806, 82, 7478, 2156, 1155, 353, 8840, 836, 8, 341, 10225, 1669, 1532, 7827, 445, 87, 1138, 1903, 7921, 1669, 1532, 63830, 741, 9859, 1669, 28961, 1904, 17890, 35063, 9595, 7, 16, 15, 15, 568, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDelete(t *testing.T) { vec := NewGaugeVec( GaugeOpts{ Name: "test", Help: "helpless", }, []string{"l1", "l2"}, ) testDelete(t, vec) }
explode_data.jsonl/14618
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 6435, 1155, 353, 8840, 836, 8, 341, 40213, 1669, 1532, 38, 19392, 10050, 1006, 197, 9600, 19392, 43451, 515, 298, 21297, 25, 330, 1944, 756, 298, 197, 12689, 25, 330, 8653, 1717, 756, 197, 197, 1583, 197, 197, 1294, 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
func TestName(t *testing.T) { l, err := New() if err != nil { t.Fatal(err) } if l.String() != "zap" { t.Errorf("name is error %s", l.String()) } t.Logf("test logger name: %s", l.String()) }
explode_data.jsonl/1944
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 93 }
[ 2830, 3393, 675, 1155, 353, 8840, 836, 8, 341, 8810, 11, 1848, 1669, 1532, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 743, 326, 6431, 368, 961, 330, 92371, 1, 341, 197, 3244, 13080, 445, 606, 374, 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...
3
func TestMap(t *testing.T) { m := map[string][]int{} m["b"] = []int{100} r := m["a"] for k, v := range m { fmt.Println(fmt.Sprintf("k: %s, v: %+v", k, v)) } for k := range m { fmt.Println(fmt.Sprintf("k: %s", k)) } assert.True(t, r == nil) }
explode_data.jsonl/77879
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 133 }
[ 2830, 3393, 2227, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 2415, 14032, 45725, 396, 16094, 2109, 1183, 65, 1341, 284, 3056, 396, 90, 16, 15, 15, 532, 7000, 1669, 296, 1183, 64, 25912, 2023, 595, 11, 348, 1669, 2088, 296, 341, 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 TestGovimModReadonly(t *testing.T) { const mod = ` -- go.mod -- module mod.com go 1.13 -- main.go -- package main import "example.com/blah" func main() { println(blah.Name) } ` withOptions( EditorConfig{ Env: map[string]string{ "GOFLAGS": "-mod=readonly", }, }, WithProxyFiles(proxy), WithMo...
explode_data.jsonl/3747
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 66901, 318, 4459, 4418, 3243, 1155, 353, 8840, 836, 8, 341, 4777, 1463, 284, 22074, 313, 728, 10929, 39514, 4352, 1463, 905, 271, 3346, 220, 16, 13, 16, 18, 198, 313, 1887, 18002, 39514, 1722, 1887, 271, 474, 330, 8687, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWalkNotFoundSkipError(t *testing.T) { // this doesn't work for WalkR newListDirs(t, nil, true, listResults{ "": {err: errDirNotFound}, }, errorMap{ "": ErrorSkipDir, }, nil, ).Walk() }
explode_data.jsonl/65747
{ "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, 48849, 10372, 35134, 1454, 1155, 353, 8840, 836, 8, 341, 197, 322, 419, 3171, 944, 975, 369, 12554, 49, 198, 8638, 852, 97384, 1155, 11, 2092, 11, 830, 345, 197, 14440, 9801, 515, 298, 197, 28796, 314, 615, 25, 1848, 618...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClosingWithEnqueuedSegments(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() c.CreateConnected(context.TestInitialSequenceNumber, 30000, -1 /* epRcvBuf */) ep := c.EP c.EP = nil if got, want := tcp.EndpointState(ep.State()), tcp.StateEstablished; got != want { t.Errorf("unexpected en...
explode_data.jsonl/75931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1378 }
[ 2830, 3393, 36294, 2354, 1702, 66547, 64813, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 1444, 7251, 21146, 5378, 8787, 6341, 14076, 2833, 11, 220, 18, 15, 15, 15,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestDataDump(t *testing.T) { AllConnections = NewConnectionsMap() s := CreateAndPopulateTestState() ds, err := state.DeepStateDisplayCopy(s) if err != nil { t.Error(err) } DisplayState = *ds d := GetDataDumps() if len(d) == 0 { t.Error("No data") } }
explode_data.jsonl/66527
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 93200, 51056, 1155, 353, 8840, 836, 8, 341, 197, 2403, 54751, 284, 1532, 54751, 2227, 741, 1903, 1669, 4230, 3036, 11598, 6334, 2271, 1397, 741, 83336, 11, 1848, 1669, 1584, 55602, 1397, 7020, 12106, 1141, 340, 743, 1848, 961, 209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSAR_UnknownIMSI(t *testing.T) { hss := getTestHSSDiameterServer(t) swxProxy := getTestSwxProxy(t, hss, false, true, true) sar := &fegprotos.RegistrationRequest{UserName: "sub_unknown"} _, err := swxProxy.Register(context.Background(), sar) assert.EqualError(t, err, "rpc error: code = Code(5001) desc = Dia...
explode_data.jsonl/73021
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 50, 934, 62, 13790, 1791, 13817, 1155, 353, 8840, 836, 8, 341, 9598, 778, 1669, 633, 2271, 39, 1220, 35, 36044, 5475, 1155, 340, 1903, 20984, 16219, 1669, 633, 2271, 13218, 87, 16219, 1155, 11, 305, 778, 11, 895, 11, 830...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnsureWindowsUserDataScriptPersists(t *testing.T) { t.Run("NoopsForNonWindowsHosts", func(t *testing.T) { h := &host.Host{ Distro: distro.Distro{Arch: evergreen.ArchLinuxAmd64}, } in := &userData{ Options: userdata.Options{ Directive: userdata.ShellScript + "/bin/bash", Content: "echo fo...
explode_data.jsonl/3806
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1110 }
[ 2830, 3393, 64439, 13164, 39485, 5910, 58642, 1671, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2753, 3721, 2461, 8121, 13164, 9296, 82, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 9598, 1669, 609, 3790, 29840, 515, 298, 10957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRejectBadNameStartWithNumber(t *testing.T) { g := gomega.NewGomegaWithT(t) isvc := makeTestInferenceService() isvc.Name = "1abcde" g.Expect(isvc.validate(c)).ShouldNot(gomega.Succeed()) }
explode_data.jsonl/1501
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 78413, 17082, 675, 3479, 2354, 2833, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 19907, 7362, 1669, 1281, 2271, 641, 2202, 1860, 741, 19907, 7362, 2967, 284, 330, 16, 13683, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPad(t *testing.T) { t.Parallel() var padTests = []padTest{ // Simple cases {"wow", "-", 5, "-wow-"}, {"pow", " ", 4, "pow "}, // Even-length str {"wow", "-", 10, "---wow----"}, // Input same length as n {"pow", " ", 3, "pow"}, // Input longer than n {"powwow", " ", 3, "powwow"}, } for _,...
explode_data.jsonl/57938
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 13731, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2405, 11016, 18200, 284, 3056, 13242, 2271, 515, 197, 197, 322, 8993, 5048, 198, 197, 197, 4913, 57454, 497, 77223, 220, 20, 11, 6523, 57454, 12, 7115, 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 TestParser_ParseGeneralAPIInfoMarkdown(t *testing.T) { p := New(SetMarkdownFileDirectory("testdata")) mainAPIFile := "testdata/markdown.go" err := p.ParseGeneralAPIInfo(mainAPIFile) assert.NoError(t, err) expected := `{ "swagger": "2.0", "info": { "description": "Swagger Example API Markdown ...
explode_data.jsonl/63548
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 360 }
[ 2830, 3393, 6570, 77337, 15415, 7082, 1731, 68005, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1532, 52474, 68005, 1703, 9310, 445, 92425, 5455, 36641, 7082, 1703, 1669, 330, 92425, 73598, 2923, 18002, 698, 9859, 1669, 281, 8937, 15415, 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...
1
func Test_getCronCompensateInterval(t *testing.T) { type args struct { interval int64 } tests := []struct { name string args args want time.Duration }{ { args: args{interval: 5}, name: "normal", want: 5 * time.Minute, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if...
explode_data.jsonl/18877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 3062, 34, 2248, 13552, 724, 349, 10256, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 2084, 6152, 526, 21, 19, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestCacheQueryer_IngressesForService(t *testing.T) { service := &corev1.Service{ TypeMeta: metav1.TypeMeta{APIVersion: "v1", Kind: "Service"}, ObjectMeta: metav1.ObjectMeta{Name: "service", Namespace: "default"}, } ingress1 := &extv1beta1.Ingress{ TypeMeta: metav1.TypeMeta{APIVersion: "extensions/v1b...
explode_data.jsonl/45668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1481 }
[ 2830, 3393, 8233, 2859, 261, 25972, 2483, 288, 2461, 1860, 1155, 353, 8840, 836, 8, 341, 52934, 1669, 609, 98645, 16, 13860, 515, 197, 27725, 12175, 25, 256, 77520, 16, 10184, 12175, 90, 7082, 5637, 25, 330, 85, 16, 497, 16840, 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 TestStringNorm(t *testing.T) { want := []struct { s string norm string }{ {s: "A", norm: "a"}, {s: "0a", norm: "a"}, {s: "00a", norm: "a"}, {s: "a0", norm: "a0"}, {s: "a.0", norm: "a"}, {s: "a0a", norm: "a0a"}, {s: "a.0a", norm: "aa"}, {s: "10", norm: "10"}, {s: "01", norm: "1"}, {s: "...
explode_data.jsonl/68143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 703, 24993, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 3056, 1235, 341, 197, 1903, 262, 914, 198, 197, 9038, 493, 914, 198, 197, 59403, 197, 197, 84386, 25, 330, 32, 497, 7465, 25, 330, 64, 7115, 197, 197, 84386, 25, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestSingleIngressRuleSingleNs(t *testing.T) { gomega.RegisterTestingT(t) logger := logrus.DefaultLogger() logger.SetLevel(logging.DebugLevel) logger.Debug("TestSingleIngressRuleSingleNs") // Prepare input data. const ( nsIndex = 10 podIP = "192.168.2.1" ) rule := newContivRule("allow-http", rendere...
explode_data.jsonl/74318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 623 }
[ 2830, 3393, 10888, 641, 2483, 11337, 10888, 47360, 1155, 353, 8840, 836, 8, 341, 3174, 32696, 19983, 16451, 51, 1155, 340, 17060, 1669, 1487, 20341, 13275, 7395, 741, 17060, 4202, 4449, 51687, 20345, 4449, 340, 17060, 20345, 445, 2271, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContext2Plan_hook(t *testing.T) { m := testModule(t, "plan-good") h := new(MockHook) p := testProvider("aws") p.DiffFn = testDiffFn ctx := testContext2(t, &ContextOpts{ Config: m, Hooks: []Hook{h}, ProviderResolver: providers.ResolverFixed( map[string]providers.Factory{ "aws": testProviderFu...
explode_data.jsonl/28695
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 1972, 17, 20485, 32005, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 71700, 1138, 9598, 1669, 501, 66436, 31679, 340, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 98063, 24911, 284, 1273, 217...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListImages(t *testing.T) { manager, fakeDocker := newTestDockerManager() dockerImages := []dockertypes.Image{{ID: "1111"}, {ID: "2222"}, {ID: "3333"}} expected := sets.NewString([]string{"1111", "2222", "3333"}...) fakeDocker.Images = dockerImages actualImages, err := manager.ListImages() if err != nil ...
explode_data.jsonl/31154
{ "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, 852, 14228, 1155, 353, 8840, 836, 8, 341, 92272, 11, 12418, 35, 13659, 1669, 501, 2271, 35, 13659, 2043, 741, 2698, 13659, 14228, 1669, 3056, 77055, 529, 1804, 7528, 2979, 915, 25, 330, 16, 16, 16, 16, 14345, 314, 915, 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 TestSqlEqOrder(t *testing.T) { b := Eq{"a": 1, "b": 2, "c": 3} sql, args, err := b.ToSql() assert.NoError(t, err) expectedSql := "a = ? AND b = ? AND c = ?" assert.Equal(t, expectedSql, sql) expectedArgs := []interface{}{1, 2, 3} assert.Equal(t, expectedArgs, args) }
explode_data.jsonl/44181
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 8269, 27312, 4431, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 33122, 4913, 64, 788, 220, 16, 11, 330, 65, 788, 220, 17, 11, 330, 66, 788, 220, 18, 532, 30633, 11, 2827, 11, 1848, 1669, 293, 3274, 8269, 741, 6948, 35699,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInsertShardedUnownedVerify(t *testing.T) { invschema := &vschemapb.SrvVSchema{ Keyspaces: map[string]*vschemapb.Keyspace{ "sharded": { Sharded: true, Vindexes: map[string]*vschemapb.Vindex{ "hash": { Type: "hash", }, "twocol": { Type: "lookup", Params: map[string]...
explode_data.jsonl/55994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2412 }
[ 2830, 3393, 13780, 2016, 20958, 1806, 18332, 32627, 1155, 353, 8840, 836, 8, 341, 17430, 11562, 3416, 1669, 609, 11562, 2407, 391, 65, 808, 10553, 53, 8632, 515, 197, 197, 8850, 27338, 25, 2415, 14032, 8465, 11562, 2407, 391, 65, 37863,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRunner(t *testing.T) { store := NewMockStoreIface() ticker := glock.NewMockTicker(time.Second) refreshTicker := glock.NewMockTicker(time.Second * 30) store.ListFunc.SetDefaultReturn([]Migration{ {ID: 1, Progress: 0.5}, }, nil) runner := newRunner(store, refreshTicker, &observation.TestContext) migr...
explode_data.jsonl/11529
{ "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, 19486, 1155, 353, 8840, 836, 8, 341, 57279, 1669, 1532, 11571, 6093, 40, 1564, 741, 3244, 5215, 1669, 342, 1023, 7121, 11571, 87278, 9730, 32435, 340, 197, 17168, 87278, 1669, 342, 1023, 7121, 11571, 87278, 9730, 32435, 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...
4
func TestRefreshableAccessTokens(t *testing.T) { initAccessTest(t, "") server := &config.ServerDetails{Url: *tests.JfrogUrl, AccessToken: *tests.JfrogAccessToken} err := coreenvsetup.GenerateNewLongTermRefreshableAccessToken(server) assert.NoError(t, err) assert.NotEmpty(t, server.RefreshToken) configCmd := comm...
explode_data.jsonl/35685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 662 }
[ 2830, 3393, 14567, 480, 6054, 29300, 1155, 353, 8840, 836, 8, 341, 28248, 6054, 2271, 1155, 11, 85617, 41057, 1669, 609, 1676, 22997, 7799, 90, 2864, 25, 353, 23841, 3503, 85982, 2864, 11, 94341, 25, 353, 23841, 3503, 85982, 37649, 532,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetaWithTimestamp(t *testing.T) { const ( collID1 = typeutil.UniqueID(1) collID2 = typeutil.UniqueID(2) collName1 = "t1" collName2 = "t2" partID1 = 11 partID2 = 12 partName1 = "p1" partName2 = "p2" ) rand.Seed(time.Now().UnixNano()) randVal := rand.Int() Params.Init() rootPath := ...
explode_data.jsonl/67323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2158 }
[ 2830, 3393, 12175, 2354, 20812, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 1444, 965, 915, 16, 256, 284, 943, 1314, 87443, 915, 7, 16, 340, 197, 1444, 965, 915, 17, 256, 284, 943, 1314, 87443, 915, 7, 17, 340, 197, 1444, 965, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestListener_Server(t *testing.T) { t.Run("it closes the channel successfully", func(t *testing.T) { listener := consumer.Listen( "test-queue", consumer.OnSuccess(func(amqp.Delivery) { assert.Fail(t, "called success callback") }), consumer.OnError(func(_ amqp.Delivery, err error) { assert.Fa...
explode_data.jsonl/60537
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1525 }
[ 2830, 3393, 2743, 62320, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 275, 33250, 279, 5496, 7790, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 14440, 798, 1669, 11502, 68334, 1006, 298, 197, 1, 1944, 12, 4584, 756, 298, 37203, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetGoFunc(t *testing.T) { const SCRIPT = ` f(40, 2) ` r := New() r.Set("f", func(a, b int) int { return a + b }) v, err := r.RunString(SCRIPT) if err != nil { t.Fatal(err) } if v.ToInteger() != 42 { t.Fatalf("Unexpected result: %v", v) } }
explode_data.jsonl/10463
{ "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, 1649, 10850, 9626, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 1166, 7, 19, 15, 11, 220, 17, 340, 197, 3989, 7000, 1669, 1532, 741, 7000, 4202, 445, 69, 497, 2915, 2877, 11, 293, 526, 8, 526, 341, 197, 853, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestService_SendOTP(t *testing.T) { repo := new(MockRepository) smsSvc := new(MockSMSService) ctx := context.Background() phoneNumber := "+1234567890" t.Run("Default", func(t *testing.T) { svc := otpsvc.New(repo, smsSvc) repo.On("Create", ctx, mock.Anything).Return(nil) smsSvc.On("SendMessage", ctx, ...
explode_data.jsonl/16532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1297 }
[ 2830, 3393, 1860, 46267, 90146, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 1669, 501, 66436, 4624, 340, 1903, 1011, 92766, 1669, 501, 66436, 9501, 1220, 1017, 340, 20985, 1669, 2266, 19047, 741, 197, 58173, 1669, 6630, 16, 17, 18, 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 TestFileExistenceWithWrappedError(t *testing.T) { fileCheck := &ipb.FileCheck{ FilesToCheck: []*ipb.FileSet{testconfigcreator.SingleFileWithPath(nonExistentFilePath)}, CheckType: &ipb.FileCheck_Existence{Existence: &ipb.ExistenceCheck{ShouldExist: false}}, } openFileFunc := func(ctx context.Context, file...
explode_data.jsonl/24472
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 381 }
[ 2830, 3393, 1703, 25613, 763, 2354, 67795, 1454, 1155, 353, 8840, 836, 8, 341, 17661, 3973, 1669, 609, 573, 65, 8576, 3973, 515, 197, 197, 10809, 1249, 3973, 25, 29838, 573, 65, 8576, 1649, 90, 1944, 1676, 32398, 23119, 1703, 89534, 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 TestMsgBufferThrottler(t *testing.T) { assert := assert.New(t) throttler, err := newInboundMsgBufferThrottler("", prometheus.NewRegistry(), 3) assert.NoError(err) nodeID1, nodeID2 := ids.GenerateTestShortID(), ids.GenerateTestShortID() // Acquire shouldn't block for first 3 throttler.Acquire(nodeID1) throt...
explode_data.jsonl/3364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 803 }
[ 2830, 3393, 6611, 4095, 1001, 46689, 1536, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 70479, 46689, 1536, 11, 1848, 1669, 501, 641, 10891, 6611, 4095, 1001, 46689, 1536, 19814, 2706, 39705, 7121, 15603, 1507, 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
func TestCollection_RemoveAll(t *testing.T) { ast := require.New(t) cli := initClient("test") defer cli.Close(context.Background()) defer cli.DropCollection(context.Background()) cli.EnsureIndexes(context.Background(), nil, []string{"name"}) id1 := primitive.NewObjectID() id2 := primitive.NewObjectID() id3 := ...
explode_data.jsonl/18380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 853 }
[ 2830, 3393, 6482, 66843, 2403, 1155, 353, 8840, 836, 8, 341, 88836, 1669, 1373, 7121, 1155, 340, 86448, 1669, 2930, 2959, 445, 1944, 1138, 16867, 21348, 10421, 5378, 19047, 2398, 16867, 21348, 21688, 6482, 5378, 19047, 2398, 86448, 22834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKafkaClient_decodeMetadataValueHeader(t *testing.T) { buf := bytes.NewBuffer([]byte("\x00\x08testtype\x00\x00\x00\x01\x00\x0ctestprotocol\x00\x0atestleader")) result, errorAt := decodeMetadataValueHeader(buf) assert.Equalf(t, "testtype", result.ProtocolType, "Expected ProtocolType to be testtype, not %v", ...
explode_data.jsonl/34259
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 42, 21883, 2959, 15227, 14610, 1130, 4047, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 5820, 7121, 4095, 10556, 3782, 4921, 87, 15, 15, 3462, 15, 23, 1944, 1313, 3462, 15, 15, 3462, 15, 15, 3462, 15, 15, 3462, 15, 16, 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 TestServicesDiff(t *testing.T) { var updatedHTTPDNS = &model.Config{ ConfigMeta: model.ConfigMeta{ GroupVersionKind: collections.IstioNetworkingV1Alpha3Serviceentries.Resource().GroupVersionKind(), Name: "httpDNS", Namespace: "httpDNS", CreationTimestamp: GlobalTime, Labels:...
explode_data.jsonl/12842
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2170 }
[ 2830, 3393, 11025, 21751, 1155, 353, 8840, 836, 8, 341, 2405, 6049, 9230, 61088, 284, 609, 2528, 10753, 515, 197, 66156, 12175, 25, 1614, 10753, 12175, 515, 298, 197, 2808, 5637, 10629, 25, 220, 15302, 2447, 267, 815, 78007, 53, 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...
1
func Test_starToGlob(t *testing.T) { type args struct { star string } tests := []struct { name string args args want string }{ // TODO: Add test cases. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := starToGlob(tt.args.star); got != tt.want { t.Errorf("starToGlob() = ...
explode_data.jsonl/73554
{ "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, 31681, 1249, 38, 1684, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 11870, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 914, 198, 197, 59403,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEC2CredentialsBuildSignatureV4(t *testing.T) { opts := ec2tokens.AuthOptions{ Verb: "GET", Path: "/", Headers: map[string]string{ "Host": "localhost", }, Params: map[string]string{ "Action": "foo", "Value": "bar", }, } expected := "6a5febe41427bf601f0ae7c34dbb0fd67094776138b03fb8e65783...
explode_data.jsonl/68589
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 7498, 17, 27025, 11066, 25088, 53, 19, 1155, 353, 8840, 836, 8, 341, 64734, 1669, 11942, 17, 30566, 25233, 3798, 515, 197, 197, 66946, 25, 330, 3806, 756, 197, 69640, 25, 3521, 756, 197, 197, 10574, 25, 2415, 14032, 30953,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCSNegativeLimit(t *testing.T) { for _, st := range testStores { st := st t.Run(st.name, func(t *testing.T) { t.Parallel() defer endTest(t, st) s := startTest(t, st) defer s.Close() limits := DefaultStoreLimits checkLimitError := func() { if err := s.SetLimits(&limits); err == nil {...
explode_data.jsonl/28301
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 6412, 38489, 16527, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 357, 1669, 2088, 1273, 69026, 341, 197, 18388, 1669, 357, 198, 197, 3244, 16708, 5895, 2644, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 3244, 41288, 7957, 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...
2
func TestLicenseService_CheckLicense(t *testing.T) { services := InitMockEnvironment(t) ls, err := NewLicenseService(services.conf) assert.NoError(t, err) services.license.EXPECT().CheckLicense().Return(nil) err = ls.CheckLicense() assert.NoError(t, err) }
explode_data.jsonl/46593
{ "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, 28188, 9827, 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, 692, 1903, 2161, 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 TestRequest_MarshalJSON_jsonrpc(t *testing.T) { b, err := json.Marshal(&jsonrpc2.Request{}) if err != nil { t.Fatal(err) } if want := `{"method":"","id":0,"jsonrpc":"2.0"}`; string(b) != want { t.Errorf("got %q, want %q", b, want) } }
explode_data.jsonl/50177
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 1900, 1245, 28423, 5370, 9455, 29414, 1155, 353, 8840, 836, 8, 341, 2233, 11, 1848, 1669, 2951, 37271, 2099, 2236, 29414, 17, 9659, 37790, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 743, 1366, 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...
3
func TestWithdrawalRequestsBad(t *testing.T) { _, err := client.WithdrawalRequest(&WithdrawalRequest{ Amount: "5000000", Description: "a test withdrawal request", InternalID: "testd", CallbackURL: "https://example.com/callback", }) if err == nil { t.Errorf(".WithdrawalRequest() should have returned a...
explode_data.jsonl/42389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 120 }
[ 2830, 3393, 92261, 278, 35295, 17082, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2943, 26124, 7633, 278, 1900, 2099, 92261, 278, 1900, 515, 197, 197, 10093, 25, 414, 330, 20, 15, 15, 15, 15, 15, 15, 756, 197, 47414, 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 Test_formatTime(t *testing.T) { tests := []struct { name string args string wantHour int wantMin int wantSec int wantErr bool }{ { name: "normal", args: "16:18", wantHour: 16, wantMin: 18, wantErr: false, }, { name: "normal_with_second", args: "...
explode_data.jsonl/63498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 861 }
[ 2830, 3393, 8955, 1462, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 31215, 257, 914, 198, 197, 50780, 30254, 526, 198, 197, 50780, 6217, 220, 526, 198, 197, 50780, 8430, 220, 526, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDelegate(t *testing.T) { cfg, cfgcleanup := cltest.NewConfig(t) t.Cleanup(cfgcleanup) store, cleanup := cltest.NewStoreWithConfig(t, cfg) t.Cleanup(cleanup) vuni := setup(t, store.DB, cfg) vd := vrf.NewDelegate( store.DB, vuni.txm, vuni.ks, vuni.jpv2.Pr, vuni.jpv2.Prm, vuni.lb, vuni.ec, ...
explode_data.jsonl/43009
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2034 }
[ 2830, 3393, 9381, 1155, 353, 8840, 836, 8, 341, 50286, 11, 13286, 55235, 1669, 1185, 1944, 7121, 2648, 1155, 340, 3244, 727, 60639, 28272, 55235, 340, 57279, 11, 21290, 1669, 1185, 1944, 7121, 6093, 2354, 2648, 1155, 11, 13286, 340, 324...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertEnum(t *testing.T) { lines, err := convertTypes( "Foo", "Bar", `enum ItemState { REQUIRED, OPTIONAL } struct Foo { 1: optional ItemState one 2: required ItemState two } struct Bar { 1: optional ItemState one 2: required ItemState two }`, nil, nil, ) assert.NoErr...
explode_data.jsonl/62041
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 12012, 10766, 1155, 353, 8840, 836, 8, 341, 78390, 11, 1848, 1669, 5508, 4173, 1006, 197, 197, 1, 40923, 497, 330, 3428, 756, 197, 197, 63, 9018, 5739, 1397, 341, 298, 34269, 30071, 345, 298, 197, 34057, 969, 198, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPrintScale(t *testing.T) { tests := []struct { scale autoscaling.Scale options printers.GenerateOptions expected []metav1.TableRow }{ { scale: autoscaling.Scale{ ObjectMeta: metav1.ObjectMeta{ Name: "test-autoscaling", CreationTimestamp: metav1.Time{Time: time.Now()....
explode_data.jsonl/72312
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 406 }
[ 2830, 3393, 8994, 6947, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 70780, 262, 46872, 81552, 51832, 198, 197, 35500, 220, 55953, 57582, 3798, 198, 197, 42400, 3056, 4059, 402, 16, 18257, 3102, 198, 197, 59403, 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 TestRequesting_ExecuteInbound(t *testing.T) { followup, _, err := (&requesting{}).ExecuteInbound(nil, &metaData{}) require.Error(t, err) require.Nil(t, followup) }
explode_data.jsonl/66258
{ "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, 1900, 287, 83453, 641, 10891, 1155, 353, 8840, 836, 8, 341, 1166, 1544, 454, 11, 8358, 1848, 1669, 15899, 2035, 287, 6257, 568, 17174, 641, 10891, 27907, 11, 609, 5490, 1043, 37790, 17957, 6141, 1155, 11, 1848, 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
func TestPluginQueriesAndPaths(t *testing.T) { ctx := context.Background() manager, _ := plugins.New(nil, "test-instance-id", inmem.New()) backend := &testPlugin{} manager.Register("test_plugin", backend) config, err := ParseConfig([]byte(`{"plugin": "test_plugin"}`), nil, []string{"test_plugin"}) if err != nil...
explode_data.jsonl/2170
{ "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, 11546, 55261, 3036, 26901, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 92272, 11, 716, 1669, 17215, 7121, 27907, 11, 330, 1944, 73655, 12897, 497, 304, 10536, 7121, 12367, 197, 20942, 1669, 609, 1944, 11546, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPgReadHandshakeStartupMessage(t *testing.T) { for _, tt := range pgValueTests { t.Run(tt.description, func(t *testing.T) { out := new(bytes.Buffer) dumper := &Dumper{ logger: newTestLogger(out), } in := tt.in direction := tt.direction connMetadata := &tt.connMetadata actual, err :=...
explode_data.jsonl/10721
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 351 }
[ 2830, 3393, 82540, 4418, 2314, 29661, 39076, 2052, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 17495, 1130, 18200, 341, 197, 3244, 16708, 47152, 13178, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 13967, 1669, 501, 2315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFieldComments(test *testing.T) { var err error t1, err := parseRDLString(` //type comment type TestStruct Struct { String one; //comment for field 1 String two; //comment for field 2 } `) if err != nil { test.Errorf("cannot parse valid RDL: %v", err) } t2, err := parseRDLString(` //type comment ...
explode_data.jsonl/74356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 1877, 17373, 8623, 353, 8840, 836, 8, 341, 2405, 1848, 1465, 198, 3244, 16, 11, 1848, 1669, 4715, 49, 16524, 703, 61528, 322, 1313, 3980, 198, 1313, 3393, 9422, 16139, 341, 262, 923, 825, 26, 442, 6182, 369, 2070, 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...
3
func TestAdapter_GetConfigMap(t *testing.T) { a, _ := NewAdapter(testConfig, IngressAPIVersionNetworking, testIngressFilter, testIngressDefaultSecurityGroup, testSSLPolicy, aws.LoadBalancerTypeApplication, DefaultClusterLocalDomain, false) client := &mockClient{} a.kubeClient = client cm, err := a.GetConfigMap("fo...
explode_data.jsonl/6735
{ "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, 5940, 13614, 2648, 2227, 1155, 353, 8840, 836, 8, 341, 11323, 11, 716, 1669, 1532, 5940, 8623, 2648, 11, 758, 2483, 7082, 5637, 78007, 11, 1273, 641, 2483, 5632, 11, 1273, 641, 2483, 3675, 15352, 2808, 11, 1273, 1220, 1256...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartCmdWithBlankEnvVar(t *testing.T) { t.Run("test blank host env var", func(t *testing.T) { startCmd := GetStartCmd() err := os.Setenv(hostURLEnvKey, "") require.NoError(t, err) err = startCmd.Execute() require.Error(t, err) require.Equal(t, "ORB_HOST_URL value is empty", err.Error()) }) t....
explode_data.jsonl/31124
{ "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, 3479, 15613, 2354, 22770, 14359, 3962, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 10113, 3468, 6105, 762, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 21375, 15613, 1669, 2126, 3479, 15613, 2822, 197, 9859, 1669,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSchemaReadUpdateAndFailWrite(t *testing.T) { conn, cleanup, _ := testserver.NewTestServer(require.New(t), 0, memdb.DisableGC, 0, false, testfixtures.EmptyDatastore) t.Cleanup(cleanup) client := v1alpha1.NewSchemaServiceClient(conn) requestedObjectDefNames := []string{"example/user"} // Issue a write to ...
explode_data.jsonl/54549
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 651 }
[ 2830, 3393, 8632, 4418, 4289, 3036, 19524, 7985, 1155, 353, 8840, 836, 8, 341, 32917, 11, 21290, 11, 716, 1669, 1273, 4030, 7121, 2271, 5475, 23482, 7121, 1155, 701, 220, 15, 11, 1833, 1999, 10166, 480, 22863, 11, 220, 15, 11, 895, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCyclicReferences(t *testing.T) { type ObjectDiff struct { FieldCycle *ObjectDiff SliceCycle []*ObjectDiff MapCycle map[*ObjectDiff]*ObjectDiff } instance := &ObjectDiff{ FieldCycle: nil, SliceCycle: nil, MapCycle: nil, } generator := NewGenerator(UseAllExportedFields()) schemaRef, err ...
explode_data.jsonl/55879
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 34, 65304, 31712, 1155, 353, 8840, 836, 8, 341, 13158, 3002, 21751, 2036, 341, 197, 94478, 44820, 353, 1190, 21751, 198, 197, 7568, 4754, 44820, 29838, 1190, 21751, 198, 197, 26873, 44820, 256, 2415, 33836, 1190, 21751, 8465, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSnapshotSaveCommand(t *testing.T) { t.Parallel() a := agent.NewTestAgent(t.Name(), ``) defer a.Shutdown() client := a.Client() ui := cli.NewMockUi() c := New(ui) dir := testutil.TempDir(t, "snapshot") defer os.RemoveAll(dir) file := path.Join(dir, "backup.tgz") args := []string{ "-http-addr=" + ...
explode_data.jsonl/24878
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 284 }
[ 2830, 3393, 15009, 8784, 4062, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 8315, 7121, 2271, 16810, 1155, 2967, 1507, 9902, 340, 16867, 264, 10849, 18452, 741, 25291, 1669, 264, 11716, 2822, 37278, 1669, 21348, 7121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestCloneLeaf(t *testing.T) { leaf1 := &Leaf{1} clone := CloneRefOfLeaf(leaf1) assert.Equal(t, leaf1, clone) leaf1.v = 5 assert.NotEqual(t, leaf1, clone) }
explode_data.jsonl/24686
{ "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, 37677, 31461, 1155, 353, 8840, 836, 8, 341, 197, 24153, 16, 1669, 609, 31461, 90, 16, 532, 197, 19982, 1669, 27913, 3945, 2124, 31461, 7, 24153, 16, 340, 6948, 12808, 1155, 11, 15933, 16, 11, 14715, 340, 197, 24153, 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
func TestValidateRoute53RecordType(t *testing.T) { validTypes := []string{ "AAAA", "SOA", "A", "TXT", "CNAME", "MX", "NAPTR", "PTR", "SPF", "SRV", "NS", } invalidTypes := []string{ "a", "alias", "SpF", "Txt", "AaAA", } for _, v := range validTypes { _, errors := validateRoute53R...
explode_data.jsonl/78594
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 299 }
[ 2830, 3393, 17926, 4899, 20, 18, 6471, 929, 1155, 353, 8840, 836, 8, 341, 56322, 4173, 1669, 3056, 917, 515, 197, 197, 1, 25699, 756, 197, 197, 1, 13880, 32, 756, 197, 197, 29133, 756, 197, 197, 1, 62865, 756, 197, 197, 46316, 753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_ResetUser_validation(t *testing.T) { err := testClient.ResetUserPassword(&ResetUserPasswordInput{ Login: "", }) if err != ErrMissingLogin { t.Errorf("bad error: %s", err) } }
explode_data.jsonl/26707
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 76 }
[ 2830, 3393, 2959, 67771, 1474, 19416, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 1273, 2959, 36660, 1474, 4876, 2099, 14828, 1474, 4876, 2505, 515, 197, 197, 6231, 25, 8324, 197, 3518, 743, 1848, 961, 15495, 25080, 6231, 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 ]
2
func TestTestRunner(t *testing.T) { expected := "testing the test runner" runner := TestRunner{Output: []byte(expected)} output, err := runner.Run("command") assert.NoError(t, err) assert.Equal(t, expected, string(output)) runner = TestRunner{ExitCode: 42} _, err = runner.Run("command") assert.Error(t, err) as...
explode_data.jsonl/28843
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 2271, 19486, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 330, 8840, 279, 1273, 22259, 698, 197, 41736, 1669, 3393, 19486, 90, 5097, 25, 3056, 3782, 15253, 10569, 21170, 11, 1848, 1669, 22259, 16708, 445, 5631, 1138, 6948, 356...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMinimalSurface(t *testing.T) { t.Parallel() for _, size := range [][2]int{ {20, 30}, {30, 30}, {50, 40}, } { f := NewMinimalSurface(size[0], size[1]) x0 := f.InitX() grad := make([]float64, len(x0)) f.Grad(grad, x0) fdGrad := fd.Gradient(nil, f.Func, x0, &fd.Settings{Formula: fd.Central}) ...
explode_data.jsonl/12134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 459 }
[ 2830, 3393, 88328, 23697, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 1379, 1669, 2088, 508, 1457, 17, 63025, 515, 197, 197, 90, 17, 15, 11, 220, 18, 15, 1583, 197, 197, 90, 18, 15, 11, 220, 18, 15, 1583, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCleanupNSTimeout(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ecscniClient := NewClient(&Config{}) libcniClient := mock_libcni.NewMockCNI(ctrl) ecscniClient.(*cniClient).libcni = libcniClient // This will be called for both bridge and eni plugin libcniClient.EXPECT().DelNetwork(...
explode_data.jsonl/30400
{ "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, 67335, 50479, 545, 411, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 2388, 7751, 2959, 1669, 1532, 2959, 2099, 2648, 37790, 197, 55576, 7751, 295...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBenchmark(t *testing.T) { tests := []struct { msg string n int d time.Duration rps int want int wantDuration time.Duration }{ { msg: "Capped by max requests", n: 100, d: 100 * time.Second, want: 100, }, { msg: "C...
explode_data.jsonl/56431
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 831 }
[ 2830, 3393, 84971, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 21169, 688, 914, 198, 197, 9038, 310, 526, 198, 197, 2698, 310, 882, 33795, 198, 197, 7000, 1690, 688, 526, 198, 197, 50780, 260, 526, 198, 197, 507...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCACommon_GenerateECCCertificateRequestFP_Fail(t *testing.T) { _, errCA = CAGenerateECCCertificateRequestFP(&CertRequestFP{ PrivateKeyFilePath: "", CertificateRequestFilePath: filepath.Join(pathcarsapksc1512, caCertificateRequestFileName), SignatureAlgorithm: x509.SHA256WithRSAPSS, Subj...
explode_data.jsonl/24084
{ "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, 5049, 10839, 2646, 13220, 36, 3706, 33202, 1900, 11698, 1400, 604, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 5049, 284, 356, 1890, 13220, 36, 3706, 33202, 1900, 11698, 2099, 36934, 1900, 11698, 515, 197, 197, 75981, 190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateDeploymentWithReplicas(t *testing.T) { depName := "jonny-dep" replicas := "3" tf := cmdtesting.NewTestFactory().WithNamespace("test") defer tf.Cleanup() ns := scheme.Codecs.WithoutConversion() fakeDiscovery := "{\"kind\":\"APIResourceList\",\"apiVersion\":\"v1\",\"groupVersion\":\"apps/v1\",\"reso...
explode_data.jsonl/72191
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 500 }
[ 2830, 3393, 4021, 75286, 2354, 18327, 52210, 1155, 353, 8840, 836, 8, 341, 197, 14891, 675, 1669, 330, 34165, 3834, 6810, 79, 698, 73731, 52210, 1669, 330, 18, 698, 3244, 69, 1669, 5439, 8840, 7121, 2271, 4153, 1005, 2354, 22699, 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...
1
func TestPilotPlugin(t *testing.T) { s := env.NewTestSetup(env.PilotPluginTLSTest, t) s.EnvoyTemplate = envoyConf grpcServer := grpc.NewServer() lis, err := net.Listen("tcp", fmt.Sprintf(":%d", s.Ports().DiscoveryPort)) if err != nil { t.Fatal(err) } snapshots := cache.NewSnapshotCache(true, mock{}, nil) _ =...
explode_data.jsonl/77841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 411 }
[ 2830, 3393, 47, 23958, 11546, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6105, 7121, 2271, 21821, 16978, 1069, 23958, 11546, 13470, 784, 477, 11, 259, 340, 1903, 81214, 2253, 7275, 284, 59530, 15578, 198, 197, 56585, 5475, 1669, 47900, 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 TestEnvVarsBasic(t *testing.T) { s := newScaffold(t) defer s.reset() err := s.executeCommand("env", "vars", "dev", "--k8s:kubeconfig=kubeconfig.yaml") require.NoError(t, err) s.assertOutputLineMatch(regexp.MustCompile(`KUBECONFIG='kubeconfig.yaml';`)) s.assertOutputLineMatch(regexp.MustCompile(`KUBE_CLUSTER=...
explode_data.jsonl/244
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 14359, 28305, 15944, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 50, 27864, 1155, 340, 16867, 274, 13857, 741, 9859, 1669, 274, 7769, 4062, 445, 3160, 497, 330, 15380, 497, 330, 3583, 497, 14482, 74, 23, 82, 57071, 3760...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInsertRow(t *testing.T) { xlsx := NewFile() sheet1 := xlsx.GetSheetName(1) r, err := xlsx.workSheetReader(sheet1) assert.NoError(t, err) const ( colCount = 10 rowCount = 10 ) fillCells(xlsx, sheet1, colCount, rowCount) xlsx.SetCellHyperLink(sheet1, "A5", "https://github.com/360EntSecGroup-Skylar/e...
explode_data.jsonl/30491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 353 }
[ 2830, 3393, 13780, 3102, 1155, 353, 8840, 836, 8, 341, 10225, 29017, 1669, 1532, 1703, 741, 1903, 3674, 16, 1669, 856, 29017, 2234, 10541, 675, 7, 16, 340, 7000, 11, 1848, 1669, 856, 29017, 18282, 10541, 5062, 61680, 16, 340, 6948, 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...
3
func TestToString(t *testing.T) { // Ensure we don't print the byte content when we // log messages. // Each payload or signature contains '2' so we would've logged // them if not for the overloading of the String() method in SignedGossipMessage // The following line proves that the envelopes constructed in this ...
explode_data.jsonl/48937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1282 }
[ 2830, 3393, 5870, 1155, 353, 8840, 836, 8, 341, 197, 322, 29279, 582, 1513, 944, 1173, 279, 4922, 2213, 979, 582, 198, 197, 322, 1487, 6605, 624, 197, 322, 8886, 7729, 476, 11957, 5610, 364, 17, 6, 773, 582, 1035, 3003, 13726, 198, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSanitizeTeam(t *testing.T) { th := Setup(t) defer th.TearDown() team := &model.Team{ Id: model.NewId(), Email: th.MakeEmail(), InviteId: model.NewId(), AllowedDomains: "example.com", } copyTeam := func() *model.Team { copy := &model.Team{} *copy = *team return co...
explode_data.jsonl/30274
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1505 }
[ 2830, 3393, 23729, 26310, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 340, 16867, 270, 836, 682, 4454, 2822, 197, 9196, 1669, 609, 2528, 65842, 515, 197, 67211, 25, 1797, 1614, 7121, 764, 3148, 197, 197, 4781, 25, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMaxValue(t *testing.T) { cval := &MaxValue{sel: "db1.table1.amount"} require.Equal(t, "db1.table1.amount", cval.Selector()) require.True(t, cval.ColBounded()) _, err := cval.inferType(nil, nil, "db1", "table1") require.ErrorIs(t, err, ErrUnexpected) err = cval.requiresType(IntegerType, nil, nil, "db1",...
explode_data.jsonl/31710
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 725 }
[ 2830, 3393, 5974, 1130, 1155, 353, 8840, 836, 8, 341, 1444, 831, 1669, 609, 5974, 1130, 90, 9507, 25, 330, 1999, 16, 10336, 16, 25276, 16707, 17957, 12808, 1155, 11, 330, 1999, 16, 10336, 16, 25276, 497, 272, 831, 14752, 269, 2398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarkResourceNotOwned(t *testing.T) { pa := pa(map[string]string{}) pa.Status.MarkResourceNotOwned("doesn't", "matter") active := pa.Status.GetCondition("Active") if active.Status != corev1.ConditionFalse { t.Errorf("TestMarkResourceNotOwned expected active.Status: False got: %v", active.Status) } if ac...
explode_data.jsonl/27229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 8949, 4783, 2623, 57641, 1155, 353, 8840, 836, 8, 341, 3223, 64, 1669, 7106, 9147, 14032, 30953, 37790, 3223, 64, 10538, 75888, 4783, 2623, 57641, 445, 71914, 944, 497, 330, 58965, 1138, 74770, 1669, 7106, 10538, 2234, 10547, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MarshalText(t *testing.T) { r := require.New(t) n := New("mark") b, err := n.MarshalText() r.NoError(err) r.Equal("mark", string(b)) r.NoError((&n).UnmarshalText([]byte("bates"))) r.Equal("bates", n.String()) }
explode_data.jsonl/82650
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 1245, 28423, 1178, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 692, 9038, 1669, 1532, 445, 3987, 1138, 2233, 11, 1848, 1669, 308, 37271, 1178, 741, 7000, 35699, 3964, 340, 7000, 12808, 445, 3987, 497, 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...
1
func TestServerHTTPPost(t *testing.T) { app := model.App{ API: map[string][]model.API{ "POST": []model.API{model.API{ Endpoint: "/post", Description: "Here is the description", Scenarios: []model.Scenario{ model.Scenario{ Request: model.Request{ Header: map[string][]string{"Accept...
explode_data.jsonl/17760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1153 }
[ 2830, 3393, 5475, 9230, 4133, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 1614, 5105, 515, 197, 197, 7082, 25, 2415, 14032, 45725, 2528, 24922, 515, 298, 197, 1, 2946, 788, 3056, 2528, 24922, 90, 2528, 24922, 515, 571, 197, 27380, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLogAndDebug(t *testing.T) { buf := &bytes.Buffer{} Logger = *log.New(buf, "", 0) Logger.Printf("foo") if buf.String() != "foo\n" { t.Fatalf("want %q, got %q", "foo\n", buf.String()) } buf2 := &bytes.Buffer{} Logger = *log.New(buf2, "", 0) Debug("foo") if buf2.String() != "" { t.Fatalf("expected no...
explode_data.jsonl/37612
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 224 }
[ 2830, 3393, 2201, 3036, 7939, 1155, 353, 8840, 836, 8, 341, 26398, 1669, 609, 9651, 22622, 16094, 55861, 284, 353, 839, 7121, 10731, 11, 7342, 220, 15, 340, 55861, 19367, 445, 7975, 1138, 743, 6607, 6431, 368, 961, 330, 7975, 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...
4
func TestTxnCoordSenderAddLockOnError(t *testing.T) { defer leaktest.AfterTest(t)() defer log.Scope(t).Close(t) s := createTestDB(t) defer s.Stop() ctx := context.Background() // Create a transaction with intent at "x". key := roachpb.Key("x") txn := kv.NewTxn(ctx, s.DB, 0 /* gatewayNodeID */) tc := txn.Send...
explode_data.jsonl/76886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 433 }
[ 2830, 3393, 31584, 77, 19437, 20381, 2212, 11989, 74945, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 16867, 1487, 77940, 1155, 568, 7925, 1155, 340, 1903, 1669, 1855, 2271, 3506, 1155, 340, 16867, 274, 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 TestOpenStaticFileGzip_1(t *testing.T) { file, _ := os.Open(licenseFile) var zipBuf bytes.Buffer fileWriter, _ := gzip.NewWriterLevel(&zipBuf, gzip.BestCompression) io.Copy(fileWriter, file) fileWriter.Close() content, _ := ioutil.ReadAll(&zipBuf) testOpenFile("gzip", content, t) }
explode_data.jsonl/61579
{ "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, 5002, 11690, 1703, 38, 9964, 62, 16, 1155, 353, 8840, 836, 8, 341, 17661, 11, 716, 1669, 2643, 12953, 7, 13266, 1703, 340, 2405, 10308, 15064, 5820, 22622, 198, 17661, 6492, 11, 716, 1669, 57795, 7121, 6492, 4449, 2099, 99...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetBundle(t *testing.T) { for _, tt := range []struct { name string err string logMsg string outputMask *types.BundleMask expectLogs []spiretest.LogEntry setBundle bool }{ { name: "Get bundle returns bundle", setBundle: true, expectLogs: []spiretest.LogEntry{ ...
explode_data.jsonl/45886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1135 }
[ 2830, 3393, 1949, 8409, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 9859, 286, 914, 198, 197, 6725, 6611, 257, 914, 198, 197, 21170, 12686, 353, 9242, 14757, 12686, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestReportsTypeErrors(t *testing.T) { for _, file := range []string{ "err1.go", "err2.go", "err3.go", "issue7757.go", "issue8442.go", "issue11097a.go", "issue11097b.go", "issue13129.go", "issue13423.go", "issue13467.go", "issue13635.go", "issue13830.go", "issue16116.go", "issue16591.go...
explode_data.jsonl/5828
{ "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, 23748, 929, 13877, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1034, 1669, 2088, 3056, 917, 515, 197, 197, 1, 615, 16, 18002, 756, 197, 197, 1, 615, 17, 18002, 756, 197, 197, 1, 615, 18, 18002, 756, 197, 197, 1, 11159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChaincodeInfoProvider(t *testing.T) { InitializeTestEnv() defer CleanupTestEnv() gb, _ := test.MakeGenesisBlock("ledger1") CreateLedger(gb) mockDeployedCCInfoProvider := &mock.DeployedChaincodeInfoProvider{} mockDeployedCCInfoProvider.ChaincodeInfoStub = func(ccName string, qe ledger.SimpleQueryExecutor...
explode_data.jsonl/77991
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 465 }
[ 2830, 3393, 18837, 1851, 1731, 5179, 1155, 353, 8840, 836, 8, 341, 93904, 2271, 14359, 741, 16867, 53512, 2271, 14359, 741, 3174, 65, 11, 716, 1669, 1273, 50133, 84652, 4713, 445, 50704, 16, 1138, 75569, 60850, 1389, 3268, 65, 692, 7733...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestColDecimal128Array(t *testing.T) { const rows = 50 data := NewArrDecimal128() for i := 0; i < rows; i++ { data.AppendDecimal128([]Decimal128{ Decimal128FromInt(i), Decimal128FromInt(i + 1), Decimal128FromInt(i + 2), }) } var buf Buffer data.EncodeColumn(&buf) t.Run("Golden", func(t *testin...
explode_data.jsonl/68544
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 405 }
[ 2830, 3393, 6127, 11269, 16, 17, 23, 1857, 1155, 353, 8840, 836, 8, 341, 4777, 6978, 284, 220, 20, 15, 198, 8924, 1669, 1532, 8838, 11269, 16, 17, 23, 741, 2023, 600, 1669, 220, 15, 26, 600, 366, 6978, 26, 600, 1027, 341, 197, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestShouldCheckPasswordArgon2idHashedWithAuthelia(t *testing.T) { password := testPassword hash, err := HashPassword(password, "", HashingAlgorithmArgon2id, schema.DefaultCIPasswordConfiguration.Iterations, schema.DefaultCIPasswordConfiguration.Memory*1024, schema.DefaultCIPasswordConfiguration.Parallelism, ...
explode_data.jsonl/40195
{ "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, 14996, 3973, 4876, 2735, 263, 17, 307, 6370, 291, 2354, 5087, 35929, 1155, 353, 8840, 836, 8, 341, 58199, 1669, 1273, 4876, 198, 50333, 11, 1848, 1669, 6531, 4876, 22768, 11, 7342, 6531, 287, 27847, 2735, 263, 17, 307, 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 TestAlias(t *testing.T) { fmt.Println("===== Alias =====") var a = Alias(NewStatement("SELECT tt.id, tt.name FROM test_table AS tt WHERE tt.id=?", 100), "a") fmt.Println(a.ToSQL()) }
explode_data.jsonl/1258
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 22720, 1155, 353, 8840, 836, 8, 341, 11009, 12419, 445, 46725, 58040, 30742, 1138, 2405, 264, 284, 58040, 35063, 8636, 445, 4858, 17853, 1764, 11, 17853, 2644, 4295, 1273, 5237, 5752, 17853, 5288, 17853, 1764, 87873, 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
func TestOpen_ErrVersionMismatch(t *testing.T) { if pageSize != os.Getpagesize() { t.Skip("page size mismatch") } // Create empty database. db := MustOpenDB() path := db.Path() defer db.MustClose() // Close database. if err := db.DB.Close(); err != nil { t.Fatal(err) } // Read data file. buf, err := i...
explode_data.jsonl/27461
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 315 }
[ 2830, 3393, 5002, 93623, 5637, 82572, 1155, 353, 8840, 836, 8, 341, 743, 22635, 961, 2643, 2234, 84917, 368, 341, 197, 3244, 57776, 445, 2893, 1379, 35301, 1138, 197, 630, 197, 322, 4230, 4287, 4625, 624, 20939, 1669, 15465, 5002, 3506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFromMap(t *testing.T) { cases := []struct { in map[string]string expected List }{ {map[string]string{}, *new(List)}, {nil, *new(List)}, { map[string]string{"Martin": "martin@example.com"}, List{Address{Name: "Martin", Address: "martin@example.com"}}, }, //{ // map[string]string{"...
explode_data.jsonl/70344
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 3830, 2227, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 17430, 981, 2415, 14032, 30953, 198, 197, 42400, 1759, 198, 197, 59403, 197, 197, 90, 2186, 14032, 30953, 22655, 353, 931, 10278, 39781, 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 TestCreateAssetTxSyntacticVerifyInitialStates(t *testing.T) { tx, c, ctx := validCreateAssetTx(t) tx.States = []*InitialState{} if err := tx.SyntacticVerify(ctx, c, assetID, 0, 0, 1); err == nil { t.Fatal("CreateAssetTx should have failed syntactic verification due to no Initial States") } tx.States = []*...
explode_data.jsonl/73233
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 967 }
[ 2830, 3393, 4021, 16604, 31584, 34667, 406, 23170, 32627, 6341, 23256, 1155, 353, 8840, 836, 8, 341, 46237, 11, 272, 11, 5635, 1669, 2697, 4021, 16604, 31584, 1155, 692, 46237, 7758, 973, 284, 29838, 80425, 16094, 743, 1848, 1669, 9854, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPatch(t *testing.T) { tcs := []struct { resource string name string namespace string patch []byte want *unstructured.Unstructured path string }{ { resource: "rtest", name: "normal_patch", path: "/apis/gtest/vtest/rtest/normal_patch", patch: getJSON("gt...
explode_data.jsonl/37547
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1238 }
[ 2830, 3393, 43622, 1155, 353, 8840, 836, 8, 341, 3244, 4837, 1669, 3056, 1235, 341, 197, 50346, 220, 914, 198, 197, 11609, 414, 914, 198, 197, 56623, 914, 198, 197, 3223, 754, 257, 3056, 3782, 198, 197, 50780, 414, 353, 359, 51143, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLoginOK(t *testing.T) { testServer(func(s *core.Server) { headers := make(map[string]string) userpass := base64.StdEncoding.EncodeToString([]byte("badr.adnaan@gmail.com:mypassword")) headers["Authorization"] = "Basic " + userpass //headers["X-Access-Token"] = accessToken //make request client :=...
explode_data.jsonl/42209
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 345 }
[ 2830, 3393, 6231, 3925, 1155, 353, 8840, 836, 8, 341, 18185, 5475, 18552, 1141, 353, 2153, 22997, 8, 1476, 197, 67378, 1669, 1281, 9147, 14032, 30953, 340, 197, 19060, 6385, 1669, 2331, 21, 19, 36086, 14690, 50217, 5870, 10556, 3782, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func Test_waitForPodStatus(t *testing.T) { t.Run("successfully errors on cancelled context", func(t *testing.T) { k := &KubeClient{ cli: kfake.NewSimpleClientset(), instanceID: "test", } podSpec := &v1.Pod{ ObjectMeta: metav1.ObjectMeta{Name: "test", Namespace: defaultNamespace}, Spec: v1.Po...
explode_data.jsonl/20521
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 665 }
[ 2830, 3393, 18760, 2461, 23527, 2522, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 60505, 5975, 389, 25681, 2266, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 16463, 1669, 609, 42, 3760, 2959, 515, 298, 86448, 25, 286, 595, 30570...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateTicker(t *testing.T) { t.Parallel() cp := currency.NewPairWithDelimiter(currency.BTC.String(), currency.USDT.String(), "/") _, err := f.UpdateTicker(context.Background(), cp, asset.Spot) if err != nil { t.Error(err) } }
explode_data.jsonl/15218
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 4289, 87278, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 52018, 1669, 11413, 7121, 12443, 2354, 91098, 90475, 1785, 7749, 6431, 1507, 11413, 67672, 10599, 6431, 1507, 3521, 1138, 197, 6878, 1848, 1669, 282, 16689, 87...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAbsCollection_Contains(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 2, 3}) if intColl.Contains(1) != true { t.Fatal("contain 错误1") } if intColl.Contains(5) != false { t.Fatal("contain 错误2") } }
explode_data.jsonl/66455
{ "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, 27778, 6482, 62, 23805, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 17, 11, 220, 18, 3518, 743, 526, 15265, 11545, 7, 16, 8, 961, 830, 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...
3
func TestConvertToInt(t *testing.T) { tif := NewToIntFilter() resp, err := tif.Process([]string{"1", "2", "3"}) if err != nil { t.Fatal(err) } expected := []int{1, 2, 3} if !reflect.DeepEqual(expected, resp) { t.Fatalf("The expected is %v, the actual is %v", expected, resp) } }
explode_data.jsonl/74918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 12012, 38544, 1155, 353, 8840, 836, 8, 341, 3244, 333, 1669, 1532, 38544, 5632, 741, 34653, 11, 1848, 1669, 259, 333, 29012, 10556, 917, 4913, 16, 497, 330, 17, 497, 330, 18, 23625, 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...
3
func TestBasicUse(t *testing.T) { db, err := sql.Open("oci8", "C##STUDENT/123456@127.0.0.1:1521/ORCL") if err != nil { t.Errorf("Open sql Error") } col1Val := "a" col2Val := 123 col3Val := 12.33 col4Val := []byte{1, 2, 3} // INSERT for i := 0; i < 3; i++ { if i != 0 { _, err = db.Exec("insert into tes...
explode_data.jsonl/75856
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 15944, 10253, 1155, 353, 8840, 836, 8, 341, 20939, 11, 1848, 1669, 5704, 12953, 445, 2119, 23, 497, 330, 34, 565, 784, 80950, 14, 16, 17, 18, 19, 20, 21, 31, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 16, 20, 17, 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...
7
func TestActor(t *testing.T) { req := NewInvokeMethodRequest("test_method") req.WithActor("testActor", "1") assert.Equal(t, "testActor", req.Actor().GetActorType()) assert.Equal(t, "1", req.Actor().GetActorId()) }
explode_data.jsonl/46243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 81 }
[ 2830, 3393, 18870, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 1532, 17604, 3523, 1900, 445, 1944, 9032, 1138, 24395, 26124, 18870, 445, 1944, 18870, 497, 330, 16, 1138, 6948, 12808, 1155, 11, 330, 1944, 18870, 497, 4232, 76094, 1005, 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