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 TestFIFO_HasSynced(t *testing.T) { tests := []struct { actions []func(f *FIFO) expectedSynced bool }{ { actions: []func(f *FIFO){}, expectedSynced: false, }, { actions: []func(f *FIFO){ func(f *FIFO) { f.Add(mkFifoObj("a", 1)) // nolint: errcheck }, }, expected...
explode_data.jsonl/69925
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 742 }
[ 2830, 3393, 37, 25997, 2039, 300, 12154, 291, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 197, 4020, 286, 3056, 2830, 955, 353, 37, 25997, 340, 197, 42400, 12154, 291, 1807, 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...
1
func TestClusterControllerSmoke(t *testing.T) { if testing.Short() { t.Skip("skipping smoke test in short mode") } ctx := context.Background() ts := testutil.TokenSource(ctx, DefaultAuthScopes()...) if ts == nil { t.Skip("Integration tests skipped. See CONTRIBUTING.md for details") } projectId := testutil.P...
explode_data.jsonl/47280
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 266 }
[ 2830, 3393, 28678, 2051, 76880, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 341, 197, 3244, 57776, 445, 4886, 5654, 16205, 1273, 304, 2805, 3856, 1138, 197, 532, 20985, 1669, 2266, 19047, 741, 57441, 1669, 1273, 1314, 32277, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSchemaGC(t *testing.T) { ctx := cdcContext.NewBackendContext4Test(true) p, tester := initProcessor4Test(ctx, t) p.changefeed.PatchTaskStatus(p.captureInfo.ID, func(status *model.TaskStatus) (*model.TaskStatus, bool, error) { status.Tables[1] = &model.TableReplicaInfo{StartTs: 30} status.Tables[2] = &mod...
explode_data.jsonl/81944
{ "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, 8632, 22863, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 272, 7628, 1972, 7121, 29699, 1972, 19, 2271, 3715, 340, 3223, 11, 37111, 1669, 2930, 22946, 19, 2271, 7502, 11, 259, 340, 3223, 5329, 524, 823, 12051, 1069, 754, 626...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplaceModVersion(t *testing.T) { for _, s := range []struct { name string input []byte expected []byte err bool }{ { name: "simple", input: []byte(`module test go 1.17 require ( foo.bar/baz v1.2.3 ) `), expected: []byte(`module test go 1.17 require ( foo.bar/baz v1.2.4 ) `...
explode_data.jsonl/21232
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 540 }
[ 2830, 3393, 23107, 4459, 5637, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 274, 1669, 2088, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 22427, 262, 3056, 3782, 198, 197, 42400, 3056, 3782, 198, 197, 9859, 414, 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...
2
func TestReconcileSource(t *testing.T) { ctor := reconcilerCtor(adapterCfg) src := newEventSource() ab := adapterBuilder(adapterCfg) TestReconcileAdapter(t, ctor, src, ab) }
explode_data.jsonl/272
{ "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, 693, 40446, 457, 3608, 1155, 353, 8840, 836, 8, 341, 197, 4904, 1669, 31445, 5769, 34, 10980, 42534, 42467, 340, 41144, 1669, 501, 1556, 3608, 741, 197, 370, 1669, 12956, 3297, 42534, 42467, 692, 73866, 693, 40446, 457, 5940...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuffer_WrapWithBatch(t *testing.T) { m := Metric() b := setup(NewBuffer("test", 5)) b.Add(m, m, m) b.Batch(3) b.Add(m, m, m, m, m, m) require.Equal(t, int64(1), b.MetricsDropped.Get()) }
explode_data.jsonl/17690
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 101 }
[ 2830, 3393, 4095, 2763, 4611, 2354, 21074, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 52458, 741, 2233, 1669, 6505, 35063, 4095, 445, 1944, 497, 220, 20, 4390, 2233, 1904, 1255, 11, 296, 11, 296, 340, 2233, 45791, 7, 18, 340, 2233, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubranger(t *testing.T) { for _, example := range []struct { data string offset1, length1 int64 offset2, length2 int64 substr string }{ {"abcdefghijkl", 0, 4, 0, 4, "abcd"}, {"abcdefghijkl", 0, 4, 0, 3, "abc"}, {"abcdefghijkl", 0, 4, 1, 3, "bcd"}, {"abcdefghijkl", 1, 4, ...
explode_data.jsonl/13735
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 552 }
[ 2830, 3393, 3136, 81, 4003, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 3110, 1669, 2088, 3056, 1235, 341, 197, 8924, 1797, 914, 198, 197, 40668, 16, 11, 3084, 16, 526, 21, 19, 198, 197, 40668, 17, 11, 3084, 17, 526, 21, 19, 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...
7
func TestAccessSetKey(t *testing.T) { a := New(t) eui, _ := types.ParseAppEUI("8000000000000001") key := "key" storage := createStorage() defer storage.Close() defer storage.Reset() err := storage.SetAccessKey(eui, key) a.So(err, ShouldBeNil) fetchedKey, err := storage.GetAccessKey(eui) a.So(err, ShouldBe...
explode_data.jsonl/396
{ "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, 6054, 1649, 1592, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1532, 1155, 692, 7727, 1963, 11, 716, 1669, 4494, 8937, 2164, 36, 2275, 445, 23, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 1138, 23634, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSocket(t *testing.T) { s := testSocket() assert.Equal(t, uint64(0xee1186910755e9b1), s.Hash()) assert.Equal(t, "fIj66YRoGyoe8dML", s.entityID("fa8a1edd06864f47ba4cad5d0f5ca134")) assert.Equal(t, "1:IXrg9Y06W7zrkqBlE30jpC/mzjo=", s.communityID()) }
explode_data.jsonl/37027
{ "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, 10286, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1273, 10286, 2822, 6948, 12808, 1155, 11, 2622, 21, 19, 7, 15, 50138, 16, 16, 23, 21, 24, 16, 15, 22, 20, 20, 68, 24, 65, 16, 701, 274, 15103, 2398, 6948, 12808, 1155,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetHostPortConflicts(t *testing.T) { pods := []*v1.Pod{ {Spec: v1.PodSpec{Containers: []v1.Container{{Ports: []v1.ContainerPort{{HostPort: 80}}}}}}, {Spec: v1.PodSpec{Containers: []v1.Container{{Ports: []v1.ContainerPort{{HostPort: 81}}}}}}, {Spec: v1.PodSpec{Containers: []v1.Container{{Ports: []v1.Cont...
explode_data.jsonl/68350
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 317 }
[ 2830, 3393, 1949, 9296, 7084, 15578, 56445, 1155, 353, 8840, 836, 8, 341, 3223, 29697, 1669, 29838, 85, 16, 88823, 515, 197, 197, 90, 8327, 25, 348, 16, 88823, 8327, 90, 74632, 25, 3056, 85, 16, 33672, 2979, 68273, 25, 3056, 85, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestProcessNetworkPolicy(t *testing.T) { protocolTCP := networkpolicy.ProtocolTCP intstr80, intstr81 := intstr.FromInt(80), intstr.FromInt(81) int80, int81 := int32(80), int32(81) selectorA := metav1.LabelSelector{MatchLabels: map[string]string{"foo1": "bar1"}} selectorB := metav1.LabelSelector{MatchLabels: m...
explode_data.jsonl/82441
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3424 }
[ 2830, 3393, 7423, 12320, 13825, 1155, 353, 8840, 836, 8, 341, 197, 17014, 49896, 1669, 3922, 34790, 54096, 49896, 198, 2084, 495, 23, 15, 11, 526, 495, 23, 16, 1669, 526, 495, 11439, 1072, 7, 23, 15, 701, 526, 495, 11439, 1072, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestTopDownCompositeReferences(t *testing.T) { tests := []struct { note string rule string expected interface{} }{ {"array", "p = fixture.r[[1, 2]]", "[1, 2]"}, {"object", `p = fixture.r[{"foo": "bar"}]`, `{"foo": "bar"}`}, {"set", `p = fixture.r[{1, 2}]`, "[1, 2]"}, {"unify array", `p = [...
explode_data.jsonl/25203
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 761 }
[ 2830, 3393, 5366, 4454, 41685, 31712, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 9038, 1272, 257, 914, 198, 197, 7000, 1111, 257, 914, 198, 197, 42400, 3749, 16094, 197, 59403, 197, 197, 4913, 1653, 497, 330, 79,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertFromYAML(t *testing.T) { var object map[string]int yaml := "a: 2" err := ConvertFromYAML(yaml, &object) if err != nil { t.Errorf("ConvertFromYAML should have been able to convert yaml:\n%s", err) } yaml = "a: 2:a" err = ConvertFromYAML(yaml, &object) if err == nil { t.Errorf("C...
explode_data.jsonl/52975
{ "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, 12012, 3830, 56, 31102, 1155, 353, 8840, 836, 8, 341, 220, 762, 1633, 2415, 14032, 63025, 271, 220, 32246, 1669, 330, 64, 25, 220, 17, 698, 220, 1848, 1669, 7169, 3830, 56, 31102, 7021, 9467, 11, 609, 1700, 340, 220, 421...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSave(t *testing.T) { t.Run("saves invitation", func(t *testing.T) { expected := newOOBInvite("did:example:public") provider := testProvider() provider.StoreProvider = &mockstorage.MockStoreProvider{ Custom: &mockStore{ put: func(k string, v []byte, tags ...storage.Tag) error { result := &OOB...
explode_data.jsonl/30543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 427 }
[ 2830, 3393, 8784, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 82, 4693, 28688, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 42400, 1669, 501, 19499, 33, 93540, 445, 22920, 25, 8687, 25, 888, 1138, 197, 197, 19979, 1669, 1273, 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 TestPullerIntegratedWithDataRetreiver(t *testing.T) { gn := &gossipNetwork{} ns1, ns2 := "testChaincodeName1", "testChaincodeName2" col1, col2 := "testCollectionName1", "testCollectionName2" ap := &mocks.CollectionAccessPolicy{} Setup(ap, 1, 2, func(data protoutil.SignedData) bool { return bytes.Equal(dat...
explode_data.jsonl/53270
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1345 }
[ 2830, 3393, 36068, 261, 82437, 80356, 12020, 265, 1524, 1155, 353, 8840, 836, 8, 341, 3174, 77, 1669, 609, 70, 41473, 12320, 31483, 84041, 16, 11, 12268, 17, 1669, 330, 1944, 18837, 1851, 675, 16, 497, 330, 1944, 18837, 1851, 675, 17,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAmendForUniqueIndex(t *testing.T) { t.Skip("Skip this unstable test(#25986) and bring it back before 2021-07-29.") store, clean := createMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk2 := testkit.NewTestKit(t, store) tk.MustExec("use test") tk2.MustExec("use test") tk.MustExe...
explode_data.jsonl/12500
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1669 }
[ 2830, 3393, 6091, 408, 2461, 22811, 1552, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 35134, 419, 44211, 1273, 32735, 17, 20, 24, 23, 21, 8, 323, 4446, 432, 1182, 1573, 220, 17, 15, 17, 16, 12, 15, 22, 12, 17, 24, 13053, 572...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetTestHookCollectGarbage(t *testing.T) { // Set the current function after the test finishes. defer func(h func(collectedCount uint64)) { testHookCollectGarbage = h }(testHookCollectGarbage) // expected value for the unchanged function original := 1 // expected value for the changed function changed :=...
explode_data.jsonl/11634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 375 }
[ 2830, 3393, 1649, 2271, 31679, 47504, 43930, 20652, 1155, 353, 8840, 836, 8, 341, 197, 322, 2573, 279, 1482, 729, 1283, 279, 1273, 33036, 624, 16867, 2915, 3203, 2915, 19611, 2209, 2507, 2622, 21, 19, 593, 314, 1273, 31679, 47504, 43930...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateHostsFromTask(t *testing.T) { assert := assert.New(t) assert.NoError(db.ClearCollections(task.Collection, model.VersionCollection, distro.Collection, model.ProjectRefCollection, model.ProjectVarsCollection, host.Collection)) t1 := task.Task{ Id: "t1", DisplayName: "t1", Version: ...
explode_data.jsonl/63019
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1423 }
[ 2830, 3393, 4021, 9296, 82, 3830, 6262, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 6948, 35699, 9791, 13524, 52730, 17483, 28629, 11, 1614, 35842, 6482, 11, 1582, 299, 28629, 11, 1614, 30944, 3945, 6482, 11, 1614, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientAllowsGetMethodPayload(t *testing.T) { ts := createGetServer(t) defer ts.Close() c := dc() c.SetAllowGetMethodPayload(true) c.SetPreRequestHook(func(*Client, *http.Request) error { return nil }) // for coverage payload := "test-payload" resp, err := c.R().SetBody(payload).Get(ts.URL + "/get-meth...
explode_data.jsonl/39353
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 166 }
[ 2830, 3393, 2959, 79595, 85073, 29683, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 1855, 1949, 5475, 1155, 340, 16867, 10591, 10421, 2822, 1444, 1669, 19402, 741, 1444, 4202, 18605, 85073, 29683, 3715, 340, 1444, 4202, 4703, 1900, 31679, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOpenIdImplicitFlowShouldRejectMissingToken(t *testing.T) { clockTime := time.Date(2021, 12, 1, 0, 0, 0, 0, time.UTC) util.Clock = util.ClockMock{Time: clockTime} cfg := config.NewConfig() cfg.LoginToken.SigningKey = "kiali67890123456" cfg.LoginToken.ExpirationSeconds = 1 config.Set(cfg) // Returning s...
explode_data.jsonl/72690
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 618 }
[ 2830, 3393, 5002, 764, 59558, 18878, 14996, 78413, 25080, 3323, 1155, 353, 8840, 836, 8, 341, 84165, 1462, 1669, 882, 8518, 7, 17, 15, 17, 16, 11, 220, 16, 17, 11, 220, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_ruleDbgMsg(t *testing.T) { t.Parallel() testCases := map[string]struct { add bool src *net.IPNet dst *net.IPNet table int priority int dbgMsg string }{ "default values": { dbgMsg: "ip rule del pref 0", }, "add rule": { add: true, src: makeIPNet(t, 1...
explode_data.jsonl/25733
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 482 }
[ 2830, 3393, 21124, 7994, 70, 6611, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 12718, 414, 1807, 198, 197, 41144, 414, 353, 4711, 46917, 6954, 198, 197, 52051, 414, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOrderGetMetafield(t *testing.T) { setup() defer teardown() httpmock.RegisterResponder("GET", fmt.Sprintf("https://fooshop.myshopify.com/%s/orders/1/metafields/2.json", client.pathPrefix), httpmock.NewStringResponder(200, `{"metafield": {"id":2}}`)) metafield, err := client.Order.GetMetafield(1, 2, nil)...
explode_data.jsonl/17994
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 4431, 1949, 12175, 2566, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 49304, 2822, 28080, 16712, 19983, 30884, 445, 3806, 497, 8879, 17305, 445, 2428, 1110, 824, 9267, 453, 12618, 8675, 1437, 905, 12627, 82, 82818, 14, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestChainedTokenCredential_MultipleCredentialsGetTokenAuthenticationFailed(t *testing.T) { credential1 := &TestCredential{responses: []testCredentialResponse{ {err: newCredentialUnavailableError("unavailableCredential1", "Unavailable expected error")}, }} credential2 := &TestCredential{responses: []testCreden...
explode_data.jsonl/72773
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 494 }
[ 2830, 3393, 1143, 2627, 3323, 48265, 1245, 12229, 27025, 1949, 3323, 19297, 9408, 1155, 353, 8840, 836, 8, 341, 197, 66799, 16, 1669, 609, 2271, 48265, 90, 71000, 25, 3056, 1944, 48265, 2582, 515, 197, 197, 90, 615, 25, 501, 48265, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFromFileConstructorNonexistentFile(t *testing.T) { _, err := MakeConfMapFromFile("/does/not/exist") expectedErr := "open /does/not/exist: no such file or directory" if err.Error() != expectedErr { t.Fatalf("expected err to be %#v, got %#v", expectedErr, err.Error()) } }
explode_data.jsonl/9166
{ "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, 43633, 13288, 8121, 64085, 1703, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 7405, 15578, 2227, 43633, 4283, 27057, 62441, 25815, 380, 1138, 42400, 7747, 1669, 330, 2508, 608, 27057, 62441, 25815, 380, 25, 902, 1741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFindFirstIPByFamily(t *testing.T) { firstIPv4 := "10.0.0.1" firstIPv6 := "2001:1234:5678:9abc::9" ips := []string{ firstIPv4, "11.0.0.1", firstIPv6, "fda4:6dee:effc:62a0:0:0:0:0", } outIPV4, err := findFirstIPByFamily(ips, false) errorNotNil(t, err) assert.Equal(t, outIPV4, firstIPv4) outIPv6,...
explode_data.jsonl/70935
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 217 }
[ 2830, 3393, 9885, 5338, 3298, 1359, 15192, 1155, 353, 8840, 836, 8, 341, 42190, 58056, 19, 1669, 330, 16, 15, 13, 15, 13, 15, 13, 16, 698, 42190, 58056, 21, 1669, 330, 17, 15, 15, 16, 25, 16, 17, 18, 19, 25, 20, 21, 22, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCommunityHasValue(t *testing.T) { com := bgp.NewPathAttributeCommunities([]uint32{1, 2, 3}) assert.Equal(t, CommunityHasValue(com.Value, 1), true) assert.Equal(t, CommunityHasValue(com.Value, 4), false) }
explode_data.jsonl/57496
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 33768, 10281, 1130, 1155, 353, 8840, 836, 8, 341, 32810, 1669, 8951, 79, 7121, 1820, 3907, 17977, 6037, 10556, 2496, 18, 17, 90, 16, 11, 220, 17, 11, 220, 18, 3518, 6948, 12808, 1155, 11, 12062, 10281, 1130, 14094, 6167, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSpxError(t *testing.T) { gopSpxErrorTestEx(t, `./Game.tgmx:4:2: cannot assign value to field in class file`, ` var ( Kai Kai userScore int = 100 ) `, ` println "hi" `, "Game.tgmx", "Kai.tspx") gopSpxErrorTestEx(t, `./Kai.tspx:3:2: missing field type in class file`, ` var ( Kai Kai userScore int ) `, ` v...
explode_data.jsonl/78662
{ "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, 50, 1767, 1454, 1155, 353, 8840, 836, 8, 341, 3174, 453, 50, 1767, 1454, 2271, 840, 1155, 11, 1565, 1725, 4868, 734, 70, 18085, 25, 19, 25, 17, 25, 4157, 9793, 897, 311, 2070, 304, 536, 1034, 7808, 22074, 947, 2399, 39...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFilteredGenMetaExclusion(t *testing.T) { var testConfig = common.NewConfig() filteredGen := &GenDefaultMeta{ labelsExclude: []string{"x"}, } podIndexer, err := NewPodNameIndexer(*testConfig, filteredGen) assert.Nil(t, err) podName := "testpod" ns := "testns" pod := Pod{ Metadata: ObjectMeta{ N...
explode_data.jsonl/80958
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 413 }
[ 2830, 3393, 67310, 9967, 12175, 840, 8957, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 2648, 284, 4185, 7121, 2648, 2822, 50108, 291, 9967, 1669, 609, 9967, 3675, 12175, 515, 197, 95143, 95239, 25, 3056, 917, 4913, 87, 7115, 197, 532, 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 TestCgoStacktrace2(t *testing.T) { skipOn(t, "upstream issue", "windows") skipOn(t, "broken", "386") skipOn(t, "broken", "arm64") protest.MustHaveCgo(t) // If a panic happens during cgo execution the stacktrace should show the C // function that caused the problem. withTestProcess("cgosigsegvstack", t, func...
explode_data.jsonl/56335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 250 }
[ 2830, 3393, 34, 3346, 4336, 15067, 17, 1155, 353, 8840, 836, 8, 341, 1903, 13389, 1925, 1155, 11, 330, 454, 4027, 4265, 497, 330, 27077, 1138, 1903, 13389, 1925, 1155, 11, 330, 48909, 497, 330, 18, 23, 21, 1138, 1903, 13389, 1925, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrivilegedBindMount(t *testing.T) { testPid := uint32(1234) c := newTestCRIService() testSandboxID := "sandbox-id" containerConfig, sandboxConfig, imageConfig, _ := getCreateContainerTestData() ociRuntime := config.Runtime{} for desc, test := range map[string]struct { privileged bool expecte...
explode_data.jsonl/6411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 560 }
[ 2830, 3393, 32124, 68431, 9950, 16284, 1155, 353, 8840, 836, 8, 341, 18185, 32339, 1669, 2622, 18, 17, 7, 16, 17, 18, 19, 340, 1444, 1669, 501, 2271, 8973, 95125, 741, 18185, 50, 31536, 915, 1669, 330, 76756, 12897, 698, 53290, 2648, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResetWithGit(t *testing.T) { th := git.InitTestRepositoryFromLocal(t) defer th.CleanUp(t) f, err := testFile(th.RepoPath, "file") require.NoError(t, err) err = AddAll(th.Repository, testAddopt1) require.NoError(t, err) var tests = []struct { inp1 *git.Repository inp2 *git.File inp3 *ResetOption...
explode_data.jsonl/16672
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 14828, 2354, 46562, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 16345, 26849, 2271, 4624, 3830, 7319, 1155, 340, 16867, 270, 727, 2675, 2324, 1155, 692, 1166, 11, 1848, 1669, 1273, 1703, 24365, 2817, 5368, 1820, 11, 330, 1192...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContains(t *testing.T) { type args struct { a []string x string } tests := []struct { name string args args want bool }{ { name: "Contains", args: args{ a: []string{"a", "b"}, x: "a", }, want: true, }, { name: "Not Contains", args: args{ a: []string{"a", "b"}, ...
explode_data.jsonl/27590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 290 }
[ 2830, 3393, 23805, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 11323, 3056, 917, 198, 197, 10225, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 1807, 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...
2
func TestGetTTLStrategy(t *testing.T) { var ten int32 = 10 wf := test.LoadWorkflowFromBytes([]byte(succeededWf)) wf.Spec.TTLStrategy = &wfv1.TTLStrategy{ SecondsAfterCompletion: &ten, } ttl := getTTLStrategy(wf) assert.NotNil(t, ttl) assert.Equal(t, ten, *ttl.SecondsAfterCompletion) wf1 := test.LoadWorkflow...
explode_data.jsonl/48748
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 393 }
[ 2830, 3393, 1949, 51, 13470, 19816, 1155, 353, 8840, 836, 8, 341, 2405, 5779, 526, 18, 17, 284, 220, 16, 15, 198, 6692, 69, 1669, 1273, 13969, 62768, 3830, 7078, 10556, 3782, 1141, 43805, 54, 69, 1171, 6692, 69, 36473, 836, 13470, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStream_GetVersion(t *testing.T) { t.Run("test", func(t *testing.T) { assert := base.NewAssert(t) v := NewStream() assert(v.GetVersion()).Equals(uint8(1)) v.Release() }) }
explode_data.jsonl/21155
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 3027, 13614, 5637, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6948, 1669, 2331, 7121, 8534, 1155, 340, 197, 5195, 1669, 1532, 3027, 741, 197, 6948, 3747, 2234, 5637,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateObjectWithInvalidContentLength(t *testing.T) { ts := newTestServer(t) defer ts.Close() client := ts.rawClient() body := []byte{1, 2, 3} rq, err := http.NewRequest("PUT", client.URL(fmt.Sprintf("/%s/yep", defaultBucket)).String(), maskReader(bytes.NewReader(body))) if err != nil { panic(err) } ...
explode_data.jsonl/22255
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 4021, 1190, 2354, 7928, 2762, 4373, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 501, 2271, 5475, 1155, 340, 16867, 10591, 10421, 741, 25291, 1669, 10591, 18152, 2959, 2822, 35402, 1669, 3056, 3782, 90, 16, 11, 220, 17, 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...
5
func TestValidIDs(t *testing.T) { err := fmt.Errorf("") tests := []struct { name string in []uint32 expected error }{ {"positive-1,2", []uint32{1, 2}, nil}, {"positive-2,1", []uint32{2, 1}, nil}, {"positive-1-10", []uint32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, nil}, {"positive-1-10-random", []uint3...
explode_data.jsonl/77872
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 345 }
[ 2830, 3393, 4088, 30466, 1155, 353, 8840, 836, 8, 341, 9859, 1669, 8879, 13080, 31764, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 17430, 981, 3056, 2496, 18, 17, 198, 197, 42400, 1465, 198, 197, 59403, 197, 197, 491...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLedgerIsNoAvailable(t *testing.T) { theLedger := new(mockLedger) pm := &mocks.Mapper{} cryptoProvider, err := sw.NewDefaultSecurityLevelWithKeystore(sw.NewDummyKeyStore()) assert.NoError(t, err) validator := txvalidatorv14.NewTxValidator( "", semaphore.New(10), &mocktxvalidator.Support{LedgerVal: th...
explode_data.jsonl/47818
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 447 }
[ 2830, 3393, 60850, 1389, 3872, 2753, 16485, 1155, 353, 8840, 836, 8, 341, 32088, 60850, 1389, 1669, 501, 30389, 60850, 1389, 340, 86511, 1669, 609, 16712, 82, 71892, 16094, 1444, 9444, 5179, 11, 1848, 1669, 2021, 7121, 3675, 15352, 4449, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemittanceOriginatorAddressTypeValid(t *testing.T) { ro := mockRemittanceOriginator() ro.RemittanceData.AddressType = "BBRB" err := ro.Validate() require.EqualError(t, err, fieldError("AddressType", ErrAddressType, ro.RemittanceData.AddressType).Error()) }
explode_data.jsonl/32920
{ "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, 6590, 87191, 13298, 850, 4286, 929, 4088, 1155, 353, 8840, 836, 8, 341, 197, 299, 1669, 7860, 6590, 87191, 13298, 850, 741, 197, 299, 11398, 87191, 1043, 26979, 929, 284, 330, 10098, 29259, 1837, 9859, 1669, 926, 47667, 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 TestAddRegExpRouteDoesNotMatchForInvalidPath(t *testing.T) { re := regexp.MustCompile("^/test$") r := NewRouter() r.AddRegExpRoute("test", http.MethodGet, re, dummyHandler) req := events.APIGatewayProxyRequest{ Path: "/blah", HTTPMethod: http.MethodGet, } assert.False(t, r.Routes["test"].Match(r...
explode_data.jsonl/4489
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 2212, 50192, 4899, 21468, 2623, 8331, 2461, 7928, 1820, 1155, 353, 8840, 836, 8, 341, 17200, 1669, 41877, 98626, 48654, 14, 1944, 3, 5130, 7000, 1669, 1532, 9523, 741, 7000, 1904, 50192, 4899, 445, 1944, 497, 1758, 20798, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRuleIndexAttributeOrder(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := []string{ `create index idx1 on tab(last_name,first_name);`, `alter table tab add index idx1 (last_name,first_name);`, `CREATE TABLE test (id int,blob_col BLOB, INDEX(blob_col(10),id));`,...
explode_data.jsonl/76785
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 268 }
[ 2830, 3393, 11337, 1552, 3907, 4431, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 3056, 917, 515, 197, 197, 63, 3182, 1922, 7187, 16, 389, 5651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientTransactionUnsampled(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { w.Write([]byte(req.Header.Get("Elastic-Apm-Traceparent"))) })) defer server.Close() tracer, transport := transporttest.NewRecorderTracer() defer tracer.Close() trac...
explode_data.jsonl/49617
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 349 }
[ 2830, 3393, 2959, 8070, 1806, 13611, 67, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 4232, 353, 1254, 9659, 8, 341, 197, 6692, 4073, 10556, 3782, 6881, 15753, 2234, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestClientConn_Post(t *testing.T) { type args struct { path string contentFormat message.MediaType payload io.ReadSeeker opts message.Options } tests := []struct { name string args args wantCode codes.Code wantContentFormat *message.Medi...
explode_data.jsonl/72013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1609 }
[ 2830, 3393, 2959, 9701, 66726, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 26781, 688, 914, 198, 197, 27751, 4061, 1943, 63714, 198, 197, 76272, 981, 6399, 6503, 39350, 261, 198, 197, 64734, 688, 1943, 22179, 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 TestPermissionsImport_rejectsUnlicensed(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() actual, _ := th.RunCommandWithOutput(t, "permissions", "import") assert.Contains(t, actual, utils.T("cli.license.critical")) }
explode_data.jsonl/35305
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 23851, 11511, 1288, 583, 82, 1806, 71711, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 88814, 11, 716, 1669, 270, 16708, 4062, 2354, 5097, 1155, 11, 330, 29900, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClientRedirectPolicy(t *testing.T) { ts := createRedirectServer(t) defer ts.Close() c := dc().SetRedirectPolicy(FlexibleRedirectPolicy(20)) _, err := c.R().Get(ts.URL + "/redirect-1") assertEqual(t, true, ("Get /redirect-21: stopped after 20 redirects" == err.Error() || "Get \"/redirect-21\": stopped ...
explode_data.jsonl/39336
{ "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, 2959, 17725, 13825, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 1855, 17725, 5475, 1155, 340, 16867, 10591, 10421, 2822, 1444, 1669, 19402, 1005, 1649, 17725, 13825, 7832, 94544, 17725, 13825, 7, 17, 15, 1171, 197, 6878, 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...
3
func TestLoadTestHelpCommands(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.Client channel := th.BasicChannel enableTesting := *th.App.Config().ServiceSettings.EnableTesting defer func() { th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ServiceSettings.EnableTesting = enableTe...
explode_data.jsonl/26337
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 5879, 2271, 12689, 30479, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 71724, 1669, 270, 11716, 198, 71550, 1669, 270, 48868, 9629, 271, 197, 12552, 16451, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCBORParseTask(t *testing.T) { tests := []struct { name string data string vars pipeline.Vars inputs []pipeline.Result expected map[string]interface{} expectedErrorCause error expectedErrorContains string }{ { ...
explode_data.jsonl/20588
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1940 }
[ 2830, 3393, 12979, 868, 14463, 6262, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 1698, 914, 198, 197, 8924, 1698, 914, 198, 197, 2405, 82, 1698, 15301, 5058, 1561, 198, 197, 22427, 82, 394, 3056, 51258, 184...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAWSGetCallerIdentityFunctions(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_AWS_GET_CALLER_IDENTITY) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_AWS_GET_CALLER_IDENTITY) rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_AWS_GET_CALLER_IDENTITY) runTerragrunt(t, fmt.Sprintf("terr...
explode_data.jsonl/10149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 491 }
[ 2830, 3393, 36136, 1949, 58735, 18558, 25207, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 1566, 7433, 12702, 14935, 640, 3450, 31174, 340, 20082, 14359, 1820, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetryDoWithBackoff(t *testing.T) { t.Parallel() r := New( WithMaxAttempts(3), WithBackoff(NewConstantBackoff(2*time.Millisecond, 1*time.Millisecond)), ) attempt := 0 assert.NoError(t, r.Do(context.Background(), func(context.Context) error { attempt++ return failFirstAttempts(3)(attempt) })) as...
explode_data.jsonl/82068
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 139 }
[ 2830, 3393, 51560, 5404, 2354, 3707, 1847, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 7000, 1669, 1532, 1006, 197, 197, 2354, 5974, 81517, 7, 18, 1326, 197, 197, 2354, 3707, 1847, 35063, 15472, 3707, 1847, 7, 17, 77053, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateIPSecTunnelPort(t *testing.T) { c, closeFn := setup(t, []*interfacestore.InterfaceConfig{ { Type: interfacestore.TunnelInterface, InterfaceName: "mismatchedname", TunnelInterfaceConfig: &interfacestore.TunnelInterfaceConfig{ NodeName: "xyz-k8s-0-2", Type: "vxlan", PSK...
explode_data.jsonl/44599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1296 }
[ 2830, 3393, 4021, 3298, 8430, 51, 40292, 7084, 1155, 353, 8840, 836, 8, 341, 1444, 11, 3265, 24911, 1669, 6505, 1155, 11, 29838, 4970, 4314, 41065, 2648, 515, 197, 197, 515, 298, 27725, 25, 688, 3749, 4314, 836, 40292, 5051, 345, 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 TestIsBackendPoolPreConfigured(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() testCases := []struct { desc string preConfiguredBackendPoolLoadBalancerTypes string isInternalService bool expectedOutput ...
explode_data.jsonl/34010
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1344 }
[ 2830, 3393, 3872, 29699, 10551, 4703, 2648, 3073, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 8333, 914, 198, 197, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckInferenceRules(t *testing.T) { // Rules must have refs resolved, safe ordering, etc. Each pair is a // (package path, rule) tuple. The test constructs the Rule objects to // run the inference on from these inputs. ruleset1 := [][2]string{ {`a`, `trivial = true { true }`}, {`a`, `complete = [{"foo...
explode_data.jsonl/14559
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2660 }
[ 2830, 3393, 3973, 641, 2202, 26008, 1155, 353, 8840, 836, 8, 1476, 197, 322, 22847, 1969, 614, 43143, 19673, 11, 6092, 21391, 11, 4992, 13, 8886, 6716, 374, 264, 198, 197, 322, 320, 1722, 1815, 11, 5912, 8, 14405, 13, 576, 1273, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAttachDisconnect(t *testing.T) { stdout, stdoutPipe := io.Pipe() cpty, tty, err := pty.Open() if err != nil { t.Fatal(err) } cli := client.NewDockerCli(tty, stdoutPipe, ioutil.Discard, "", testDaemonProto, testDaemonAddr, nil) defer cleanup(globalEngine, t) go func() { // Start a process in daemon...
explode_data.jsonl/9935
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 774 }
[ 2830, 3393, 30485, 60651, 1155, 353, 8840, 836, 8, 341, 6736, 411, 11, 20075, 34077, 1669, 6399, 1069, 3444, 741, 1444, 1595, 11, 60067, 11, 1848, 1669, 281, 1881, 12953, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 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 TestTaskGPUDisabled(t *testing.T) { testTask := &Task{ Containers: []*apicontainer.Container{ { Name: "myName1", }, }, } assert.False(t, testTask.isGPUEnabled()) }
explode_data.jsonl/37261
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 83 }
[ 2830, 3393, 6262, 24430, 4656, 285, 2312, 1155, 353, 8840, 836, 8, 341, 18185, 6262, 1669, 609, 6262, 515, 197, 197, 74632, 25, 29838, 391, 51160, 1743, 33672, 515, 298, 197, 515, 571, 21297, 25, 330, 2408, 675, 16, 756, 298, 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
func TestMatCompleteSymm(t *testing.T) { src := NewMatWithSize(100, 100, MatTypeCV32F) CompleteSymm(src, false) if src.Empty() { t.Error("TestCompleteSymm src should not be empty.") } src.Close() }
explode_data.jsonl/81733
{ "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, 11575, 12548, 27912, 76, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 15, 11, 220, 16, 15, 15, 11, 6867, 929, 19589, 18, 17, 37, 340, 197, 12548, 27912, 76, 14705, 11, 895, 340, 743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestNestedIndex(t *testing.T) { baseLayers := int64(3) images := int64(2) base, err := random.Index(1024, baseLayers, images) if err != nil { t.Fatalf("random.Image() = %v", err) } importpath := "github.com/google/ko" nestedBase := mutate.AppendManifests(empty.Index, mutate.IndexAddendum{Add: base}) cr...
explode_data.jsonl/2487
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 364 }
[ 2830, 3393, 71986, 1552, 1155, 353, 8840, 836, 8, 341, 24195, 40235, 1669, 526, 21, 19, 7, 18, 340, 197, 3642, 1669, 526, 21, 19, 7, 17, 340, 24195, 11, 1848, 1669, 4194, 18338, 7, 16, 15, 17, 19, 11, 2331, 40235, 11, 5335, 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 TestCreateStatus(t *testing.T) { ts := httptest.NewTLSServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { t.Errorf("Bad method: %s", r.Method) } if r.URL.Path != "/repos/k8s/kuber/statuses/abcdef" { t.Errorf("Bad request path: %s", r.URL.Path) } ...
explode_data.jsonl/6258
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 4021, 2522, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 13470, 1220, 2836, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 743, 435, 20798, 961, 1758, 20798, 4133, 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...
6
func TestPlainParse(t *testing.T) { tnum := -1 var start, end = 0, len(parseTestCases) if tnum > 0 { start = tnum end = tnum + 1 } // opts := &Options{Plain: true} // d := NewDoc("testdoc", "testpath") // d.Plain = true testParse(t, parseTestCases, start, end) }
explode_data.jsonl/76862
{ "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, 26982, 14463, 1155, 353, 8840, 836, 8, 341, 197, 1517, 372, 1669, 481, 16, 198, 2405, 1191, 11, 835, 284, 220, 15, 11, 2422, 27762, 2271, 37302, 340, 743, 259, 2413, 861, 220, 15, 341, 197, 21375, 284, 259, 2413, 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...
2
func TestEntry_SetText_Manual(t *testing.T) { entry, window := setupImageTest(false) defer teardownImageTest(window) c := window.Canvas() test.AssertImageMatches(t, "entry/set_text_initial.png", c.Capture()) entry.Text = "Test" entry.Refresh() test.AssertImageMatches(t, "entry/set_text_changed.png", c.Capture(...
explode_data.jsonl/57328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 5874, 14812, 1178, 71628, 928, 1155, 353, 8840, 836, 8, 341, 48344, 11, 3241, 1669, 6505, 1906, 2271, 3576, 340, 16867, 49304, 1906, 2271, 15906, 340, 1444, 1669, 3241, 54121, 2822, 18185, 11711, 1906, 42470, 1155, 11, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRemove(t *testing.T) { size := 10000 keyLen, dataLen := 16, 40 d := db.NewDB("test", "memdb", "") defer d.Close() t1 := NewIAVLTree(size, d) // insert a bunch of random nodes keys := make([][]byte, size) l := int32(len(keys)) for i := 0; i < size; i++ { key := randBytes(keyLen) t1.Set(key, randB...
explode_data.jsonl/5013
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 13021, 1155, 353, 8840, 836, 8, 341, 13832, 1669, 220, 16, 15, 15, 15, 15, 198, 23634, 11271, 11, 821, 11271, 1669, 220, 16, 21, 11, 220, 19, 15, 271, 2698, 1669, 2927, 7121, 3506, 445, 1944, 497, 330, 10536, 1999, 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...
4
func TestClientValidCertificate(t *testing.T) { inputPath := "validComodo.pem" expected := lint.Pass out := test.TestLint("e_dnsname_bad_character_in_label", inputPath) if out.Status != expected { t.Errorf("%s: expected %s, got %s", inputPath, expected, out.Status) } }
explode_data.jsonl/47145
{ "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, 2959, 4088, 33202, 1155, 353, 8840, 836, 8, 341, 22427, 1820, 1669, 330, 1891, 1092, 6004, 49373, 698, 42400, 1669, 57920, 87768, 198, 13967, 1669, 1273, 8787, 47556, 445, 68, 71125, 606, 34199, 40988, 1243, 6106, 497, 1946, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStatDirWithoutPermission(t *testing.T) { otherClient := getClientForUser(t, "other") mkdirp(t, "/_test/accessdenied") touch(t, "/_test/accessdenied/foo") resp, err := otherClient.Stat("/_test/accessdenied") assert.NoError(t, err) assert.NotEqual(t, "", resp.(*FileInfo).Owner()) _, err = otherClient.S...
explode_data.jsonl/44786
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 15878, 6184, 26040, 14966, 1155, 353, 8840, 836, 8, 341, 197, 1575, 2959, 1669, 86287, 2461, 1474, 1155, 11, 330, 1575, 5130, 88650, 79, 1155, 11, 3521, 62, 1944, 72356, 5183, 1122, 1138, 3244, 3026, 1155, 11, 3521, 62, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestIntegrationRemoteModeProvisioning(t *testing.T) { remoteTempDirectory := test.CreateTempAnsibleRemoteTmpDir(t) defer os.RemoveAll(remoteTempDirectory) bootstrapDirectory := test.CreateTempAnsibleBootstrapDir(t) defer os.RemoveAll(bootstrapDirectory) sshUsername := "integration-test" testModuleName := "p...
explode_data.jsonl/48635
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2000 }
[ 2830, 3393, 52464, 24703, 3636, 1336, 13013, 287, 1155, 353, 8840, 836, 8, 1476, 197, 18147, 12151, 9310, 1669, 1273, 7251, 12151, 69599, 1238, 24703, 35986, 6184, 1155, 340, 16867, 2643, 84427, 61381, 12151, 9310, 340, 197, 6281, 9310, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQuerierWithBlocksStorage(t *testing.T) { tests := map[string]struct { flags map[string]string }{ "querier running with ingester gRPC streaming disabled": { flags: mergeFlags(BlocksStorageFlags, map[string]string{ "-querier.ingester-streaming": "false", }), }, "querier running with ingester ...
explode_data.jsonl/60503
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2303 }
[ 2830, 3393, 2183, 261, 1268, 2354, 29804, 5793, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 59516, 2415, 14032, 30953, 198, 197, 59403, 197, 197, 1, 15959, 1268, 4303, 448, 6749, 5191, 342, 29528, 16842, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrincipalIntersection(t *testing.T) { testCases := []struct { principal Principal principalToIntersect Principal expectedResult set.StringSet }{ {NewPrincipal("*"), NewPrincipal("*"), set.CreateStringSet("*")}, {NewPrincipal("arn:aws:iam::AccountNumber:root"), NewPrincipal("arn:aws...
explode_data.jsonl/39964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 264 }
[ 2830, 3393, 31771, 72927, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 25653, 15702, 310, 36309, 198, 197, 25653, 15702, 1249, 3306, 9687, 36309, 198, 197, 42400, 2077, 981, 738, 6431, 1649, 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...
3
func TestIntegration(t *testing.T) { if testing.Short() == true { t.Log("Not running integration test because short was specified.") return } service, userConfig := GetTwitterConfig(t) httpClient := new(http.Client) url := "https://api.twitter.com/1.1/account/verify_credentials.json" httpRequest, _ := http.Ne...
explode_data.jsonl/73797
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 245 }
[ 2830, 3393, 52464, 1155, 353, 8840, 836, 8, 341, 743, 7497, 55958, 368, 621, 830, 341, 197, 3244, 5247, 445, 2623, 4303, 17590, 1273, 1576, 2805, 572, 5189, 13053, 197, 853, 198, 197, 532, 52934, 11, 1196, 2648, 1669, 2126, 24862, 264...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewUserRedirect2(t *testing.T) { // redirect to previously used name assert.NoError(t, PrepareTestDatabase()) user := AssertExistsAndLoadBean(t, &User{ID: 1}).(*User) assert.NoError(t, newUserRedirect(x, user.ID, user.Name, "olduser1")) AssertExistsAndLoadBean(t, &UserRedirect{ LowerName: user.Lo...
explode_data.jsonl/41091
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 190 }
[ 2830, 3393, 3564, 1474, 17725, 17, 1155, 353, 8840, 836, 8, 341, 197, 322, 6423, 311, 8597, 1483, 829, 198, 6948, 35699, 1155, 11, 31166, 2271, 5988, 12367, 19060, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFormatterBackgroundBackground(test *testing.T) { formatted, err := formatter.Format("{yellow | background | background}yellow{normal}") assert.NoError(test, err) assert.Equal(test, "\x1b[43myellow\x1b[0m", formatted) }
explode_data.jsonl/39757
{ "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, 8706, 8706, 8623, 353, 8840, 836, 8, 341, 37410, 12127, 11, 1848, 1669, 24814, 9978, 13976, 27869, 760, 4004, 760, 4004, 92, 27869, 90, 8252, 55266, 6948, 35699, 8623, 11, 1848, 340, 6948, 12808, 8623, 11, 2917, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestResourceName(test *testing.T) { schema, err := parseRDLString(` resource Any GET "/nil" { expected OK; } resource Any GET "/foo" (name=myFoo) { expected OK; } resource Any GET "/bar" (async, name = myBar, x_something ) { expected OK; } `) if err != nil { test.Errorf("cannot parse valid RDL wi...
explode_data.jsonl/74352
{ "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, 4783, 675, 8623, 353, 8840, 836, 8, 341, 1903, 3416, 11, 1848, 1669, 4715, 49, 16524, 703, 61528, 9233, 5765, 7890, 3521, 8385, 1, 341, 220, 3601, 10402, 280, 630, 9233, 5765, 7890, 3521, 7975, 1, 320, 606, 80470, 40923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSubmitOrder(t *testing.T) { h.SetDefaults() TestSetup(t) if !isRealOrderTestEnabled() { t.Skip() } var p = pair.CurrencyPair{ Delimiter: "", FirstCurrency: symbol.DGD, SecondCurrency: symbol.BTC, } response, err := h.SubmitOrder(p, exchange.Buy, exchange.Market, 1, 10, "1234234") if err...
explode_data.jsonl/9487
{ "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, 8890, 4431, 1155, 353, 8840, 836, 8, 341, 9598, 4202, 16273, 741, 73866, 21821, 1155, 692, 743, 753, 285, 12768, 4431, 2271, 5462, 368, 341, 197, 3244, 57776, 741, 197, 630, 2405, 281, 284, 6716, 77186, 12443, 515, 197, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func Test_TableBorder_DeleteBordersOnline(t *testing.T) { config := ReadConfiguration(t) client, ctx := PrepareTest(t, config) localFile := "DocumentElements/Tables/TablesGet.docx" requestDocument := OpenFile(t, localFile) options := map[string]interface{}{ "nodePath": "tables/1/rows/0/cel...
explode_data.jsonl/16257
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 228 }
[ 2830, 3393, 42544, 10691, 57418, 85037, 19598, 1155, 353, 8840, 836, 8, 341, 262, 2193, 1669, 4457, 7688, 1155, 340, 262, 2943, 11, 5635, 1669, 31166, 2271, 1155, 11, 2193, 340, 262, 2205, 1703, 1669, 330, 7524, 11868, 14, 21670, 14, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCertificateStore(t *testing.T) { ctx, done, err := aetest.NewContext() if err != nil { t.Fatal(err) } defer done() store := newCertificateStore("") cert, err := store.Get(ctx, "09712c9531f921fce0118dba9441de0ed4f408f7") if err != nil { t.Error(err) } t.Logf("cert 1 %v", cert.AuthorityKeyId) no...
explode_data.jsonl/55512
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 259 }
[ 2830, 3393, 33202, 6093, 1155, 353, 8840, 836, 8, 341, 20985, 11, 2814, 11, 1848, 1669, 264, 57824, 7121, 1972, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2814, 2822, 57279, 1669, 501, 33202, 6093, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTxOut_IsNull(t *testing.T) { script := script.NewScriptRaw([]byte{opcodes.OP_RETURN, 0x01, 0x01}) txout := NewTxOut(9, script) txout.SetNull() assert.True(t, txout.IsNull()) }
explode_data.jsonl/38885
{ "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, 31584, 2662, 31879, 3280, 1155, 353, 8840, 836, 8, 341, 86956, 1669, 5316, 7121, 5910, 20015, 10556, 3782, 90, 453, 25814, 81563, 21909, 11, 220, 15, 87, 15, 16, 11, 220, 15, 87, 15, 16, 3518, 46237, 411, 1669, 1532, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormatter_FormatApplyEvent(t *testing.T) { testCases := map[string]struct { previewStrategy common.DryRunStrategy event event.ApplyEvent statusCollector list.Collector expected string }{ "resource created without no dryrun": { previewStrategy: common.DryRunNone, event: event....
explode_data.jsonl/58256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 850 }
[ 2830, 3393, 14183, 72999, 28497, 1556, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 2415, 14032, 60, 1235, 341, 197, 197, 27171, 19816, 4185, 909, 884, 6727, 19816, 198, 197, 28302, 1843, 1538, 36051, 1556, 198, 197, 23847, 53694, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorization_mTLS(t *testing.T) { framework.NewTest(t). Run(func(ctx framework.TestContext) { ns := namespace.NewOrFail(t, ctx, namespace.Config{ Prefix: "v1beta1-mtls-ns1", Inject: true, }) ns2 := namespace.NewOrFail(t, ctx, namespace.Config{ Prefix: "v1beta1-mtls-ns2", Inject: tr...
explode_data.jsonl/41491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 721 }
[ 2830, 3393, 18124, 717, 45439, 1155, 353, 8840, 836, 8, 341, 1166, 5794, 7121, 2271, 1155, 4292, 197, 85952, 18552, 7502, 12626, 8787, 1972, 8, 341, 298, 84041, 1669, 4473, 7121, 46059, 1155, 11, 5635, 11, 4473, 10753, 515, 571, 10025, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmitGauge(t *testing.T) { controller := gomock.NewController(t) defer controller.Finish() env := mock_env.NewMockInterface(controller) env.EXPECT().Location().AnyTimes().Return("eastus") env.EXPECT().Hostname().AnyTimes().Return("test-host") c1, c2 := net.Pipe() s := &statsd{ env: env, account: ...
explode_data.jsonl/70256
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 340 }
[ 2830, 3393, 36, 1763, 38, 19392, 1155, 353, 8840, 836, 8, 341, 61615, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 6461, 991, 18176, 2822, 57538, 1669, 7860, 15879, 7121, 11571, 5051, 40845, 340, 57538, 22402, 7285, 1005, 4707, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewexten(t *testing.T) { fixture := map[string]string{ "Channel": "Channel", "Extension": "Extension", "Context": "Context", "Priority": "Priority", "Application": "Application", } ev := gami.AMIEvent{ ID: "Newexten", Privilege: []string{"all"}, Params: fixture, } ...
explode_data.jsonl/80406
{ "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, 3564, 427, 268, 1155, 353, 8840, 836, 8, 341, 1166, 12735, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 9629, 788, 257, 330, 9629, 756, 197, 197, 1, 12049, 788, 256, 330, 12049, 756, 197, 197, 1, 1972, 788, 257, 330, 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 TestLogContainerEventWithAttributes(t *testing.T) { e := events.New() _, l, _ := e.Subscribe() defer e.Evict(l) container := &container.Container{ CommonContainer: container.CommonContainer{ ID: "container_id", Name: "container_name", Config: &containertypes.Config{ Labels: map[string]string{...
explode_data.jsonl/26931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 273 }
[ 2830, 3393, 2201, 4502, 1556, 2354, 10516, 1155, 353, 8840, 836, 8, 341, 7727, 1669, 4357, 7121, 741, 197, 6878, 326, 11, 716, 1669, 384, 82628, 741, 16867, 384, 5142, 85, 849, 2333, 692, 53290, 1669, 609, 3586, 33672, 515, 197, 90580...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParse(t *testing.T) { var args struct { Foo string } os.Args = []string{"example", "--foo", "bar"} err := Parse(&args) require.NoError(t, err) assert.Equal(t, "bar", args.Foo) }
explode_data.jsonl/13031
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 84 }
[ 2830, 3393, 14463, 1155, 353, 8840, 836, 8, 341, 2405, 2827, 2036, 341, 197, 12727, 2624, 914, 198, 197, 532, 25078, 51015, 284, 3056, 917, 4913, 8687, 497, 14482, 7975, 497, 330, 2257, 16707, 9859, 1669, 14775, 2099, 2116, 340, 17957, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestGetRoutesConfig(t *testing.T) { for _, test := range []struct { cidrs []string routes string }{ { cidrs: []string{"10.0.0.1/24"}, routes: `{"dst": "0.0.0.0/0"}`, }, { cidrs: []string{"2001:4860:4860::8888/32"}, routes: `{"dst": "::/0"}`, }, { cidrs: []string{"2001:4860:4860::...
explode_data.jsonl/4480
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 377 }
[ 2830, 3393, 1949, 26653, 2648, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 1444, 307, 5428, 220, 3056, 917, 198, 197, 7000, 5495, 914, 198, 197, 59403, 197, 197, 515, 298, 1444, 307, 5428, 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...
3
func TestParseDecks(t *testing.T) { decksPattern := filepath.Join("testdecks", "*.txt") decks, err := filepath.Glob(decksPattern) if err != nil { t.Fatalf("could not get test decks: %v", err) } if len(decks) == 0 { t.Fatal("no test decks found") } for _, path := range decks { deckFile, err := os.Open(path)...
explode_data.jsonl/64509
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 14463, 1912, 14553, 1155, 353, 8840, 836, 8, 341, 58351, 14553, 15760, 1669, 26054, 22363, 445, 1944, 450, 14553, 497, 59128, 8586, 1138, 58351, 14553, 11, 1848, 1669, 26054, 1224, 1684, 12797, 14553, 15760, 340, 743, 1848, 96...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_deleteTrigger(t *testing.T) { type args struct { triggers []*coreconfig.Trigger index int } tests := []struct { name string args args want []*coreconfig.Trigger }{ { name: "first element - alone", args: args{ triggers: []*coreconfig.Trigger{ { Id: "123", }, }, ...
explode_data.jsonl/48904
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1022 }
[ 2830, 3393, 11353, 17939, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 25583, 21385, 29838, 2153, 1676, 8240, 4500, 198, 197, 26327, 262, 526, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGoFuncInstr(t *testing.T) { gopClTest(t, `package main //go:noinline //go:uintptrescapes func test(s string, p, q uintptr, rest ...uintptr) int { }`, `package main //go:noinline //go:uintptrescapes func test(s string, p uintptr, q uintptr, rest ...uintptr) int { } `) }
explode_data.jsonl/73704
{ "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, 10850, 9626, 74375, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 1565, 1722, 1887, 271, 322, 3346, 19266, 1961, 1056, 198, 322, 3346, 62921, 417, 416, 66, 9337, 198, 2830, 1273, 1141, 914, 11, 281, 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 TestGetNodeNameByIPConfigurationID(t *testing.T) { ipConfigurationIDTemplate := "/subscriptions/script/resourceGroups/rg/providers/Microsoft.Compute/virtualMachineScaleSets/%s/virtualMachines/%s/networkInterfaces/%s/ipConfigurations/ipconfig1" testCases := []struct { description string scaleSet ...
explode_data.jsonl/17948
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 756 }
[ 2830, 3393, 1949, 1955, 675, 1359, 3298, 7688, 915, 1155, 353, 8840, 836, 8, 341, 46531, 7688, 915, 7275, 1669, 3521, 72560, 55678, 53100, 22173, 14, 1984, 82543, 10270, 3929, 89237, 5457, 2901, 21605, 6947, 30175, 12627, 82, 5457, 2901, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPublish(t *testing.T) { t.Run("Publish message test", func(t *testing.T) { Init(clientId) _, err := Publish(topicName, "Fly me to the moon..") if err != nil { t.Error(err) } else { log.Println("Publish message test is successful.") } }) }
explode_data.jsonl/4859
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 110 }
[ 2830, 3393, 50145, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 50145, 1943, 1273, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 98762, 12805, 764, 692, 197, 197, 6878, 1848, 1669, 23499, 43839, 675, 11, 330, 53000, 752, 311, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateConditions(t *testing.T) { logp.TestingSetup() configs := []ConditionConfig{ { Equals: &ConditionFields{fields: map[string]interface{}{ "proc.pid": 0.08, }}, }, { Range: &ConditionFields{fields: map[string]interface{}{ "gtr": 0.3, }}, }, { Range: &ConditionFields{fie...
explode_data.jsonl/21713
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 4021, 35435, 1155, 353, 8840, 836, 8, 341, 6725, 79, 8787, 287, 21821, 2822, 25873, 82, 1669, 3056, 10547, 2648, 515, 197, 197, 515, 298, 197, 4315, 25, 609, 10547, 8941, 90, 9007, 25, 2415, 14032, 31344, 67066, 571, 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 Test_HTTPS_HTTP_Basic(t *testing.T) { var ( portHttp, _ = gtcp.GetFreePort() portHttps, _ = gtcp.GetFreePort() ) s := g.Server(gtime.TimestampNanoStr()) s.Group("/", func(group *ghttp.RouterGroup) { group.GET("/test", func(r *ghttp.Request) { r.Response.Write("test") }) }) s.EnableHTTPS( gtest....
explode_data.jsonl/23639
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 34954, 50, 34954, 1668, 5971, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 52257, 2905, 11, 716, 220, 284, 25161, 4672, 2234, 10940, 7084, 741, 197, 52257, 92869, 11, 716, 284, 25161, 4672, 2234, 10940, 7084, 741, 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 TestLogger_Copy(t *testing.T) { t.Parallel() t.Run("success(Copy)", func(t *testing.T) { t.Parallel() original := Must(New(io.Discard)) copied := original.Copy() FailIfEqual(t, fmt.Sprintf("%p", original), fmt.Sprintf("%p", copied)) // customSeverities FailIfEqual(t, fmt.Sprintf("%p", original.cus...
explode_data.jsonl/71318
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 524 }
[ 2830, 3393, 7395, 77637, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 3244, 16708, 445, 5630, 3025, 1266, 11583, 2915, 1155, 353, 8840, 836, 8, 341, 197, 3244, 41288, 7957, 2822, 197, 197, 9889, 1669, 15465, 35063, 37258, 909,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConstIssue805(t *testing.T) { gopClTest(t, ` const ( n1 = +5 d1 = +3 q1 = +1 r1 = +2 ) const ( ret1 = n1/d1 != q1 ret2 = n1%d1 != r1 ret3 = n1/d1 != q1 || n1%d1 != r1 ) `, `package main const ( n1 = +5 d1 = +3 q1 = +1 r1 = +2 ) const ( ret1 = n1/d1 != q1 ret2 = n1%d1 != r1 ret3 = false ) `) }
explode_data.jsonl/73585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 191 }
[ 2830, 3393, 19167, 42006, 23, 15, 20, 1155, 353, 8840, 836, 8, 341, 3174, 453, 5066, 2271, 1155, 11, 22074, 1024, 2399, 9038, 16, 284, 488, 20, 198, 2698, 16, 284, 488, 18, 271, 18534, 16, 284, 488, 16, 198, 7000, 16, 284, 488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArrayValueBackend(t *testing.T) { db := openTestConn(t) defer db.Close() for _, tt := range []struct { s string v driver.Valuer }{ {`ARRAY[true, false]`, BoolArray{true, false}}, {`ARRAY[E'\\xdead', E'\\xbeef']`, ByteaArray{{'\xDE', '\xAD'}, {'\xBE', '\xEF'}}}, {`ARRAY[1.2, 3.4]`, Float64Array{1...
explode_data.jsonl/5352
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 336 }
[ 2830, 3393, 1857, 1130, 29699, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 1787, 2271, 9701, 1155, 340, 16867, 2927, 10421, 2822, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 1903, 914, 198, 197, 5195, 5579, 77819, 8801, 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...
3
func TestSDakuten(t *testing.T) { const want = "zajizuzezo" for _, v := range [2]string{"ざじずぜぞ", "ザジズゼゾ"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11299
{ "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, 5491, 585, 13160, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 89, 1630, 449, 90211, 12738, 1837, 2023, 8358, 348, 1669, 2088, 508, 17, 30953, 4913, 74594, 99104, 124145, 125973, 127264, 497, 330, 125765, 75328, 77425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCountLinesFile(t *testing.T) { file := `../testdata/files/test1.txt` lines, err := CountLines(file, "", -1) if err != nil || lines != 112 { t.Log(err) t.Fail() } _, err = CountLines(file+"test", "", -1) if err == nil { t.Log(err) t.Fail() } }
explode_data.jsonl/24003
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 125 }
[ 2830, 3393, 2507, 16794, 1703, 1155, 353, 8840, 836, 8, 341, 17661, 1669, 1565, 1244, 92425, 33220, 12697, 16, 3909, 3989, 78390, 11, 1848, 1669, 4504, 16794, 4866, 11, 7342, 481, 16, 340, 743, 1848, 961, 2092, 1369, 5128, 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, 1...
4
func TestCreateDatabases(t *testing.T) { var result map[string]string result, err = CreateDatabasesWithDB(db, TestDatabases) if err != nil { t.Fatal(err) } for database, password := range result { var anotherDB *sql.DB anotherDB, err = sql.Open("mysql", fmt.Sprintf("%s:%s@tcp(%s:%d)/%s", database, passwor...
explode_data.jsonl/1902
{ "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, 4021, 35, 23822, 1155, 353, 8840, 836, 8, 341, 2405, 1102, 2415, 14032, 30953, 198, 9559, 11, 1848, 284, 4230, 35, 23822, 2354, 3506, 9791, 11, 3393, 35, 23822, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 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...
5
func TestValidatePrivateClaims(t *testing.T) { var ( nowUnix = int64(1514764800) serviceAccount = &v1.ServiceAccount{ObjectMeta: metav1.ObjectMeta{Name: "saname", Namespace: "ns", UID: "sauid"}} secret = &v1.Secret{ObjectMeta: metav1.ObjectMeta{Name: "secretname", Namespace: "ns", UID: "secretuid"}} p...
explode_data.jsonl/3553
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2556 }
[ 2830, 3393, 17926, 16787, 51133, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 80922, 55832, 284, 526, 21, 19, 7, 16, 20, 16, 19, 22, 21, 19, 23, 15, 15, 692, 197, 52934, 7365, 284, 609, 85, 16, 13860, 7365, 90, 1190, 12175, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestPersistWithoutLargeWfSupport(t *testing.T) { defer makeMax()() cancel, controller := newController() defer cancel() ctx := context.Background() wfcset := controller.wfclientset.ArgoprojV1alpha1().Workflows("") wf := unmarshalWF(helloWorldWfPersist) wf, err := wfcset.Create(ctx, wf, metav1.CreateOptions...
explode_data.jsonl/45515
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 61267, 26040, 34253, 54, 69, 7916, 1155, 353, 8840, 836, 8, 341, 16867, 1281, 5974, 368, 741, 84441, 11, 6461, 1669, 501, 2051, 741, 16867, 9121, 2822, 20985, 1669, 2266, 19047, 741, 6692, 8316, 746, 1669, 6461, 1418, 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...
1
func TestInvalidBool(t *testing.T) { os.Setenv("othervar", "should-be-a-bool") defer os.Clearenv() cfg := Config{} assert.Error(t, env.Parse(&cfg)) }
explode_data.jsonl/7483
{ "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, 7928, 11233, 1155, 353, 8840, 836, 8, 341, 25078, 4202, 3160, 445, 8767, 648, 277, 497, 330, 5445, 15150, 7409, 12, 2641, 1138, 16867, 2643, 727, 273, 9151, 85, 2822, 50286, 1669, 5532, 16094, 6948, 6141, 1155, 11, 6105, 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
func TestDestinationSend400(t *testing.T) { server := NewHTTPServerTest(400) err := server.destination.Send([]byte("yo")) assert.NotNil(t, err) _, ok := err.(*client.RetryableError) assert.False(t, ok) assert.Equal(t, "client error", err.Error()) server.stop() }
explode_data.jsonl/82448
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 33605, 11505, 19, 15, 15, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 1532, 9230, 5475, 2271, 7, 19, 15, 15, 340, 9859, 1669, 3538, 35018, 20176, 10556, 3782, 445, 16032, 5455, 6948, 93882, 1155, 11, 1848, 340, 197, 6878, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTerragruntOutputAllCommand(t *testing.T) { t.Parallel() s3BucketName := fmt.Sprintf("terragrunt-test-bucket-%s", strings.ToLower(uniqueId())) defer deleteS3Bucket(t, TERRAFORM_REMOTE_STATE_S3_REGION, s3BucketName) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_OUTPUT_ALL) rootTerragruntConfigPath := uti...
explode_data.jsonl/10083
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 508 }
[ 2830, 3393, 51402, 68305, 3850, 5097, 2403, 4062, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 18, 36018, 675, 1669, 8879, 17305, 445, 465, 4101, 81, 3850, 16839, 1455, 11152, 11069, 82, 497, 9069, 29983, 53440, 764, 121...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMustLBA(t *testing.T) { var data dataBlock w, err := data.toWordBlock() if err != nil { t.Fatalf("toWordBlock: got %v, want nil", err) } if err := w.mustLBA(); err == nil { t.Errorf("bad mustLBA: got nil, want x") } data[0], data[49*2], data[83*2], data[86*2] = 0x80, 0x2, 0x40, 0x4 w, err = dat...
explode_data.jsonl/39294
{ "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, 31776, 43, 7064, 1155, 353, 8840, 836, 8, 341, 2405, 821, 821, 4713, 271, 6692, 11, 1848, 1669, 821, 2389, 10879, 4713, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 983, 10879, 4713, 25, 2684, 1018, 85, 11, 136...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExpandWithExprsError(t *testing.T) { f := func(q string) { t.Helper() for i := 0; i < 3; i++ { qExpanded, err := ExpandWithExprs(q) if err == nil { t.Fatalf("expecting non-nil error when expanding %q", q) } if qExpanded != "" { t.Fatalf("unexpected non-empty qExpanded=%q", qExpanded) ...
explode_data.jsonl/19191
{ "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, 38946, 2354, 16041, 82, 1454, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 2915, 10583, 914, 8, 341, 197, 3244, 69282, 741, 197, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 18, 26, 600, 1027, 341, 298, 18534, 51933, 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...
4
func TestJsonPushEventError(t *testing.T) { req := post("X-GitHub-Event", "push", []byte{}, "http://some.url", http.StatusBadRequest, t) plugin := New() revision, _, _, proceed, err := plugin.Extract(buildConfig, buildConfig.Spec.Triggers[0].GitLabWebHook, req) if err == nil || !strings.Contains(err.Error(), "unex...
explode_data.jsonl/59716
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 210 }
[ 2830, 3393, 5014, 16644, 1556, 1454, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 1736, 445, 55, 12010, 275, 19316, 12, 1556, 497, 330, 9077, 497, 3056, 3782, 22655, 330, 1254, 1110, 14689, 7315, 497, 1758, 69497, 11, 259, 340, 197, 913...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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