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 TestTrie_Match(t *testing.T) { trie := NewTrie() data := []testData{ {"Pepan", "Pepan Zdepan", success}, {"Pepin", "Pepin Omacka", success}, {"Honza", "Honza Novak", success}, {"Jenik", "Jenik Poustevnicek", success}, {"Pepan", "Pepan Dupan", failure}, {"Karel", "Karel Pekar", success}, {"Jenik", ...
explode_data.jsonl/2360
{ "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, 51, 7231, 1245, 754, 1155, 353, 8840, 836, 8, 341, 197, 8927, 1669, 1532, 51, 7231, 2822, 8924, 1669, 3056, 1944, 1043, 515, 197, 197, 4913, 47, 747, 276, 497, 330, 47, 747, 276, 1863, 450, 848, 497, 2393, 1583, 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...
6
func TestHTMLMessage(t *testing.T) { plugin := Plugin{ Repo: Repo{ Name: "go-hello", Namespace: "appleboy", }, Commit: Commit{ Sha: "e7c4f0a63ceeb42a39ac7806f7b51f3f0d204fd2", Author: "Bo-Yi Wu", Branch: "master", Message: "Freakin' macOS isn't fully case-sensitive..", }, Build: ...
explode_data.jsonl/17938
{ "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, 5835, 2052, 1155, 353, 8840, 836, 8, 341, 197, 9138, 1669, 21245, 515, 197, 197, 25243, 25, 71509, 515, 298, 21297, 25, 414, 330, 3346, 2832, 4791, 756, 298, 90823, 25, 330, 22377, 17184, 756, 197, 197, 1583, 197, 197, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewType(t *testing.T) { name := "test.metric" ts := uint64(1e9) value := 2.0 tags := []string{"tag:value"} gauge := NewGauge(name, ts, value, tags) assert.Equal(t, gauge.GetType(), string(Gauge)) count := NewCount(name, ts, value, tags) assert.Equal(t, count.GetType(), string(Count)) }
explode_data.jsonl/46796
{ "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, 3564, 929, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 330, 1944, 85816, 698, 57441, 1669, 2622, 21, 19, 7, 16, 68, 24, 340, 16309, 1669, 220, 17, 13, 15, 198, 3244, 2032, 1669, 3056, 917, 4913, 4578, 62856, 63159, 3174, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHashJoinerDrain(t *testing.T) { defer leaktest.AfterTest(t)() v := [10]sqlbase.EncDatum{} for i := range v { v[i] = sqlbase.DatumToEncDatum(types.Int, tree.NewDInt(tree.DInt(i))) } spec := execinfrapb.HashJoinerSpec{ LeftEqColumns: []uint32{0}, RightEqColumns: []uint32{0}, Type: sqlbase...
explode_data.jsonl/16325
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1103 }
[ 2830, 3393, 6370, 12292, 261, 8847, 466, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 5195, 1669, 508, 16, 15, 60, 3544, 3152, 26598, 68036, 16094, 2023, 600, 1669, 2088, 348, 341, 197, 5195, 989, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_connect(t *testing.T) { type args struct { root *Node } tests := []struct { name string args args want *Node }{ // TODO: Add test cases. { name: "", args: args{ root: nil, }, want: nil, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := conne...
explode_data.jsonl/34454
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 216 }
[ 2830, 3393, 15720, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 33698, 353, 1955, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 353, 1955, 198, 197, 59403, 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...
2
func TestGocloak_SetPassword(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) token := GetAdminToken(t, client) tearDown, userID := CreateUser(t, client) defer tearDown() err := client.SetPassword( token.AccessToken, userID, cfg.GoCloak.Realm, "passwort1234!", false) ...
explode_data.jsonl/79521
{ "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, 38, 509, 385, 585, 14812, 4876, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 43947, 1669, 2126, 7210, 3323, 1155, 11, 2943, 692, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEnvInfo_ListURLs(t *testing.T) { fs := filesystem.NewFakeFs() type fields struct { devfileObj parser.DevfileObj componentSettings ComponentSettings } tests := []struct { name string fields fields want []localConfigProvider.LocalURL wantErr bool }{ { name: "case 1: url prese...
explode_data.jsonl/72362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3016 }
[ 2830, 3393, 14359, 1731, 27104, 3144, 82, 1155, 353, 8840, 836, 8, 341, 53584, 1669, 38389, 7121, 52317, 48300, 2822, 13158, 5043, 2036, 341, 197, 27302, 1192, 5261, 286, 6729, 77611, 1192, 5261, 198, 197, 52228, 6086, 5578, 6086, 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 TestStoreRequest(t *testing.T) { msr := NewInMemoryTransactionStore(DummyMatcher{}, 10) m1 := Transaction{Request: &mock.Request{Host: "TEST1"}} msr.Save(m1) m2 := Transaction{Request: &mock.Request{Host: "TEST2"}} msr.Save(m2) if len(msr.matches) != 2 { t.Fatalf("Invalid store len: %v", len(msr.matches)...
explode_data.jsonl/44240
{ "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, 6093, 1900, 1155, 353, 8840, 836, 8, 1476, 47691, 81, 1669, 1532, 641, 10642, 8070, 6093, 5432, 8574, 37554, 22655, 220, 16, 15, 340, 2109, 16, 1669, 17869, 90, 1900, 25, 609, 16712, 9659, 90, 9296, 25, 330, 10033, 16, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateWindowsSecurityContextOptions(t *testing.T) { toPtr := func(s string) *string { return &s } testCases := []struct { testName string windowsOptions *core.WindowsSecurityContextOptions expectedErrorSubstring string }{ { testName: "a nil pointer", }, { testName: "an...
explode_data.jsonl/25699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2548 }
[ 2830, 3393, 17926, 13164, 15352, 1972, 3798, 1155, 353, 8840, 836, 8, 341, 31709, 5348, 1669, 2915, 1141, 914, 8, 353, 917, 341, 197, 853, 609, 82, 198, 197, 630, 18185, 37302, 1669, 3056, 1235, 341, 197, 18185, 675, 914, 271, 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 TestConnector(t *testing.T) { d1 := initDrawing(Point{270, 170}, Point{40, 30}) c1 := Connector{0, 1} d1 = AddConnector(d1, c1) expectedP1 := Point{270, 173.91} expectedP2 := Point{77.94, 57.0} actualP1 := connectorP1(d1, c1) actualP2 := connectorP2(d1, c1) if !aproxEqual(actualP1, expectedP1) { t.L...
explode_data.jsonl/54950
{ "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, 35954, 1155, 353, 8840, 836, 8, 1476, 2698, 16, 1669, 2930, 37437, 32737, 90, 17, 22, 15, 11, 220, 16, 22, 15, 2137, 5126, 90, 19, 15, 11, 220, 18, 15, 8824, 1444, 16, 1669, 54814, 90, 15, 11, 220, 16, 532, 2698, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtraConfigmap(t *testing.T) { extraCmName := "extra" cmCore := makeConfigMap("1", map[string]string{ key: "ingressClass: core", }) cmUser := makeConfigMapWithName(extraCmName, "1", map[string]string{ key: "ingressClass: user", }) setup := func() (corev1.ConfigMapInterface, mesh.Watcher) { client ...
explode_data.jsonl/15111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 795 }
[ 2830, 3393, 11612, 2648, 2186, 1155, 353, 8840, 836, 8, 341, 8122, 2172, 34, 76, 675, 1669, 330, 15460, 1837, 98316, 5386, 1669, 1281, 2648, 2227, 445, 16, 497, 2415, 14032, 30953, 515, 197, 23634, 25, 330, 287, 673, 1957, 25, 6200, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDecrypt(t *testing.T) { certFile, err := os.Open("../test/always-encrypted.pem") if err != nil { t.Fatal(err) } certBytes, err := ioutil.ReadAll(certFile) if err != nil { t.Fatal(err) } pemB, _ := pem.Decode(certBytes) privKey, err := x509.ParsePKCS8PrivateKey(pemB.Bytes) if err != nil { t.Fata...
explode_data.jsonl/656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 652 }
[ 2830, 3393, 89660, 1155, 353, 8840, 836, 8, 341, 1444, 529, 1703, 11, 1848, 1669, 2643, 12953, 17409, 1944, 14, 32122, 12, 36444, 49373, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 1444, 529, 7078, 11, 1848...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestReplace(t *testing.T) { cases := []struct { str string expected string }{ { str: "", expected: "", }, { str: "foo", expected: "bar", }, { str: "foo foo", expected: "bar bar", }, { str: "somethingfoo", expected: "somethingbar", }, } for _...
explode_data.jsonl/64889
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 23107, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11355, 414, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 515, 298, 11355, 25, 414, 8324, 298, 42400, 25, 8324, 197, 197, 1583, 197, 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...
3
func TestCreate(t *testing.T) { simpleStorage := &SimpleRESTStorage{} handler := Handle(map[string]RESTStorage{ "foo": simpleStorage, }, codec, "/prefix/version", selfLinker) handler.(*defaultAPIServer).group.handler.asyncOpWait = 0 server := httptest.NewServer(handler) client := http.Client{} simple := &Simp...
explode_data.jsonl/71499
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 4021, 1155, 353, 8840, 836, 8, 341, 1903, 6456, 5793, 1669, 609, 16374, 38307, 5793, 16094, 53326, 1669, 13760, 9147, 14032, 60, 38307, 5793, 515, 197, 197, 1, 7975, 788, 4285, 5793, 345, 197, 2137, 34647, 11, 3521, 11849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerConfigEntryJSONCompatibleEncode(t *testing.T) { tests := []struct { input DockerConfigEntry expect []byte }{ // simple case, just decode the fields { expect: []byte(`{"username":"foo","password":"bar","email":"foo@example.com","auth":"Zm9vOmJhcg=="}`), input: DockerConfigEntry{ ...
explode_data.jsonl/40713
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 313 }
[ 2830, 3393, 35, 13659, 2648, 5874, 5370, 29161, 32535, 1155, 353, 8840, 836, 8, 972, 78216, 1669, 3056, 1235, 972, 197, 22427, 220, 40549, 2648, 5874, 319, 197, 24952, 3056, 3782, 319, 197, 92, 1666, 197, 197, 322, 4285, 1142, 11, 110...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryGeneratedBlock(t *testing.T) { chainid := "mytestchainid8" path := tempDir(t, "test8") defer os.RemoveAll(path) stub, err := setupTestLedger(chainid, path) if err != nil { t.Fatalf(err.Error()) } block1 := addBlockForTesting(t, chainid) // block number 1 should now exist args := [][]byte{[]b...
explode_data.jsonl/18835
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 937 }
[ 2830, 3393, 2859, 15741, 4713, 1155, 353, 8840, 836, 8, 341, 197, 8819, 307, 1669, 330, 2408, 1944, 8819, 307, 23, 698, 26781, 1669, 2730, 6184, 1155, 11, 330, 1944, 23, 1138, 16867, 2643, 84427, 5581, 692, 18388, 392, 11, 1848, 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...
9
func TestRobotConnectionEach(t *testing.T) { r := newTestRobot("Robot1") i := 0 r.Connections().Each(func(conn Connection) { i++ }) gobottest.Assert(t, r.Connections().Len(), i) }
explode_data.jsonl/24441
{ "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, 43374, 4526, 4854, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 501, 2271, 43374, 445, 43374, 16, 5130, 8230, 1669, 220, 15, 198, 7000, 17463, 82, 1005, 4854, 18552, 20571, 11032, 8, 341, 197, 8230, 22940, 197, 3518, 3174, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInterfaceAssignment(t *testing.T) { var output string fn := func(n Named) { output = n.Name() } globals := map[string]interface{}{ "fn": fn, "foo": &foo{name: "bob"}, } code := []byte(`fn(foo)`) _, err := starlight.Eval(code, globals, nil) if err != nil { t.Fatal(err) } if output != "bob" { ...
explode_data.jsonl/47079
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 170 }
[ 2830, 3393, 5051, 41613, 1155, 353, 8840, 836, 8, 341, 2405, 2550, 914, 198, 40095, 1669, 2915, 1445, 40459, 8, 341, 197, 21170, 284, 308, 2967, 741, 197, 532, 3174, 16616, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 8822, 788, 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 TestWrite(t *testing.T) { t.Parallel() tests := []struct { pri Priority pre string msg string exp string }{ {LOG_USER | LOG_ERR, "syslog_test", "", "%s %s syslog_test[%d]: \n"}, {LOG_USER | LOG_ERR, "syslog_test", "write test", "%s %s syslog_test[%d]: write test\n"}, // Write should not add \n if ...
explode_data.jsonl/17088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 571 }
[ 2830, 3393, 7985, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 78216, 1669, 3056, 1235, 341, 197, 3223, 461, 31920, 198, 197, 40346, 914, 198, 197, 21169, 914, 198, 197, 48558, 914, 198, 197, 59403, 197, 197, 90, 7243, 9107, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateSecurityContextConstraints(t *testing.T) { var invalidUID int64 = -1 errorCases := map[string]struct { scc *api.SecurityContextConstraints errorType fielderrors.ValidationErrorType errorDetail string }{ "no user options": { scc: &api.SecurityContextConstraints{ ObjectMeta: a...
explode_data.jsonl/62818
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1767 }
[ 2830, 3393, 17926, 15352, 1972, 12925, 1155, 353, 8840, 836, 8, 341, 2405, 8318, 6463, 526, 21, 19, 284, 481, 16, 198, 18290, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 1903, 638, 260, 353, 2068, 21567, 1972, 12925, 198, 197, 18290...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestColumnCheck(t *testing.T) { store, clean := testkit.CreateMockStoreWithSchemaLease(t, columnModifyLease) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists column_check") tk.MustExec("create table column_check (pk int primary key, a int check (a > 1...
explode_data.jsonl/51316
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 203 }
[ 2830, 3393, 2933, 3973, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 2354, 8632, 2304, 519, 1155, 11, 3250, 44427, 2304, 519, 340, 16867, 4240, 741, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewFromUnixNanoseconds(t *testing.T) { testTime := time.Now() lib, err := New(testTime.UnixNano()) if assert.NoError(t, err) { assert.True(t, testTime.Equal(lib.ToTime())) assert.True(t, lib.ToTime().Location() == time.Local) } }
explode_data.jsonl/73970
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 3564, 3830, 55832, 45, 276, 75889, 1155, 353, 8840, 836, 8, 341, 18185, 1462, 1669, 882, 13244, 2822, 93459, 11, 1848, 1669, 1532, 8623, 1462, 10616, 941, 83819, 2398, 743, 2060, 35699, 1155, 11, 1848, 8, 341, 197, 6948, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_maxSubArray(t *testing.T) { type args struct { nums []int } tests := []struct { name string args args want int }{ { name: "case 1", args: args{ nums: []int{-2, 1, -3, 4, -1, 2, 1, -5, 4}, }, want: 6, }, { name: "case 2", args: args{ nums: []int{-2, -1}, }, wan...
explode_data.jsonl/13153
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 762 }
[ 2830, 3393, 6345, 3136, 1857, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 22431, 82, 3056, 396, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 526, 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 TestParseMultipleMessages(t *testing.T) { // records object msg := "{\"records\":[{\"test\":\"this is some message\",\"time\":\"2019-12-17T13:43:44.4946995Z\"}," + "{\"test\":\"this is 2nd message\",\"time\":\"2019-12-17T13:43:44.4946995Z\"}," + "{\"test\":\"this is 3rd message\",\"time\":\"2019-12-17T13:43:...
explode_data.jsonl/53935
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 697 }
[ 2830, 3393, 14463, 32089, 15820, 1155, 353, 8840, 836, 8, 341, 197, 322, 7424, 1633, 198, 21169, 1669, 54734, 26203, 59, 8899, 64238, 1944, 23488, 574, 374, 1045, 1943, 34333, 1678, 23488, 17, 15, 16, 24, 12, 16, 17, 12, 16, 22, 51,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestDelete(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() r := getTestVM("vm1") armClient := mockarmclient.NewMockInterface(ctrl) armClient.EXPECT().DeleteResource(gomock.Any(), to.String(r.ID), "").Return(nil).Times(1) client := getTestVMClient(armClient) rerr := client.Delete(contex...
explode_data.jsonl/16706
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 6435, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 7000, 1669, 633, 2271, 11187, 445, 7338, 16, 1138, 197, 2178, 2959, 1669, 7860, 2178, 2972, 7121, 11571,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBadgerReceipts(t *testing.T) { t.SkipNow() manager, dir := GetManager(2, true, "", t) defer func() { _ = os.RemoveAll(dir) }() PopulateDatabase(manager, 1400) GenerateReceipts(manager, 1500000, t) }
explode_data.jsonl/26304
{ "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, 17082, 1389, 67461, 82, 1155, 353, 8840, 836, 8, 1476, 3244, 57776, 7039, 741, 92272, 11, 5419, 1669, 2126, 2043, 7, 17, 11, 830, 11, 7342, 259, 340, 16867, 2915, 368, 341, 197, 197, 62, 284, 2643, 84427, 14161, 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...
1
func TestPopUp_MinSize(t *testing.T) { label := NewLabel("Hi") pop := NewPopUp(label, test.Canvas()) inner := pop.Content.MinSize() assert.Equal(t, label.MinSize().Width, inner.Width) assert.Equal(t, label.MinSize().Height, inner.Height) min := pop.MinSize() assert.Equal(t, label.MinSize().Width+theme.Padding(...
explode_data.jsonl/65214
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 11598, 2324, 62122, 1695, 1155, 353, 8840, 836, 8, 341, 29277, 1669, 1532, 2476, 445, 13048, 1138, 74813, 1669, 1532, 11598, 2324, 13345, 11, 1273, 54121, 12367, 197, 4382, 1669, 2420, 12614, 17070, 1695, 741, 6948, 12808, 115...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMultiWordReplace(t *testing.T) { cases := []struct { input string sub string subname string output string }{ {input: "Here's a file with no substitutions", sub: "blah", subname: "blah", output: "Here's a file with no substitutions"}, {input: "Here's a file with a substitution", sub: "blah"...
explode_data.jsonl/60197
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 335 }
[ 2830, 3393, 20358, 10879, 23107, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 22427, 256, 914, 198, 197, 28624, 257, 914, 198, 197, 28624, 606, 914, 198, 197, 21170, 220, 914, 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...
2
func TestSeq(t *testing.T) { cases := []testutils.TestCase{ { Description: "Normal", Structured: param.NewSeq(0xf0f0f0f0), Serialized: []byte{ 0x01, 0x81, 0x00, 0x04, 0xf0, 0xf0, 0xf0, 0xf0, }, }, } testutils.Run(t, cases, func(b []byte) (testutils.Serializeable, error) { v, err :...
explode_data.jsonl/42424
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 20183, 1155, 353, 8840, 836, 8, 972, 1444, 2264, 1669, 3056, 1944, 6031, 31363, 1666, 197, 197, 1666, 298, 47414, 25, 330, 12206, 4723, 298, 197, 97457, 25, 220, 1685, 7121, 20183, 7, 15, 5848, 15, 69, 15, 69, 15, 69, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPNCounter_Add1000Sub1000(t *testing.T) { it.PNCounterTester(t, func(t *testing.T, pn *hz.PNCounter) { const count = 1000 wg := &sync.WaitGroup{} wg.Add(count * 2) ctx := context.Background() for i := 0; i < count; i++ { go func() { if _, err := pn.IncrementAndGet(ctx); err != nil { panic...
explode_data.jsonl/48306
{ "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, 17896, 14099, 21346, 16, 15, 15, 15, 3136, 16, 15, 15, 15, 1155, 353, 8840, 836, 8, 341, 23374, 1069, 45, 14099, 58699, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 43050, 353, 37259, 1069, 45, 14099, 8, 341, 197, 4777, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCacheMultiStoreWithVersion(t *testing.T) { var db dbm.DB = dbm.NewMemDB() ms := newMultiStoreWithMounts(db, types.PruneNothing) err := ms.LoadLatestVersion() require.Nil(t, err) commitID := types.CommitID{} checkStore(t, ms, commitID, commitID) k, v := []byte("wind"), []byte("blows") store1 := ms.ge...
explode_data.jsonl/44865
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 8233, 20358, 6093, 2354, 5637, 1155, 353, 8840, 836, 8, 341, 2405, 2927, 2927, 76, 22537, 284, 2927, 76, 7121, 18816, 3506, 741, 47691, 1669, 501, 20358, 6093, 2354, 16284, 82, 9791, 11, 4494, 17947, 2886, 23780, 340, 9859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFaultInjectionTelemetry(t *testing.T) { if err := replaceRouteRule(faultInjectionNetworkingRule); err != nil { fatalf(t, "failed to apply fault injection config: %v", err) } defer func() { if err := replaceRouteRule(routeAllRule); err != nil { t.Fatalf("Could not restore default routing config: %v", ...
explode_data.jsonl/81441
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 713 }
[ 2830, 3393, 58780, 36653, 6639, 35958, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 8290, 4899, 11337, 955, 945, 36653, 78007, 11337, 1215, 1848, 961, 2092, 341, 197, 1166, 266, 3104, 1155, 11, 330, 16091, 311, 3796, 14527, 25071, 219...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllowOnSignalNo(t *testing.T) { perms := permissionsImpl{} emptyConsent := "" allowSync, err := perms.HostCookiesAllowed(context.Background(), SignalNo, emptyConsent) assert.Equal(t, true, allowSync) assert.Nil(t, err) allowSync, err = perms.BidderSyncAllowed(context.Background(), openrtb_ext.BidderApp...
explode_data.jsonl/31088
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 18605, 1925, 26810, 2753, 1155, 353, 8840, 836, 8, 341, 197, 87772, 1669, 8541, 9673, 16094, 197, 3194, 15220, 306, 1669, 35829, 197, 7183, 12154, 11, 1848, 1669, 82282, 29840, 50672, 35382, 5378, 19047, 1507, 27230, 2753, 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 TestMapTypeKeyArrayPanics(t *testing.T) { assert.Panics(t, func() { key, value := Type("string").Array(), Type("string") MapType(key, value) }) }
explode_data.jsonl/53145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 60 }
[ 2830, 3393, 2227, 929, 1592, 1857, 35693, 1211, 1155, 353, 8840, 836, 8, 341, 6948, 1069, 276, 1211, 1155, 11, 2915, 368, 341, 197, 23634, 11, 897, 1669, 3990, 445, 917, 1827, 1857, 1507, 3990, 445, 917, 1138, 197, 26873, 929, 4857, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetRemove(t *testing.T) { t.Parallel() h := testSetup() r, w, _ := h.newHTTP("GET") if err := h.totp.GetRemove(w, r); err != nil { t.Error(err) } if h.responder.Page != PageTOTPRemove { t.Error("page wrong:", h.responder.Page) } }
explode_data.jsonl/63401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 1949, 13021, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 9598, 1669, 1273, 21821, 2822, 7000, 11, 289, 11, 716, 1669, 305, 4618, 9230, 445, 3806, 5130, 743, 1848, 1669, 305, 734, 48708, 2234, 13021, 3622, 11, 435...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChatSrvMakePreview(t *testing.T) { ctc := makeChatTestContext(t, "MakePreview", 1) defer ctc.cleanup() user := ctc.users()[0] // make a preview of a jpg outboxID, err := storage.NewOutboxID() require.NoError(t, err) arg := chat1.MakePreviewArg{ Filename: "testdata/ship.jpg", OutboxID: outboxID, } ...
explode_data.jsonl/63702
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 628 }
[ 2830, 3393, 15672, 50, 10553, 8078, 24625, 1155, 353, 8840, 836, 8, 341, 89216, 66, 1669, 1281, 15672, 2271, 1972, 1155, 11, 330, 8078, 24625, 497, 220, 16, 340, 16867, 272, 10413, 87689, 741, 19060, 1669, 272, 10413, 20653, 10116, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMarkdownify(t *testing.T) { viper.Set("currentContentLanguage", helpers.NewDefaultLanguage()) for i, this := range []struct { in interface{} expect interface{} }{ {"Hello **World!**", template.HTML("Hello <strong>World!</strong>")}, {[]byte("Hello Bytes **World!**"), template.HTML("Hello Bytes ...
explode_data.jsonl/9232
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 301 }
[ 2830, 3393, 68005, 1437, 1155, 353, 8840, 836, 8, 341, 5195, 12858, 4202, 445, 3231, 2762, 13806, 497, 30187, 7121, 3675, 13806, 12367, 2023, 600, 11, 419, 1669, 2088, 3056, 1235, 341, 197, 17430, 257, 3749, 16094, 197, 24952, 3749, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorizeOAuthApp(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() Client := th.Client AdminClient := th.SystemAdminClient enableOAuth := *th.App.Config().ServiceSettings.EnableOAuthServiceProvider defer func() { th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableOAu...
explode_data.jsonl/30132
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1005 }
[ 2830, 3393, 37483, 57850, 2164, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 11716, 198, 197, 7210, 2959, 1669, 270, 16620, 7210, 2959, 271, 197, 12552, 578...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewExportedPort(t *testing.T) { controller := gomock.NewController(t) mockKV := mock_etcd.NewMockKV(controller) mockLease := mock_etcd.NewMockLease(controller) ctx := context.TODO() mockLease.EXPECT().Grant(gomock.Eq(ctx), gomock.Eq(int64(30000))).Return( &clientv3.LeaseGrantResponse{ ID: 23, ...
explode_data.jsonl/66145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 641 }
[ 2830, 3393, 3564, 16894, 291, 7084, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 77333, 82707, 1669, 7860, 45668, 4385, 7121, 11571, 82707, 40845, 340, 77333, 2304, 519, 1669, 7860, 45668, 4385, 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...
7
func TestMetricProcessorDeletePath(t *testing.T) { processor := GetMetricProcessor() processor.RemovePath(processor.paths["bar"]) _, ok := processor.paths["bar"] assert.Equal(t, ok, false) }
explode_data.jsonl/70872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 69 }
[ 2830, 3393, 54310, 22946, 6435, 1820, 1155, 353, 8840, 836, 8, 341, 197, 29474, 1669, 2126, 54310, 22946, 741, 197, 29474, 13270, 1820, 21929, 269, 65345, 1183, 2257, 14108, 197, 6878, 5394, 1669, 17654, 65345, 1183, 2257, 7026, 6948, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestValidateRoute(t *testing.T) { tests := []struct { route v1.Route upstreamNames sets.String isRouteFieldForbidden bool msg string }{ { route: v1.Route{ Path: "/", Action: &v1.Action{ Pass: "test", }, }, upstreamNames: map[string]se...
explode_data.jsonl/65830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1015 }
[ 2830, 3393, 17926, 4899, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 7000, 2133, 338, 348, 16, 58004, 198, 197, 59810, 4027, 7980, 260, 7289, 6431, 198, 197, 19907, 4899, 1877, 69115, 1807, 198, 197, 21169, 4293, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateV1Beta1ValidRepoChartSource(t *testing.T) { manifest := `--- apiVersion: manifests/v1beta1 metadata: name: test-manifest spec: sources: charts: - type: repo name: remote location: https://repo credentialsSecret: name: secret namespace: default user...
explode_data.jsonl/80481
{ "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, 17926, 53, 16, 64811, 16, 4088, 25243, 14488, 3608, 1155, 353, 8840, 836, 8, 341, 197, 42315, 1669, 1565, 10952, 2068, 5637, 25, 83232, 5457, 16, 19127, 16, 198, 17637, 510, 220, 829, 25, 1273, 20477, 6962, 198, 9535, 510,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestJetStreamPublishAsyncPerf(t *testing.T) { // Comment out below to run this benchmark. t.SkipNow() s := RunBasicJetStreamServer() defer s.Shutdown() if config := s.JetStreamConfig(); config != nil { defer os.RemoveAll(config.StoreDir) } nc, err := nats.Connect(s.ClientURL()) if err != nil { t.Fat...
explode_data.jsonl/29187
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 590 }
[ 2830, 3393, 35641, 3027, 50145, 6525, 3889, 69, 1155, 353, 8840, 836, 8, 341, 197, 322, 12255, 700, 3685, 311, 1598, 419, 28431, 624, 3244, 57776, 7039, 2822, 1903, 1669, 6452, 15944, 35641, 3027, 5475, 741, 16867, 274, 10849, 18452, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestShouldRemoveHarmonizedMatchSpecificationWhenMigratingApplicationConfigStateFromVersion2To3AndHarmonizedMatchSpecificationIsSet(t *testing.T) { rawData := make(map[string]interface{}) meta := "dummy" ctx := context.Background() rawData["id"] = applicationConfigID rawData[ApplicationConfigFieldFullLabel] =...
explode_data.jsonl/64940
{ "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, 14996, 13021, 26490, 1645, 1506, 8331, 56139, 4498, 44, 5233, 1095, 4988, 2648, 1397, 3830, 5637, 17, 1249, 18, 3036, 26490, 1645, 1506, 8331, 56139, 3872, 1649, 1155, 353, 8840, 836, 8, 341, 76559, 1043, 1669, 1281, 9147, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCapabilities_GetString(t *testing.T) { t.Parallel() var tests = []struct { capabilities *Capabilities brfcID string alternateID string expectedValue string }{ {&Capabilities{ StandardResponse: StandardResponse{StatusCode: http.StatusOK, Tracing: resty.TraceInfo{TotalTime: 200}}, ...
explode_data.jsonl/54220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1597 }
[ 2830, 3393, 55315, 13614, 703, 1155, 353, 8840, 836, 8, 1476, 3244, 41288, 7957, 2822, 2405, 7032, 284, 3056, 1235, 341, 197, 1444, 391, 8456, 220, 353, 55315, 198, 197, 80255, 8316, 915, 286, 914, 198, 197, 197, 75362, 915, 256, 914,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestExchangeRequest_BadResponse(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json") w.Write([]byte(`{"scope": "user", "token_type": "bearer"}`)) })) defer ts.Close() conf := newConf(ts.URL) tok, err := ...
explode_data.jsonl/25888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 194 }
[ 2830, 3393, 31564, 1900, 1668, 329, 2582, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6692, 15753, 1005, 1649, 445, 2762, 10804, 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 TestSyncOptionReplace(t *testing.T) { Given(t). Path("config-map"). When(). PatchFile("config-map.yaml", `[{"op": "add", "path": "/metadata/annotations", "value": {"argocd.argoproj.io/sync-options": "Replace=true"}}]`). CreateApp(). Sync(). Then(). Expect(SyncStatusIs(SyncStatusCodeSynced)). And(f...
explode_data.jsonl/35668
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 12154, 5341, 23107, 1155, 353, 8840, 836, 8, 341, 9600, 2071, 1155, 4292, 197, 69640, 445, 1676, 25858, 38609, 197, 197, 4498, 25829, 197, 10025, 754, 1703, 445, 1676, 25858, 33406, 497, 77644, 4913, 453, 788, 330, 718, 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 Test_apiKeyLookup(t *testing.T) { is := assert.New(t) _, store, teardown := datastore.MustNewTestStore(true, true) defer teardown() // create standard user user := &portainer.User{ID: 2, Username: "standard", Role: portainer.StandardUserRole} err := store.User().Create(user) is.NoError(err, "error creatin...
explode_data.jsonl/7583
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1016 }
[ 2830, 3393, 11697, 1592, 34247, 1155, 353, 8840, 836, 8, 341, 19907, 1669, 2060, 7121, 1155, 692, 197, 6878, 3553, 11, 49304, 1669, 64986, 50463, 3564, 2271, 6093, 3715, 11, 830, 340, 16867, 49304, 2822, 197, 322, 1855, 5297, 1196, 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 TestParseNaN(t *testing.T) { p, err := graphite.NewParser([]string{"measurement*"}, nil) if err != nil { t.Fatalf("unexpected error creating parser, got %v", err) } _, err = p.Parse("servers.localhost.cpu_load NaN 1435077219") if err == nil { t.Fatalf("expected error. got nil") } if _, ok := err.(*gra...
explode_data.jsonl/32176
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 14463, 22831, 1155, 353, 8840, 836, 8, 341, 3223, 11, 1848, 1669, 94173, 7121, 6570, 10556, 917, 4913, 81425, 9, 14345, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 53859, 1465, 6825, 6729, 11, 2684, 1018, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEC2InstanceID(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ec2MetadataClient := mock_ec2.NewMockEC2MetadataClient(ctrl) agent := &ecsAgent{ec2MetadataClient: ec2MetadataClient} ec2MetadataClient.EXPECT().InstanceID().Return("", errors.New("error")) ec2MetadataClient.EXPECT().I...
explode_data.jsonl/41590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 1949, 7498, 17, 2523, 915, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 197, 757, 17, 14610, 2959, 1669, 7860, 36844, 17, 7121, 11571, 7498, 17, 14610, 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 TestNewDataFromJobUpdateRequest(t *testing.T) { md := []*api.Metadata{ { Key: ptr.String("md-key"), Value: ptr.String("md-value"), }, } req := &api.JobUpdateRequest{ Metadata: md, Settings: &api.JobUpdateSettings{ BlockIfNoPulsesAfterMs: ptr.Int32(1000), }, } req.Metadata = md msg := ptr...
explode_data.jsonl/23182
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 3564, 1043, 3830, 12245, 4289, 1900, 1155, 353, 8840, 836, 8, 341, 84374, 1669, 29838, 2068, 46475, 515, 197, 197, 515, 298, 55242, 25, 256, 10087, 6431, 445, 2277, 16173, 4461, 298, 47399, 25, 10087, 6431, 445, 2277, 19083,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseClassConstructors(t *testing.T) { checkParseExpression( t, `new Box { x: 1 }`, "(class-constructor Box (x 1))", ) checkParseExpression( t, `new Point { x: 1, y: 2}`, "(class-constructor Point (x 1) (y 2))", ) }
explode_data.jsonl/33518
{ "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, 14463, 1957, 28468, 1087, 1155, 353, 8840, 836, 8, 341, 25157, 14463, 9595, 1006, 197, 3244, 345, 197, 197, 63, 931, 8261, 314, 856, 25, 220, 16, 335, 12892, 197, 197, 29209, 1040, 14859, 3086, 8261, 320, 87, 220, 16, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStepDeferReturn(t *testing.T) { // Tests that Step works correctly when a deferred function is // called during a return. if goversion.VersionAfterOrEqual(runtime.Version(), 1, 11) { testseq("defercall", contStep, []nextTest{ {11, 6}, {6, 7}, {7, 12}, {12, 13}, {13, 6}, {6, 7}, {7, 13...
explode_data.jsonl/56263
{ "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, 8304, 1912, 802, 5598, 1155, 353, 8840, 836, 8, 341, 197, 322, 20150, 429, 14822, 4278, 12440, 979, 264, 26239, 729, 374, 198, 197, 322, 2598, 2337, 264, 470, 624, 743, 728, 4366, 35842, 6025, 2195, 2993, 89467, 35842, 150...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestProcessReceivesSIGCHLD(t *testing.T) { protest.AllowRecording(t) withTestProcess("sigchldprog", t, func(p *proc.Target, fixture protest.Fixture) { err := p.Continue() _, ok := err.(proc.ErrProcessExited) if !ok { t.Fatalf("Continue() returned unexpected error type %v", err) } }) }
explode_data.jsonl/56223
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 121 }
[ 2830, 3393, 7423, 693, 346, 1886, 50631, 2149, 12335, 1155, 353, 8840, 836, 8, 341, 197, 776, 1944, 29081, 52856, 1155, 340, 46948, 2271, 7423, 445, 21339, 331, 507, 32992, 497, 259, 11, 2915, 1295, 353, 15782, 35016, 11, 12507, 8665, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestT(t *testing.T) { testleak.BeforeTest() defer testleak.AfterTestT(t)() CustomVerboseFlag = true *CustomParallelSuiteFlag = true TestingT(t) }
explode_data.jsonl/40647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 64 }
[ 2830, 3393, 51, 1155, 353, 8840, 836, 8, 341, 18185, 273, 585, 31153, 2271, 741, 16867, 1273, 273, 585, 36892, 2271, 51, 1155, 8, 2822, 6258, 1450, 63404, 12135, 284, 830, 198, 197, 9, 10268, 16547, 28000, 12135, 284, 830, 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
func TestUserInfoEndpointAccepted(t *testing.T) { testCases := []struct { name string session *sessions.SessionState expectedResponse string }{ { name: "Full session", session: &sessions.SessionState{ User: "john.doe", Email: "john.doe@example.com", Groups: ...
explode_data.jsonl/36401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 890 }
[ 2830, 3393, 36158, 27380, 65906, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 1797, 914, 198, 197, 25054, 688, 353, 50964, 20674, 1397, 198, 197, 42400, 2582, 914, 198, 197, 59403, 197, 197, 515, 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 TestToDNSLinkFQDN(t *testing.T) { for _, test := range []struct { in string out string }{ {"singlelabel", "singlelabel"}, {"docs-ipfs-io", "docs.ipfs.io"}, {"dnslink-long--name-example-com", "dnslink.long-name.example.com"}, } { out := toDNSLinkFQDN(test.in) if out != test.out { t.Errorf("(%s)...
explode_data.jsonl/26660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 1249, 61088, 3939, 37, 48, 31264, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 17430, 220, 914, 198, 197, 13967, 914, 198, 197, 59403, 197, 197, 4913, 15338, 1502, 497, 330, 15338, 1502...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeliverPacket(t *testing.T) { const ( mtu = 1500 laddr = tcpip.LinkAddress("\x11\x22\x33\x44\x55\x66") raddr = tcpip.LinkAddress("\x77\x88\x99\xaa\xbb\xcc") proto = 10 ) lengths := []int{100, 1000} eths := []bool{true, false} for _, eth := range eths { for _, plen := range lengths { t.Run...
explode_data.jsonl/26918
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 786 }
[ 2830, 3393, 16532, 1524, 16679, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 2109, 24494, 256, 284, 220, 16, 20, 15, 15, 198, 197, 8810, 6214, 284, 28051, 573, 22534, 4286, 4921, 87, 16, 16, 3462, 17, 17, 3462, 18, 18, 3462, 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...
8
func TestNoPriorities(t *testing.T) { s1 := stateInfoWithHeight(100) s2 := stateInfoWithHeight(200) p1 := Peer{ StateInfoMessage: s1, } p2 := Peer{ StateInfoMessage: s2, } assert.Equal(t, Priority(0), NoPriorities.Compare(p1, p2)) }
explode_data.jsonl/38945
{ "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, 2753, 49471, 1361, 1155, 353, 8840, 836, 8, 341, 1903, 16, 1669, 1584, 1731, 2354, 3640, 7, 16, 15, 15, 340, 1903, 17, 1669, 1584, 1731, 2354, 3640, 7, 17, 15, 15, 340, 3223, 16, 1669, 45147, 515, 197, 76424, 1731, 205...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileHelper_GetPathFromPathFileName_10(t *testing.T) { fh := FileHelper{} commonDir := fh.AdjustPathSlash("") expectedDir := fh.AdjustPathSlash("") result, isEmpty, err := fh.GetPathFromPathFileName(commonDir) if err == nil { t.Errorf("Expected error to be returned from fh.GetPathFromPathFileN...
explode_data.jsonl/14468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 263 }
[ 2830, 3393, 1703, 5511, 13614, 1820, 3830, 1820, 10903, 62, 16, 15, 1155, 353, 8840, 836, 8, 341, 220, 36075, 1669, 2887, 5511, 31483, 220, 4185, 6184, 1669, 36075, 17865, 4250, 1820, 88004, 445, 5130, 220, 3601, 6184, 1669, 36075, 1786...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Hoverfly_SetModeWithArguments_CanSetModeToCapture(t *testing.T) { RegisterTestingT(t) unit := NewHoverflyWithConfiguration(&Configuration{}) Expect(unit.SetModeWithArguments( v2.ModeView{ Mode: "capture", })).To(BeNil()) Expect(unit.Cfg.Mode).To(Equal("capture")) }
explode_data.jsonl/45395
{ "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, 2039, 1975, 21642, 14812, 3636, 2354, 19139, 920, 276, 1649, 3636, 1249, 27429, 1155, 353, 8840, 836, 8, 341, 79096, 16451, 51, 1155, 692, 81189, 1669, 1532, 34379, 21642, 2354, 7688, 2099, 7688, 6257, 692, 35911, 24144, 4202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFlushSet(t *testing.T) { fcmd := fakeexec.FakeCmd{ CombinedOutputScript: []fakeexec.FakeAction{ // Success func() ([]byte, []byte, error) { return []byte{}, nil, nil }, // Success func() ([]byte, []byte, error) { return []byte{}, nil, nil }, }, } fexec := fakeexec.FakeExec{ CommandScript: ...
explode_data.jsonl/74006
{ "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, 46874, 1649, 1155, 353, 8840, 836, 8, 341, 1166, 8710, 1669, 12418, 11748, 991, 726, 15613, 515, 197, 197, 94268, 5097, 5910, 25, 3056, 30570, 11748, 991, 726, 2512, 515, 298, 197, 322, 13047, 198, 298, 29244, 368, 34923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdateGameServerConfigurationInFleet(t *testing.T) { t.Parallel() alpha1 := framework.AgonesClient.StableV1alpha1() gsSpec := defaultGameServer().Spec oldPort := int32(7111) gsSpec.Ports = []v1alpha1.GameServerPort{{ ContainerPort: oldPort, Name: "gameport", PortPolicy: v1alpha1.Dynami...
explode_data.jsonl/9438
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 830 }
[ 2830, 3393, 4289, 4868, 5475, 7688, 641, 37, 18973, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 73063, 16, 1669, 12626, 49850, 3154, 2959, 7758, 480, 53, 16, 7141, 16, 2822, 3174, 82, 8327, 1669, 1638, 4868, 5475, 1005, 832...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestComplexOperation(t *testing.T) { t.Parallel() for i, c := range []struct { stmt stmt.Statement sql string sqlIndent string values []interface{} }{ { stmt.NewAnd( stmt.NewOr( stmt.NewNot( stmt.NewAnd( stmt.NewOr( stmt.NewNot( stmt.NewColumn("f...
explode_data.jsonl/377
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1559 }
[ 2830, 3393, 31137, 8432, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 600, 11, 272, 1669, 2088, 3056, 1235, 341, 197, 55822, 414, 20020, 70215, 198, 197, 30633, 981, 914, 198, 197, 30633, 42729, 914, 198, 197, 45939, 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...
3
func TestChromeAllocRequest(t *testing.T) { var ( r = bytes.NewReader(loadData(t, "01_chromeallocreq.hex")) s = bufio.NewScanner(r) data [][]byte messages []*stun.Message ) // Decoding hex data into binary. for s.Scan() { b, err := hex.DecodeString(s.Text()) if err != nil { t.Fatal(err) } da...
explode_data.jsonl/24265
{ "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, 49070, 25154, 1900, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 7000, 284, 5820, 68587, 49092, 1043, 1155, 11, 330, 15, 16, 4138, 6648, 35937, 837, 80, 45639, 5455, 197, 1903, 284, 96917, 7121, 31002, 2601, 692, 197, 89...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestACL_Info(t *testing.T) { if CONSUL_ROOT == "" { t.SkipNow() } c := makeClient(t) c.config.Token = CONSUL_ROOT acl := c.ACL() ae, qm, err := acl.Info(CONSUL_ROOT, nil) if err != nil { t.Fatalf("err: %v", err) } if qm.LastIndex == 0 { t.Fatalf("bad: %v", qm) } if !qm.KnownLeader { t.Fatalf("...
explode_data.jsonl/44594
{ "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, 55393, 39624, 1155, 353, 8840, 836, 8, 341, 743, 72906, 1094, 16197, 621, 1591, 341, 197, 3244, 57776, 7039, 741, 197, 532, 1444, 1669, 1281, 2959, 1155, 340, 1444, 5423, 32277, 284, 72906, 1094, 16197, 198, 11323, 564, 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...
8
func TestBuildWithDotGoDir(t *testing.T) { folder := testlib.Mktmp(t) require.NoError(t, os.Mkdir(filepath.Join(folder, ".go"), 0o755)) writeGoodMain(t, folder) config := config.Project{ Builds: []config.Build{ { ID: "foo", Env: []string{"GO111MODULE=off"}, Binary: "foo", Targets: ...
explode_data.jsonl/54143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 11066, 2354, 34207, 10850, 6184, 1155, 353, 8840, 836, 8, 341, 1166, 2018, 1669, 1273, 2740, 1321, 74, 5173, 1155, 340, 17957, 35699, 1155, 11, 2643, 1321, 12438, 34793, 22363, 33929, 11, 5933, 3346, 3975, 220, 15, 78, 22, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStringSplosionAbc(t *testing.T) { expected := "aababc" actual := stringSplosion("abc") if strings.Compare(expected, actual) != 0 { t.Fatalf("expected \"%s\", but actual is \"%s\"", expected, actual) } }
explode_data.jsonl/78322
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 78 }
[ 2830, 3393, 703, 6406, 40455, 5830, 66, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 330, 88607, 13683, 698, 88814, 1669, 914, 6406, 40455, 445, 13683, 1138, 743, 9069, 32377, 15253, 11, 5042, 8, 961, 220, 15, 341, 197, 3244, 30762, 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 ]
2
func TestKfSpace_ToSpace(t *testing.T) { space := NewKfSpace() space.SetName("foo") actual := space.ToSpace() expected := &v1alpha1.Space{} expected.Name = "foo" testutil.AssertEqual(t, "generated ns", expected, actual) }
explode_data.jsonl/39369
{ "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, 42, 69, 9914, 38346, 9914, 1155, 353, 8840, 836, 8, 341, 1903, 1306, 1669, 1532, 42, 69, 9914, 741, 1903, 1306, 4202, 675, 445, 7975, 1138, 88814, 1669, 3550, 3274, 9914, 2822, 42400, 1669, 609, 85, 16, 7141, 16, 63991, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMinMaxBufferSizes(t *testing.T) { s := stack.New([]string{ipv4.ProtocolName}, []string{tcp.ProtocolName}, stack.Options{}) // Check the default values. ep, err := s.NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &waiter.Queue{}) if err != nil { t.Fatalf("NewEndpoint failed; %v", err) } defer ep....
explode_data.jsonl/22324
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 602 }
[ 2830, 3393, 92304, 4095, 34930, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 5611, 7121, 10556, 917, 90, 42676, 19, 54096, 675, 2137, 3056, 917, 90, 27161, 54096, 675, 2137, 5611, 22179, 6257, 692, 197, 322, 4248, 279, 1638, 2750, 624, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterReload(t *testing.T) { f := bloom.NewFilter(10, 0, 0.000001, wire.BloomUpdateAll) bFilter := bloom.LoadFilter(f.MsgFilterLoad()) if bFilter.MsgFilterLoad() == nil { t.Errorf("TestFilterReload LoadFilter test failed") return } bFilter.Reload(nil) if bFilter.MsgFilterLoad() != nil { t.Errorf(...
explode_data.jsonl/24706
{ "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, 5632, 50035, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 51454, 7121, 5632, 7, 16, 15, 11, 220, 15, 11, 220, 15, 13, 15, 15, 15, 15, 15, 16, 11, 9067, 1785, 18474, 4289, 2403, 692, 2233, 5632, 1669, 51454, 13969, 5632, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInitProvidersLocalOnly(t *testing.T) { t.Parallel() // This test should not reach out to the network if it is behaving as // intended. If it _does_ try to access an upstream registry and encounter // an error doing so then that's a legitimate test failure that should be // fixed. (If it incorrectly reach...
explode_data.jsonl/57931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 579 }
[ 2830, 3393, 3803, 37351, 7319, 7308, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 1096, 1273, 1265, 537, 5545, 700, 311, 279, 3922, 421, 432, 374, 86557, 438, 198, 197, 322, 10602, 13, 1416, 432, 716, 27057, 62, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTraceHTTPClient(t *testing.T) { tests := []struct { desc string errExpected bool service twirptest.Haberdasher clientOpts []TraceOption expectedTags func(*httptest.Server) map[string]interface{} }{ { desc: "properly traces valid requests", errExpected: false, servi...
explode_data.jsonl/49862
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1231 }
[ 2830, 3393, 6550, 9230, 2959, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 260, 914, 198, 197, 9859, 18896, 220, 1807, 198, 197, 52934, 414, 4384, 404, 70334, 3839, 370, 14348, 33767, 198, 197, 25291, 43451, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttrExistsCondition(t *testing.T) { cases := []struct { name string input ConditionBuilder expectedNode exprNode err condErrorMode }{ { name: "basic attr exists", input: Name("foo").AttributeExists(), expectedNode: exprNode{ children: []exprNode{ { n...
explode_data.jsonl/27678
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 746 }
[ 2830, 3393, 13371, 15575, 10547, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 22427, 286, 15180, 3297, 198, 197, 42400, 1955, 15169, 1955, 198, 197, 9859, 688, 9756, 1454, 3636, 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...
6
func TestApp_Hash(t *testing.T) { testNode(t, func(t *testing.T, node e2e.Node) { if node.Mode == e2e.ModeSeed { return } client, err := node.Client() require.NoError(t, err) info, err := client.ABCIInfo(ctx) require.NoError(t, err) require.NotEmpty(t, info.Response.LastBlockAppHash, "expected app to...
explode_data.jsonl/49799
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 2164, 2039, 988, 1155, 353, 8840, 836, 8, 341, 18185, 1955, 1155, 11, 2915, 1155, 353, 8840, 836, 11, 2436, 384, 17, 68, 21714, 8, 341, 197, 743, 2436, 42852, 621, 384, 17, 68, 42852, 41471, 341, 298, 853, 198, 197, 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...
2
func TestTx_CreateBucket_ErrBucketNameRequired(t *testing.T) { db := MustOpenDB() defer db.MustClose() if err := db.Update(func(tx *bolt.Tx) error { if _, err := tx.CreateBucket(nil); err != bolt.ErrBucketNameRequired { t.Fatalf("unexpected error: %s", err) } return nil }); err != nil { t.Fatal(err) } }
explode_data.jsonl/1693
{ "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, 31584, 34325, 36018, 93623, 36018, 675, 8164, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 741, 743, 1848, 1669, 2927, 16689, 18552, 27301, 353, 52433, 81362, 8, 1465, 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...
2
func TestStoreUpdate(t *testing.T) { podA := &api.Pod{ ObjectMeta: api.ObjectMeta{Name: "foo", Namespace: "test"}, Spec: api.PodSpec{NodeName: "machine"}, } podB := &api.Pod{ ObjectMeta: api.ObjectMeta{Name: "foo", Namespace: "test"}, Spec: api.PodSpec{NodeName: "machine2"}, } podAWithResourceV...
explode_data.jsonl/229
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 674 }
[ 2830, 3393, 6093, 4289, 1155, 353, 8840, 836, 8, 341, 3223, 347, 32, 1669, 609, 2068, 88823, 515, 197, 23816, 12175, 25, 6330, 80222, 63121, 25, 330, 7975, 497, 41962, 25, 330, 1944, 7115, 197, 7568, 992, 25, 981, 6330, 88823, 8327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTypeSystem_ObjectsMustHaveFields_RejectsAnObjectTypeWithEmptyFields(t *testing.T) { badObject := graphql.NewObject(graphql.ObjectConfig{ Name: "SomeObject", Fields: graphql.Fields{}, }) _, err := schemaWithFieldType(badObject) expectedError := `SomeObject fields must be an object with field names as ...
explode_data.jsonl/79146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 929, 2320, 62, 11543, 31776, 12116, 8941, 50693, 583, 82, 2082, 49530, 2354, 3522, 8941, 1155, 353, 8840, 836, 8, 341, 2233, 329, 1190, 1669, 48865, 7121, 1190, 24312, 1470, 8348, 2648, 515, 197, 21297, 25, 256, 330, 8373, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDNSProvider_Present(t *testing.T) { provider, mux := setupTest(t) mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { assert.Equal(t, http.MethodGet, r.Method, "method") q := r.URL.Query() assert.Equal(t, q.Get("key"), fakeAPIKey) assert.Equal(t, q.Get("cmd"), "dns-add_record") ass...
explode_data.jsonl/52234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 323 }
[ 2830, 3393, 61088, 5179, 1088, 2695, 1155, 353, 8840, 836, 8, 341, 197, 19979, 11, 59807, 1669, 6505, 2271, 1155, 692, 2109, 2200, 63623, 35460, 2915, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 6948, 12808, 1155, 11, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestWithSimulated(t *testing.T) { t.Parallel() msg := "Test 123" var transport []string for _, n := range []string{"unix", "unixgram", "udp", "tcp"} { if testableNetwork(n) { transport = append(transport, n) } } for _, tr := range transport { done := make(chan string) addr, sock, srvWG := startSe...
explode_data.jsonl/17083
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 2354, 14027, 7757, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 21169, 1669, 330, 2271, 220, 16, 17, 18, 698, 2405, 7557, 3056, 917, 198, 2023, 8358, 308, 1669, 2088, 3056, 917, 4913, 56646, 497, 330, 56646, 1520,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadOrientationFails(t *testing.T) { testCases := []struct { name string data string }{ { "empty", "", }, { "missing SOI marker", "\xff\xe1", }, { "missing APP1 marker", "\xff\xd8", }, { "short read marker", "\xff\xd8\xff", }, { "short read block size", "\x...
explode_data.jsonl/2437
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1785 }
[ 2830, 3393, 4418, 22332, 37, 6209, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 8924, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 1, 3194, 756, 298, 197, 39680, 197, 197, 1583, 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 TestSwapMemoryStat_String(t *testing.T) { v := SwapMemoryStat{ Total: 10, Used: 30, Free: 40, UsedPercent: 30.1, } e := `{"total":10,"used":30,"free":40,"usedPercent":30.1,"sin":0,"sout":0}` if e != fmt.Sprintf("%v", v) { t.Errorf("SwapMemoryStat string is invalid: %v", v) } }
explode_data.jsonl/974
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 155 }
[ 2830, 3393, 46179, 10642, 15878, 31777, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 43849, 10642, 15878, 515, 197, 197, 7595, 25, 981, 220, 16, 15, 345, 197, 197, 22743, 25, 286, 220, 18, 15, 345, 197, 197, 10940, 25, 286, 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...
2
func TestGetDeviceNameFromMount(t *testing.T) { fm := &FakeMounter{ MountPoints: []MountPoint{ {Device: "/dev/disk/by-path/prefix-lun-1", Path: "/mnt/111"}, {Device: "/dev/disk/by-path/prefix-lun-1", Path: "/mnt/222"}, }, } tests := []struct { mountPath string expectedDevice string expe...
explode_data.jsonl/76946
{ "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, 1949, 6985, 675, 3830, 16284, 1155, 353, 8840, 836, 8, 341, 1166, 76, 1669, 609, 52317, 16284, 261, 515, 197, 9209, 629, 11411, 25, 3056, 16284, 2609, 515, 298, 197, 90, 6985, 25, 3521, 3583, 3446, 3187, 67733, 33095, 4322...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVerify(t *testing.T) { signer := &mocks.SignerSerializer{} signer.SerializeReturns([]byte("Alice"), nil) signer.SignReturns([]byte("msg1"), nil) cryptoProvider, err := sw.NewDefaultSecurityLevelWithKeystore(sw.NewDummyKeyStore()) require.NoError(t, err) msgCryptoService := NewMCS( &mocks.ChannelPolicyM...
explode_data.jsonl/20526
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 857 }
[ 2830, 3393, 32627, 1155, 353, 8840, 836, 8, 341, 69054, 261, 1669, 609, 16712, 82, 41152, 261, 13909, 16094, 69054, 261, 32859, 16446, 10556, 3782, 445, 61686, 3975, 2092, 340, 69054, 261, 41152, 16446, 10556, 3782, 445, 3236, 16, 3975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDefaultFunctionParsing(t *testing.T) { const definition = `[{ "name" : "balance" }]` abi, err := JSON(strings.NewReader(definition)) if err != nil { t.Fatal(err) } if _, ok := abi.Methods["balance"]; !ok { t.Error("expected 'balance' to be present") } }
explode_data.jsonl/64558
{ "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, 3675, 5152, 68839, 1155, 353, 8840, 836, 8, 341, 4777, 7271, 284, 1565, 52108, 330, 606, 1, 549, 330, 21571, 1, 58592, 19324, 197, 25084, 11, 1848, 1669, 4718, 51442, 68587, 7, 18375, 1171, 743, 1848, 961, 2092, 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 TestCallRates(t *testing.T) { client, err := testClient() if err != nil { t.Fatalf("Should have instantiated a new client with valid config and http client, but it threw error: %s", err.Error()) } _, err = client.CallRates(&RatesRequest{Short: "1", Accepted: "0"}) if err != nil { t.Fatalf("Could not cal...
explode_data.jsonl/26392
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 7220, 82623, 1155, 353, 8840, 836, 8, 341, 25291, 11, 1848, 1669, 1273, 2959, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 14996, 614, 54586, 264, 501, 2943, 448, 2697, 2193, 323, 1758, 2943, 11, 714, 432, 22192,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetProxyConfig(t *testing.T) { proxyVars := []string{"http_proxy", "https_proxy", "no_proxy", "HTTP_PROXY", "HTTPS_PROXY", "NO_PROXY"} testCases := []struct { name string appRepoEnvVars []corev1.EnvVar containerEnvVars map[string]string expectedConfig *httpproxy.Config }{ { name...
explode_data.jsonl/75000
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1396 }
[ 2830, 3393, 1949, 16219, 2648, 1155, 353, 8840, 836, 8, 341, 197, 22803, 28305, 1669, 3056, 917, 4913, 1254, 29712, 497, 330, 2428, 29712, 497, 330, 2152, 29712, 497, 330, 9230, 59065, 497, 330, 82354, 59065, 497, 330, 8996, 59065, 1670...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRespondentIdentity(t *testing.T) { s, err := NewSocket() MustSucceed(t, err) id := s.Info() MustBeTrue(t, id.Self == mangos.ProtoRespondent) MustBeTrue(t, id.SelfName == "respondent") MustBeTrue(t, id.Peer == mangos.ProtoSurveyor) MustBeTrue(t, id.PeerName == "surveyor") MustSucceed(t, s.Close()) }
explode_data.jsonl/57386
{ "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, 65354, 306, 18558, 1155, 353, 8840, 836, 8, 341, 1903, 11, 1848, 1669, 1532, 10286, 741, 9209, 590, 50, 29264, 1155, 11, 1848, 340, 15710, 1669, 274, 20132, 741, 9209, 590, 3430, 2514, 1155, 11, 877, 808, 490, 621, 50196, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestVersionedTreeOrphanDeleting(t *testing.T) { mdb := db.NewMemDB() tree := NewMutableTree(mdb, 0) tree.Set([]byte("key0"), []byte("val0")) tree.Set([]byte("key1"), []byte("val0")) tree.Set([]byte("key2"), []byte("val0")) tree.SaveVersion() tree.Set([]byte("key1"), []byte("val1")) tree.Set([]byte("key2"...
explode_data.jsonl/25120
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 5637, 291, 6533, 2195, 9943, 60475, 1155, 353, 8840, 836, 8, 341, 2109, 1999, 1669, 2927, 7121, 18816, 3506, 741, 51968, 1669, 1532, 11217, 6533, 1255, 1999, 11, 220, 15, 692, 51968, 4202, 10556, 3782, 445, 792, 15, 3975, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetChaincodesPath(t *testing.T) { dir, err := ioutil.TempDir(os.TempDir(), "setchaincodes") if err != nil { assert.Fail(t, err.Error(), "Unable to create temp dir") } defer os.RemoveAll(dir) t.Logf("created temp dir %s", dir) //获取现有的chaincode安装路径值并设置它 //做完测试后再回来 cip := chaincodeInstallPath defer SetC...
explode_data.jsonl/10598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 621 }
[ 2830, 3393, 1649, 18837, 25814, 1820, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 9638, 65009, 6184, 1507, 330, 746, 8819, 25814, 1138, 743, 1848, 961, 2092, 341, 197, 6948, 57243, 1155, 11, 1848, 6141, 1507...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPopulateSecrets(t *testing.T) { secret1 := apicontainer.Secret{ Provider: "ssm", Name: "secret1", Region: "us-west-2", Type: "ENVIRONMENT_VARIABLE", ValueFrom: "/test/secretName", } secret2 := apicontainer.Secret{ Provider: "asm", Name: "secret2", Region: "us-west-2",...
explode_data.jsonl/37248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 867 }
[ 2830, 3393, 11598, 6334, 19773, 82, 1155, 353, 8840, 836, 8, 341, 197, 20474, 16, 1669, 1443, 51160, 1743, 74779, 515, 197, 197, 5179, 25, 220, 330, 778, 76, 756, 197, 21297, 25, 414, 330, 20474, 16, 756, 197, 197, 14091, 25, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewImage(t *testing.T) { tcs := map[string]struct { image string registry string name string tag string }{ "full": { image: "docker-registry.domain.com:8080/nginx:1b29e1531c", registry: "https://docker-registry.domain.com:8080/v2", name: "nginx", tag: "1b29e1531c...
explode_data.jsonl/28530
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1446 }
[ 2830, 3393, 3564, 1906, 1155, 353, 8840, 836, 8, 341, 3244, 4837, 1669, 2415, 14032, 60, 1235, 341, 197, 31426, 262, 914, 198, 197, 197, 29172, 914, 198, 197, 11609, 257, 914, 198, 197, 60439, 414, 914, 198, 197, 59403, 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...
6
func TestEntityInsideCDATA(t *testing.T) { input := `<test><![CDATA[ &val=foo ]]></test>` d := NewDecoder(strings.NewReader(input)) var err error for _, err = d.Token(); err == nil; _, err = d.Token() { } if err != io.EOF { t.Fatalf("d.Token() = _, %v, want _, io.EOF", err) } }
explode_data.jsonl/48623
{ "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, 3030, 24480, 54002, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 30586, 1944, 73199, 54002, 58, 609, 831, 28, 7975, 40596, 1472, 1944, 53722, 2698, 1669, 1532, 20732, 51442, 68587, 5384, 1171, 2405, 1848, 1465, 198, 2023, 8358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestFlow(t *testing.T) { must := func(r *Flow, err error) *Flow { require.NoError(t, err) return r } u := &http.Request{URL: urlx.ParseOrPanic("http://foo/bar/baz"), Host: "foo"} for k, tc := range []struct { r *Flow expectErr bool }{ {r: must(NewFlow(time.Hour, "", u, nil, flow.TypeBrowser...
explode_data.jsonl/69428
{ "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, 18878, 1155, 353, 8840, 836, 8, 341, 2109, 590, 1669, 2915, 2601, 353, 18878, 11, 1848, 1465, 8, 353, 18878, 341, 197, 17957, 35699, 1155, 11, 1848, 340, 197, 853, 435, 198, 197, 630, 10676, 1669, 609, 1254, 9659, 90, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilterManager_RemoveFilter(t *testing.T) { controller := gomock.NewController(t) defer controller.Finish() state := octantFake.NewMockState(controller) state.EXPECT().RemoveFilter(octant.Filter{Key: "foo", Value: "bar"}) state.EXPECT().SendAlert(gomock.Any()) manager := api.NewFilterManager() payload...
explode_data.jsonl/48847
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 5632, 2043, 66843, 5632, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 6461, 991, 18176, 2822, 24291, 1669, 18491, 517, 52317, 7121, 11571, 1397, 40845, 340, 24291, 22402, 7285, 1005,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestScalarMult(t *testing.T) { scalar1 := 3. matrix1 := [][]float64{ []float64{1}, []float64{2}, } result1 := [][]float64{ []float64{3}, []float64{6}, } scalar2 := 0. matrix2 := [][]float64{ []float64{1, 4}, []float64{2, 5}, } result2 := [][]float64{ []float64{0, 0}, []float64{0, 0}, } s...
explode_data.jsonl/22524
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1289 }
[ 2830, 3393, 20639, 40404, 1155, 353, 8840, 836, 8, 341, 1903, 59153, 16, 1669, 220, 18, 624, 60930, 16, 1669, 52931, 3649, 21, 19, 515, 197, 197, 1294, 3649, 21, 19, 90, 16, 1583, 197, 197, 1294, 3649, 21, 19, 90, 17, 1583, 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 TestNewCmdCreate(t *testing.T) { tests := []struct { name string cli string factory func(*cmdutil.Factory) *cmdutil.Factory wants CreateOptions wantsErr bool }{ { name: "no arguments", cli: "", wants: CreateOptions{ Description: "", Public: false, Filenames: ...
explode_data.jsonl/27559
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1097 }
[ 2830, 3393, 3564, 15613, 4021, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 86448, 414, 914, 198, 197, 1166, 2919, 220, 2915, 4071, 8710, 1314, 51008, 8, 353, 8710, 1314, 51008, 198, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMemoryRegistryTTL(t *testing.T) { m := NewRegistry() for _, v := range testData { for _, service := range v { if err := m.Register(service, registry.RegisterTTL(time.Millisecond)); err != nil { t.Fatal(err) } } } time.Sleep(ttlPruneTime * 2) for name := range testData { svcs, err := m.G...
explode_data.jsonl/26908
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 10642, 15603, 51, 13470, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 15603, 2822, 2023, 8358, 348, 1669, 2088, 67348, 341, 197, 2023, 8358, 2473, 1669, 2088, 348, 341, 298, 743, 1848, 1669, 296, 19983, 21656, 11, 19424, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGenerateRequestBodyTypesWithTimeTime(t *testing.T) { spec := `--- components: requestBodies: FooRequest: description: bar content: application/json: schema: type: object properties: Baz: type: string form...
explode_data.jsonl/65730
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 31115, 33334, 4173, 2354, 1462, 1462, 1155, 353, 8840, 836, 8, 341, 98100, 1669, 1565, 10952, 5149, 510, 220, 1681, 33, 10028, 510, 262, 33428, 1900, 510, 414, 4008, 25, 3619, 198, 414, 2213, 510, 286, 3766, 8931, 510, 688...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSyncModeForDeviceGroupNotification(t *testing.T) { ctx := context.Background() cfg := initTest() cfg.Android.Enabled = true cfg.Android.APIKey = os.Getenv("ANDROID_API_KEY") cfg.Log.HideToken = false // enable sync mode cfg.Core.Sync = true req := notify.RequestPush{ Notifications: []notify.PushNo...
explode_data.jsonl/67625
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 12154, 3636, 2461, 6985, 2808, 11196, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 50286, 1669, 2930, 2271, 2822, 50286, 52924, 13690, 284, 830, 198, 50286, 52924, 24922, 1592, 284, 2643, 64883, 445, 72997, 114...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1