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 TestDetectsInvalidTimes(t *testing.T) { invalidHour, err := NewTime(25, 30) assert.EqualError(t, err, "INVALID_TIME") assert.Nil(t, invalidHour) invalidMinute, err := NewTime(4, 85) assert.EqualError(t, err, "INVALID_TIME") assert.Nil(t, invalidMinute) invalidTime, err := NewTime(24, 00) assert.EqualErro...
explode_data.jsonl/4297
{ "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, 57193, 82, 7928, 18889, 1155, 353, 8840, 836, 8, 341, 197, 11808, 30254, 11, 1848, 1669, 1532, 1462, 7, 17, 20, 11, 220, 18, 15, 340, 6948, 12808, 1454, 1155, 11, 1848, 11, 330, 46859, 10051, 1138, 6948, 59678, 1155, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestService_Accept(t *testing.T) { s := &Service{} require.Equal(t, true, s.Accept("https://didcomm.org/didexchange/1.0/invitation")) require.Equal(t, true, s.Accept("https://didcomm.org/didexchange/1.0/request")) require.Equal(t, true, s.Accept("https://didcomm.org/didexchange/1.0/response")) require.Equal(...
explode_data.jsonl/30519
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 1860, 1566, 66, 1484, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 609, 1860, 31483, 17957, 12808, 1155, 11, 830, 11, 274, 52265, 445, 2428, 1110, 22920, 3621, 2659, 3446, 307, 39568, 14, 16, 13, 15, 14, 97530, 5455, 17957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCause(t *testing.T) { testError := &TestError{message: "test"} err := BadRequest("foo", "bar").WithCause(testError) if !errors.Is(err, testError) { t.Fatalf("want %v but got %v", testError, err) } if te := new(TestError); errors.As(err, &te) { if te.message != testError.message { t.Fatalf("want %s ...
explode_data.jsonl/15376
{ "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, 60912, 1155, 353, 8840, 836, 8, 341, 18185, 1454, 1669, 609, 2271, 1454, 90, 1994, 25, 330, 1944, 16707, 9859, 1669, 36403, 445, 7975, 497, 330, 2257, 1827, 2354, 60912, 8623, 1454, 340, 743, 753, 7650, 4506, 3964, 11, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenModel_Issue763(t *testing.T) { specDoc, err := loads.Spec("../fixtures/bugs/763/swagger.yml") require.NoError(t, err) definitions := specDoc.Spec().Definitions k := "test_list" opts := opts() genModel, err := makeGenDefinition(k, "models", definitions[k], specDoc, opts) require.NoError(t, err) buf...
explode_data.jsonl/2551
{ "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, 9967, 1712, 7959, 83890, 22, 21, 18, 1155, 353, 8840, 836, 8, 341, 98100, 9550, 11, 1848, 1669, 20907, 36473, 17409, 45247, 14, 56176, 14, 22, 21, 18, 80930, 33936, 1138, 17957, 35699, 1155, 11, 1848, 692, 7452, 4054, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestUnBindSecurityGroups(t *testing.T) { args := &UnBindSecurityGroupsArgs{ InstanceId: "", SecurityGroupId: "", } err := BBC_CLIENT.UnBindSecurityGroups(args) ExpectEqual(t.Errorf, err, nil) }
explode_data.jsonl/4067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 87 }
[ 2830, 3393, 1806, 9950, 15352, 22173, 1155, 353, 8840, 836, 8, 341, 31215, 1669, 609, 1806, 9950, 15352, 22173, 4117, 515, 197, 197, 65918, 25, 414, 8324, 197, 7568, 18429, 48410, 25, 8324, 197, 532, 9859, 1669, 18096, 22521, 10616, 995...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveEquipmentType(t *testing.T) { r := newTestResolver(t) defer r.drv.Close() ctx := viewertest.NewContext(r.client) mr, qr := r.Mutation(), r.Query() portDef := models.EquipmentPortInput{ Name: "Port 1", VisibleLabel: pointer.ToString("Eth1"), Bandwidth: pointer.ToString("10/100/1000B...
explode_data.jsonl/436
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 458 }
[ 2830, 3393, 13021, 58276, 929, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 501, 2271, 18190, 1155, 340, 16867, 435, 950, 10553, 10421, 741, 20985, 1669, 1651, 83386, 7121, 1972, 2601, 6581, 692, 2109, 81, 11, 49290, 1669, 435, 1321, 22705...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCloudDatastoreWithSplitCallTestSuite(t *testing.T) { ctx := context.Background() thresholds := []int{0, 1, 2, 1000} for _, threshold := range thresholds { threshold := threshold t.Run(fmt.Sprintf("threshold %d", threshold), func(t *testing.T) { for name, test := range testsuite.TestSuite { t.Run...
explode_data.jsonl/22389
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 492 }
[ 2830, 3393, 16055, 1043, 4314, 2354, 20193, 7220, 2271, 28000, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 197, 28902, 82, 1669, 3056, 396, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 16, 15, 15, 15, 532, 2023, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBodyEmptyJSON(t *testing.T) { var body Body bs := util.MustMarshalJSON(body) if string(bs) != "[]" { t.Fatalf("Unexpected JSON value for empty body") } body = Body{} bs = util.MustMarshalJSON(body) if string(bs) != "[]" { t.Fatalf("Unexpected JSON value for empty body") } }
explode_data.jsonl/65297
{ "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, 5444, 3522, 5370, 1155, 353, 8840, 836, 8, 341, 2405, 2487, 13958, 198, 93801, 1669, 4094, 50463, 55438, 5370, 15225, 340, 743, 914, 52707, 8, 961, 330, 33325, 341, 197, 3244, 30762, 445, 29430, 4718, 897, 369, 4287, 2487, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidatePipelineResults_Success(t *testing.T) { tests := []struct { name string results []PipelineResult }{{ name: "valid pipeline result", results: []PipelineResult{{ Name: "my-pipeline-result", Description: "this is my pipeline result", Value: "$(tasks.a-task.results.output...
explode_data.jsonl/26535
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 234 }
[ 2830, 3393, 17926, 34656, 9801, 87161, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 55497, 3056, 34656, 2077, 198, 197, 15170, 515, 197, 11609, 25, 330, 1891, 15301, 1102, 756, 197, 55497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfig_Parse(t *testing.T) { // Parse configuration. var c subscriber.Config if _, err := toml.Decode(` enabled = false `, &c); err != nil { t.Fatal(err) } // Validate configuration. if c.Enabled != false { t.Fatalf("unexpected enabled state: %v", c.Enabled) } }
explode_data.jsonl/72636
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 109 }
[ 2830, 3393, 2648, 77337, 1155, 353, 8840, 836, 8, 341, 197, 322, 14775, 6546, 624, 2405, 272, 32115, 10753, 198, 743, 8358, 1848, 1669, 311, 1014, 56372, 61528, 15868, 284, 895, 198, 7808, 609, 66, 1215, 1848, 961, 2092, 341, 197, 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...
3
func TestNextDeferReturnAndDirectCall(t *testing.T) { // Next should not step into a deferred function if it is called // directly, only if it is called through a panic or a deferreturn. // Here we test the case where the function is called by a deferreturn testseq("defercall", contNext, []nextTest{ {9, 10}, {1...
explode_data.jsonl/56258
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 5847, 1912, 802, 5598, 3036, 16027, 7220, 1155, 353, 8840, 836, 8, 341, 197, 322, 9295, 1265, 537, 3019, 1119, 264, 26239, 729, 421, 432, 374, 2598, 198, 197, 322, 5961, 11, 1172, 421, 432, 374, 2598, 1526, 264, 21975, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetGoFormats(t *testing.T) { formats := Go.GetGoFormats() if len(formats) < 1 { t.Error("should have one go format tool [gofmt] at least") } }
explode_data.jsonl/154
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 63 }
[ 2830, 3393, 1949, 10850, 44599, 1155, 353, 8840, 836, 8, 341, 37410, 1862, 1669, 5994, 2234, 10850, 44599, 2822, 743, 2422, 16760, 1862, 8, 366, 220, 16, 341, 197, 3244, 6141, 445, 5445, 614, 825, 728, 3561, 5392, 508, 70, 1055, 2501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSmallerTimeout(t *testing.T) { testcases := []struct { t1, t2, want time.Duration }{{ t1: 0, t2: 0, want: 0, }, { t1: 0, t2: 1 * time.Millisecond, want: 1 * time.Millisecond, }, { t1: 1 * time.Millisecond, t2: 0, want: 1 * time.Millisecond, }, { t1: 1 * time.Millisecond...
explode_data.jsonl/79994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 318 }
[ 2830, 3393, 10673, 13956, 7636, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 3244, 16, 11, 259, 17, 11, 1366, 882, 33795, 198, 197, 15170, 515, 197, 3244, 16, 25, 256, 220, 15, 345, 197, 3244, 17, 25, 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 TestSecrets(t *testing.T) { _, s := framework.RunAMaster(nil) defer s.Close() client := clientset.NewForConfigOrDie(&restclient.Config{Host: s.URL, ContentConfig: restclient.ContentConfig{GroupVersion: &api.Registry.GroupOrDie(v1.GroupName).GroupVersion}}) ns := framework.CreateTestingNamespace("secret", s, ...
explode_data.jsonl/27867
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 19773, 82, 1155, 353, 8840, 836, 8, 341, 197, 6878, 274, 1669, 12626, 16708, 1402, 2300, 27907, 340, 16867, 274, 10421, 2822, 25291, 1669, 2943, 746, 7121, 2461, 2648, 2195, 18175, 2099, 3927, 2972, 10753, 90, 9296, 25, 274,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSendWithCustomEndpoint(t *testing.T) { var tr *http.Request var b []byte ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { tr = r b, _ = ioutil.ReadAll(r.Body) w.Header().Set("Content-Type", "application/json") w.Write([]byte("{ \"name\":\"" + testMessageID + "...
explode_data.jsonl/70174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 417 }
[ 2830, 3393, 11505, 2354, 10268, 27380, 1155, 353, 8840, 836, 8, 341, 2405, 489, 353, 1254, 9659, 198, 2405, 293, 3056, 3782, 198, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 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 TestAgent_DeregisterService(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), "") defer a.Shutdown() service := &structs.NodeService{ ID: "test", Service: "test", } if err := a.AddService(service, nil, false, ""); err != nil { t.Fatalf("err: %v", err) } req, _ := http.NewRequest("PUT", ...
explode_data.jsonl/33634
{ "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, 16810, 1557, 52633, 1571, 1860, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 14676, 16867, 264, 10849, 18452, 2822, 52934, 1669, 609, 1235, 82, 21714, 1860, 515, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestFirstCurrency(t *testing.T) { t.Parallel() pair := NewCurrencyPair("BTC", "USD") actual := pair.FirstCurrency expected := CurrencyItem("BTC") if actual != expected { t.Errorf( "Test failed. GetFirstCurrency(): %s was not equal to expected value: %s", actual, expected, ) } }
explode_data.jsonl/55827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 5338, 26321, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1310, 1669, 1532, 26321, 12443, 445, 59118, 497, 330, 26749, 1138, 88814, 1669, 6716, 15926, 26321, 198, 42400, 1669, 28453, 1234, 445, 59118, 1138, 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...
2
func TestConditionalNoAddArchiveLocation(t *testing.T) { ctx := context.Background() woc := newWoc() setArtifactRepository(woc.controller, &wfv1.ArtifactRepository{S3: &wfv1.S3ArtifactRepository{ S3Bucket: wfv1.S3Bucket{ Bucket: "foo", }, KeyFormat: "path/in/bucket", }}) woc.operate(ctx) pods, err := lis...
explode_data.jsonl/75376
{ "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, 79233, 2753, 2212, 42502, 4707, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 6692, 509, 1669, 501, 54, 509, 741, 8196, 85578, 4624, 3622, 509, 14514, 11, 609, 86, 27890, 16, 50064, 20754, 4624, 90, 50, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMuxBig(t *testing.T) { var r, sr1, sr2, sr3, sr4, sr5, sr6 *chi.Mux r = chi.NewRouter() r.Use(RequestID) // Some inline middleware, 1 // We just love Go's ast tools r.Use(func(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { next.ServeHTTP(w, ...
explode_data.jsonl/17854
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2515 }
[ 2830, 3393, 44, 2200, 15636, 1155, 353, 8840, 836, 8, 341, 2405, 435, 11, 18962, 16, 11, 18962, 17, 11, 18962, 18, 11, 18962, 19, 11, 18962, 20, 11, 18962, 21, 353, 14604, 1321, 2200, 198, 7000, 284, 25798, 7121, 9523, 741, 7000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRegister(t *testing.T) { ctx := context.Background() p := &hub.Package{ Name: "package1", Description: "description", HomeURL: "home_url", LogoImageID: "image_id", Keywords: []string{"kw1", "kw2"}, Readme: "readme-version-1.0.0", Links: []*hub.Link{ { Name: "Source", ...
explode_data.jsonl/74685
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2147 }
[ 2830, 3393, 8690, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 2822, 3223, 1669, 609, 26682, 49834, 515, 197, 21297, 25, 286, 330, 1722, 16, 756, 197, 47414, 25, 330, 4684, 756, 197, 197, 7623, 3144, 25, 257, 330, 5117, 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 TestInterlaceFieldInfoUnmarshalText(t *testing.T) { tests := []struct { input string wantTFF int wantBFF int wantProgressive int wantUndetermined int wantErr bool }{ {"detection: TFF: 1 BFF: 2 Progressive: 3 Undetermined: 4", 1, 2, 3, 4, false}, {"detection:...
explode_data.jsonl/9142
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 609 }
[ 2830, 3393, 3306, 26536, 1877, 1731, 1806, 27121, 1178, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 22427, 310, 914, 198, 197, 50780, 51, 1748, 688, 526, 198, 197, 50780, 33, 1748, 688, 526, 198, 197, 50780, 9496,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewIntArrayFromCopy(t *testing.T) { gtest.C(t, func(t *gtest.T) { a1 := []int{1, 2, 3, 5, 3} array1 := garray.NewIntArrayFromCopy(a1) t.Assert(array1.Len(), 5) t.Assert(array1, a1) }) }
explode_data.jsonl/47622
{ "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, 3564, 95338, 3830, 12106, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11323, 16, 1669, 3056, 396, 90, 16, 11, 220, 17, 11, 220, 18, 11, 220, 20, 11, 220, 18, 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...
1
func TestTlfNameChangePrivate(t *testing.T) { test(t, users("alice", "bob", "charlie"), inPrivateTlf("alice,bob,charlie@twitter"), as(alice, mkfile("foo.txt", "hello world"), ), as(bob, read("foo.txt", "hello world"), ), as(charlie, expectError(initRoot(), "charlie does not have read access to d...
explode_data.jsonl/41323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 355 }
[ 2830, 3393, 51, 11008, 675, 4072, 16787, 1155, 353, 8840, 836, 8, 341, 18185, 1155, 345, 197, 90896, 445, 63195, 497, 330, 47086, 497, 330, 1762, 11567, 4461, 197, 17430, 16787, 51, 11008, 445, 63195, 8402, 674, 42381, 11567, 31, 14679,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestKeyMatchCustomModel(t *testing.T) { e, _ := NewEnforcer("examples/keymatch_custom_model.conf", "examples/keymatch2_policy.csv") e.AddFunction("keyMatchCustom", CustomFunctionWrapper) testEnforce(t, e, "alice", "/alice_data2/myid", "GET", false) testEnforce(t, e, "alice", "/alice_data2/myid/using/res_id",...
explode_data.jsonl/57134
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 1592, 8331, 10268, 1712, 1155, 353, 8840, 836, 8, 341, 7727, 11, 716, 1669, 1532, 1702, 82010, 445, 51668, 68864, 6347, 15875, 5047, 13937, 497, 330, 51668, 68864, 6347, 17, 22773, 11219, 5130, 7727, 1904, 5152, 445, 792, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetentionPolicy(t *testing.T) { setTestingT(t) testDir := path.Join(os.TempDir(), "duplicacy_test", "snapshot_test") snapshotManager := createTestSnapshotManager(testDir) chunkSize := 1024 var chunkHashes [] string for i := 0; i < 30; i++ { chunkHashes = append(chunkHashes, ...
explode_data.jsonl/54063
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 596 }
[ 2830, 3393, 12020, 78165, 1155, 353, 8840, 836, 8, 1476, 262, 738, 16451, 51, 1155, 692, 262, 1273, 6184, 1669, 1815, 22363, 9638, 65009, 6184, 1507, 330, 67, 9846, 2757, 4452, 497, 330, 35501, 4452, 5130, 262, 16295, 2043, 1669, 1855, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZfsGeneratesMetrics(t *testing.T) { err := os.MkdirAll(testKstatPath, 0755) require.NoError(t, err) err = os.MkdirAll(testKstatPath+"/HOME", 0755) require.NoError(t, err) err = ioutil.WriteFile(testKstatPath+"/HOME/io", []byte(""), 0644) require.NoError(t, err) err = ioutil.WriteFile(testKstatPath+"/...
explode_data.jsonl/74907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 731 }
[ 2830, 3393, 57, 3848, 5531, 973, 27328, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 2643, 1321, 12438, 2403, 8623, 42, 9878, 1820, 11, 220, 15, 22, 20, 20, 340, 17957, 35699, 1155, 11, 1848, 692, 9859, 284, 2643, 1321, 12438, 2403, 86...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPHPParserHW(t *testing.T) { testStr := `hello world` p := NewParser() p.disableScoping = true a, _ := p.Parse("test.php", testStr) tree := ast.Echo(ast.Literal{Type: ast.String, Value: `hello world`}) if !assertEquals(a.Nodes[0], tree) { t.Fatalf("Hello world did not correctly parse") } }
explode_data.jsonl/28427
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 15158, 6570, 38252, 1155, 353, 8840, 836, 8, 341, 18185, 2580, 1669, 1565, 14990, 1879, 3989, 3223, 1669, 1532, 6570, 741, 3223, 42628, 3326, 33707, 284, 830, 198, 11323, 11, 716, 1669, 281, 8937, 445, 1944, 2296, 497, 1273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPaymentsBad(t *testing.T) { _, err := client.Pay(&Payment{ Invoice: "x", }) if err == nil { t.Errorf(".Pay() should have returned an error") } }
explode_data.jsonl/42391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 67 }
[ 2830, 3393, 87646, 17082, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 2943, 95405, 2099, 20188, 515, 197, 197, 34674, 25, 330, 87, 756, 197, 3518, 743, 1848, 621, 2092, 341, 197, 3244, 13080, 5680, 20595, 368, 1265, 614, 5927...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_String(t *testing.T) { c := "hello" iter := NewIter(c) bs := []byte{'h', 'e', 'l', 'l', 'o'} var k int var v byte var idx int for iter.Next() { Key(iter, &k) Value(iter, &v) if k != idx { t.Fail() } if v != bs[idx] { t.Fail() } idx++ } }
explode_data.jsonl/52934
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 31777, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 330, 14990, 698, 79924, 1669, 1532, 8537, 1337, 340, 93801, 1669, 3056, 3782, 13608, 71, 516, 364, 68, 516, 364, 75, 516, 364, 75, 516, 364, 78, 16418, 2405, 595, 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...
4
func TestFormatSyntaxLine(t *testing.T) { tests := []struct { input string expected string }{ {"Syntax {{example}}", " \x1b[34mSyntax \x1b[0m\x1b[37mexample\x1b[0m\x1b[34m\x1b[0m\n"}, {"Syntax {{example}}{{2}}", " \x1b[34mSyntax \x1b[0m\x1b[37mexample2\x1b[0m\x1b[34m\x1b[0m\n"}, {"Empty {{}}", " \x1b[...
explode_data.jsonl/12225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 240 }
[ 2830, 3393, 4061, 33890, 2460, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 22427, 262, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 4913, 33890, 5867, 8687, 3417, 497, 330, 220, 1124, 87, 16, 65, 58, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRecordsGetCopies(t *testing.T) { recs, l1, l2 := newTestRecordList() ev := NewEvent("foo") _, out := recs.Find("foo") l3 := newMockListener() originalList := out.getList() assert.Equal(t, originalList, []Listener{l2, l1}) recs.Add(ev, l3) assert.Equal(t, originalList, []Listener{l2, l1}) updatedList...
explode_data.jsonl/25275
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 25876, 1949, 56277, 550, 1155, 353, 8840, 836, 8, 341, 67904, 82, 11, 326, 16, 11, 326, 17, 1669, 501, 2271, 6471, 852, 741, 74837, 1669, 1532, 1556, 445, 7975, 1138, 197, 6878, 700, 1669, 1395, 82, 9998, 445, 7975, 1138...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSerializeHeader(t *testing.T) { tag := packetTypePublicKey lengths := []int{0, 1, 2, 64, 192, 193, 8000, 8384, 8385, 10000} for _, length := range lengths { buf := bytes.NewBuffer(nil) serializeHeader(buf, tag, length) tag2, length2, _, err := readHeader(buf) if err != nil { t.Errorf("length %d,...
explode_data.jsonl/52946
{ "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, 15680, 4047, 1155, 353, 8840, 836, 8, 341, 60439, 1669, 10151, 929, 61822, 198, 49046, 82, 1669, 3056, 396, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 21, 19, 11, 220, 16, 24, 17, 11, 220, 16, 24, 18, 11, 220, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateSubscriptions(t *testing.T) { t.Parallel() subs, err := b.GenerateSubscriptions() if err != nil { t.Fatal(err) } if len(subs) != 8 { t.Fatal("unexpected subscription length") } }
explode_data.jsonl/76698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 31115, 3136, 29966, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 15738, 11, 1848, 1669, 293, 57582, 3136, 29966, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 743, 2422, 10624, 82, 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 ]
3
func TestInit(t *testing.T) { if _, err := exec.LookPath("diff"); err != nil { t.Skip("command diff not found, skipping") } buf := new(bytes.Buffer) gopathorig := os.Getenv("GOPATH") defer func() { xout = os.Stderr buildN = false buildX = false os.Setenv("GOPATH", gopathorig) }() xout = buf buildN = t...
explode_data.jsonl/1271
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 912 }
[ 2830, 3393, 3803, 1155, 353, 8840, 836, 8, 341, 743, 8358, 1848, 1669, 3883, 36851, 1820, 445, 13490, 5038, 1848, 961, 2092, 341, 197, 3244, 57776, 445, 5631, 3638, 537, 1730, 11, 42659, 1138, 197, 532, 26398, 1669, 501, 23158, 22622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDryRunUpdateMissingObjectFails(t *testing.T) { s, destroy := NewDryRunnableTestStorage(t) defer destroy() obj := UnstructuredOrDie(`{"kind": "Pod"}`) updateFunc := func(input runtime.Object, res storage.ResponseMeta) (output runtime.Object, ttl *uint64, err error) { return input, nil, errors.New("Updat...
explode_data.jsonl/5461
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 208 }
[ 2830, 3393, 85215, 6727, 4289, 25080, 1190, 37, 6209, 1155, 353, 8840, 836, 8, 341, 1903, 11, 6921, 1669, 1532, 85215, 68836, 2271, 5793, 1155, 340, 16867, 6921, 2822, 22671, 1669, 1230, 51143, 2195, 18175, 5809, 4913, 15314, 788, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTeamsService_GetTeamBySlug_invalidOrg(t *testing.T) { client, _, _, teardown := setup() defer teardown() ctx := context.Background() _, _, err := client.Teams.GetTeamBySlug(ctx, "%", "s") testURLParseError(t, err) }
explode_data.jsonl/4512
{ "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, 60669, 1860, 13614, 14597, 1359, 54968, 31433, 42437, 1155, 353, 8840, 836, 8, 341, 25291, 11, 8358, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 20985, 1669, 2266, 19047, 741, 197, 6878, 8358, 1848, 1669, 2943, 94849, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAim_FromIP(t *testing.T) { aim := &Aim{} localIp := aim.FromIP() found := false addrs, _ := net.InterfaceAddrs() for _, addr := range addrs { if ipnet, ok := addr.(*net.IPNet); ok && !ipnet.IP.IsLoopback() { if ipnet.IP.To4() != nil { if localIp == ipnet.IP.String() { found = true } ...
explode_data.jsonl/10025
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 32, 318, 53157, 3298, 1155, 353, 8840, 836, 8, 341, 197, 2640, 1669, 609, 32, 318, 16094, 8854, 23378, 1669, 9213, 11439, 3298, 2822, 58102, 1669, 895, 198, 12718, 5428, 11, 716, 1669, 4179, 41065, 2212, 5428, 741, 2023, 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...
7
func TestRouting_addBotHandler(t *testing.T) { defer gock.Off() ch.Name = "@TestBot" outgoing, _ := json.Marshal(ch) p := url.Values{"url": {"https://" + config.HTTPServer.Host + "/telegram/123123:Qwerty"}} gock.New("https://api.telegram.org"). Post("/bot123123:Qwerty/getMe"). Reply(200). BodyString(`{"ok...
explode_data.jsonl/62463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 687 }
[ 2830, 3393, 24701, 2891, 23502, 3050, 1155, 353, 8840, 836, 8, 341, 16867, 728, 377, 13, 4596, 2822, 23049, 2967, 284, 8428, 2271, 23502, 1837, 13967, 9546, 11, 716, 1669, 2951, 37271, 7520, 340, 3223, 1669, 2515, 35145, 4913, 1085, 788...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestFillReqeustTransformerNestedConfig(t *testing.T) { assert := assert.New(t) var schema map[string]interface{} err := json.Unmarshal([]byte(RequestTransformerSchema), &schema) assert.Nil(err) config := make(kong.Configuration) err = json.Unmarshal([]byte(RequestTransformerNonEmptyConfig), &config) assert...
explode_data.jsonl/79413
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 14449, 27234, 68, 590, 46358, 71986, 2648, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 2405, 10802, 2415, 14032, 31344, 16094, 9859, 1669, 2951, 38097, 10556, 3782, 12951, 46358, 8632, 701, 609, 17349, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetry(t *testing.T) { err := Do(4, func(attempt int) (err error) { if attempt < 3 { err = errors.New("") } return err }) if err != nil { t.Fail() } }
explode_data.jsonl/72025
{ "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, 51560, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 3155, 7, 19, 11, 2915, 19356, 4213, 526, 8, 320, 615, 1465, 8, 341, 197, 743, 4774, 366, 220, 18, 341, 298, 9859, 284, 5975, 7121, 31764, 197, 197, 532, 197, 853, 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 ]
2
func TestTransportHeadResponses(t *testing.T) { defer afterTest(t) ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { if r.Method != "HEAD" { panic("expected HEAD; got " + r.Method) } w.Header().Set("Content-Length", "123") w.WriteHeader(200) })) defer ts.Close() tr := &Transport...
explode_data.jsonl/4882
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 422 }
[ 2830, 3393, 27560, 12346, 70743, 1155, 353, 8840, 836, 8, 341, 16867, 1283, 2271, 1155, 340, 57441, 1669, 54320, 70334, 7121, 5475, 7, 3050, 9626, 18552, 3622, 5949, 6492, 11, 435, 353, 1900, 8, 341, 197, 743, 435, 20798, 961, 330, 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...
2
func TestEtcdCreatePodWithContainersError(t *testing.T) { ctx := api.NewDefaultContext() fakeClient := tools.NewFakeEtcdClient(t) fakeClient.TestIndex = true key, _ := makePodKey(ctx, "foo") fakeClient.Data[key] = tools.EtcdResponseWithError{ R: &etcd.Response{ Node: nil, }, E: tools.EtcdErrorNotFound, }...
explode_data.jsonl/8143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 460 }
[ 2830, 3393, 31860, 4385, 4021, 23527, 2354, 74632, 1454, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6330, 7121, 3675, 1972, 741, 1166, 726, 2959, 1669, 7375, 7121, 52317, 31860, 4385, 2959, 1155, 340, 1166, 726, 2959, 8787, 1552, 284, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestInflection(t *testing.T) { Convey("Singularize", t, func() { var tests = []struct { Word string Result string }{ {"Users", "User"}, {"Books", "Book"}, {"Potatoes", "Potato"}, {"Students", "Student"}, } for _, test := range tests { So(singularize(test.Word), ShouldEqual, test.Re...
explode_data.jsonl/56498
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1104 }
[ 2830, 3393, 19433, 1170, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 50, 41880, 551, 497, 259, 11, 2915, 368, 341, 197, 2405, 7032, 284, 3056, 1235, 341, 298, 197, 10879, 256, 914, 198, 298, 56503, 914, 198, 197, 197, 59403, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecodeSimpleTCPPacket(t *testing.T) { equal := func(desc, want string, got fmt.Stringer) { if want != got.String() { t.Errorf("%s: got %q want %q", desc, got.String(), want) } } p := gopacket.NewPacket(testSimpleTCPPacket, LinkTypeEthernet, gopacket.DecodeOptions{Lazy: true, NoCopy: true}) if eth :=...
explode_data.jsonl/42250
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1770 }
[ 2830, 3393, 32564, 16374, 7749, 4406, 5709, 1155, 353, 8840, 836, 8, 341, 7727, 1751, 1669, 2915, 37673, 11, 1366, 914, 11, 2684, 8879, 6431, 261, 8, 341, 197, 743, 1366, 961, 2684, 6431, 368, 341, 298, 3244, 13080, 4430, 82, 25, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestImpersonation(t *testing.T) { // Scenario: We have 2 organizations: orgA, orgB // and each of them are in their respected channels- A, B. // The test would obtain credentials.TransportCredentials by calling GetDeliverServiceCredentials. // Each organization would have its own gRPC server (srvA and srvB) wi...
explode_data.jsonl/73364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 431 }
[ 2830, 3393, 25216, 1270, 367, 1155, 353, 8840, 836, 8, 341, 197, 322, 58663, 25, 1205, 614, 220, 17, 11104, 25, 1240, 32, 11, 1240, 33, 198, 197, 322, 323, 1817, 315, 1105, 525, 304, 862, 30287, 11744, 12, 362, 11, 425, 624, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_UpdateManager_UpdateStopVisit(t *testing.T) { model := NewMemoryModel() objectid := NewObjectID("kind", "value") sa := model.StopAreas().New() sa.SetObjectID(objectid) sa.Save() l := model.Lines().New() l.SetObjectID(objectid) l.Save() vj := model.VehicleJourneys().New() vj.SetObjectID(objectid) ...
explode_data.jsonl/49836
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 521 }
[ 2830, 3393, 47393, 2043, 47393, 10674, 26218, 1155, 353, 8840, 836, 8, 341, 19727, 1669, 1532, 10642, 1712, 741, 35798, 307, 1669, 1532, 1190, 915, 445, 15314, 497, 330, 957, 1138, 1903, 64, 1669, 1614, 30213, 71237, 1005, 3564, 741, 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...
5
func TestPrepareTaskRequestEnvironment(t *testing.T) { t.Parallel() Convey(`Make sure we can create the correct Cmd from a fetched task's properties.`, t, func() { c := reproduceRun{} c.init(&testAuthFlags{}) var cipdSlicesByPath map[string]ensure.PackageSlice c.cipdDownloader = func(ctx context.Context, work...
explode_data.jsonl/74870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2136 }
[ 2830, 3393, 50590, 6262, 1900, 12723, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 93070, 5617, 5809, 8078, 2704, 582, 646, 1855, 279, 4396, 40210, 504, 264, 41442, 3383, 594, 5888, 13, 7808, 259, 11, 2915, 368, 341, 197, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewWithInvalidBuilderKeyPath(t *testing.T) { host := "127.0.0.1" port := "80" _, err := New(host, port) assert.True(t, err != nil, "no error received when there should have been") }
explode_data.jsonl/39387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 3564, 2354, 7928, 3297, 1592, 1820, 1155, 353, 8840, 836, 8, 341, 63104, 1669, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 698, 52257, 1669, 330, 23, 15, 698, 197, 6878, 1848, 1669, 1532, 19973, 11, 2635, 340, 6948, 32443...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFindFitSomeError(t *testing.T) { nodes := makeNodeList([]string{"3", "2", "1"}) scheduler := makeScheduler( nodes, st.RegisterQueueSortPlugin(queuesort.Name, queuesort.New), st.RegisterFilterPlugin("TrueFilter", NewTrueFilterPlugin), st.RegisterFilterPlugin("MatchFilter", NewMatchFilterPlugin), st....
explode_data.jsonl/2391
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 446 }
[ 2830, 3393, 9885, 23346, 8373, 1454, 1155, 353, 8840, 836, 8, 341, 79756, 1669, 1281, 1955, 852, 10556, 917, 4913, 18, 497, 330, 17, 497, 330, 16, 23625, 1903, 15222, 1669, 1281, 38878, 1006, 197, 79756, 345, 197, 18388, 19983, 7554, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWholeFileRead(t *testing.T) { // read the whole file if lineSize != int64(len(entries[0])+1) { t.Fatal("test setup error: entries length doesn't match expected line size") } bufSize := len(file) buf := make([]byte, bufSize) vf := newTestValidationFile(entries) r, err := vf.Read(buf, 0, fs.WhenceFrom...
explode_data.jsonl/16786
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 90582, 1703, 4418, 1155, 353, 8840, 836, 8, 341, 197, 322, 1349, 279, 4361, 1034, 198, 743, 1555, 1695, 961, 526, 21, 19, 6901, 72009, 58, 15, 47966, 16, 8, 341, 197, 3244, 26133, 445, 1944, 6505, 1465, 25, 10695, 3084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangeStream(t *testing.T) { ast := require.New(t) cli := initClient("test") defer cli.Close(context.Background()) defer cli.DropCollection(context.Background()) opts := &options.ChangeStreamOptions{officialOpts.ChangeStream()} c, e := cli.Watch(context.Background(), mongo.Pipeline{}, opts) ast.NoError...
explode_data.jsonl/18383
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 4072, 3027, 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, 12367, 64734, 1669, 609, 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 TestPrivateActivityNoHeatmapVisibleForUserItselfAtProfile(t *testing.T) { defer prepareTestEnv(t)() testPrivateActivityDoSomethingForActionEntries(t) session := loginUser(t, privateActivityTestUser) visible := testPrivateActivityHelperHasVisibleProfileHeatmapFromSession(t, session) assert.True(t, visible, "...
explode_data.jsonl/51654
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 16787, 4052, 2753, 61306, 2186, 5715, 2461, 1474, 2132, 721, 1655, 8526, 1155, 353, 8840, 836, 8, 341, 16867, 10549, 2271, 14359, 1155, 8, 741, 18185, 16787, 4052, 5404, 23087, 2461, 2512, 24533, 1155, 692, 25054, 1669, 87169,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetrievePGVersion(t *testing.T) { ver, err := RetrievePGVersion(db.db) if err != nil { t.Errorf("Failed to retrieve postgres version: %v", err) } t.Logf("\n%s", ver) }
explode_data.jsonl/64633
{ "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, 87665, 11383, 5637, 1155, 353, 8840, 836, 8, 341, 197, 423, 11, 1848, 1669, 31562, 11383, 5637, 9791, 7076, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 9408, 311, 17179, 59826, 2319, 25, 1018, 85, 497, 1848, 340...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogTreeTX_GetLeavesByHash(t *testing.T) { t.Run("no placeholder", func(t *testing.T) { ndb, done := openTestDBOrDie() tx, err := ndb.BeginTx(context.Background(), nil /* opts */) require.NoError(t, err) done(context.Background()) _, err = (&logTreeTX{ ls: NewLogStorage(ndb, nil).(*postgresLogS...
explode_data.jsonl/30684
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 2201, 6533, 22867, 13614, 2304, 4693, 1359, 6370, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 2152, 5878, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 303, 65, 11, 2814, 1669, 1787, 2271, 3506, 2195, 18175, 2822,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetSecret(t *testing.T) { var ( lsSecrets = []*v1.Secret{ testutil.FakeSecret("namespace-0", "name-0", map[string]string{"key-0": "val-0"}), testutil.FakeSecret("namespace-1", "name-1", map[string]string{"key-1": "val-1"}), } ) // Create a secret lister that will list the secrets defined above. ...
explode_data.jsonl/73402
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 468 }
[ 2830, 3393, 1949, 19773, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 197, 4730, 19773, 82, 284, 29838, 85, 16, 74779, 515, 298, 18185, 1314, 991, 726, 19773, 445, 2231, 12, 15, 497, 330, 606, 12, 15, 497, 2415, 14032, 30953, 4913...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteObject(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandleDeleteObjectSuccessfully(t) res := Delete(fake.ServiceClient(), "testContainer", "testObject", nil) th.AssertNoErr(t, res.Err) }
explode_data.jsonl/30754
{ "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, 6435, 1190, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 6435, 1190, 35959, 1155, 692, 10202, 1669, 10428, 74138, 13860, 2959, 1507, 330, 1944, 4502, 497, 330, 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
func TestAPISelector_SelectDefaultWhenBadJSON(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { fmt.Fprintf(w, `{"data`) })) defer ts.Close() u, _ := url.Parse(ts.URL) actual, err := NewAPISelector(u).Select(context.TODO(), &Params{}) assert.Equal(t, actu...
explode_data.jsonl/18681
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 7082, 5877, 58073, 3675, 4498, 17082, 5370, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 4232, 353, 1254, 9659, 8, 341, 197, 11009, 59559, 3622, 11, 1565, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBareSpec(t *testing.T) { testDataDir = filepath.Join(repoRootDir, "cmd/mesh/testdata/manifest-generate") t.Run("multi-ICPS files", func(t *testing.T) { inPathBase := filepath.Join(testDataDir, "input/bare_spec.yaml") _, err := runManifestGenerate([]string{inPathBase}, "") if err != nil { t.Fatal(err...
explode_data.jsonl/55978
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 33, 546, 8327, 1155, 353, 8840, 836, 8, 341, 18185, 1043, 6184, 284, 26054, 22363, 50608, 8439, 6184, 11, 330, 8710, 3183, 4288, 12697, 691, 14, 42315, 2371, 13220, 1138, 3244, 16708, 445, 26268, 12, 1317, 5012, 3542, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetBucket(t *testing.T) { symbol := "XBTUSD" startTime := time.Date(2017, 1, 0, 0, 0, 0, 0, time.UTC) trades, err := client.GetBuckets(symbol, startTime, "1H") if err != nil { t.Error(err) } if len(trades) == 0 { t.Fatalf("Did not load any trades from GetBucket()") } if trades[0].Symbol != symbol {...
explode_data.jsonl/13168
{ "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, 1949, 36018, 1155, 353, 8840, 836, 8, 341, 1903, 4001, 1669, 330, 55, 17602, 26749, 698, 21375, 1462, 1669, 882, 8518, 7, 17, 15, 16, 22, 11, 220, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 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...
4
func TestRequestAllCheckpoint_RequestValue(t *testing.T) { req, err := http.NewRequest(http.MethodPost, "http://teaos.cn/hello/world", bytes.NewBuffer([]byte("123456"))) if err != nil { t.Fatal(err) } checkpoint := new(RequestAllCheckpoint) v, sysErr, userErr := checkpoint.RequestValue(requests.NewRequest(req),...
explode_data.jsonl/79078
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 235 }
[ 2830, 3393, 1900, 2403, 92688, 44024, 1130, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 19886, 20798, 4133, 11, 330, 1254, 1110, 665, 64866, 22057, 7530, 4791, 78892, 497, 5820, 7121, 4095, 10556, 3782, 445, 16, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestSearcher_ACHFindCityOnly(t *testing.T) { s := searcher{} if err := s.helperLoadFEDACHFile(t); err != nil { t.Fatal(err) } achP := s.ACHFindCityOnly(hardResultsLimit, "CALDWELL") if len(achP) == 0 { t.Fatalf("%s", "No matches found for city") } for _, p := range achP { if !strings.Contains(p.Cit...
explode_data.jsonl/71092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 5890, 261, 1566, 2149, 9885, 12730, 7308, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 94674, 16094, 743, 1848, 1669, 274, 38922, 5879, 37, 1479, 11873, 1703, 1155, 1215, 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 TestAppMeshObserver_GetRequestDuration(t *testing.T) { expected := ` histogram_quantile( 0.99, sum( rate( envoy_cluster_upstream_rq_time_bucket{ kubernetes_namespace="default", kubernetes_pod_name=~"podinfo-[0-9a-zA-Z]+(-[0-9a-zA-Z]+)" }[1m] ) ) by (le) )` ts := httptest.NewServer(http.HandlerFunc(func(w http.R...
explode_data.jsonl/77790
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 443 }
[ 2830, 3393, 2164, 14194, 17151, 13614, 1900, 12945, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 1565, 30281, 53346, 457, 7, 220, 15, 13, 24, 24, 11, 2629, 7, 4379, 7, 59530, 28441, 8237, 4027, 79638, 3009, 38749, 90, 595, 29827, 41571,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGermanMonth(t *testing.T) { cases := []struct { in time.Month expected string }{ {1, "Januar"}, {2, "Februar"}, {3, "März"}, {4, "April"}, {5, "Mai"}, {6, "Juni"}, {7, "Juli"}, {8, "August"}, {9, "September"}, {10, "Oktober"}, {11, "November"}, {12, "Dezember"}, } for _, c...
explode_data.jsonl/67946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 32079, 11318, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 17430, 981, 882, 48383, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 90, 16, 11, 330, 18315, 18731, 7115, 197, 197, 90, 17, 11, 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...
3
func TestUnversionedPost(t *testing.T) { f := newFixture(t) post := func() *http.Request { return newReqUnversioned(http.MethodPost, "/", ` { "foo": { "bar": [1,2,3] } }`) } f.server.Handler.ServeHTTP(f.recorder, post()) if f.recorder.Code != 404 { t.Fatalf("Expected not found before policy a...
explode_data.jsonl/79028
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 326 }
[ 2830, 3393, 1806, 4366, 291, 4133, 1155, 353, 8840, 836, 8, 1476, 1166, 1669, 501, 18930, 1155, 692, 51172, 1669, 2915, 368, 353, 1254, 9659, 341, 197, 853, 501, 27234, 1806, 4366, 291, 19886, 20798, 4133, 11, 64657, 22074, 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 TestConfigCopyCanBeUsedToConnect(t *testing.T) { connString := os.Getenv("PGX_TEST_DATABASE") original, err := pgx.ParseConfig(connString) require.NoError(t, err) copied := original.Copy() assert.NotPanics(t, func() { _, err = pgx.ConnectConfig(context.Background(), copied) }) assert.NoError(t, err) }
explode_data.jsonl/40001
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 2648, 12106, 69585, 22743, 1249, 14611, 1155, 353, 8840, 836, 8, 341, 32917, 703, 1669, 2643, 64883, 445, 11383, 55, 11641, 45510, 1138, 197, 9889, 11, 1848, 1669, 17495, 87, 8937, 2648, 20571, 703, 340, 17957, 35699, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTokenRotationAtEndOfRequest(t *testing.T) { reqContext, rr, err := initTokenRotationTest(context.Background()) require.NoError(t, err) uts := &auth.FakeUserAuthTokenService{ TryRotateTokenProvider: func(ctx context.Context, token *models.UserToken, clientIP net.IP, userAgent string) (bool, error) { ...
explode_data.jsonl/19359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 322 }
[ 2830, 3393, 3323, 18440, 1655, 3727, 2124, 1900, 1155, 353, 8840, 836, 8, 341, 24395, 1972, 11, 34393, 11, 1848, 1669, 2930, 3323, 18440, 2271, 5378, 19047, 2398, 17957, 35699, 1155, 11, 1848, 692, 197, 6128, 1669, 609, 3242, 991, 726, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestListBoards(t *testing.T) { req := httptest.NewRequest("GET", "/boards/", nil) req.Header.Set("Accept", "text/html") w := httptest.NewRecorder() router.ServeHTTP(w, req) httpassert.Success(t, w) httpassert.HtmlContentType(t, w) }
explode_data.jsonl/12538
{ "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, 852, 1233, 2347, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 54320, 70334, 75274, 445, 3806, 497, 3521, 19270, 28105, 2092, 340, 24395, 15753, 4202, 445, 16646, 497, 330, 1318, 13739, 5130, 6692, 1669, 54320, 70334, 7121, 47023...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNasTypeRequestedNSSAIGetSetLen(t *testing.T) { a := nasType.NewRequestedNSSAI(nasMessage.RegistrationRequestRequestedNSSAIType) for _, table := range nasTypeAuthenticationResultRequestedNSSAILenTable { a.SetLen(table.in) assert.Equal(t, table.out, a.GetLen()) } }
explode_data.jsonl/38093
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 104 }
[ 2830, 3393, 45, 300, 929, 37630, 53302, 32, 1914, 295, 1649, 11271, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 17141, 929, 7121, 37630, 53302, 15469, 1445, 300, 2052, 8989, 4048, 1900, 37630, 53302, 15469, 929, 340, 2023, 8358, 1965, 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...
2
func TestCovariance(t *testing.T) { for i, test := range []struct { p []float64 q []float64 weights []float64 ans float64 }{ { p: []float64{0.75, 0.1, 0.05}, q: []float64{0.5, 0.25, 0.25}, ans: 0.05625, }, { p: []float64{1, 2, 3}, q: []float64{2, 4, 6}, ans: 2, ...
explode_data.jsonl/1762
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 637 }
[ 2830, 3393, 34, 859, 36905, 1155, 353, 8840, 836, 8, 341, 2023, 600, 11, 1273, 1669, 2088, 3056, 1235, 341, 197, 3223, 981, 3056, 3649, 21, 19, 198, 197, 18534, 981, 3056, 3649, 21, 19, 198, 197, 197, 13327, 3056, 3649, 21, 19, 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 TestRejectBadServerIDV6(t *testing.T) { req, err := dhcpv6.NewMessage() if err != nil { t.Fatal(err) } v6ServerID = makeTestDUID("0000000000000000") req.MessageType = dhcpv6.MessageTypeRenew dhcpv6.WithClientID(*makeTestDUID("1000000000000000"))(req) dhcpv6.WithServerID(*makeTestDUID("0000000000000001"))...
explode_data.jsonl/39206
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 247 }
[ 2830, 3393, 78413, 17082, 5475, 915, 53, 21, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 85787, 85, 21, 7121, 2052, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 5195, 21, 5475, 915, 284, 1281, 2271...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestSimpleSingleAlarmDigest(t *testing.T) { result := runLocalShardTest(t, change(user1, alarm1, wire.StatusCritical, time1), send(user1), ) require.Len(t, result, 1) assert.Equal(t, wire.AlarmDigest{ UserID: user1, ActiveAlarms: []wire.Alarm{ { AlarmID: alarm1, Status: wire...
explode_data.jsonl/3245
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 16374, 10888, 43444, 45217, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 1598, 7319, 2016, 567, 2271, 1155, 345, 197, 68380, 4277, 16, 11, 16624, 16, 11, 9067, 10538, 42008, 11, 882, 16, 1326, 197, 32817, 4277, 16, 1326, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_WithinTimeFrame(t *testing.T) { assert.True(t, WithinTimeFrame(to.Timep(time.Now()), 10*time.Second, 10*time.Second)) assert.False(t, WithinTimeFrame(to.Timep(time.Now().Add(10*time.Minute)), 10*time.Second, 10*time.Second)) assert.False(t, WithinTimeFrame(to.Timep(time.Now().Add(-10*time.Minute)), 10*tim...
explode_data.jsonl/49604
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 62, 41961, 1462, 4369, 1155, 353, 8840, 836, 8, 341, 6948, 32443, 1155, 11, 24236, 1462, 4369, 12186, 16299, 79, 9730, 13244, 11858, 220, 16, 15, 77053, 32435, 11, 220, 16, 15, 77053, 32435, 4390, 6948, 50757, 1155, 11, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRectangle(t *testing.T) { err := initTesting() if err != nil { t.Error(err) return } // create pdf. pdf := GoPdf{} pdf.Start(Config{PageSize: *PageSizeA4}) pdf.AddPage() pdf.SetStrokeColor(240, 98, 146) pdf.SetLineWidth(1) pdf.SetFillColor(255, 255, 255) // draw rectangle with round radius err...
explode_data.jsonl/60946
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 401 }
[ 2830, 3393, 21095, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 2930, 16451, 741, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 853, 198, 197, 532, 197, 322, 1855, 12782, 624, 3223, 2940, 1669, 5994, 67596, 16094, 3223, 294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReconcile(t *testing.T) { g := gomega.NewGomegaWithT(t) ctrl := gomock.NewController(t) defer ctrl.Finish() // Setup the Manager and Controller. Wrap the Controller Reconcile function so it writes each request to a // channel when it is finished. mgr, err := manager.New(cfg, manager.Options{ MetricsB...
explode_data.jsonl/58269
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1463 }
[ 2830, 3393, 693, 40446, 457, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 322, 18626, 279, 10567, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDingTalk_ChatFriendSwitch(t *testing.T) { res, err := client.ChatFriendSwitch("chat8ff884ef696f5717678c6280edfdbbf1", true) assert.Nil(t, err) assert.NotNil(t, res) }
explode_data.jsonl/32610
{ "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, 35, 287, 36210, 920, 9198, 41637, 16837, 1155, 353, 8840, 836, 8, 341, 10202, 11, 1848, 1669, 2943, 58844, 41637, 16837, 445, 9686, 23, 542, 23, 23, 19, 823, 21, 24, 21, 69, 20, 22, 16, 22, 21, 22, 23, 66, 21, 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 TestRoundTripReturnsProxyError(t *testing.T) { badProxy := func(*Request) (*url.URL, error) { return nil, errors.New("errorMessage") } tr := &Transport{Proxy: badProxy} req, _ := NewRequest("GET", "http://example.com", nil) _, err := tr.RoundTrip(req) if err == nil { t.Error("Expected proxy error to ...
explode_data.jsonl/4919
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 27497, 56352, 16446, 16219, 1454, 1155, 353, 8840, 836, 8, 341, 2233, 329, 16219, 1669, 2915, 4071, 1900, 8, 4609, 1085, 20893, 11, 1465, 8, 341, 197, 853, 2092, 11, 5975, 7121, 445, 43169, 1138, 197, 630, 25583, 1669, 609...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestConflictingCurrentContext(t *testing.T) { commandLineFile, _ := ioutil.TempFile("", "") defer os.Remove(commandLineFile.Name()) envVarFile, _ := ioutil.TempFile("", "") defer os.Remove(envVarFile.Name()) mockCommandLineConfig := clientcmdapi.Config{ CurrentContext: "any-context-value", } mockEnvVarCo...
explode_data.jsonl/67850
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 314 }
[ 2830, 3393, 15578, 78208, 5405, 1972, 1155, 353, 8840, 836, 8, 341, 45566, 2460, 1703, 11, 716, 1669, 43144, 65009, 1703, 19814, 14676, 16867, 2643, 13270, 15143, 2460, 1703, 2967, 2398, 57538, 3962, 1703, 11, 716, 1669, 43144, 65009, 170...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestEnsureLoadBalancerHealthCheck(t *testing.T) { tests := []struct { name string annotations map[string]string overriddenFieldName string overriddenValue int64 }{ {"falls back to HC defaults", map[string]string{}, "", int64(0)}, {"healthy threshold override", map[string]s...
explode_data.jsonl/29225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1814 }
[ 2830, 3393, 64439, 5879, 93825, 14542, 3973, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 394, 914, 198, 197, 197, 39626, 260, 2415, 14032, 30953, 198, 197, 197, 1975, 42185, 51241, 914, 198, 197, 197, 1975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBackend(t *testing.T) { projectID := os.Getenv("GOOGLE_PROJECT_ID") if projectID == "" { t.Skip("GOOGLE_PROJECT_ID not set") } r := rand.New(rand.NewSource(time.Now().UnixNano())).Int() bucket := fmt.Sprintf("vault-gcs-testacc-%d", r) ctx := context.Background() client, err := storage.NewClient(ctx)...
explode_data.jsonl/68077
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 29699, 1155, 353, 8840, 836, 8, 341, 72470, 915, 1669, 2643, 64883, 445, 15513, 47350, 43804, 3450, 1138, 743, 2390, 915, 621, 1591, 341, 197, 3244, 57776, 445, 15513, 47350, 43804, 3450, 537, 738, 1138, 197, 630, 7000, 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 TestConfigAdditonalRetryAttempts(t *testing.T) { // setup tokenPeriod := 6 tokenDataMap := initTokenData(tokenPeriod) server := mock.GetMockTokenServer(tokenDataMap) defer server.Close() serverURL, err := url.Parse(server.URL) require.NoErrorf(t, err, "error on parsing server url %s: %s", server.URL, err...
explode_data.jsonl/39204
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 766 }
[ 2830, 3393, 2648, 2212, 275, 24202, 51560, 81517, 1155, 353, 8840, 836, 8, 341, 197, 322, 6505, 198, 43947, 23750, 1669, 220, 21, 198, 43947, 1043, 2227, 1669, 2930, 3323, 1043, 13274, 23750, 692, 41057, 1669, 7860, 2234, 11571, 3323, 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 TestUpdatableApps_JniLibShouldBeBuiltAgainstMinSdkVersion(t *testing.T) { bp := cc.GatherRequiredDepsForTest(android.Android) + ` android_app { name: "foo", srcs: ["a.java"], updatable: true, sdk_version: "current", min_sdk_version: "29", jni_libs: ["libjni"], } cc_library { name: "lib...
explode_data.jsonl/58480
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 785 }
[ 2830, 3393, 2324, 88831, 53602, 10598, 7751, 9194, 14996, 3430, 54300, 84317, 6217, 57175, 5637, 1155, 353, 8840, 836, 8, 341, 2233, 79, 1669, 12527, 1224, 1856, 8164, 35, 7124, 2461, 2271, 45632, 52924, 8, 488, 22074, 197, 197, 5954, 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...
6
func TestStorageRole(t *testing.T) { key := types.NamespacedName{ Name: "foo", Namespace: "default", } created := &Role{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: "default", }} g := gomega.NewGomegaWithT(t) // Test Create fetched := &Role{} g.Expect(c.Create(context.TODO(), ...
explode_data.jsonl/30265
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 5793, 9030, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 4494, 98932, 68552, 675, 515, 197, 21297, 25, 414, 330, 7975, 756, 197, 90823, 25, 330, 2258, 756, 197, 532, 197, 7120, 1669, 609, 9030, 515, 197, 23816, 12175, 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 TestSampleDelivery(t *testing.T) { // Let's create an even number of send batches so we don't run into the // batch timeout case. n := config.DefaultQueueConfig.Capacity * 2 samples, series := createTimeseries(n) c := NewTestStorageClient() c.expectSamples(samples[:len(samples)/2], series) cfg := config.D...
explode_data.jsonl/1305
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 17571, 38121, 1155, 353, 8840, 836, 8, 341, 197, 322, 6771, 594, 1855, 458, 1496, 1372, 315, 3624, 44792, 773, 582, 1513, 944, 1598, 1119, 279, 198, 197, 322, 7162, 9632, 1142, 624, 9038, 1669, 2193, 13275, 7554, 2648, 789...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBytes(t *testing.T) { var testParseOpCode ParsedOpCode testParseOpCode.OpValue = OP_0 testParseOpCode.Length = 1 testParseOpCode.Data = nil testBytes, err := testParseOpCode.bytes() if len(testBytes) != 1 || err != nil { t.Error("The bytes should have only OpCode, err : ", err) } testParseOpCode.Le...
explode_data.jsonl/69706
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 7078, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 14463, 7125, 2078, 393, 18112, 7125, 2078, 271, 18185, 14463, 7125, 2078, 67799, 1130, 284, 13134, 62, 15, 198, 18185, 14463, 7125, 2078, 6833, 284, 220, 16, 198, 18185, 14463,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteAheadLogFile_Close(t *testing.T) { testDir, err := ioutil.TempDir("", "unittest") assert.NoErrorf(t, err, "generate temporary test dir") defer os.RemoveAll(testDir) basicLog, err := zap.NewDevelopment() assert.NoError(t, err) logger := basicLog.Sugar() t.Run("Idempotent", func(t *testing.T) { ...
explode_data.jsonl/43674
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 7985, 87962, 98857, 68185, 1155, 353, 8840, 836, 8, 341, 18185, 6184, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 91005, 1138, 6948, 35699, 69, 1155, 11, 1848, 11, 330, 19366, 13340, 1273, 5419, 5130, 16867, 2643, 84427, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCompareNonNumbers(t *testing.T) { record := ` { b: true, s: "hello", i: 10.1.1.1, p: 443 (port=uint16), net: 10.1.0.0/16, t: 2020-03-09T22:54:12Z, d: 16m40s } (=0) ` // bool testSuccessful(t, "b == true", record, zbool(true)) testSuccessful(t, "b == false", record, zbool(false)...
explode_data.jsonl/2308
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1126 }
[ 2830, 3393, 27374, 8121, 27237, 1155, 353, 8840, 836, 8, 341, 71952, 1669, 22074, 515, 262, 293, 25, 830, 345, 262, 274, 25, 330, 14990, 756, 262, 600, 25, 220, 16, 15, 13, 16, 13, 16, 13, 16, 345, 262, 281, 25, 220, 19, 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...
5
func TestCard_SetImage(t *testing.T) { c := widget.NewCard("Title", "sub", widget.NewLabel("Content")) r := test.WidgetRenderer(c) assert.Equal(t, 4, len(r.Objects())) // the 3 above plus shadow c.SetImage(canvas.NewImageFromResource(theme.FyneLogo())) assert.Equal(t, 5, len(r.Objects())) }
explode_data.jsonl/77605
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 5770, 14812, 1906, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 9086, 7121, 5770, 445, 3851, 497, 330, 1966, 497, 9086, 7121, 2476, 445, 2762, 5455, 7000, 1669, 1273, 60368, 11541, 1337, 340, 6948, 12808, 1155, 11, 220, 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...
1
func TestUpdate(t *testing.T) { type want struct { cr *v1beta1.SecurityGroup result managed.ExternalUpdate err error } cases := map[string]struct { args want }{ "Successful": { args: args{ sg: &fake.MockSecurityGroupClient{ MockDescribe: func(ctx context.Context, input *awsec2.Descri...
explode_data.jsonl/79622
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1765 }
[ 2830, 3393, 4289, 1155, 353, 8840, 836, 8, 341, 13158, 1366, 2036, 341, 197, 91492, 257, 353, 85, 16, 19127, 16, 21567, 2808, 198, 197, 9559, 8975, 5121, 15342, 4289, 198, 197, 9859, 262, 1465, 198, 197, 630, 1444, 2264, 1669, 2415, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestThemeIncludeHash(t *testing.T) { themePath, err := ioutil.TempDir("", "alice-lg-tmp-theme") if err != nil { t.Error(err) } defer os.RemoveAll(themePath) // Create some "stylesheets" and a "script" touchFile(themePath, "style.css") theme := NewTheme(ThemeConfig{ BasePath: "/theme", Path: them...
explode_data.jsonl/54317
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 12594, 22283, 6370, 1155, 353, 8840, 836, 8, 341, 197, 9047, 1820, 11, 1848, 1669, 43144, 65009, 6184, 19814, 330, 63195, 7510, 2385, 1307, 33185, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 532, 16867,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateDefaultConfig(t *testing.T) { factory := Factory{OptionsFactory: DefaultOptions} cfg := factory.CreateDefaultConfig() assert.NotNil(t, cfg, "failed to create default config") assert.NoError(t, configcheck.ValidateConfig(cfg)) }
explode_data.jsonl/3446
{ "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, 4021, 3675, 2648, 1155, 353, 8840, 836, 8, 341, 1166, 2919, 1669, 16937, 90, 3798, 4153, 25, 7899, 3798, 532, 50286, 1669, 8633, 7251, 3675, 2648, 741, 6948, 93882, 1155, 11, 13286, 11, 330, 16091, 311, 1855, 1638, 2193, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormalize(t *testing.T) { var ev string testcases := []struct { t string // Test Value e string // Expected Value DontTestImplicate bool }{ {t: "$.store.book[0].title", e: `$["store"]["book"][0]["title"]`}, {t: "$.store.book[*].author", e: `$["store"]["book"][*]["au...
explode_data.jsonl/27827
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 837 }
[ 2830, 3393, 87824, 1155, 353, 8840, 836, 8, 341, 2405, 3637, 914, 198, 18185, 23910, 1669, 3056, 1235, 341, 197, 3244, 338, 914, 442, 3393, 5162, 198, 197, 7727, 338, 914, 442, 31021, 5162, 198, 197, 10957, 544, 2271, 25216, 48795, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestFixVersionStr(t *testing.T) { version := "0.0.2-hogehoge" s := fixVersionStr(version) if s != "0.0.2" { t.Error("fixVersionStr(\"0.0.2-hogehoge\") should be \"0.0.2\", but does not match.") } }
explode_data.jsonl/2453
{ "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, 25958, 5637, 2580, 1155, 353, 8840, 836, 8, 341, 74954, 1669, 330, 15, 13, 15, 13, 17, 2832, 538, 2636, 40532, 698, 1903, 1669, 5046, 5637, 2580, 37770, 340, 743, 274, 961, 330, 15, 13, 15, 13, 17, 1, 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...
2
func TestErrorSlice(t *testing.T) { errs := errorMsgs{ {Err: errors.New("first"), Type: ErrorTypePrivate}, {Err: errors.New("second"), Type: ErrorTypePrivate, Meta: "some data"}, {Err: errors.New("third"), Type: ErrorTypePublic, Meta: H{"status": "400"}}, } assert.Equal(t, errs, errs.ByType(ErrorTypeAny)) as...
explode_data.jsonl/65425
{ "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, 1454, 33236, 1155, 353, 8840, 836, 8, 341, 9859, 82, 1669, 52247, 82, 515, 197, 197, 90, 7747, 25, 5975, 7121, 445, 3896, 3975, 3990, 25, 4600, 929, 16787, 1583, 197, 197, 90, 7747, 25, 5975, 7121, 445, 5569, 3975, 3990,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGzipReader(t *testing.T) { app := newApp() expected := payload{Message: "test"} b, err := json.Marshal(expected) if err != nil { t.Fatal(err) } buf := new(bytes.Buffer) w := gzip.NewWriter(buf) _, err = w.Write(b) if err != nil { t.Fatal(err) } err = w.Close() if err != nil { t.Fatal(err) ...
explode_data.jsonl/11108
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 38, 9964, 5062, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 501, 2164, 2822, 42400, 1669, 7729, 90, 2052, 25, 330, 1944, 16707, 2233, 11, 1848, 1669, 2951, 37271, 15253, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 396...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestZcoinEncodeToBytes(t *testing.T) { tests := []TestcaseEncode{ { name: "P2PKH", input: "a4YtT82mWWxHZhLmdx7e5aroW92dqJoRs3", output: "76a9142a10f88e30768d2712665c279922b9621ce58bc788ac", }, { name: "P2SH", input: "4CFa4fnAQvFz4VpikGNzQ9XfCDXMmdk6sh", output: "a914f010b17a9189e0f27...
explode_data.jsonl/9960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 57, 7160, 32535, 1249, 7078, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 2271, 5638, 32535, 515, 197, 197, 515, 298, 11609, 25, 256, 330, 47, 17, 22242, 39, 756, 298, 22427, 25, 220, 330, 64, 19, 56, 83, 51, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTakeOne(t *testing.T) { cases := []struct { valid string or string expect string }{ {"", "", ""}, {"", "1", "1"}, {"1", "", "1"}, {"1", "2", "1"}, } for _, each := range cases { t.Run(each.valid, func(t *testing.T) { actual := TakeOne(each.valid, each.or) assert.Equal(t, each.ex...
explode_data.jsonl/76725
{ "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, 17814, 3966, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 56322, 220, 914, 198, 197, 81166, 257, 914, 198, 197, 24952, 914, 198, 197, 59403, 197, 197, 4913, 497, 7342, 77496, 197, 197, 4913, 497, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHandleConnection(t *testing.T) { tt := []struct { test string openURLFunc func(string) (string, error) data string err error }{ { "Say nothing when successful", func(line string) (string, error) { return "pong\n", nil }, "", io.EOF, }, { "Sending back...
explode_data.jsonl/20547
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 576 }
[ 2830, 3393, 6999, 4526, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 18185, 286, 914, 198, 197, 52199, 3144, 9626, 2915, 3609, 8, 320, 917, 11, 1465, 340, 197, 8924, 286, 914, 198, 197, 9859, 260, 1465, 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 TestAllServersCache_CacheMiss(t *testing.T) { srv := &hcloud.Server{ ID: 12345, Name: "cache-miss", PrivateNet: []hcloud.ServerPrivateNet{ { IP: net.ParseIP("10.0.0.2"), }, }, } cacheOps := newAllServersCacheOps(t, srv) tmpl := allServersCacheTestCase{ SetUp: func(t *testing.T, tt *allSer...
explode_data.jsonl/5917
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 236 }
[ 2830, 3393, 2403, 78139, 8233, 920, 1777, 35312, 1155, 353, 8840, 836, 8, 341, 1903, 10553, 1669, 609, 71, 12361, 22997, 515, 197, 29580, 25, 256, 220, 16, 17, 18, 19, 20, 345, 197, 21297, 25, 330, 9360, 1448, 1038, 756, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContext_Clone(t *testing.T) { manager := endly.New() { context := manager.NewContext(toolbox.NewContext()) cloned := context.Clone() assert.NotNil(t, cloned) } { var deferredRun int32 = 0 context := manager.NewContext(toolbox.NewContext()) context.Deffer(func() { atomic.AddInt32(&deferredRu...
explode_data.jsonl/31802
{ "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, 1972, 85110, 603, 1155, 353, 8840, 836, 8, 341, 92272, 1669, 835, 398, 7121, 741, 197, 515, 197, 28413, 1669, 6645, 7121, 1972, 48950, 2011, 7121, 1972, 2398, 197, 39407, 19684, 1669, 2266, 64463, 741, 197, 6948, 93882, 1155...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPessimisticLockNonExistsKey(t *testing.T) { store, clean := createMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk1 := testkit.NewTestKit(t, store) tk1.MustExec("use test") tk.MustExec("drop table if exists t") tk.MustExec("create table t (k int primary...
explode_data.jsonl/12473
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 820 }
[ 2830, 3393, 47, 66733, 4532, 11989, 8121, 15575, 1592, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1855, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1