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 TestHttpParser_RequestResponse(t *testing.T) { if testing.Verbose() { logp.LogInit(logp.LOG_DEBUG, "", false, true, []string{"http", "httpdetailed"}) } http := HttpModForTests() data := []byte( "GET / HTTP/1.1\r\n" + "Host: www.google.ro\r\n" + "Connection: keep-alive\r\n" + "User-Agent: Mozilla...
explode_data.jsonl/6839
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 952 }
[ 2830, 3393, 2905, 6570, 44024, 2582, 1155, 353, 8840, 836, 8, 341, 743, 7497, 42505, 8297, 368, 341, 197, 6725, 79, 5247, 3803, 12531, 79, 36202, 11139, 11, 7342, 895, 11, 830, 11, 3056, 917, 4913, 1254, 497, 330, 1254, 67, 10111, 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...
6
func TestMatchNode(t *testing.T) { testFieldMap := map[bool][]fields.Set{ true: { {"metadata.name": "foo"}, }, false: { {"foo": "bar"}, }, } for expectedResult, fieldSet := range testFieldMap { for _, field := range fieldSet { m := MatchNode(labels.Everything(), field.AsSelector()) _, matchesS...
explode_data.jsonl/60722
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 192 }
[ 2830, 3393, 8331, 1955, 1155, 353, 8840, 836, 8, 341, 18185, 1877, 2227, 1669, 2415, 58, 2641, 45725, 9007, 4202, 515, 197, 42808, 25, 341, 298, 197, 4913, 17637, 2644, 788, 330, 7975, 7115, 197, 197, 1583, 197, 36012, 25, 341, 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...
4
func TestFuzzTwoStrings(t *testing.T) { data := []byte{0x2, 0x41, 0x42, 0x1, 0x43} f := &F{Data: data, T: t} fuzzTwoStrings(f) }
explode_data.jsonl/69275
{ "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, 37, 8889, 11613, 20859, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 3056, 3782, 90, 15, 87, 17, 11, 220, 15, 87, 19, 16, 11, 220, 15, 87, 19, 17, 11, 220, 15, 87, 16, 11, 220, 15, 87, 19, 18, 532, 1166, 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 TestIterationKeyedMap(t *testing.T) { vars := map[string]interface{}{ "keyed_map": IterationKeyedMap(map[string]interface{}{"a": 1, "b": 2}), } engine := NewEngine() tpl, err := engine.ParseTemplate([]byte(`{% for k in keyed_map %}{{ k }}={{ keyed_map[k] }}.{% endfor %}`)) require.NoError(t, err) out, err ...
explode_data.jsonl/74841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 53101, 1592, 291, 2227, 1155, 353, 8840, 836, 8, 341, 2405, 82, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 792, 291, 5376, 788, 13704, 367, 1592, 291, 2227, 9147, 14032, 31344, 6257, 4913, 64, 788, 220, 16, 11, 330, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBatchSpec(t *testing.T) { tests := []struct { name string p job.Presubmit refs v1alpha1.Refs expected v1alpha1.LighthouseJobSpec }{ { name: "can override path alias and cloneuri", p: job.Presubmit{ Base: job.Base{ UtilityConfig: job.UtilityConfig{ PathAlias: "foo...
explode_data.jsonl/51115
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 750 }
[ 2830, 3393, 21074, 8327, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 3223, 286, 2618, 1069, 416, 392, 1763, 198, 197, 197, 16149, 257, 348, 16, 7141, 16, 2817, 3848, 198, 197, 42400, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBatchingRequired(t *testing.T) { path, err := ioutil.TempDir(os.TempDir(), "testing_badger_") if err != nil { t.Fatal(err) } dsOpts := DefaultOptions d, err := NewDatastore(path, &dsOpts) if err != nil { t.Fatal(err) } defer func() { d.Close() os.RemoveAll(path) }() const valSize = 1000 /...
explode_data.jsonl/926
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 601 }
[ 2830, 3393, 21074, 287, 8164, 1155, 353, 8840, 836, 8, 341, 26781, 11, 1848, 1669, 43144, 65009, 6184, 9638, 65009, 6184, 1507, 330, 8840, 34199, 1389, 62, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 83336, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestVppAddSA(t *testing.T) { ctx, ipSecHandler, _ := ipSecTestSetup(t) defer ctx.TeardownTestCtx() ctx.MockVpp.MockReply(&vpp_ipsec.IpsecSadEntryAddDelReply{}) cryptoKey, err := hex.DecodeString("") Expect(err).To(BeNil()) err = ipSecHandler.AddSA(&ipsec.SecurityAssociation{ Index: "1", Spi: ...
explode_data.jsonl/18277
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 439 }
[ 2830, 3393, 53, 602, 2212, 7778, 1155, 353, 8840, 836, 8, 341, 20985, 11, 5997, 8430, 3050, 11, 716, 1669, 5997, 8430, 2271, 21821, 1155, 340, 16867, 5635, 94849, 37496, 2271, 23684, 2822, 20985, 24664, 53, 602, 24664, 20841, 2099, 85, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContainerEnabled(t *testing.T) { tests := []struct { name string container FakeContainer wantEnabled bool wantExplicit bool }{ { name: "Default", container: FakeContainer{ FakeContainerName: "does-not-matter", }, wantEnabled: true, wantExplicit: false, }, { na...
explode_data.jsonl/32997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 978 }
[ 2830, 3393, 4502, 5462, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 53290, 262, 36965, 4502, 198, 197, 50780, 5462, 220, 1807, 198, 197, 50780, 98923, 1807, 198, 197, 59403, 197, 197, 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 TestClient_QueryMessageFlags(t *testing.T) { c := initClient(t) ch := initChannel(t, c) user1, user2 := randomUser(), randomUser() for user1.ID == user2.ID { user2 = randomUser() } // send 2 messages text := randomString(10) msg1, err := ch.SendMessage(&Message{Text: text + " " + randomString(25)}, use...
explode_data.jsonl/1805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 580 }
[ 2830, 3393, 2959, 48042, 2052, 9195, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2930, 2959, 1155, 340, 23049, 1669, 2930, 9629, 1155, 11, 272, 692, 19060, 16, 11, 1196, 17, 1669, 4194, 1474, 1507, 4194, 1474, 741, 2023, 1196, 16, 9910,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetPath(t *testing.T) { testExt := "crt" perms := os.FileMode(0755) // Create our SimpleFileStore store := &SimpleFileStore{ baseDir: "", fileExt: testExt, perms: perms, } firstPath := "diogomonica.com/openvpn/0xdeadbeef.crt" secondPath := "/docker.io/testing-dashes/@#$%^&().crt" result, err...
explode_data.jsonl/54577
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 306 }
[ 2830, 3393, 1949, 1820, 1155, 353, 8840, 836, 8, 341, 18185, 6756, 1669, 330, 66, 3342, 698, 197, 87772, 1669, 2643, 8576, 3636, 7, 15, 22, 20, 20, 692, 197, 322, 4230, 1039, 8993, 1703, 6093, 198, 57279, 1669, 609, 16374, 1703, 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...
5
func TestOrgSetRoleCommand_Run(t *testing.T) { testErr := errio.Namespace("test").Code("test").Error("test error") cases := map[string]struct { cmd OrgSetRoleCommand newClientErr error updateFunc func(org string, username string, role string) (*api.OrgMember, error) ArgOrgName api.OrgName ArgU...
explode_data.jsonl/20795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 978 }
[ 2830, 3393, 42437, 1649, 9030, 4062, 84158, 1155, 353, 8840, 836, 8, 341, 18185, 7747, 1669, 2714, 10383, 46011, 445, 1944, 1827, 2078, 445, 1944, 1827, 1454, 445, 1944, 1465, 5130, 1444, 2264, 1669, 2415, 14032, 60, 1235, 341, 197, 259...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestControllerShouldEvict(t *testing.T) { threeHoursAgo := metav1.NewTime(time.Now().Add(-3 * time.Hour)) now := metav1.Now() tests := []struct { name string machine *clusterv1alpha1.Machine additionalMachines []runtime.Object existingNodes []runtime.Object shouldEvict ...
explode_data.jsonl/59421
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1654 }
[ 2830, 3393, 2051, 14996, 34112, 849, 1155, 353, 8840, 836, 8, 341, 197, 27856, 23235, 32, 3346, 1669, 77520, 16, 7121, 1462, 9730, 13244, 1005, 2212, 4080, 18, 353, 882, 73550, 1171, 80922, 1669, 77520, 16, 13244, 2822, 78216, 1669, 305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOnQuitMessage(t *testing.T) { runner := newSlaveRunner("localhost", 5557, nil, nil) defer runner.close() runner.client = newClient("localhost", 5557, "test") runner.state = stateInit quitMessages := make(chan bool, 10) receiver := func() { quitMessages <- true } Events.Subscribe("boomer:quit", recei...
explode_data.jsonl/11399
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 1925, 42856, 2052, 1155, 353, 8840, 836, 8, 341, 197, 41736, 1669, 501, 95960, 19486, 445, 8301, 497, 220, 20, 20, 20, 22, 11, 2092, 11, 2092, 340, 16867, 22259, 4653, 741, 197, 41736, 6581, 284, 501, 2959, 445, 8301, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidationForKubernetes(t *testing.T) { t.Run("invalid length", func(t *testing.T) { id := "" for i := 0; i < 64; i++ { id += "a" } err := ValidateKubernetesAppID(id) assert.Error(t, err) }) t.Run("valid id", func(t *testing.T) { id := "my-app-id" err := ValidateKubernetesAppID(id) asser...
explode_data.jsonl/54319
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 13799, 2461, 42, 29827, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 11808, 3084, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 15710, 1669, 8389, 197, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 21, 19, 26, 600, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHasExpectedTTLs(t *testing.T) { cases := []struct { msg string caTTL time.Duration svidTTL time.Duration hasExpectedTTLs bool }{ // ca_ttl isn't less than default_svid_ttl * 6 { msg: "Both values are default values", caTTL: 0, svidTTL: ...
explode_data.jsonl/51907
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 939 }
[ 2830, 3393, 10281, 18896, 51, 13470, 82, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 21169, 1797, 914, 198, 197, 197, 924, 51, 13470, 1843, 882, 33795, 198, 197, 1903, 1301, 51, 13470, 260, 882, 33795, 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 TestFormatterInvert(test *testing.T) { formatted, err := formatter.Format("{invert}text{invert | off}") assert.NoError(test, err) assert.Equal(test, "\x1b[7mtext\x1b[27m", formatted) }
explode_data.jsonl/39774
{ "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, 14183, 641, 1621, 8623, 353, 8840, 836, 8, 341, 37410, 12127, 11, 1848, 1669, 24814, 9978, 13976, 83729, 92, 1318, 90, 83729, 760, 1007, 55266, 6948, 35699, 8623, 11, 1848, 340, 6948, 12808, 8623, 11, 2917, 87, 16, 65, 58,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClient_DownloadFundFlow(t *testing.T) { // 初始化参数结构体 bm := make(gopay.BodyMap) bm.Set("nonce_str", util.GetRandomString(32)). Set("sign_type", SignType_HMAC_SHA256). Set("bill_date", "20190122"). Set("account_type", "Basic") // 请求下载资金账单,成功后得到结果,沙箱环境下,证书路径参数可传nil wxRsp, err := client.DownloadFundFlow...
explode_data.jsonl/56607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 2959, 1557, 37702, 58340, 18878, 1155, 353, 8840, 836, 8, 341, 197, 322, 76090, 32665, 100166, 31914, 198, 2233, 76, 1669, 1281, 3268, 453, 352, 20934, 2227, 340, 2233, 76, 4202, 445, 39593, 2895, 497, 4094, 2234, 13999, 703...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBreachHandoffFail(t *testing.T) { brar, alice, _, bobClose, contractBreaches, cleanUpChans, cleanUpArb := initBreachedState(t) defer cleanUpChans() defer cleanUpArb() // Before alerting Alice of the breach, instruct our failing retribution // store to fail the next database operation, which we expect t...
explode_data.jsonl/2937
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 914 }
[ 2830, 3393, 33, 22606, 2314, 1847, 19524, 1155, 353, 8840, 836, 8, 341, 80255, 277, 11, 70433, 11, 8358, 35192, 7925, 11, 5116, 50229, 14242, 345, 197, 1444, 2675, 2324, 1143, 596, 11, 4240, 2324, 6953, 65, 1669, 2930, 50229, 3854, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRemove(t *testing.T) { defer teardownTest(t) // Make sure we have busybox in list. out, err := run("ls", domain) if err != nil { t.Fatalf("output: %s, error: %v", out, err) } expected := `REPO TAGS alpine 3.5, latest busybox glibc, latest, musl` if !strings.HasS...
explode_data.jsonl/3186
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 442 }
[ 2830, 3393, 13021, 1155, 353, 8840, 836, 8, 341, 16867, 49304, 2271, 1155, 340, 197, 322, 7405, 2704, 582, 614, 13028, 2011, 304, 1140, 624, 13967, 11, 1848, 1669, 1598, 445, 4730, 497, 7947, 340, 743, 1848, 961, 2092, 341, 197, 3244,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_RemoveSchema(t *testing.T) { tests := []struct { name string url string want string }{ { name: "https", url: "https://okteto.dev.com", want: "okteto.dev.com", }, { name: "non url", url: "minikube", want: "minikube", }, { name: "http", url: "http://okteto.com", ...
explode_data.jsonl/53941
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 277 }
[ 2830, 3393, 66843, 8632, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 19320, 220, 914, 198, 197, 50780, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 330, 2428, 756, 298, 19320, 25, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestIpPermissionExistsHandlesRangeSubsets(t *testing.T) { // Two existing scenarios we'll test against emptyIpPermission := ec2.IpPermission{} oldIpPermission := ec2.IpPermission{ IpRanges: []*ec2.IpRange{ {CidrIp: aws.String("10.0.0.0/8")}, {CidrIp: aws.String("192.168.1.0/24")}, }, } // Two alre...
explode_data.jsonl/12852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 727 }
[ 2830, 3393, 23378, 14966, 15575, 65928, 6046, 3136, 4917, 1155, 353, 8840, 836, 8, 341, 197, 322, 9043, 6350, 25283, 582, 3278, 1273, 2348, 198, 197, 3194, 23378, 14966, 1669, 11942, 17, 2447, 79, 14966, 31483, 61828, 23378, 14966, 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...
7
func TestProc_doWithDeadProc(t *testing.T) { p := New() p.End() time.Sleep(100 * time.Millisecond) errUnexpected := fmt.Errorf("unexpected execution of delegated action") decorated := DoWith(p, DoerFunc(func(_ Action) <-chan error { return ErrorChan(errUnexpected) })) decorated.Do(func() {}) fatalAfter(t, d...
explode_data.jsonl/45691
{ "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, 24508, 26309, 2354, 28320, 24508, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1532, 741, 3223, 18569, 741, 21957, 31586, 7, 16, 15, 15, 353, 882, 71482, 692, 9859, 29430, 1669, 8879, 13080, 445, 53859, 11320, 315, 90657, 1917,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildAndParse(t *testing.T) { var users []User // Encode some query filterEncoded := filter.Contains("Farcha", "name", "AND"). After("2000-01-01", "birth_date", "AND"). Is("Angger Pangestu", "name", "OR").Build() fmt.Println(filterEncoded) filter, err := gorm_advanced_filter.Parse(filter.ToSql(), fi...
explode_data.jsonl/80118
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 176 }
[ 2830, 3393, 11066, 3036, 14463, 1155, 353, 8840, 836, 8, 341, 2405, 3847, 3056, 1474, 198, 197, 322, 56562, 1045, 3239, 198, 50108, 46795, 1669, 4051, 11545, 445, 37, 1113, 64, 497, 330, 606, 497, 330, 3976, 38609, 197, 197, 6025, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestMixin_UnmarshalStep(t *testing.T) { b, err := ioutil.ReadFile("testdata/step-input.yaml") require.NoError(t, err) var action Action err = yaml.Unmarshal(b, &action) require.NoError(t, err) assert.Equal(t, "install", action.Name) require.Len(t, action.Steps, 1) step := action.Steps[0] assert.Equal(t,...
explode_data.jsonl/15153
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 270 }
[ 2830, 3393, 38456, 40687, 27121, 8304, 1155, 353, 8840, 836, 8, 341, 2233, 11, 1848, 1669, 43144, 78976, 445, 92425, 14, 9520, 13933, 33406, 1138, 17957, 35699, 1155, 11, 1848, 692, 2405, 1917, 5586, 198, 9859, 284, 32246, 38097, 1883, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestContext2Plan_targetedModuleUntargetedVariable(t *testing.T) { m := testModule(t, "plan-targeted-module-untargeted-variable") p := testProvider("aws") p.DiffFn = testDiffFn ctx := testContext2(t, &ContextOpts{ Config: m, ProviderResolver: providers.ResolverFixed( map[string]providers.Factory{ "aw...
explode_data.jsonl/28708
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 647 }
[ 2830, 3393, 1972, 17, 20485, 11123, 291, 3332, 20250, 1284, 291, 7827, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 18489, 291, 46718, 12, 3850, 1284, 291, 38789, 1138, 3223, 1669, 1273, 5179, 445, 8635, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeviceService_TrackLatestRelease_ID(t *testing.T) { // Given client, mux, cleanup := newFixture() defer cleanup() entityID := int64(112233) mux.HandleFunc( "/"+odata.EntityURL(deviceBasePath, strconv.FormatInt(entityID, 10)), func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, http.Meth...
explode_data.jsonl/46821
{ "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, 6985, 1860, 21038, 473, 31992, 16077, 3450, 1155, 353, 8840, 836, 8, 341, 197, 322, 16246, 198, 25291, 11, 59807, 11, 21290, 1669, 501, 18930, 741, 16867, 21290, 741, 52987, 915, 1669, 526, 21, 19, 7, 16, 16, 17, 17, 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 TestShouldUseProvidedHeaderName(t *testing.T) { // The decoded format should be user:password. _, _, err := parseBasicAuth("HeaderName", "") assert.Error(t, err) assert.Equal(t, "Basic prefix not found in HeaderName header", err.Error()) }
explode_data.jsonl/20181
{ "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, 14996, 10253, 35819, 291, 4047, 675, 1155, 353, 8840, 836, 8, 341, 197, 322, 576, 29213, 3561, 1265, 387, 1196, 25, 3833, 624, 197, 6878, 8358, 1848, 1669, 4715, 15944, 5087, 445, 4047, 675, 497, 14676, 6948, 6141, 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
func TestDatabase_PurgeMobileApps(t *testing.T) { t.Parallel() db, _ := testDatabaseInstance.NewDatabase(t, nil) now := time.Now().UTC() for i := 0; i < 5; i++ { if err := db.SaveMobileApp(&MobileApp{ RealmID: 1, Name: fmt.Sprintf("Appy%d", i), OS: OSTypeIOS, URL: fmt.Sprintf("https://%d...
explode_data.jsonl/42278
{ "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, 5988, 1088, 39823, 18370, 53602, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20939, 11, 716, 1669, 1273, 5988, 2523, 7121, 5988, 1155, 11, 2092, 692, 80922, 1669, 882, 13244, 1005, 21183, 741, 2023, 600, 1669, 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...
7
func TestGetWindowRect(t *testing.T) { if bi, _ := webtest.GetBrowserInfo(); bi.Environment == "sauce" { t.Skip("fails on SauceLabs.") } ctx := context.Background() d, err := CreateSession(ctx, wdAddress(), 3, nil) if err != nil { t.Fatal(err) } defer d.Quit(ctx) rect, err := d.GetWindowRect(ctx) if err...
explode_data.jsonl/68743
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 1949, 4267, 4415, 1155, 353, 8840, 836, 8, 341, 743, 6032, 11, 716, 1669, 3482, 1944, 2234, 17878, 1731, 2129, 6032, 45651, 621, 330, 82, 75790, 1, 341, 197, 3244, 57776, 445, 59631, 389, 60176, 43, 3435, 13053, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestImageRef_HasIPTC__False(t *testing.T) { Startup(nil) img, err := NewImageFromFile(resources + "jpg-24bit.jpg") require.NoError(t, err) require.NotNil(t, img) defer img.Close() assert.False(t, img.HasIPTC()) }
explode_data.jsonl/38825
{ "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, 1906, 3945, 2039, 300, 40, 2828, 34, 563, 4049, 1155, 353, 8840, 836, 8, 341, 197, 39076, 27907, 692, 39162, 11, 1848, 1669, 1532, 1906, 43633, 52607, 488, 330, 17974, 12, 17, 19, 4489, 4819, 1138, 17957, 35699, 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 TestStart(t *testing.T) { c := aetesting.FakeSingleContext(t, "modules", "StartModule", func(req *pb.StartModuleRequest, res *pb.StartModuleResponse) error { if *req.Module != module { t.Errorf("Module = %v, want %v", req.Module, module) } if *req.Version != version { t.Errorf("Version = %v, wan...
explode_data.jsonl/54566
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 193 }
[ 2830, 3393, 3479, 1155, 353, 8840, 836, 8, 972, 1444, 1669, 264, 57824, 287, 991, 726, 10888, 1972, 1155, 11, 330, 11525, 497, 330, 3479, 3332, 497, 2915, 6881, 353, 16650, 12101, 3332, 1900, 11, 592, 353, 16650, 12101, 3332, 2582, 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...
3
func TestFromContext(t *testing.T) { ctx := context.Background() reg := &rootRegistry{ registry: metrics.NewPrefixedRegistry("foo"), } ctx = WithRegistry(ctx, reg) assert.Equal(t, FromContext(ctx), reg) }
explode_data.jsonl/59807
{ "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, 3830, 1972, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 37013, 1669, 609, 2888, 15603, 515, 197, 197, 29172, 25, 16734, 7121, 29978, 3286, 15603, 445, 7975, 4461, 197, 630, 20985, 284, 3085, 15603, 7502, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestSpaceRoles(t *testing.T) { Convey("Get space roles", t, func() { setup(MockRoute{"GET", "/v2/spaces/494d8b64-8181-4183-a6d3-6279db8fec6e/user_roles", spaceRolesPayload, "", 200, "", nil}, t) defer teardown() c := &Config{ ApiAddress: server.URL, Token: "foobar", } client, err := NewClient...
explode_data.jsonl/59988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 677 }
[ 2830, 3393, 9914, 25116, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 1949, 3550, 12783, 497, 259, 11, 2915, 368, 341, 197, 84571, 66436, 4899, 4913, 3806, 497, 3521, 85, 17, 26734, 2434, 14, 19, 24, 19, 67, 23, 65, 21, 19, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOmitEmpty0(t *testing.T) { var s string var oe0a OmitEmpty0 s = mustEncodeToJSON(&oe0a) if s != `{"aunnamedstruct":{},"aarrayint":[0,0,0,0,0]}` { t.Errorf("wrong result: %s", s) } var oe0b OmitEmpty0 oe0b.AString = "teststr" s = mustEncodeToJSON(&oe0b) if s != `{"astring":"teststr","aunnamedstru...
explode_data.jsonl/59182
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 653 }
[ 2830, 3393, 46, 1763, 3522, 15, 1155, 353, 8840, 836, 8, 1476, 2405, 274, 914, 271, 2405, 68383, 15, 64, 506, 1763, 3522, 15, 271, 1903, 284, 1969, 32535, 1249, 5370, 2099, 4644, 15, 64, 340, 743, 274, 961, 1565, 4913, 64, 14931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGaiaCLIGasAuto(t *testing.T) { chainID, servAddr, port := initializeFixtures(t) flags := fmt.Sprintf("--home=%s --node=%v --chain-id=%v", gaiacliHome, servAddr, chainID) // start gaiad server proc := tests.GoExecuteTWithStdout(t, fmt.Sprintf("gaiad start --home=%s --rpc.laddr=%v", gaiadHome, servAddr)) ...
explode_data.jsonl/20993
{ "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, 80788, 685, 3140, 1914, 300, 13253, 1155, 353, 8840, 836, 8, 341, 197, 8819, 915, 11, 4853, 13986, 11, 2635, 1669, 9468, 25958, 18513, 1155, 340, 59516, 1669, 8879, 17305, 21549, 5117, 7846, 82, 1177, 3509, 7846, 85, 1177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsDirtyFailure(t *testing.T) { testRepo := newTestRepo(t) defer testRepo.cleanup(t) require.Nil(t, os.WriteFile( filepath.Join(testRepo.sut.Dir(), "any-file"), []byte("test"), os.FileMode(0o755)), ) dirty, err := testRepo.sut.IsDirty() require.Nil(t, err) require.True(t, dirty) }
explode_data.jsonl/14039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 3872, 36485, 17507, 1155, 353, 8840, 836, 8, 341, 18185, 25243, 1669, 501, 2271, 25243, 1155, 340, 16867, 1273, 25243, 87689, 1155, 692, 17957, 59678, 1155, 11, 2643, 4073, 1703, 1006, 197, 17661, 2343, 22363, 8623, 25243, 514...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMake64(t *testing.T) { doTestBadMake64(t, 0, 1) doTestBadMake64(t, 1, 0) doTestBadMake64(t, 1, 65) }
explode_data.jsonl/52621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 56 }
[ 2830, 3393, 8078, 21, 19, 1155, 353, 8840, 836, 8, 341, 19935, 2271, 17082, 8078, 21, 19, 1155, 11, 220, 15, 11, 220, 16, 340, 19935, 2271, 17082, 8078, 21, 19, 1155, 11, 220, 16, 11, 220, 15, 340, 19935, 2271, 17082, 8078, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGormFiltering(t *testing.T) { tests := []struct { rest string gorm string args []interface{} err error }{ { "not(field1 == 'value1' or field2 == 'value2' and field3 != 'value3')", "NOT((field1 = ?) OR ((field2 = ?) AND NOT(field3 = ?)))", []interface{}{"value1", "value2", "value3"}, n...
explode_data.jsonl/54225
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 962 }
[ 2830, 3393, 38, 493, 5632, 287, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 197, 3927, 914, 198, 197, 3174, 493, 914, 198, 197, 31215, 3056, 4970, 16094, 197, 9859, 220, 1465, 198, 197, 59403, 197, 197, 515, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewMappingRuleSnapshotFromV1ProtoInvalidProto(t *testing.T) { proto := &rulepb.MappingRuleSnapshot{ Policies: []*policypb.Policy{ &policypb.Policy{}, }, } _, err := newMappingRuleSnapshotFromProto(proto, testTagsFilterOptions()) require.Error(t, err) }
explode_data.jsonl/64561
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 3564, 6807, 11337, 15009, 3830, 53, 16, 31549, 7928, 31549, 1155, 353, 8840, 836, 8, 341, 197, 15110, 1669, 609, 12937, 16650, 76455, 11337, 15009, 515, 197, 10025, 42038, 25, 29838, 79, 7762, 1082, 65, 1069, 8018, 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...
1
func TestCmdAddExcludePod(t *testing.T) { defer resetGlobalTestVariables() k8Args = "K8S_POD_NAMESPACE=testExcludeNS;K8S_POD_NAME=testPodName" getKubePodInfoCalled = false testCmdAdd(t) if getKubePodInfoCalled == true { t.Fatalf("failed to exclude pod") } }
explode_data.jsonl/17796
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 112 }
[ 2830, 3393, 15613, 2212, 95239, 23527, 1155, 353, 8840, 836, 8, 341, 16867, 7585, 11646, 2271, 22678, 2822, 16463, 23, 4117, 284, 330, 42, 23, 50, 1088, 2069, 34552, 53538, 95239, 2448, 26, 42, 23, 50, 1088, 2069, 4708, 53538, 23527, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestExecSupportExists(t *testing.T) { fakeDocker := &FakeDockerClient{VersionInfo: docker.Env{"Version=1.3.0", "ApiVersion=1.15"}} runner := &DockerManager{client: fakeDocker} useNativeExec, err := runner.nativeExecSupportExists() if err != nil { t.Errorf("got error while checking for exec support - %s", err...
explode_data.jsonl/11445
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 146 }
[ 2830, 3393, 10216, 7916, 15575, 1155, 353, 8840, 836, 8, 341, 1166, 726, 35, 13659, 1669, 609, 52317, 35, 13659, 2959, 90, 5637, 1731, 25, 26588, 81214, 4913, 5637, 28, 16, 13, 18, 13, 15, 497, 330, 6563, 5637, 28, 16, 13, 16, 20,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDockerKillFailure(t *testing.T) { composeMock, docker, _ := getComposeMocks() composeMock.On("Down", mock.Anything, mock.Anything, mock.Anything).Return(ErrSomeDockerIssue) err := docker.Kill() assert.Contains(t, err.Error(), messages.ErrContainerStop) }
explode_data.jsonl/50541
{ "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, 35, 13659, 53734, 17507, 1155, 353, 8840, 836, 8, 341, 32810, 2900, 11571, 11, 26588, 11, 716, 1669, 633, 70492, 72577, 741, 32810, 2900, 11571, 8071, 445, 4454, 497, 7860, 13311, 1596, 11, 7860, 13311, 1596, 11, 7860, 13311...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFailures(t *testing.T) { builder, cleanup := acceptance.CreateBuilder(t) t.Cleanup(cleanup) testCases := []acceptance.FailureTest{ { App: "fail_syntax_error", Env: []string{"GOOGLE_FUNCTION_TARGET=functions.HelloWorld"}, MustMatch: `\[ERROR\].*not a statement`, }, { App: ...
explode_data.jsonl/74724
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 300 }
[ 2830, 3393, 19524, 1413, 1155, 353, 8840, 836, 8, 341, 44546, 11, 21290, 1669, 25505, 7251, 3297, 1155, 340, 3244, 727, 60639, 1337, 60639, 692, 18185, 37302, 1669, 3056, 10330, 681, 98190, 2271, 515, 197, 197, 515, 298, 59557, 25, 981,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDDLUnsharded(t *testing.T) { defer cluster.PanicHandler(t) ctx := context.Background() vtParams := mysql.ConnParams{ Host: "localhost", Port: clusterInstance.VtgateMySQLPort, } conn, err := mysql.Connect(ctx, &vtParams) require.NoError(t, err) defer conn.Close() exec(t, conn, `create table tempt1(...
explode_data.jsonl/70823
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 432 }
[ 2830, 3393, 58781, 1806, 927, 20958, 1155, 353, 8840, 836, 8, 341, 16867, 10652, 1069, 31270, 3050, 1155, 340, 20985, 1669, 2266, 19047, 741, 5195, 83, 4870, 1669, 10564, 50422, 4870, 515, 197, 197, 9296, 25, 330, 8301, 756, 197, 98459,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTarget(t *testing.T) { testcases := []struct { TestName string typrls.Target ExpectedOS string ExpectedArch string }{ {Target: "darwin/amd64", ExpectedOS: "darwin", ExpectedArch: "amd64"}, {Target: "linux/amd64", ExpectedOS: "linux", ExpectedArch: "amd64"}, {Target: "no-slash", ExpectedOS: ""...
explode_data.jsonl/71798
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 223 }
[ 2830, 3393, 6397, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 73866, 675, 914, 198, 197, 197, 1881, 649, 4730, 35016, 198, 197, 197, 18896, 3126, 256, 914, 198, 197, 197, 18896, 18727, 914, 198, 197, 59403,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIssue105(t *testing.T) { type A struct { Field string } type B struct { Field int } type C struct { A B } type Env struct { C } code := ` A.Field == '' && C.A.Field == '' && B.Field == 0 && C.B.Field == 0 ` _, err := expr.Compile(code, expr.Env(Env{})) require.NoError(t, err) ...
explode_data.jsonl/36917
{ "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, 42006, 16, 15, 20, 1155, 353, 8840, 836, 8, 341, 13158, 362, 2036, 341, 197, 94478, 914, 198, 197, 532, 13158, 425, 2036, 341, 197, 94478, 526, 198, 197, 532, 13158, 356, 2036, 341, 197, 22985, 198, 197, 12791, 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 TestMetricsEndpointExposesTenantSpecificMetrics(t *testing.T) { // given defer unRegisterAndResetMetrics() metric.RegisterMetrics() metric.RecordProvisionedTenant(true) metric.RecordDeletedTenant(true) metric.RecordDeletedTenant(false) metric.RecordCleanedTenant(true, "") metric.RecordUpdatedTenant(true, "...
explode_data.jsonl/70273
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 293 }
[ 2830, 3393, 27328, 27380, 840, 8285, 71252, 47514, 27328, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 16867, 650, 8690, 3036, 14828, 27328, 741, 2109, 16340, 19983, 27328, 741, 2109, 16340, 49959, 1336, 13013, 291, 71252, 3715, 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 Test_idle_check_skipped_if_feature_not_enabled(t *testing.T) { log.SetOutput(ioutil.Discard) log.SetLevel(log.DebugLevel) // register a global log hook to capture the log output hook := test.NewGlobal() user := model.User{ID: "100"} userIdler := NewUserIdler(user, nil, &mock.Config{}, mock.NewMockFeatureTo...
explode_data.jsonl/914
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 197 }
[ 2830, 3393, 47810, 7200, 33811, 6450, 11119, 17069, 7913, 18220, 1155, 353, 8840, 836, 8, 341, 6725, 4202, 5097, 1956, 30158, 909, 47560, 340, 6725, 4202, 4449, 12531, 20345, 4449, 692, 197, 322, 4161, 264, 3644, 1487, 9704, 311, 12322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClustersRecoverLocal(t *testing.T) { ctx := context.Background() clusters, mock := createClusters(t) defer shutdownClusters(t, clusters, mock) h := test.ErrorCid // This cid always fails h2 := test.Cid2 ttlDelay() clusters[0].Pin(ctx, h, api.PinOptions{}) clusters[0].Pin(ctx, h2, api.PinOptions{}) p...
explode_data.jsonl/66607
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 344 }
[ 2830, 3393, 94992, 693, 3688, 7319, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 39407, 14605, 11, 7860, 1669, 1855, 94992, 1155, 340, 16867, 23766, 94992, 1155, 11, 26968, 11, 7860, 340, 9598, 1669, 1273, 6141, 34, 307,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequireEndpointUsed(t *testing.T) { svc := iotdataplane.New(unit.Session, &aws.Config{ Region: aws.String("mock-region"), DisableParamValidation: aws.Bool(true), Endpoint: aws.String("https://endpoint"), }) req, _ := svc.GetThingShadowRequest(nil) err := req.Build() if...
explode_data.jsonl/64513
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 219 }
[ 2830, 3393, 17959, 27380, 22743, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 600, 354, 93253, 37847, 7121, 24144, 20674, 11, 609, 8635, 10753, 515, 197, 197, 14091, 25, 338, 31521, 6431, 445, 16712, 60679, 4461, 197, 197, 25479, 200...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuilder_MustBuild(t *testing.T) { uid := NewID() tid := NewTeamID() en, _ := language.Parse("en") pass, _ := encodePassword("pass") type args struct { Name, Lang, Email string ID ID Team TeamID PasswordBin []byte Auths []Auth } tests := []struct ...
explode_data.jsonl/75870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 810 }
[ 2830, 3393, 3297, 1245, 590, 11066, 1155, 353, 8840, 836, 8, 341, 197, 2423, 1669, 1532, 915, 741, 3244, 307, 1669, 1532, 14597, 915, 741, 81848, 11, 716, 1669, 4128, 8937, 445, 268, 1138, 41431, 11, 716, 1669, 16164, 4876, 445, 6385,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDoesTableExist(t *testing.T) { svc := &mockDynamoDB{tableExist: true, item: map[string]*dynamodb.AttributeValue{}} checkpoint := &DynamoCheckpoint{ TableName: "TableName", svc: svc, } if !checkpoint.doesTableExist() { t.Error("Table exists but returned false") } svc = &mockDynamoDB{tableExis...
explode_data.jsonl/9837
{ "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, 21468, 2556, 25613, 1155, 353, 8840, 836, 8, 341, 1903, 7362, 1669, 609, 16712, 35, 85608, 3506, 90, 2005, 25613, 25, 830, 11, 1509, 25, 2415, 14032, 8465, 67, 83348, 33775, 1130, 6257, 532, 25157, 2768, 1669, 609, 35, 856...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetActiveUsersInTeam(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() teamId := th.BasicTeam.Id th.SystemAdminClient.UpdateUserActive(th.BasicUser2.Id, false) rusers, _, err := th.Client.GetActiveUsersInTeam(teamId, 0, 60, "") require.NoError(t, err) require.NotZero(t, len(rusers)) for ...
explode_data.jsonl/47517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 1949, 5728, 7137, 641, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 197, 9196, 764, 1669, 270, 48868, 14597, 6444, 271, 70479, 16620, 7210, 2959, 1668...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrompt_NotifiesInvalidValueOutput(t *testing.T) { f := setup(rc(`edit:prompt = { put good [bad] good2 }`)) defer f.Cleanup() f.TestTTY(t, "goodgood2", term.DotHere) f.TestTTYNotes(t, "invalid output type from prompt: list") }
explode_data.jsonl/46580
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 54615, 60816, 9606, 7928, 1130, 5097, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 6505, 35429, 5809, 3587, 25, 40581, 284, 314, 2182, 1661, 508, 13855, 60, 1661, 17, 335, 63, 1171, 16867, 282, 727, 60639, 2822, 1166, 8787, 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 TestLockfilePutReplace(t *testing.T) { lf := &lockfile.Lockfile{} want := tool.Tool{ImportPath: "github.com/cszatmary/go-fish", Version: "v0.1.0"} if err := lf.PutTool(want); err != nil { t.Fatalf("failed to add tool %v to lockfile: %v", want, err) } if lf.LenTools() != 1 { t.Errorf("got len %d, want 1", ...
explode_data.jsonl/58263
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 11989, 1192, 19103, 23107, 1155, 353, 8840, 836, 8, 341, 8810, 69, 1669, 609, 1023, 1192, 31403, 1192, 16094, 50780, 1669, 5392, 24439, 90, 11511, 1820, 25, 330, 5204, 905, 2899, 14357, 266, 1534, 25525, 2220, 812, 497, 6079...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStaticExpressionList(t *testing.T) { expr, _ := ParseExpression([]byte("[0, a, true]"), "", hcl.Pos{}) exprs, diags := hcl.ExprList(expr) if len(diags) != 0 { t.Fatalf("unexpected diagnostics:\n%s", diags.Error()) } if len(exprs) != 3 { t.Fatalf("wrong result %#v; want length 3", exprs) } first, ok ...
explode_data.jsonl/79463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 11690, 9595, 852, 1155, 353, 8840, 836, 8, 341, 8122, 649, 11, 716, 1669, 14775, 9595, 10556, 3782, 10937, 15, 11, 264, 11, 830, 60, 3975, 7342, 305, 564, 44208, 37790, 8122, 84305, 11, 1853, 2032, 1669, 305, 564, 93267, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTunnelReader_Read(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), time.Second) defer cancel() r := newReader(ctx, out{data: []byte("hello")}, out{err: io.EOF}, ) b := make([]byte, 2) n, err := r.Read(b) require.NoError(t, err) require.Equal(t, len(b), n) require.Equal(t,...
explode_data.jsonl/68378
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 347 }
[ 2830, 3393, 51, 40292, 5062, 38381, 1155, 353, 8840, 836, 8, 341, 20985, 11, 9121, 1669, 2266, 26124, 7636, 5378, 19047, 1507, 882, 32435, 340, 16867, 9121, 2822, 7000, 1669, 501, 5062, 7502, 345, 197, 13967, 90, 691, 25, 3056, 3782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNetworkNat(t *testing.T) { skip.If(t, testEnv.OSType == "windows", "FIXME") skip.If(t, testEnv.IsRemoteDaemon) defer setupTest(t)() msg := "it works" startServerContainer(t, msg, 8080) endpoint := getExternalAddress(t) conn, err := net.Dial("tcp", fmt.Sprintf("%s:%d", endpoint.String(), 8080)) asser...
explode_data.jsonl/42775
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 198 }
[ 2830, 3393, 12320, 65214, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 32901, 1155, 11, 1273, 14359, 13, 4233, 499, 621, 330, 27077, 497, 330, 81019, 1138, 1903, 13389, 32901, 1155, 11, 1273, 14359, 4506, 24703, 89177, 692, 16867, 6505, 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 TestNestedTryInStashlessFunc(t *testing.T) { const SCRIPT = ` function f() { var ex1, ex2; try { throw "ex1"; } catch (er1) { try { throw "ex2"; } catch (er1) { ex2 = er1; } ex1 = er1; } return ex1 == "ex1" && ex2 == "ex2"; } f(); ` testScript1(SCRIPT, valueTrue, t) }
explode_data.jsonl/75239
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 168 }
[ 2830, 3393, 71986, 21453, 641, 623, 988, 1717, 9626, 1155, 353, 8840, 836, 8, 341, 4777, 53679, 284, 22074, 7527, 282, 368, 341, 197, 2405, 505, 16, 11, 505, 17, 280, 197, 6799, 341, 298, 9581, 330, 327, 16, 876, 197, 197, 92, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGlobalPreferenceV4(t *testing.T) { if globalV4 == nil { t.Skip("no global IPv4 addresses configured") return } testPrefer(t, loopbackV4, loopbackV4, globalV4) testPrefer(t, loopbackV4, unspecV4, globalV4) testPrefer(t, globalV4, unspecV4, globalV4) testPrefer(t, globalV4, unspecV4, loopbackV4) }
explode_data.jsonl/3798
{ "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, 11646, 31173, 53, 19, 1155, 353, 8840, 836, 8, 341, 743, 3644, 53, 19, 621, 2092, 341, 197, 3244, 57776, 445, 2152, 3644, 31560, 19, 14230, 19755, 1138, 197, 853, 198, 197, 532, 18185, 4703, 802, 1155, 11, 6337, 1419, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplicationContext_FnArgCollectBean(t *testing.T) { t.Run("base type", func(t *testing.T) { c := gs.New() c.Provide(func() int { return 3 }).Name("i1") c.Provide(func() int { return 4 }).Name("i2") c.Provide(func(i []*int) bool { nums := make([]int, 0) for _, e := range i { nums = append(nu...
explode_data.jsonl/17424
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 449 }
[ 2830, 3393, 19736, 1400, 77, 2735, 47504, 10437, 1155, 353, 8840, 836, 8, 1476, 3244, 16708, 445, 3152, 943, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 1444, 1669, 28081, 7121, 741, 197, 1444, 7763, 19448, 18552, 368, 526, 314, 470...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArea(t *testing.T) { areaTests := []struct { name string shape Shape hasArea float64 }{ {name: "Rectangle", shape: Rectangle{Width: 12, Height: 6}, hasArea: 72.0}, {name: "Circle", shape: Circle{Radius: 10}, hasArea: 314.1592653589793}, {name: "Tria...
explode_data.jsonl/37870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 359 }
[ 2830, 3393, 8726, 1155, 353, 8840, 836, 8, 1476, 262, 3082, 18200, 1669, 3056, 1235, 341, 286, 829, 262, 914, 198, 286, 6083, 256, 22526, 198, 286, 702, 8726, 2224, 21, 19, 198, 262, 335, 515, 286, 314, 606, 25, 330, 21095, 497, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDevicePluginReRegistration(t *testing.T) { socketDir, socketName, pluginSocketName, err := tmpSocketDir() require.NoError(t, err) defer os.RemoveAll(socketDir) devs := []*pluginapi.Device{ {ID: "Dev1", Health: pluginapi.Healthy}, {ID: "Dev2", Health: pluginapi.Healthy}, } devsForRegistration := []*pl...
explode_data.jsonl/82141
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 973 }
[ 2830, 3393, 6985, 11546, 693, 23365, 1155, 353, 8840, 836, 8, 341, 58279, 6184, 11, 7575, 675, 11, 9006, 10286, 675, 11, 1848, 1669, 4174, 10286, 6184, 741, 17957, 35699, 1155, 11, 1848, 340, 16867, 2643, 84427, 27050, 6184, 340, 27302,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func Test_SetNetworkConfig_Disconnected_Device(t *testing.T) { t.Skip() // Were causing intermittent errors on travis TODO Find root cause test := test.NewTest( rsm.NewProtocol(), test.WithReplicas(1), test.WithPartitions(1), test.WithDebugLogs()) testify.NoError(t, test.Start()) defer test.Stop() atomix...
explode_data.jsonl/41403
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1145 }
[ 2830, 3393, 14812, 12320, 2648, 45525, 15288, 66780, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 368, 442, 38970, 14381, 74468, 5975, 389, 10137, 285, 5343, 7379, 3704, 5240, 271, 18185, 1669, 1273, 7121, 2271, 1006, 197, 7000, 3563, 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...
1
func TestPacketID_Next(t *testing.T) { want := uint16(0) got := id.Next() if got != want { t.Errorf("PacketID.Next() = %d; want %d", got, want) } }
explode_data.jsonl/8505
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 16679, 915, 1604, 427, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 2622, 16, 21, 7, 15, 340, 3174, 354, 1669, 877, 18501, 741, 743, 2684, 961, 1366, 341, 197, 3244, 13080, 445, 16679, 915, 18501, 368, 284, 1018, 67, 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 ]
2
func TestAbsCollection_Sum(t *testing.T) { intColl := NewIntCollection([]int{1, 2, 2, 3}) sum, err := intColl.Sum().ToInt() if err != nil { t.Fatal(err) } if sum != 8 { t.Fatal("sum 错误") } }
explode_data.jsonl/66461
{ "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, 27778, 6482, 1098, 372, 1155, 353, 8840, 836, 8, 341, 2084, 15265, 1669, 1532, 1072, 6482, 10556, 396, 90, 16, 11, 220, 17, 11, 220, 17, 11, 220, 18, 3518, 31479, 11, 1848, 1669, 526, 15265, 41676, 1005, 38544, 741, 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...
3
func TestCIIBestPractices(t *testing.T) { t.Parallel() tests := []struct { err error name string uri string expected scut.TestReturn badgeLevel clients.BadgeLevel }{ { name: "CheckURIUsed", uri: "github.com/owner/repo", badgeLevel: clients.NotFound, expected...
explode_data.jsonl/53815
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1052 }
[ 2830, 3393, 11237, 3256, 477, 3533, 89190, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 78216, 1669, 3056, 1235, 341, 197, 9859, 286, 1465, 198, 197, 11609, 981, 914, 198, 197, 197, 6070, 286, 914, 198, 197, 42400, 256, 1136,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEnsureSafeSplitKey(t *testing.T) { tenSysCodec := SystemSQLCodec ten5Codec := MakeSQLCodec(roachpb.MakeTenantID(5)) encInt := encoding.EncodeUvarintAscending encInts := func(c SQLCodec, vals ...uint64) roachpb.Key { k := c.TenantPrefix() for _, v := range vals { k = encInt(k, v) } return k } e...
explode_data.jsonl/56600
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2326 }
[ 2830, 3393, 64439, 25663, 20193, 1592, 1155, 353, 8840, 836, 8, 341, 197, 1960, 32792, 36913, 1669, 739, 6688, 36913, 198, 197, 1960, 20, 36913, 1669, 7405, 6688, 36913, 7, 64500, 16650, 50133, 71252, 915, 7, 20, 1171, 197, 954, 1072, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnalogSensorDriverSetName(t *testing.T) { d := NewAnalogSensorDriver(newAioTestAdaptor(), "1") d.SetName("mybot") gobottest.Assert(t, d.Name(), "mybot") }
explode_data.jsonl/913
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 2082, 30951, 30752, 11349, 69778, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 1532, 2082, 30951, 30752, 11349, 1755, 32, 815, 2271, 2589, 32657, 1507, 330, 16, 1138, 2698, 4202, 675, 445, 2408, 6331, 1138, 3174, 674, 1716, 477...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHttpReception(t *testing.T) { tt, err := obsreporttest.SetupTelemetry() require.NoError(t, err) t.Cleanup(func() { require.NoError(t, tt.Shutdown(context.Background())) }) tests := []struct { name string tlsServerCreds *configtls.TLSServerSetting tlsClientCreds *configtls.TLSClientSetting ...
explode_data.jsonl/80333
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2082 }
[ 2830, 3393, 2905, 693, 995, 1155, 353, 8840, 836, 8, 341, 3244, 83, 11, 1848, 1669, 7448, 11736, 1944, 39820, 6639, 35958, 741, 17957, 35699, 1155, 11, 1848, 340, 3244, 727, 60639, 18552, 368, 314, 1373, 35699, 1155, 11, 17853, 10849, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewMachine(t *testing.T) { sys := NewSystem() m0 := sys.NewMachine() m1 := sys.NewMachine() m2 := sys.NewMachine() if m0.ID != 0 { t.Errorf("Expected ID of machine 0 to be 0 (got %d).", m0.ID) } if m1.ID != 1 { t.Errorf("Expected ID of machine 1 to be 1 (got %d).", m1.ID) } if m2.ID != 2 { t.Err...
explode_data.jsonl/45732
{ "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, 3564, 21605, 1155, 353, 8840, 836, 8, 341, 41709, 1669, 1532, 2320, 741, 2109, 15, 1669, 5708, 7121, 21605, 741, 2109, 16, 1669, 5708, 7121, 21605, 741, 2109, 17, 1669, 5708, 7121, 21605, 741, 743, 296, 15, 9910, 961, 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...
8
func TestMsgSwapOrder(t *testing.T) { tests := []struct { name string msg MsgSwapOrder expectPass bool }{ {"no input coin", NewMsgSwapOrder(Input{Address: sender}, Output{recipient, output}, deadline, true), false}, {"zero input coin", NewMsgSwapOrder(Input{ Address: sender, Coin: sdk....
explode_data.jsonl/70503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 888 }
[ 2830, 3393, 6611, 46179, 4431, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 21169, 286, 24205, 46179, 4431, 198, 197, 24952, 12187, 1807, 198, 197, 59403, 197, 197, 4913, 2152, 1946, 16254,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientConcurrent(t *testing.T) { t.Parallel() s := startEchoServer(t, "tcp", "127.0.0.1:") defer s.Stop() addr := "http://" + s.Addr() var wg sync.WaitGroup for i := 0; i < 10; i++ { wg.Add(1) go func() { defer wg.Done() testClientGet(t, &defaultClient, addr, 30) testClientPost(t, &default...
explode_data.jsonl/79380
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 2959, 1109, 3231, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 1669, 1191, 74994, 5475, 1155, 11, 330, 27161, 497, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 34403, 16867, 274, 30213, 2822, 53183, 1669, 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 TestEngine_Invalid_UTF8(t *testing.T) { for _, index := range tsdb.RegisteredIndexes() { t.Run(index, func(t *testing.T) { name := []byte{255, 112, 114, 111, 99} // A known invalid UTF-8 string field := []byte{255, 110, 101, 116} // A known invalid UTF-8 string p := MustParsePointString(fmt.Sprintf(...
explode_data.jsonl/28104
{ "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, 4571, 62, 7928, 55061, 23, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1922, 1669, 2088, 10591, 1999, 19983, 291, 62229, 368, 341, 197, 3244, 16708, 7195, 11, 2915, 1155, 353, 8840, 836, 8, 341, 298, 11609, 1669, 3056, 3782,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnmarshalResponse(t *testing.T) { var r ResponseBody if err := json.Unmarshal([]byte(buildResponseBodyJSON()), &r); err != nil { t.Error(err) } if diff := cmp.Diff(r, buildResponseBody()); diff != "" { t.Errorf("mismatch decoded payload diff: %s", diff) } }
explode_data.jsonl/33445
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 1806, 27121, 2582, 1155, 353, 8840, 836, 8, 341, 2405, 435, 5949, 5444, 198, 743, 1848, 1669, 2951, 38097, 10556, 3782, 43333, 29637, 5370, 11858, 609, 81, 1215, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBundle_GetNotifyConfig(t *testing.T) { os.Setenv("CMDB_ADDR", "cmdb.default.svc.cluster.local:9093") defer func() { os.Unsetenv("CMDB_ADDR") }() bdl := New(WithCMDB()) cfg, err := bdl.GetNotifyConfig("1", "2") assert.NoError(t, err) fmt.Printf("%+v\n", *cfg.Config) }
explode_data.jsonl/62401
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 8409, 13614, 28962, 2648, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 445, 9985, 3506, 16058, 497, 330, 6226, 1999, 8764, 514, 7362, 40501, 11033, 25, 24, 15, 24, 18, 1138, 16867, 2915, 368, 341, 197, 25078, 10616, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetCommit(t *testing.T) { t.Parallel() for _, tt := range getCommitsTests { tt := tt t.Run(tt.name, func(t *testing.T) { t.Parallel() a := assert.New(t) s := &svc{rest: v3client{ Repositories: tt.mockRepo, }} commit, err := s.GetCommit(context.Background(), &RemoteRef{ RepoOw...
explode_data.jsonl/10368
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 1949, 33441, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 2023, 8358, 17853, 1669, 2088, 633, 17977, 1199, 18200, 341, 197, 3244, 83, 1669, 17853, 198, 197, 3244, 16708, 47152, 2644, 11, 2915, 1155, 353, 8840, 836, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStoryServiceGetStory(t *testing.T) { testCases := map[string]struct { input func() (store.StoriesStore, string) expectedStory func() *model.Story expectedError error }{ "test get story success": { input: func() (store.StoriesStore, string) { id := "2eaa0697-2572-47f9-bcff-0bdf0c7c6432"...
explode_data.jsonl/44020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 759 }
[ 2830, 3393, 17938, 1860, 1949, 17938, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 22427, 260, 2915, 368, 320, 4314, 7758, 2433, 6093, 11, 914, 340, 197, 42400, 17938, 2915, 368, 353, 2528, 7758, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateTokenGroups(t *testing.T) { var tests = []struct { u []string g []string f *field.Path expected bool }{ {[]string{"some usage"}, []string{"some group"}, nil, false}, // groups doesn't makes sense if usage authentication {[]string{"authentication"...
explode_data.jsonl/39220
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 325 }
[ 2830, 3393, 17926, 3323, 22173, 1155, 353, 8840, 836, 8, 341, 2405, 7032, 284, 3056, 1235, 341, 197, 10676, 286, 3056, 917, 198, 197, 3174, 286, 3056, 917, 198, 197, 1166, 286, 353, 2566, 17474, 198, 197, 42400, 1807, 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...
3
func TestDescribers(t *testing.T) { first := &api.Event{} second := &api.Pod{} var third *api.Pod testErr := fmt.Errorf("test") d := Describers{} d.Add( func(e *api.Event, p *api.Pod) (string, error) { if e != first { t.Errorf("first argument not equal: %#v", e) } if p != second { t.Errorf("sec...
explode_data.jsonl/34935
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 537 }
[ 2830, 3393, 62664, 1902, 1155, 353, 8840, 836, 8, 341, 42190, 1669, 609, 2068, 6904, 16094, 197, 5569, 1669, 609, 2068, 88823, 16094, 2405, 4843, 353, 2068, 88823, 198, 18185, 7747, 1669, 8879, 13080, 445, 1944, 1138, 2698, 1669, 3874, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestErrorRate(t *testing.T) { cb := NewBreaker() if er := cb.ErrorRate(); er != 0.0 { t.Fatalf("expected breaker with no samples to have 0 error rate, got %f", er) } }
explode_data.jsonl/60795
{ "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, 1454, 11564, 1155, 353, 8840, 836, 8, 341, 63810, 1669, 1532, 22524, 261, 741, 743, 2714, 1669, 9858, 6141, 11564, 2129, 2714, 961, 220, 15, 13, 15, 341, 197, 3244, 30762, 445, 7325, 66767, 448, 902, 10469, 311, 614, 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 ]
2
func TestFindAllIssuesErr(t *testing.T) { i := []domain.Issue{} cucm, iucm, lucm, pucm, m := prepareMocksAndRUC() iucm.On("FindAll").Return(i, errors.New("test error")) c, _ := prepareHTTP(echo.GET, "/api/issues", nil) err := m.FindAllIssues(c) assert.NotNil(t, err) assert.Equal(t, "test error", err.Error()...
explode_data.jsonl/60174
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 9885, 2403, 85828, 7747, 1155, 353, 8840, 836, 8, 341, 8230, 1669, 3056, 12204, 2447, 83890, 31483, 1444, 1754, 76, 11, 600, 1754, 76, 11, 25927, 76, 11, 281, 1754, 76, 11, 296, 1669, 10549, 72577, 3036, 49, 5459, 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 TestHOTP_At(t *testing.T) { hotp := getDefaultHOTP(t) otp, err := hotp.At(12345) assert.NoError(t, err, "OTP generation failed") assert.Equal(t, "194001", otp) }
explode_data.jsonl/41254
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 79 }
[ 2830, 3393, 39, 90146, 55581, 1155, 353, 8840, 836, 8, 341, 9598, 48708, 1669, 69106, 39, 90146, 1155, 340, 197, 48708, 11, 1848, 1669, 4017, 79, 15543, 7, 16, 17, 18, 19, 20, 340, 6948, 35699, 1155, 11, 1848, 11, 330, 90146, 9471, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChangeEventListenerDispatch(t *testing.T) { subID := fftypes.NewUUID() sub := &subscription{ dispatcherElection: make(chan bool, 1), definition: &fftypes.Subscription{ SubscriptionRef: fftypes.SubscriptionRef{ ID: subID, Namespace: "ns1", Name: "sub1", }, }, } ed, cancel := newTestEventDis...
explode_data.jsonl/15673
{ "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, 4072, 7765, 11283, 1155, 353, 8840, 836, 8, 341, 28624, 915, 1669, 43700, 1804, 7121, 24754, 741, 28624, 1669, 609, 34404, 515, 197, 60072, 261, 36, 1170, 25, 1281, 35190, 1807, 11, 220, 16, 1326, 197, 7452, 4054, 25, 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 TestDeleteNetworkWithActiveEndpoints(t *testing.T) { if !testutils.IsRunningInContainer() { defer testutils.SetupTestOSContext(t)() } netOption := options.Generic{ "BridgeName": "testnetwork", } option := options.Generic{ netlabel.GenericData: netOption, } network, err := createTestNetwork(bridgeNet...
explode_data.jsonl/6356
{ "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, 6435, 12320, 2354, 5728, 80786, 1155, 353, 8840, 836, 8, 341, 743, 753, 1944, 6031, 4506, 18990, 641, 4502, 368, 341, 197, 16867, 1273, 6031, 39820, 2271, 3126, 1972, 1155, 8, 741, 197, 630, 59486, 5341, 1669, 2606, 4341, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTop003(t *testing.T) { stats := "ert hgf hgf asf asf asf asd asd asd asd qwe qwe qwe qwe qwe" want := []string{"qwe", "asd", "asf", "hgf", "ert"} got := Top10(stats) if !equalSlice(got, want) { t.Errorf("Top10(stats) == %q, want %q", got, want) } }
explode_data.jsonl/59204
{ "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, 5366, 15, 15, 18, 1155, 353, 8840, 836, 8, 341, 79659, 1669, 330, 529, 305, 45124, 305, 45124, 438, 69, 438, 69, 438, 69, 438, 67, 438, 67, 438, 67, 438, 67, 2804, 896, 2804, 896, 2804, 896, 2804, 896, 2804, 896, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseIntoString(t *testing.T) { got := map[string]interface{}{ "outer": map[string]interface{}{ "inner1": "overwrite", "inner2": "value2", }, } input := "outer.inner1=1,outer.inner3=3" expect := map[string]interface{}{ "outer": map[string]interface{}{ "inner1": "1", "inner2": "value2", ...
explode_data.jsonl/2414
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 14463, 26591, 703, 1155, 353, 8840, 836, 8, 341, 3174, 354, 1669, 2415, 14032, 31344, 67066, 197, 197, 1, 2676, 788, 2415, 14032, 31344, 67066, 298, 197, 1, 4382, 16, 788, 330, 64915, 756, 298, 197, 1, 4382, 17, 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...
5
func TestSubscribeWithCapacity(t *testing.T) { s := pubsub.NewServer() s.SetLogger(log.TestingLogger()) s.Start() defer s.Stop() ctx := context.Background() assert.Panics(t, func() { s.Subscribe(ctx, clientID, query.Empty{}, -1) }) assert.Panics(t, func() { s.Subscribe(ctx, clientID, query.Empty{}, 0) }) ...
explode_data.jsonl/22053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 207 }
[ 2830, 3393, 28573, 2354, 29392, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6675, 1966, 7121, 5475, 741, 1903, 4202, 7395, 12531, 8787, 287, 7395, 2398, 1903, 12101, 741, 16867, 274, 30213, 2822, 20985, 1669, 2266, 19047, 741, 6948, 1069, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartInformersEventualSuccess(t *testing.T) { errCh := make(chan error) defer close(errCh) fi := &fixedInformer{sunk: false} stopCh := make(chan struct{}) defer close(stopCh) go func() { errCh <- StartInformers(stopCh, fi) }() select { case <-time.After(50 * time.Millisecond): // Wait a brief p...
explode_data.jsonl/45296
{ "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, 3479, 37891, 388, 1556, 928, 7188, 1155, 353, 8840, 836, 8, 341, 9859, 1143, 1669, 1281, 35190, 1465, 340, 16867, 3265, 3964, 1143, 692, 30839, 1669, 609, 22021, 641, 34527, 84386, 3122, 25, 895, 630, 62644, 1143, 1669, 1281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestShardTimeRangesSubtract(t *testing.T) { start := time.Now().Truncate(testBlockSize) str := shardTimeRanges{ 0: xtime.NewRanges(xtime.Range{ Start: start, End: start.Add(2 * testBlockSize), }), 1: xtime.NewRanges(xtime.Range{ Start: start, End: start.Add(2 * testBlockSize), }), } st...
explode_data.jsonl/4677
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 391 }
[ 2830, 3393, 2016, 567, 1462, 74902, 3136, 2144, 1155, 353, 8840, 836, 8, 341, 21375, 1669, 882, 13244, 1005, 1282, 26900, 8623, 89932, 692, 11355, 1669, 52069, 1462, 74902, 515, 197, 197, 15, 25, 856, 1678, 7121, 74902, 2075, 1678, 2478...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQry(t *testing.T) { db, err := dapgx.Open(testDsn, nil) if err != nil { t.Fatal(err) } defer db.Close() reg := &lit.Reg{} b, err := getBackend(reg, db) if err != nil { t.Fatal(err) } db.QueryRow(dapgx.BG, "select true").Scan(new(bool)) tests := []struct { Raw string Want string }{ {`(#pro...
explode_data.jsonl/70628
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1541 }
[ 2830, 3393, 48, 884, 1155, 353, 8840, 836, 8, 341, 20939, 11, 1848, 1669, 81521, 59957, 12953, 8623, 35, 9613, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2927, 10421, 741, 37013, 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...
7
func TestLogSpan(t *testing.T) { t.Parallel() receiver1 := make([]float64, 6) truth := []float64{0.001, 0.01, 0.1, 1, 10, 100} receiver2 := LogSpan(receiver1, 0.001, 100) tst := make([]float64, 6) for i := range truth { tst[i] = receiver1[i] / truth[i] } comp := make([]float64, 6) for i := range comp { com...
explode_data.jsonl/1226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 324 }
[ 2830, 3393, 2201, 12485, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 17200, 12862, 16, 1669, 1281, 10556, 3649, 21, 19, 11, 220, 21, 340, 25583, 940, 1669, 3056, 3649, 21, 19, 90, 15, 13, 15, 15, 16, 11, 220, 15, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEmpty(t *testing.T) { q := New() if q.Len() != 0 { t.Fatal("Initial size not 0") } if item, ok := q.Front(); item != nil || ok { t.Fatal("Invalid Front return on empty queue") } if item, ok := q.Pop(); item != nil || ok { t.Fatal("Invalid Pop return on empty queue") } if q.Len() != 0 { t.Fatal(...
explode_data.jsonl/7364
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 3522, 1155, 353, 8840, 836, 8, 341, 18534, 1669, 1532, 741, 743, 2804, 65819, 368, 961, 220, 15, 341, 197, 3244, 26133, 445, 6341, 1379, 537, 220, 15, 1138, 197, 532, 743, 1509, 11, 5394, 1669, 2804, 991, 9411, 2129, 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...
7
func Test_Static_ServerRoot(t *testing.T) { // SetServerRoot with absolute path gtest.C(t, func(t *gtest.T) { p, _ := ports.PopRand() s := g.Server(p) path := fmt.Sprintf(`%s/ghttp/static/test/%d`, gfile.TempDir(), p) defer gfile.Remove(path) gfile.PutContents(path+"/index.htm", "index") s.SetServerRoot(p...
explode_data.jsonl/40518
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 503 }
[ 2830, 3393, 27049, 62320, 8439, 1155, 353, 8840, 836, 8, 341, 197, 322, 2573, 5475, 8439, 448, 10740, 1815, 198, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 3223, 11, 716, 1669, 20325, 47424, 56124, 741, 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 TestAccAwsDmsEndpoint_Elasticsearch(t *testing.T) { resourceName := "aws_dms_endpoint.test" rName := acctest.RandomWithPrefix("tf-acc-test") resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: dmsEndpointDestroy, Steps: ...
explode_data.jsonl/37167
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 442 }
[ 2830, 3393, 14603, 47359, 35, 1011, 27380, 2089, 51179, 1836, 1155, 353, 8840, 836, 8, 341, 50346, 675, 1669, 330, 8635, 814, 1011, 36699, 5958, 698, 7000, 675, 1669, 1613, 67880, 26709, 2354, 14335, 445, 8935, 12, 4475, 16839, 5130, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInitConfigFromRawWithPem(t *testing.T) { // get a config byte for testing configPath := filepath.Join(getConfigPath(), configPemTestFile) cBytes, err := loadConfigBytesFromFile(t, configPath) if err != nil { t.Fatalf("Failed to load sample bytes from File. Error: %s", err) } // test init config from b...
explode_data.jsonl/42242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1259 }
[ 2830, 3393, 3803, 2648, 3830, 20015, 2354, 47, 336, 1155, 353, 8840, 836, 8, 341, 197, 322, 633, 264, 2193, 4922, 369, 7497, 198, 25873, 1820, 1669, 26054, 22363, 5433, 2648, 1820, 1507, 2193, 47, 336, 2271, 1703, 340, 1444, 7078, 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...
6
func TestSwapMemoryStat_String(t *testing.T) { v := SwapMemoryStat{ Total: 10, Used: 30, Free: 40, UsedPercent: 30.1, Sin: 1, Sout: 2, PgIn: 3, PgOut: 4, PgFault: 5, PgMajFault: 6, } e := `{"total":10,"used":30,"free":40,"usedPercent":30.1,"sin...
explode_data.jsonl/33512
{ "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, 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 TestDir(t *testing.T) { t.Parallel() testDir(t, ".", "") testDir(t, ".", ".") testDir(t, "/", "/") testDir(t, ".", "./") testDir(t, ".", "./.") testDir(t, ".", "foo") testDir(t, ".", "./foo") testDir(t, "foo", "./foo/bar") testDir(t, "../foo", "../foo/bar") testDir(t, "../foo", "../foo/bar/../..") test...
explode_data.jsonl/11899
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 182 }
[ 2830, 3393, 6184, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 18185, 6184, 1155, 11, 68514, 14676, 18185, 6184, 1155, 11, 68514, 5933, 1138, 18185, 6184, 1155, 11, 64657, 3521, 1138, 18185, 6184, 1155, 11, 68514, 5924, 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...
1
func TestAllResultTypes(t *testing.T) { stdin := &bytes.Buffer{} writer := gio.NewDelimitedWriter(stdin) writer.WriteMsg(newTestStepFinished(messages.TestResult_FAILED)) writer.WriteMsg(newTestStepFinished(messages.TestResult_SKIPPED)) writer.WriteMsg(newTestStepFinished(messages.TestResult_UNDEFINED)) writer.Wr...
explode_data.jsonl/66563
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 2403, 2077, 4173, 1155, 353, 8840, 836, 8, 341, 6736, 258, 1669, 609, 9651, 22622, 16094, 38959, 1669, 53043, 7121, 16532, 31511, 6492, 69567, 692, 38959, 4073, 6611, 1755, 2271, 8304, 24890, 55705, 8787, 2077, 22775, 1171, 38...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateVeryLargeObject(t *testing.T) { defer featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, genericfeatures.ServerSideApply, true)() _, client, closeFn := setup(t) defer closeFn() cfg := &v1.ConfigMap{ ObjectMeta: metav1.ObjectMeta{ Name: "large-create-test-cm", ...
explode_data.jsonl/53467
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 525 }
[ 2830, 3393, 4021, 25756, 34253, 1190, 1155, 353, 8840, 836, 8, 341, 16867, 4565, 70, 266, 57824, 287, 4202, 13859, 42318, 16014, 2271, 1155, 11, 4094, 12753, 13275, 13859, 42318, 11, 13954, 20304, 22997, 16384, 28497, 11, 830, 8, 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...
4