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 TestPrintUnusedTemplates(t *testing.T) { t.Parallel() files := ` -- config.toml -- baseURL = 'http://example.com/' printUnusedTemplates=true -- content/p1.md -- --- title: "P1" --- {{< usedshortcode >}} -- layouts/baseof.html -- {{ block "main" . }}{{ end }} -- layouts/baseof.json -- {{ block "main" . }}{{ end ...
explode_data.jsonl/4223
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 515 }
[ 2830, 3393, 8994, 94033, 51195, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 74075, 1669, 22074, 313, 2193, 73494, 75, 39514, 3152, 3144, 284, 364, 1254, 1110, 8687, 905, 33021, 1350, 94033, 51195, 11265, 198, 313, 2213, 4322, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSetDefaultReplicaSetReplicas(t *testing.T) { tests := []struct { rs extensionsv1beta1.ReplicaSet expectReplicas int32 }{ { rs: extensionsv1beta1.ReplicaSet{ Spec: extensionsv1beta1.ReplicaSetSpec{ Template: v1.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: ...
explode_data.jsonl/53701
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 752 }
[ 2830, 3393, 1649, 3675, 18327, 15317, 1649, 18327, 52210, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41231, 1797, 19721, 85, 16, 19127, 16, 2817, 79, 15317, 1649, 198, 197, 24952, 18327, 52210, 526, 18, 17, 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...
5
func TestServer_RetentionPolicyCommands(t *testing.T) { t.Parallel() c := NewConfig() c.Meta.RetentionAutoCreate = false s := OpenServer(c) defer s.Close() test := tests.load(t, "retention_policy_commands") // Create a database. if _, err := s.CreateDatabase(test.database()); err != nil { t.Fatal(err) } ...
explode_data.jsonl/61242
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 261 }
[ 2830, 3393, 5475, 2568, 295, 78165, 30479, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 1669, 1532, 2648, 741, 1444, 58806, 52846, 2939, 13253, 4021, 284, 895, 198, 1903, 1669, 5264, 5475, 1337, 340, 16867, 274, 10421, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSignCSRs(t *testing.T) { s := newTestSigner(t) hostname := "cloudflare.com" for _, test := range csrTests { csr, err := ioutil.ReadFile(test.file) if err != nil { t.Fatal("CSR loading error:", err) } // It is possible to use different SHA2 algorithm with RSA CA key. rsaSigAlgos := []x509.Signat...
explode_data.jsonl/71279
{ "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, 7264, 6412, 42327, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 501, 2271, 7264, 261, 1155, 340, 197, 27806, 1669, 330, 12361, 31605, 905, 698, 2023, 8358, 1273, 1669, 2088, 68932, 18200, 341, 197, 1444, 15094, 11, 1848, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestListPartitioner(t *testing.T) { list := NewListPartitioner(nil, "test", "event_id") type Test struct { Title string Input []*Partition Output string Do func(...*Partition) (Handler, error) } tests := []Test{ Test{ Title: "create partition sql", Input: []*Partition{NewPartition("p1...
explode_data.jsonl/77603
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 679 }
[ 2830, 3393, 852, 49978, 261, 1155, 353, 8840, 836, 8, 341, 14440, 1669, 1532, 852, 49978, 261, 27907, 11, 330, 1944, 497, 330, 3087, 842, 5130, 13158, 3393, 2036, 341, 197, 92233, 220, 914, 198, 197, 66588, 220, 29838, 49978, 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 TestCodec0002InteropVersion_Encode(t *testing.T) { s := "abc" ut := Tag0002InteropVersion{s} codec := Codec0002InteropVersion{} encoded, unitCount, err := codec.Encode(ut, exifcommon.TestDefaultByteOrder) log.PanicIf(err) if bytes.Equal(encoded, []byte(s)) != true { t.Fatalf("Encoded bytes not correct: ...
explode_data.jsonl/81337
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 165 }
[ 2830, 3393, 36913, 15, 15, 15, 17, 94000, 5637, 93529, 534, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 330, 13683, 698, 197, 332, 1669, 12353, 15, 15, 15, 17, 94000, 5637, 84386, 630, 43343, 66, 1669, 67077, 15, 15, 15, 17, 94000, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLDSTLSMinimumProtocolVersion(t *testing.T) { rh, cc, done := setup(t) defer done() // s1 is a tls secret s1 := &v1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "secret", Namespace: "default", }, Type: "kubernetes.io/tls", Data: map[string][]byte{ v1.TLSCertKey: []byte("certific...
explode_data.jsonl/22822
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1118 }
[ 2830, 3393, 12335, 784, 7268, 28695, 20689, 5637, 1155, 353, 8840, 836, 8, 341, 7000, 71, 11, 12527, 11, 2814, 1669, 6505, 1155, 340, 16867, 2814, 2822, 197, 322, 274, 16, 374, 264, 55026, 6234, 198, 1903, 16, 1669, 609, 85, 16, 747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMinimumCount(t *testing.T) { if r := getMinimumCount([]byte{0, 0, 0, 0, 0, 0}); r != 0 { t.Fatalf("getMinimumCount = %v, expect 0", r) } if r := getMinimumCount([]byte{0, 1, 0, 1, 1, 0}); r != 3 { t.Fatalf("getMinimumCount = %v, expect 3", r) } if r := getMinimumCount([]byte{1, 1, 1, 1, 1, 1}); r !...
explode_data.jsonl/32223
{ "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, 1949, 28695, 2507, 1155, 353, 8840, 836, 8, 341, 743, 435, 1669, 633, 28695, 2507, 10556, 3782, 90, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 14088, 435, 961, 220, 15, 341, 197, 3244, 30762...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCalcX11HashHex(t *testing.T) { //51b572209083576ea221c27e62b4e22063257571ccb6cc3dc3cd17eb67584eba b1 := []byte("") b1r := CalcX11HashHex(b1) fmt.Println("b1r: ", b1r) //534536a4e4f16b32447f02f77200449dc2f23b532e3d9878fe111c9de666bc5c b2 := []byte("The quick brown fox jumps over the lazy dog") b2r := Ca...
explode_data.jsonl/17110
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 545 }
[ 2830, 3393, 47168, 55, 16, 16, 6370, 20335, 1155, 353, 8840, 836, 8, 341, 197, 322, 20, 16, 65, 20, 22, 17, 17, 15, 24, 15, 23, 18, 20, 22, 21, 12508, 17, 17, 16, 66, 17, 22, 68, 21, 17, 65, 19, 68, 17, 17, 15, 21, 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 TestGetTaskRunTimeout(t *testing.T) { prName := "pipelinerun-timeouts" ns := "foo" p := "pipeline" tcs := []struct { name string pr *v1alpha1.PipelineRun expected *metav1.Duration }{{ name: "nil timeout duration", pr: tb.PipelineRun(prName, ns, tb.PipelineRunSpec(p, tb.PipelineRunNilTi...
explode_data.jsonl/81297
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 658 }
[ 2830, 3393, 1949, 6262, 6727, 7636, 1155, 353, 8840, 836, 8, 341, 25653, 675, 1669, 330, 51501, 301, 10453, 359, 7246, 11672, 698, 84041, 1669, 330, 7975, 698, 3223, 1669, 330, 51258, 1837, 3244, 4837, 1669, 3056, 1235, 341, 197, 11609,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormalizeEthnicity(t *testing.T) { tt := []struct { name string input string want string }{ { name: "Black", input: "Black/African/Caribbean/Black British - Caribbean", want: ethnicityBlack, }, { name: "White", input: "White - Any other White background", want: ethnicityWh...
explode_data.jsonl/69859
{ "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, 87824, 65390, 11590, 487, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 22427, 914, 198, 197, 50780, 220, 914, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 220, 330, 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 TestCursorAndOrderValidation(t *testing.T) { tt := test.Start(t) defer tt.Finish() test.ResetAuroraDB(t, tt.AuroraDB) q := &history.Q{tt.AuroraSession()} handler := GetClaimableBalancesHandler{} _, err := handler.GetResourcePage(httptest.NewRecorder(), makeRequest( t, map[string]string{ "cursor": "-1...
explode_data.jsonl/57521
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 709 }
[ 2830, 3393, 14543, 3036, 4431, 13799, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 1273, 12101, 1155, 340, 16867, 17853, 991, 18176, 741, 18185, 36660, 32, 324, 6215, 3506, 1155, 11, 17853, 875, 324, 6215, 3506, 340, 18534, 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 TestOrderGetWithTransactions(t *testing.T) { setup() defer teardown() httpmock.RegisterResponder("GET", fmt.Sprintf("https://fooshop.myshopify.com/%s/orders/123456.json", client.pathPrefix), httpmock.NewBytesResponder(200, loadFixture("order_with_transaction.json"))) options := struct { ApiFeatures strin...
explode_data.jsonl/17988
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 282 }
[ 2830, 3393, 4431, 1949, 2354, 48761, 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...
4
func TestSubmitLendingOffer(t *testing.T) { t.Parallel() if !areTestAPIKeysSet() || !canManipulateRealOrders { t.Skip() } if err := f.SubmitLendingOffer(context.Background(), currency.NewCode("bTc"), 0.1, 500); err != nil { t.Error(err) } }
explode_data.jsonl/15179
{ "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, 8890, 43, 2459, 39462, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 743, 753, 546, 2271, 7082, 8850, 1649, 368, 1369, 753, 4814, 92876, 6334, 12768, 24898, 341, 197, 3244, 57776, 741, 197, 532, 743, 1848, 1669, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMsgCancel(t *testing.T) { _, _, addr1 := testdata.KeyTestPubAddr() tests := map[string]struct { src MsgCancel expErr bool }{ "valid msg": { src: MsgCancel{ Holder: addr1.String(), Credits: []*MsgCancel_CancelCredits{ { BatchDenom: "A00-00000000-00000000-000", Amount: ...
explode_data.jsonl/65131
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 948 }
[ 2830, 3393, 6611, 9269, 1155, 353, 8840, 836, 8, 341, 197, 6878, 8358, 10789, 16, 1669, 1273, 691, 9610, 2271, 29162, 13986, 2822, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 41144, 262, 24205, 9269, 198, 197, 48558, 7747, 1807, 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 TestSchema_relayConnectionTypes(t *testing.T) { type args struct { t *gen.Type } tests := []struct { name string args args want string wantErr bool }{ { name: "Todo", args: args{ t: &gen.Type{ Name: "Todo", }, }, want: `"""A connection to a list of items.""" type T...
explode_data.jsonl/12085
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 769 }
[ 2830, 3393, 8632, 1288, 6651, 4526, 4173, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 3244, 353, 4370, 10184, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 5078...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetLeaseNotAquired(t *testing.T) { svc := &mockDynamoDB{tableExist: true, item: map[string]*dynamodb.AttributeValue{}} kclConfig := cfg.NewKinesisClientLibConfig("appName", "test", "us-west-2", "abc"). WithInitialPositionInStream(cfg.LATEST). WithMaxRecords(10). WithMaxLeasesForWorker(1). WithShardSy...
explode_data.jsonl/9838
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 411 }
[ 2830, 3393, 1949, 2304, 519, 2623, 32, 2931, 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, 16463, 564, 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 TestPreAllocatedBuffer_allocateOutOfLimit(t *testing.T) { allocateSz := 16 now := time.Now() expiration := now.Add(1 * time.Minute) data := make([]byte, 129) preAllocated := newPreAllocatedBuffer(data) bufCap := len(data) / allocateSz for i := 0; i < bufCap; i++ { buf, ok := preAllocated.allocate(alloc...
explode_data.jsonl/8638
{ "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, 4703, 25154, 657, 4095, 77078, 31731, 16527, 1155, 353, 8840, 836, 8, 341, 197, 31191, 89837, 1669, 220, 16, 21, 198, 80922, 1669, 882, 13244, 741, 48558, 19629, 1669, 1431, 1904, 7, 16, 353, 882, 75770, 692, 8924, 1669, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRandomSearchMethod(t *testing.T) { testCases := []valueSimulationTestCase{ { name: "test random search method", expectedTrials: []predefinedTrial{ newConstantPredefinedTrial(toOps("500B"), .1), newConstantPredefinedTrial(toOps("500B"), .1), newConstantPredefinedTrial(toOps("500B"), .1), ...
explode_data.jsonl/24097
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 478 }
[ 2830, 3393, 13999, 5890, 3523, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 957, 64554, 16458, 515, 197, 197, 515, 298, 11609, 25, 330, 1944, 4194, 2711, 1714, 756, 298, 42400, 21884, 1127, 25, 3056, 1726, 9711, 81923, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProxyUpgradeErrorResponseTerminates(t *testing.T) { for _, intercept := range []bool{true, false} { for _, code := range []int{400, 500} { t.Run(fmt.Sprintf("intercept=%v,code=%v", intercept, code), func(t *testing.T) { // Set up a backend server backend := http.NewServeMux() backend.Handle("...
explode_data.jsonl/35092
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 909 }
[ 2830, 3393, 16219, 43861, 55901, 21209, 1065, 973, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 28639, 1669, 2088, 3056, 2641, 90, 1866, 11, 895, 92, 341, 197, 2023, 8358, 2038, 1669, 2088, 3056, 396, 90, 19, 15, 15, 11, 220, 20, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStorageNodeConfig(t *testing.T) { mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() setupMockStorageManager(mockCtrl) _, yamlData := generateValidYamlData(t) coreops.SetInstance(coreops.New(fakek8sclient.NewSimpleClientset())) cluster := &corev1.StorageCluster{ ObjectMeta: metav1.ObjectMe...
explode_data.jsonl/55473
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2517 }
[ 2830, 3393, 5793, 1955, 2648, 1155, 353, 8840, 836, 8, 341, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 2822, 84571, 11571, 5793, 2043, 30389, 15001, 692, 197, 6878, 32246, 1043, 1669, 6923, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConnections(t *testing.T) { flushConn, err := OpenConnection("conns-flush", "tcp", "localhost:6379", 1, nil) assert.NoError(t, err) assert.NoError(t, flushConn.stopHeartbeat()) assert.Equal(t, ErrorNotFound, flushConn.stopHeartbeat()) assert.NoError(t, flushConn.flushDb()) connection, err := OpenConnect...
explode_data.jsonl/44661
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 672 }
[ 2830, 3393, 54751, 1155, 353, 8840, 836, 8, 341, 1166, 34604, 9701, 11, 1848, 1669, 5264, 4526, 445, 443, 4412, 12276, 1116, 497, 330, 27161, 497, 330, 8301, 25, 21, 18, 22, 24, 497, 220, 16, 11, 2092, 340, 6948, 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 TestAccKeycloakOpenidClientOptionalScopes_basic(t *testing.T) { realm := "terraform-realm-" + acctest.RandString(10) client := "terraform-client-" + acctest.RandString(10) clientScope := "terraform-client-scope-" + acctest.RandString(10) clientScopes := append(preAssignedOptionalClientScopes, clientScope) r...
explode_data.jsonl/31483
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 368 }
[ 2830, 3393, 14603, 1592, 88751, 5002, 307, 2959, 15309, 3326, 18523, 34729, 1155, 353, 8840, 836, 8, 341, 17200, 7673, 1669, 330, 61385, 5504, 7673, 27651, 488, 1613, 67880, 2013, 437, 703, 7, 16, 15, 340, 25291, 1669, 330, 61385, 30011...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCanGetUser(t *testing.T) { givenThereAreCleanDependencies() givenThereIsAUserInTheRepository(model.User{ID: 0, Name: "Tom", AuthenticationID: "asdf"}, t) whenIGetAUserWithTheID("asdf", 1, t) thenTheFollowingIsReturned(model.User{ID: 1, Name: "Tom", AuthenticationID: "asdf"}, t) }
explode_data.jsonl/23631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 108 }
[ 2830, 3393, 6713, 1949, 1474, 1155, 353, 8840, 836, 8, 341, 3174, 2071, 3862, 11526, 27529, 48303, 741, 3174, 2071, 3862, 3872, 32, 1474, 86093, 4624, 7635, 7344, 90, 915, 25, 220, 15, 11, 3988, 25, 330, 24732, 497, 23537, 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 Test_Problem1108(t *testing.T) { qs := []question1108{ question1108{ para1108{"1.1.1.1"}, ans1108{"1[.]1[.]1[.]1"}, }, question1108{ para1108{"255.100.50.0"}, ans1108{"255[.]100[.]50[.]0"}, }, } fmt.Printf("------------------------Leetcode Problem 1108------------------------\n") for _...
explode_data.jsonl/76519
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 231 }
[ 2830, 3393, 16670, 10121, 16, 16, 15, 23, 1155, 353, 8840, 836, 8, 1476, 18534, 82, 1669, 3056, 7841, 16, 16, 15, 23, 4257, 197, 197, 7841, 16, 16, 15, 23, 515, 298, 197, 14794, 16, 16, 15, 23, 4913, 16, 13, 16, 13, 16, 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...
2
func TestPing(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() HandlePingSuccessfully(t) err := base.Ping(fake.ServiceClient()).ExtractErr() th.CheckNoErr(t, err) }
explode_data.jsonl/40719
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 69883, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 741, 197, 6999, 69883, 35959, 1155, 692, 9859, 1669, 2331, 1069, 287, 74138, 13860, 2959, 6011, 28959, 7747, 741, 70479, 10600, 2753...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEventAggregatorByReasonFunc(t *testing.T) { event1 := makeEvent("end-of-world", "it was fun", makeObjectReference("Pod", "pod1", "other")) event2 := makeEvent("end-of-world", "it was awful", makeObjectReference("Pod", "pod1", "other")) event3 := makeEvent("nevermind", "it was a bug", makeObjectReference("Po...
explode_data.jsonl/59126
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 296 }
[ 2830, 3393, 1556, 9042, 58131, 1359, 25139, 9626, 1155, 353, 8840, 836, 8, 341, 28302, 16, 1669, 1281, 1556, 445, 408, 8668, 30084, 497, 330, 275, 572, 2464, 497, 1281, 1190, 8856, 445, 23527, 497, 330, 39073, 16, 497, 330, 1575, 5455...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestColorMTranslate(t *testing.T) { expected := [4][5]float64{ {1, 0, 0, 0, 0.5}, {0, 1, 0, 0, 1.5}, {0, 0, 1, 0, 2.5}, {0, 0, 0, 1, 3.5}, } m := ebiten.ColorM{} m.Translate(0.5, 1.5, 2.5, 3.5) for i := 0; i < 4; i++ { for j := 0; j < 5; j++ { got := m.Element(i, j) want := expected[i][j] i...
explode_data.jsonl/48449
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 242 }
[ 2830, 3393, 1636, 44, 27473, 1155, 353, 8840, 836, 8, 341, 42400, 1669, 508, 19, 1457, 20, 60, 3649, 21, 19, 515, 197, 197, 90, 16, 11, 220, 15, 11, 220, 15, 11, 220, 15, 11, 220, 15, 13, 20, 1583, 197, 197, 90, 15, 11, 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...
4
func TestWatch(t *testing.T) { var wg sync.WaitGroup s, err := NewService("sfu", "dc1", []string{etcdAddr}) assert.NoError(t, err) s.Watch("sfu", func(state State, id string, node *Node) { if state == NodeUp { assert.Equal(t, s.node, *node) wg.Done() } else if state == NodeDown { assert.Equal(t, s.no...
explode_data.jsonl/11097
{ "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, 14247, 1155, 353, 8840, 836, 8, 341, 2405, 63581, 12811, 28384, 2808, 271, 1903, 11, 1848, 1669, 1532, 1860, 445, 17246, 84, 497, 330, 7628, 16, 497, 3056, 917, 90, 295, 4385, 13986, 3518, 6948, 35699, 1155, 11, 1848, 692,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestIgnoreUnknownSequences(t *testing.T) { inner := bytes.NewBufferString("") w := NewModeAnsiColorWriter(inner, OutputNonColorEscSeq) inputText := "\x1b[=decpath mode" expectedTail := inputText fmt.Fprintf(w, inputText) actualTail := inner.String() inner.Reset() if actualTail != expectedTail { ...
explode_data.jsonl/3543
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 475 }
[ 2830, 3393, 12497, 13790, 1514, 43945, 1155, 353, 8840, 836, 8, 972, 197, 4382, 1669, 5820, 7121, 4095, 703, 445, 6060, 6692, 1669, 1532, 3636, 2082, 6321, 1636, 6492, 68603, 11, 9258, 8121, 1636, 36121, 20183, 7229, 22427, 1178, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestYouonNSpecial(t *testing.T) { const want = "naninunenonwani" for _, v := range [2]string{"ぬぁぬぃぬぅぬぇぬぉぬゎねぃ", "ヌァヌィヌゥヌェヌォヌヮネィ"} { got, err := KanaToRomaji(v) assert.Equal(t, want, got) assert.Nil(t, err) } }
explode_data.jsonl/11327
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 141 }
[ 2830, 3393, 2610, 263, 2448, 2964, 1155, 353, 8840, 836, 8, 341, 4777, 1366, 284, 330, 18759, 258, 359, 268, 263, 86, 5559, 1837, 2023, 8358, 348, 1669, 2088, 508, 17, 30953, 4913, 133300, 126025, 133300, 144205, 133300, 144260, 133300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMotorDriverBackward(t *testing.T) { d := initTestMotorDriver() d.Backward(100) gobottest.Assert(t, d.CurrentSpeed, uint8(100)) gobottest.Assert(t, d.CurrentDirection, "backward") }
explode_data.jsonl/23138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 33577, 11349, 3707, 1606, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 2930, 2271, 33577, 11349, 741, 2698, 8864, 1606, 7, 16, 15, 15, 340, 3174, 674, 1716, 477, 11711, 1155, 11, 294, 11517, 11056, 11, 2622, 23, 7, 16, 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
func TestEnableJob_DbFailure(t *testing.T) { store, manager, job := initWithJob(t) defer store.Close() store.DB().Close() err := manager.EnableJob(job.UUID, false) assert.Equal(t, codes.Internal, err.(*util.UserError).ExternalStatusCode()) assert.Contains(t, err.Error(), "database is closed") }
explode_data.jsonl/28384
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 106 }
[ 2830, 3393, 11084, 12245, 60968, 17507, 1155, 353, 8840, 836, 8, 341, 57279, 11, 6645, 11, 2618, 1669, 13864, 12245, 1155, 340, 16867, 3553, 10421, 741, 57279, 22537, 1005, 7925, 741, 9859, 1669, 6645, 32287, 12245, 28329, 39636, 11, 895,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFileWatcher_ParsePath(t *testing.T) { testcases := []struct { input, oldpath, currentpath string }{ {"_testdata/project/assets/app.js", "", "assets/app.js"}, {"_testdata/project/assets/app.js -> _testdata/project/assets/app.js.liquid", "assets/app.js", "assets/app.js.liquid"}, {"not/another/path/asse...
explode_data.jsonl/81020
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 1703, 47248, 77337, 1820, 1155, 353, 8840, 836, 8, 341, 18185, 23910, 1669, 3056, 1235, 341, 197, 22427, 11, 2310, 2343, 11, 1482, 2343, 914, 198, 197, 59403, 197, 197, 4913, 62, 92425, 40118, 21442, 10640, 2857, 497, 7342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSTMAbort(t *testing.T) { clus := NewClusterV3(t, &ClusterConfig{Size: 1}) defer clus.Terminate(t) etcdc := clus.RandClient() ctx, cancel := context.WithCancel(context.TODO()) applyf := func(stm concurrency.STM) error { stm.Put("foo", "baz") cancel() stm.Put("foo", "bap") return nil } iso := co...
explode_data.jsonl/51051
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 305 }
[ 2830, 3393, 784, 4835, 65, 371, 1155, 353, 8840, 836, 8, 341, 197, 4163, 1669, 1532, 28678, 53, 18, 1155, 11, 609, 28678, 2648, 90, 1695, 25, 220, 16, 3518, 16867, 1185, 355, 836, 261, 34016, 1155, 692, 197, 295, 72026, 1669, 1185, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOptionalValue_TypeAndValue(t *testing.T) { tests := []struct { name string value *OptionalValue wantt ValueType wantv *Value }{ { name: "ok", value: &OptionalValue{ov: *value.OptionalFrom(value.TypeString.ValueFrom("foobar", types))}, wantt: ValueTypeString, wantv: ValueTypeString.Val...
explode_data.jsonl/8891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 374 }
[ 2830, 3393, 15309, 1130, 13729, 3036, 1130, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 16309, 353, 15309, 1130, 198, 197, 50780, 83, 55545, 198, 197, 50780, 85, 353, 1130, 198, 197, 594...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParse_SuccessfulPaymentNotification(t *testing.T) { result := MustParseFile("testdata/successful_payment_notification.xml") if n, ok := result.(*webhooks.PaymentNotification); !ok { t.Fatalf("unexpected type: %T, result", n) } else if diff := cmp.Diff(n, &webhooks.PaymentNotification{ Type: webhooks.Suc...
explode_data.jsonl/76114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 14463, 87161, 1262, 20188, 11196, 1155, 353, 8840, 836, 8, 341, 9559, 1669, 15465, 14463, 1703, 445, 92425, 2687, 2557, 1262, 26696, 34296, 9028, 1138, 743, 308, 11, 5394, 1669, 1102, 41399, 2911, 38560, 70123, 11196, 1215, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartAndStopMetricsServer(t *testing.T) { server := NewMetricsServer("0.0.0.0", 9876, tests.Logger()) go func() { time.Sleep(1 * time.Second) err := server.Stop(context.Background()) require.NoError(t, err) }() server.Start() }
explode_data.jsonl/81610
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 3479, 3036, 10674, 27328, 5475, 1155, 353, 8840, 836, 8, 341, 41057, 1669, 1532, 27328, 5475, 445, 15, 13, 15, 13, 15, 13, 15, 497, 220, 24, 23, 22, 21, 11, 7032, 12750, 12367, 30680, 2915, 368, 341, 197, 21957, 31586, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRemoveBrackets(t *testing.T) { tests := []struct { desc string in string expect string expectStat bool }{ { desc: "has-brackets", in: "[yo]", expect: "yo", expectStat: true, }, { desc: "one-bracket", in: "[yo", expect: "...
explode_data.jsonl/70575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 521 }
[ 2830, 3393, 13021, 6828, 18382, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 41653, 981, 914, 198, 197, 17430, 260, 914, 198, 197, 24952, 257, 914, 198, 197, 24952, 15878, 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...
3
func TestMatRegion(t *testing.T) { mat := NewMatWithSize(100, 100, MatTypeCV8U) region := mat.Region(image.Rect(20, 25, 80, 75)) if region.Rows() != 50 { t.Errorf("Mat region incorrect row count: %v\n", region.Rows()) } if region.Cols() != 60 { t.Errorf("Mat region incorrect col count: %v\n", region.Cols()) ...
explode_data.jsonl/81694
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 129 }
[ 2830, 3393, 11575, 14091, 1155, 353, 8840, 836, 8, 341, 59874, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 15, 11, 220, 16, 15, 15, 11, 6867, 929, 19589, 23, 52, 340, 197, 3943, 1669, 5517, 65642, 10075, 32153, 7, 17, 15, 11, 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...
3
func TestMeasurement_MinLatency(t *testing.T) { m := NewMeasurementWithTestData() got := m.MinLatency() want := 21.50 if got != want { t.Fatalf("got %.2f, want %.2f", got, want) } }
explode_data.jsonl/2467
{ "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, 76548, 62122, 23140, 2251, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 76548, 2354, 83920, 2822, 3174, 354, 1669, 296, 17070, 23140, 2251, 741, 50780, 1669, 220, 17, 16, 13, 20, 15, 271, 743, 2684, 961, 1366, 341, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestGetHandler(t *testing.T) { // Reset Register HandlerRegister = make(map[string]func() handlers.Handler) _, err := GetHandler("printer") if !errors.Is(err, ErrHandlerNotRegistered) { t.Fatal(err) } err = Register("printer", NewTestHandler) if err != nil { t.Fatalf("Error should have been an HandlerA...
explode_data.jsonl/75192
{ "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, 1949, 3050, 1155, 353, 8840, 836, 8, 341, 197, 322, 16932, 8451, 198, 197, 3050, 8690, 284, 1281, 9147, 14032, 60, 2830, 368, 24083, 31010, 340, 197, 6878, 1848, 1669, 2126, 3050, 445, 62956, 1138, 743, 753, 7650, 4506, 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...
2
func TestBestChainStateSerialization(t *testing.T) { t.Parallel() hash1 := chainhash.HashH([]byte{0x00}) hash2 := chainhash.HashH([]byte{0x01}) hash3 := chainhash.HashH([]byte{0x02}) hash4 := chainhash.HashH([]byte{0x03}) hash5 := chainhash.HashH([]byte{0x04}) tests := []struct { name string state ...
explode_data.jsonl/18319
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 928 }
[ 2830, 3393, 14470, 18837, 1397, 35865, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 50333, 16, 1669, 8781, 8296, 15103, 39, 10556, 3782, 90, 15, 87, 15, 15, 3518, 50333, 17, 1669, 8781, 8296, 15103, 39, 10556, 3782, 90, 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...
5
func TestGRPCReplicationClient_Recv_streamNotInitialized(t *testing.T) { // --- given --- t.Parallel() client := replication.NewGRPCReplicationClient(&mock.ReplicationClient{}) // _ = client.Connect(context.Background()) // Not Connected yet // --- when --- _, err := client.Recv() // --- then --- if err == ni...
explode_data.jsonl/7161
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 126 }
[ 2830, 3393, 8626, 4872, 18327, 1693, 2959, 62, 63483, 12673, 2623, 22495, 1155, 353, 8840, 836, 8, 341, 197, 322, 12448, 2661, 53923, 3244, 41288, 7957, 741, 25291, 1669, 47791, 7121, 8626, 4872, 18327, 1693, 2959, 2099, 16712, 2817, 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 TestServer_Issue1557(t *testing.T) { log.SetOutput(ioutil.Discard) defer log.SetOutput(os.Stdout) gen, err := testAppGenerator(t, "../fixtures/enhancements/1557/swagger.yml", "generate consumer/producer handlers that are not whitelisted") if assert.NoError(t, err) { app, err := gen.makeCodegenApp() if asse...
explode_data.jsonl/3791
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 5475, 7959, 83890, 16, 20, 20, 22, 1155, 353, 8840, 836, 8, 341, 6725, 4202, 5097, 1956, 30158, 909, 47560, 340, 16867, 1487, 4202, 5097, 9638, 83225, 340, 82281, 11, 1848, 1669, 1273, 2164, 12561, 1155, 11, 7005, 45247, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFirestoreWrite(t *testing.T) { var streamId string = "streamId-315624902" var streamToken []byte = []byte("122") var expectedResponse = &firestorepb.WriteResponse{ StreamId: streamId, StreamToken: streamToken, } mockFirestore.err = nil mockFirestore.reqs = nil mockFirestore.resps = append(mockF...
explode_data.jsonl/27390
{ "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, 48513, 7985, 1155, 353, 8840, 836, 8, 341, 2405, 4269, 764, 914, 284, 330, 4027, 764, 12, 18, 16, 20, 21, 17, 19, 24, 15, 17, 698, 2405, 4269, 3323, 3056, 3782, 284, 3056, 3782, 445, 16, 17, 17, 1138, 2405, 3601, 258...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArray_PushAndPop(t *testing.T) { gtest.C(t, func(t *gtest.T) { expect := []interface{}{0, 1, 2, 3} array := garray.NewArrayFrom(expect) t.Assert(array.Slice(), expect) v, ok := array.PopLeft() t.Assert(v, 0) t.Assert(ok, true) v, ok = array.PopRight() t.Assert(v, 3) t.Assert(ok, true) v...
explode_data.jsonl/13891
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 295 }
[ 2830, 3393, 1857, 1088, 1116, 3036, 11598, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 24952, 1669, 3056, 4970, 6257, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18, 532, 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 TestWakuRelay(t *testing.T) { testTopic := "/waku/2/go/relay/test" port, err := tests.FindFreePort(t, "", 5) require.NoError(t, err) host, err := tests.MakeHost(context.Background(), port, rand.Reader) require.NoError(t, err) relay, err := NewWakuRelay(context.Background(), host, nil, 0, utils.Logger()) ...
explode_data.jsonl/70124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 379 }
[ 2830, 3393, 54, 23557, 6740, 352, 1155, 353, 8840, 836, 8, 341, 18185, 26406, 1669, 3521, 86, 23557, 14, 17, 25525, 14, 90891, 12697, 1837, 52257, 11, 1848, 1669, 7032, 9998, 10940, 7084, 1155, 11, 7342, 220, 20, 340, 17957, 35699, 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 TestUsesCustomActionsShortPath(t *testing.T) { workflow, err := parseString(`action "a" { uses="./" }`) assertParseSuccess(t, err, 1, 0, workflow) action := workflow.GetAction("a") require.NotNil(t, action) require.Equal(t, &model.UsesPath{}, action.Uses) }
explode_data.jsonl/55682
{ "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, 68965, 10268, 12948, 12472, 1820, 1155, 353, 8840, 836, 8, 341, 197, 56249, 11, 1848, 1669, 4715, 703, 5809, 1311, 330, 64, 1, 314, 5711, 26420, 1, 335, 24183, 6948, 14463, 7188, 1155, 11, 1848, 11, 220, 16, 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
func TestColumnInfoModified(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() testKit := testkit.NewTestKit(t, store) testKit.MustExec("use test") testKit.MustExec("drop table if exists tab0") testKit.MustExec("CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)") testKit.MustExec...
explode_data.jsonl/65459
{ "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, 76970, 19148, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 18185, 7695, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 18185, 7695, 50463, 10216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNextSync(t *testing.T) { clock := func() time.Time { return time.Date(2020, 01, 01, 01, 01, 01, 01, time.UTC) } tests := []struct { name string h campaigns.ChangesetSyncData want time.Time }{ { name: "No time passed", h: campaigns.ChangesetSyncData{ UpdatedAt: clock(), Exter...
explode_data.jsonl/4811
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 827 }
[ 2830, 3393, 5847, 12154, 1155, 353, 8840, 836, 8, 341, 84165, 1669, 2915, 368, 882, 16299, 314, 470, 882, 8518, 7, 17, 15, 17, 15, 11, 220, 15, 16, 11, 220, 15, 16, 11, 220, 15, 16, 11, 220, 15, 16, 11, 220, 15, 16, 11, 220,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInfoAPI(t *testing.T) { node := nodeWithMemoryEngine() ruleConfig := rule.DefaultConfig ruleContainer := rule.NewContainer(ruleConfig) api := NewExecutor(node, ruleContainer, "test") resp := api.Info(context.Background(), &InfoRequest{}) require.Nil(t, resp.Error) }
explode_data.jsonl/48468
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 91 }
[ 2830, 3393, 1731, 7082, 1155, 353, 8840, 836, 8, 341, 20831, 1669, 2436, 2354, 10642, 4571, 741, 7000, 1111, 2648, 1669, 5912, 13275, 2648, 198, 7000, 1111, 4502, 1669, 5912, 7121, 4502, 34944, 2648, 692, 54299, 1669, 1532, 25255, 6958, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBroker(t *testing.T) { m := memory.NewRegistry() b := NewBroker(broker.Registry(m)) if err := b.Init(); err != nil { t.Fatalf("Unexpected init error: %v", err) } if err := b.Connect(); err != nil { t.Fatalf("Unexpected connect error: %v", err) } msg := &broker.Message{ Header: map[string]string...
explode_data.jsonl/70795
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 390 }
[ 2830, 3393, 65545, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 4938, 7121, 15603, 741, 2233, 1669, 1532, 65545, 1883, 45985, 89142, 1255, 4390, 743, 1848, 1669, 293, 26849, 2129, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 29430, 2930, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStructWithPointer(t *testing.T) { var q = 5 p := &q b := &person{"caibirdme", 23, 1, p} c := &b mapB, err := Map(c, "") ass := assert.New(t) ass.NoError(err) ass.Equal("caibirdme", mapB["Name"]) ass.Equal(23, mapB["Age"]) }
explode_data.jsonl/18647
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 117 }
[ 2830, 3393, 9422, 2354, 9084, 1155, 353, 8840, 836, 8, 341, 2405, 2804, 284, 220, 20, 198, 3223, 1669, 609, 80, 198, 2233, 1669, 609, 8987, 4913, 924, 579, 2603, 2660, 497, 220, 17, 18, 11, 220, 16, 11, 281, 532, 1444, 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 TestNewPollRequest(t *testing.T) { assert := assert.New(t) require := require.New(t) tests := []struct { ChannelID string Token string Text string Message string Emojis []string ShouldError bool }{ {model.NewId(), model.NewId(), "`description` :emoji1:", "description", []s...
explode_data.jsonl/71234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1051 }
[ 2830, 3393, 3564, 49207, 1900, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 17957, 1669, 1373, 7121, 1155, 340, 78216, 1669, 3056, 1235, 341, 197, 197, 9629, 915, 256, 914, 198, 197, 33299, 981, 914, 198, 197, 4963...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateReplicationControllerStatusUpdate(t *testing.T) { validSelector := map[string]string{"a": "b"} validPodTemplate := core.PodTemplate{ Template: core.PodTemplateSpec{ ObjectMeta: metav1.ObjectMeta{ Labels: validSelector, }, Spec: core.PodSpec{ RestartPolicy: core.RestartPolicyAlways,...
explode_data.jsonl/1036
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 987 }
[ 2830, 3393, 17926, 18327, 1693, 2051, 2522, 4289, 1155, 353, 8840, 836, 8, 341, 56322, 5877, 1669, 2415, 14032, 30953, 4913, 64, 788, 330, 65, 16707, 56322, 23527, 7275, 1669, 6200, 88823, 7275, 515, 197, 197, 7275, 25, 6200, 88823, 727...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCloseQuietly(t *testing.T) { // No Error c := &mockCloseable{} c.On("Close").Return(nil).Once() assert.Nil(t, CloseQuietly(c)) c.AssertExpectations(t) // Return Error c = &mockCloseable{} c.On("Close").Return(errors.New("test")).Once() assert.EqualError(t, CloseQuietly(c), "test")...
explode_data.jsonl/35133
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 230 }
[ 2830, 3393, 7925, 94984, 398, 1155, 353, 8840, 836, 8, 972, 197, 322, 2308, 4600, 319, 1444, 1669, 609, 16712, 7925, 480, 90, 2570, 1444, 8071, 445, 7925, 1827, 5598, 27907, 568, 12522, 18005, 6948, 59678, 1155, 11, 13032, 94984, 398, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRLSKey(t *testing.T) { bm, err := MakeBuilderMap(&rlspb.RouteLookupConfig{ GrpcKeybuilders: []*rlspb.GrpcKeyBuilder{goodKeyBuilder1, goodKeyBuilder2}, }) if err != nil { t.Fatalf("MakeBuilderMap() failed: %v", err) } tests := []struct { desc string path string md metadata.MD wantKM Ke...
explode_data.jsonl/81171
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1500 }
[ 2830, 3393, 4728, 50, 1592, 1155, 353, 8840, 836, 8, 341, 2233, 76, 11, 1848, 1669, 7405, 3297, 2227, 2099, 2381, 43467, 58004, 34247, 2648, 515, 197, 197, 6464, 3992, 1592, 98507, 25, 29838, 2381, 43467, 1224, 29414, 1592, 3297, 90, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestEncodeToJson(t *testing.T) { loginUser := LoginUser{ ID: "123", UserName: "username", IPAddress: "192.1.1.222", } result, err := EncodeToJson(loginUser) if err != nil { t.Error(err) } t.Log(result) }
explode_data.jsonl/9403
{ "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, 32535, 78967, 1155, 353, 8840, 836, 8, 341, 75755, 1474, 1669, 8779, 1474, 515, 197, 29580, 25, 286, 330, 16, 17, 18, 756, 197, 197, 18856, 25, 220, 330, 5113, 756, 197, 197, 87976, 25, 330, 16, 24, 17, 13, 16, 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...
2
func TestInvalidBits(t *testing.T) { t.Run("read", func(t *testing.T) { _, err := NewCursor(make([]byte, 10)).ReadStringBits(7) require.Error(t, err) }) t.Run("write", func(t *testing.T) { err := NewCursor(nil).WriteStringBits("", 7) require.Error(t, err) }) }
explode_data.jsonl/80971
{ "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, 7928, 19920, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 878, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 197, 6878, 1848, 1669, 1532, 14543, 36944, 10556, 3782, 11, 220, 16, 15, 4579, 4418, 703, 19920, 7, 22, 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 TestRecursionHardLink(t *testing.T) { var ( err error dstPath = "/tmp/link-test-dst" ) testDir := FakeDir{ path: "/tmp/link-test", dirs: []FakeDir{ { path: "subtest", files: []FakeFile{ { name: "a", content: "a", }, { name: "b", content: "b", ...
explode_data.jsonl/64624
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 550 }
[ 2830, 3393, 3820, 34280, 26907, 3939, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 9859, 257, 1465, 198, 197, 52051, 1820, 284, 3521, 5173, 55431, 16839, 1737, 267, 698, 197, 692, 18185, 6184, 1669, 36965, 6184, 515, 197, 26781, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestISBN(t *testing.T) { a := assert.New(t) a.True(ISBN("1-919876-03-0")) a.True(ISBN("0-471-00084-1")) a.True(ISBN("978-7-301-04815-3")) a.True(ISBN("978-986-181-728-6")) }
explode_data.jsonl/23273
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 100 }
[ 2830, 3393, 45185, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 2060, 7121, 1155, 692, 11323, 32443, 37096, 15594, 445, 16, 12, 24, 16, 24, 23, 22, 21, 12, 15, 18, 12, 15, 5455, 11323, 32443, 37096, 15594, 445, 15, 12, 19, 22, 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 TestWebsocketSubscriber_Test(t *testing.T) { type fields struct { Endpoint string } tests := []struct { name string fields fields wantErr bool }{ { "succeeds connecting to valid endpoint", fields{Endpoint: wsMockUrl.String()}, false, }, { "fails connecting to invalid endpoint", ...
explode_data.jsonl/60474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 5981, 9556, 40236, 32541, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 27380, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 55276, 220, 5043, 198, 197, 50780, 7747, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSeekFailure(t *testing.T) { _, err := syscall.Seek(-1, 0, io.SeekStart) if err == nil { t.Fatalf("Seek(-1, 0, 0) did not fail") } str := err.Error() // used to crash on Linux t.Logf("Seek: %v", str) if str == "" { t.Fatalf("Seek(-1, 0, 0) return error with empty message") } }
explode_data.jsonl/81634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 39350, 17507, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 49345, 76465, 4080, 16, 11, 220, 15, 11, 6399, 76465, 3479, 340, 743, 1848, 621, 2092, 341, 197, 3244, 30762, 445, 39350, 4080, 16, 11, 220, 15, 11, 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...
3
func TestStoreSetRangesMaxBytes(t *testing.T) { defer leaktest.AfterTest(t)() stopper := stop.NewStopper() defer stopper.Stop(context.Background()) cfg := TestStoreConfig(nil) cfg.TestingKnobs.DisableMergeQueue = true store := createTestStoreWithConfig(t, stopper, testStoreOpts{ // This test was written befo...
explode_data.jsonl/99
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 785 }
[ 2830, 3393, 6093, 1649, 74902, 5974, 7078, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 62644, 712, 1669, 2936, 7121, 10674, 712, 741, 16867, 2936, 712, 30213, 5378, 19047, 2398, 50286, 1669, 3393, 6093, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestURLRewrite(t *testing.T) { tests := []testcase{ { Input: "The DNS name for the given subnet/AZ per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html).", // nolint: lll Expected: "The DNS name for the given subnet/AZ per [documented convention](http...
explode_data.jsonl/33532
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 705 }
[ 2830, 3393, 3144, 58465, 1247, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1944, 5638, 515, 197, 197, 515, 298, 66588, 25, 262, 330, 785, 27598, 829, 369, 279, 2661, 51457, 10360, 57, 817, 508, 6062, 291, 21277, 9533, 1254, 1110,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRequest_SetID(t *testing.T) { testCases := []struct { name string success bool request *Request expected string }{ { name: "Set string identifier", success: true, request: NewRequest().SetID("fake_id"), expected: `{"jsonrpc": "2.0", "method": "", "id": "fake_id"}`, }, { ...
explode_data.jsonl/66298
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 397 }
[ 2830, 3393, 1900, 14812, 915, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 30553, 220, 1807, 198, 197, 23555, 220, 353, 1900, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTriWeekly(t *testing.T) { doTestNWeekly(t, "[] bla (every 3rd thursday)", moment.RecurTriWeekly, 3, tu.DtUtc("08.11.2019"), tu.DtUtc("07.11.2019")) }
explode_data.jsonl/67520
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 72 }
[ 2830, 3393, 21884, 80516, 1155, 353, 8840, 836, 8, 341, 19935, 2271, 45, 80516, 1155, 11, 330, 1294, 84541, 320, 29015, 220, 18, 6498, 270, 7181, 11583, 4445, 2817, 2352, 21884, 80516, 11, 220, 18, 11, 9765, 909, 83, 97768, 445, 15, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestReconcileProvisioner_reconcileSfClusterSecret(t *testing.T) { g := gomega.NewGomegaWithT(t) ctrl := gomock.NewController(t) defer ctrl.Finish() // Setup the Manager and Controller. Wrap the Controller Reconcile function so it writes each request to a // channel when it is finished. mgr, err := manager....
explode_data.jsonl/58273
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1088 }
[ 2830, 3393, 693, 40446, 457, 1336, 13013, 261, 1288, 40446, 457, 50, 69, 28678, 19773, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPeerAPIBase(t *testing.T) { tests := []struct { name string nm *netmap.NetworkMap peer *tailcfg.Node want string }{ { name: "nil_netmap", peer: new(tailcfg.Node), want: "", }, { name: "nil_peer", nm: new(netmap.NetworkMap), want: "", }, { name: "self_only_4_them_bot...
explode_data.jsonl/1960
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1573 }
[ 2830, 3393, 30888, 7082, 3978, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 9038, 76, 256, 353, 4711, 2186, 30149, 2227, 198, 197, 197, 16537, 353, 14586, 14072, 21714, 198, 197, 50780, 914, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGetTenant(t *testing.T) { th.SetupHTTP() defer th.TeardownHTTP() mockGetTenantResponse(t) tenant, err := tenants.Get(client.ServiceClient(), "5c62ef576dc7444cbb73b1fe84b97648").Extract() th.AssertNoErr(t, err) expected := &tenants.Tenant{ Name: "new_tenant", ID: "5c62ef576dc7444cbb...
explode_data.jsonl/82170
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 201 }
[ 2830, 3393, 1949, 71252, 1155, 353, 8840, 836, 8, 341, 70479, 39820, 9230, 741, 16867, 270, 94849, 37496, 9230, 2822, 77333, 1949, 71252, 2582, 1155, 692, 197, 43919, 11, 1848, 1669, 39916, 2234, 12805, 13860, 2959, 1507, 330, 20, 66, 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 TestNodeIDs(t *testing.T) { t.Parallel() ctx, cancel := testAllocate(t, "table.html") defer cancel() tests := []struct { sel string by QueryOption n int }{ {`/html/body/table/tbody[1]/tr[2]/td`, BySearch, 3}, {`body > table > tbody:nth-child(2) > tr:nth-child(2) > td:not(:last-child)`, ByQueryA...
explode_data.jsonl/59465
{ "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, 1955, 30466, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 11, 9121, 1669, 1273, 75380, 1155, 11, 330, 2005, 2564, 1138, 16867, 9121, 2822, 78216, 1669, 3056, 1235, 341, 197, 1903, 301, 914, 198, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGetHandlers(t *testing.T) { dockerClient := prep(t) handlers, err := getHandlersFn(dockerClient, nil) if err != nil { t.Fatal(err) } // RancherClient is not nil, so SendToRancherHandler should be configured handlers, err = getHandlersFn(dockerClient, &rclient.RancherClient{}) if err != nil { t.Fatal...
explode_data.jsonl/50896
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 174 }
[ 2830, 3393, 1949, 39949, 1155, 353, 8840, 836, 8, 341, 2698, 13659, 2959, 1669, 21327, 1155, 340, 9598, 437, 9254, 11, 1848, 1669, 633, 39949, 24911, 1500, 13659, 2959, 11, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOLMAutomaticUpgrade(t *testing.T) { prevIIB := os.Getenv("CAMEL_K_PREV_IIB") newIIB := os.Getenv("CAMEL_K_NEW_IIB") kamel := os.Getenv("RELEASED_KAMEL_BIN") if prevIIB == "" || newIIB == "" { t.Skip("OLM Upgrade test requires the CAMEL_K_PREV_IIB and CAMEL_K_NEW_IIB environment variables") } WithNewT...
explode_data.jsonl/53651
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1944 }
[ 2830, 3393, 1930, 4835, 332, 13487, 43861, 1155, 353, 8840, 836, 8, 341, 50728, 40, 3256, 1669, 2643, 64883, 445, 34, 2729, 43, 10102, 17427, 53, 7959, 3256, 1138, 8638, 40, 3256, 1669, 2643, 64883, 445, 34, 2729, 43, 10102, 22015, 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...
1
func TestEntryAddTimedMetricTooLate(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() timedAggregationBufferPastFn := func( resolution time.Duration, ) time.Duration { return resolution + time.Second } e, _, now := testEntry(ctrl, testEntryOptions{ options: testOptions(ctrl).SetVerboseErr...
explode_data.jsonl/24234
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 961 }
[ 2830, 3393, 5874, 2212, 20217, 291, 54310, 31246, 61457, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 3244, 75485, 9042, 34442, 4095, 50113, 24911, 1669, 2915, 1006, 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 TestCommand(t *testing.T) { param := []interface{}{uint32(1), float32(3.2), []byte{'1', '2'}} params, err := tlv.MakeTLVs(param) if err != nil { t.Fatal(err) } payloadHead := CommandEventHead{ Flag: 0, Timestamp: uint64(time.Now().Unix()) * 1000, SubDeviceid: uint16(2), No: uint16...
explode_data.jsonl/8936
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 357 }
[ 2830, 3393, 4062, 1155, 353, 8840, 836, 8, 341, 36037, 1669, 3056, 4970, 6257, 90, 2496, 18, 17, 7, 16, 701, 2224, 18, 17, 7, 18, 13, 17, 701, 3056, 3782, 13608, 16, 516, 364, 17, 74491, 25856, 11, 1848, 1669, 259, 21827, 50133, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApplyPodAffinityLabelsDoesSucceed(t *testing.T) { affinityTrait, environment, deployment := createNominalAffinityTest() affinityTrait.PodAffinity = util.BoolP(true) affinityTrait.PodAffinityLabels = []string{"!criteria"} err := affinityTrait.Apply(environment) assert.Nil(t, err) assert.NotNil(t, deploy...
explode_data.jsonl/10356
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 411 }
[ 2830, 3393, 28497, 23527, 25841, 13489, 23674, 21468, 50, 29264, 1155, 353, 8840, 836, 8, 341, 197, 2649, 13489, 49257, 11, 4573, 11, 23172, 1669, 1855, 36312, 977, 25841, 13489, 2271, 741, 197, 2649, 13489, 49257, 88823, 25841, 13489, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSetConfigNameClearsFileCache(t *testing.T) { SetConfigFile("/tmp/config.yaml") SetConfigName("default") f, err := v.getConfigFile() if err == nil { t.Fatalf("config file cache should have been cleared") } assert.Empty(t, f) }
explode_data.jsonl/5590
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 89 }
[ 2830, 3393, 1649, 2648, 675, 14008, 82, 1703, 8233, 1155, 353, 8840, 836, 8, 341, 22212, 2648, 1703, 4283, 5173, 14730, 33406, 1138, 22212, 2648, 675, 445, 2258, 1138, 1166, 11, 1848, 1669, 348, 59758, 1703, 741, 743, 1848, 621, 2092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDifferentChecksGroupedSeparately(t *testing.T) { testCases := []struct { desc string fileCheck1 *ipb.FileCheck fileCheck2 *ipb.FileCheck }{ { desc: "Same check types, different files to check", fileCheck1: &ipb.FileCheck{ FilesToCheck: []*ipb.FileSet{testconfigcreator.SingleFileWithPa...
explode_data.jsonl/24461
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1050 }
[ 2830, 3393, 69123, 49820, 2808, 291, 14492, 2652, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 41653, 981, 914, 198, 197, 17661, 3973, 16, 353, 573, 65, 8576, 3973, 198, 197, 17661, 3973, 17, 353, 573, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPaginatedVotesQuery(t *testing.T) { ctx, _, keeper, _, _ := createTestInput(t, false, 1000) proposal := types.Proposal{ ProposalID: 100, Status: types.StatusVotingPeriod, } keeper.SetProposal(ctx, proposal) votes := make([]types.Vote, 20) rand := rand.New(rand.NewSource(time.Now().UnixNano())) ...
explode_data.jsonl/20460
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 733 }
[ 2830, 3393, 47712, 15479, 75535, 2859, 1155, 353, 8840, 836, 8, 341, 20985, 11, 8358, 53416, 11, 8358, 716, 1669, 1855, 2271, 2505, 1155, 11, 895, 11, 220, 16, 15, 15, 15, 692, 197, 73874, 1669, 4494, 42483, 32556, 515, 197, 197, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrivateActivityNoHeatmapVisibleForOtherUser(t *testing.T) { defer prepareTestEnv(t)() testPrivateActivityDoSomethingForActionEntries(t) session := loginUser(t, privateActivityTestOtherUser) visible := testPrivateActivityHelperHasVisibleProfileHeatmapFromSession(t, session) assert.True(t, visible, "user ...
explode_data.jsonl/51656
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 16787, 4052, 2753, 61306, 2186, 5715, 2461, 11409, 1474, 1155, 353, 8840, 836, 8, 341, 16867, 10549, 2271, 14359, 1155, 8, 741, 18185, 16787, 4052, 5404, 23087, 2461, 2512, 24533, 1155, 692, 25054, 1669, 87169, 1155, 11, 869, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAgent_RegisterCheck_Scripts(t *testing.T) { t.Parallel() a := NewTestAgent(t.Name(), ` enable_script_checks = true `) defer a.Shutdown() tests := []struct { name string check map[string]interface{} }{ { "== Consul 1.0.0", map[string]interface{}{ "Name": "test", "Interval": ...
explode_data.jsonl/33611
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 965 }
[ 2830, 3393, 16810, 73124, 3973, 1098, 24227, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 11323, 1669, 1532, 2271, 16810, 1155, 2967, 1507, 22074, 197, 197, 12552, 14660, 75797, 284, 830, 198, 24183, 16867, 264, 10849, 18452, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetInviteWitnessAuthParameters(t *testing.T) { t.Run("Valid env value -> error", func(t *testing.T) { restoreEnv := setEnv(t, inviteWitnessAuthPolicyEnvKey, string(acceptListPolicy)) defer restoreEnv() cmd := getTestCmd(t) policy, err := getInviteWitnessAuthPolicy(cmd) require.NoError(t, err) re...
explode_data.jsonl/31138
{ "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, 1949, 93540, 98413, 5087, 9706, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 4088, 6105, 897, 1464, 1465, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 96027, 14359, 1669, 738, 14359, 1155, 11, 21399, 98413, 5087, 13825, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProcessorsForMetricSet_UnknownModule(t *testing.T) { r := NewRegister() source := NewLightModulesSource("testdata/lightmodules") procs, err := source.ProcessorsForMetricSet(r, "nonexisting", "fake") require.Error(t, err) require.Nil(t, procs) }
explode_data.jsonl/9719
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 92 }
[ 2830, 3393, 7423, 1087, 2461, 54310, 1649, 62, 13790, 3332, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 8690, 741, 47418, 1669, 1532, 13911, 28201, 3608, 445, 92425, 76844, 11525, 1138, 197, 90087, 11, 1848, 1669, 2530, 29012, 1087, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAccountInfo(t *testing.T) { t.Skip() client := NewClient(&Config{ URL: "http://api.kylin.alohaeos.com", }) info, err := client.AccountInfo("helloworld54") if err != nil { t.Error(err) } fmt.Println(info) }
explode_data.jsonl/58350
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 97 }
[ 2830, 3393, 7365, 1731, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 741, 25291, 1669, 1532, 2959, 2099, 2648, 515, 197, 79055, 25, 330, 1254, 1110, 2068, 5202, 88, 3732, 12168, 2267, 5918, 436, 905, 756, 197, 8824, 27043, 11, 1848, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStructFloat64Validation(t *testing.T) { validate := New() tSuccess := &TestFloat64{ Required: 1, Len: 10, Min: 1, Max: 10, MinMax: 5, OmitEmpty: 0, } errs := validate.Struct(tSuccess) Equal(t, errs, nil) tFail := &TestFloat64{ Required: 0, Len: 11, Min: ...
explode_data.jsonl/77332
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 481 }
[ 2830, 3393, 9422, 5442, 21, 19, 13799, 1155, 353, 8840, 836, 8, 1476, 197, 7067, 1669, 1532, 2822, 3244, 7188, 1669, 609, 2271, 5442, 21, 19, 515, 197, 197, 8164, 25, 220, 220, 16, 345, 197, 197, 11271, 25, 981, 220, 16, 15, 345, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAllExtensionNumbersForType(t *testing.T) { for _, test := range []struct { st reflect.Type want []int32 }{ {reflect.TypeOf(pb.ToBeExtended{}), []int32{13, 17, 19, 23, 29}}, } { r, err := s.allExtensionNumbersForType(test.st) sort.Sort(intArray(r)) if err != nil || !reflect.DeepEqual(r, test.wa...
explode_data.jsonl/79213
{ "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, 2403, 12049, 27237, 2461, 929, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1273, 1669, 2088, 3056, 1235, 341, 197, 18388, 256, 8708, 10184, 198, 197, 50780, 3056, 396, 18, 17, 198, 197, 59403, 197, 197, 90, 34913, 73921, 768...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRewriteWithXkcdLinkAndImageNoTitle(t *testing.T) { description := `<img src="https://imgs.xkcd.com/comics/thermostat.png" alt="Your problem is so terrible, I worry that, if I help you, I risk drawing the attention of whatever god of technology inflicted it on you." />` output := Rewriter("https://xkcd.com/19...
explode_data.jsonl/21474
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 151 }
[ 2830, 3393, 58465, 1247, 2354, 55, 74, 4385, 3939, 3036, 1906, 2753, 3851, 1155, 353, 8840, 836, 8, 341, 42407, 1669, 30586, 1892, 2286, 428, 2428, 1110, 58575, 1993, 74, 4385, 905, 25093, 1211, 14, 696, 54725, 3508, 1, 4797, 428, 777...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_BKDRHash(t *testing.T) { var x uint32 = 200645773 gtest.C(t, func(t *gtest.T) { j := ghash.BKDRHash(strBasic) t.Assert(j, x) }) }
explode_data.jsonl/60226
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 77 }
[ 2830, 3393, 1668, 42, 7687, 6370, 1155, 353, 8840, 836, 8, 341, 2405, 856, 2622, 18, 17, 284, 220, 17, 15, 15, 21, 19, 20, 22, 22, 18, 198, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 12428, 1669, 342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTable_addVerifiedNode(t *testing.T) { tab, db := newTestTable(newPingRecorder()) <-tab.initDone defer db.Close() defer tab.close() // Insert two nodes. n1 := nodeAtDistance(tab.self().ID(), 256, net.IP{88, 77, 66, 1}) n2 := nodeAtDistance(tab.self().ID(), 256, net.IP{88, 77, 66, 2}) tab.addSeenNode(n1...
explode_data.jsonl/11769
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 409 }
[ 2830, 3393, 2556, 2891, 54558, 1955, 1155, 353, 8840, 836, 8, 341, 58149, 11, 2927, 1669, 501, 2271, 2556, 1755, 69883, 47023, 2398, 197, 45342, 6192, 8271, 17453, 198, 16867, 2927, 10421, 741, 16867, 5651, 4653, 2822, 197, 322, 17101, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTrace(t *testing.T) { var out bytes.Buffer logger := logrus.New() logger.Out = &out logger.Formatter = NewFormatter( WithService("test"), WithVersion("0.1"), ) logger.WithField(KeyTrace, "my-trace").WithField(KeySpanID, "my-span").Info("my log entry") var got map[string]interface{} json.Unmarsha...
explode_data.jsonl/5915
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 334 }
[ 2830, 3393, 6550, 1155, 353, 8840, 836, 8, 341, 2405, 700, 5820, 22622, 271, 17060, 1669, 1487, 20341, 7121, 741, 17060, 47178, 284, 609, 411, 198, 17060, 96291, 284, 1532, 14183, 1006, 197, 197, 2354, 1860, 445, 1944, 4461, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestDeleteAppOK(t *testing.T) { testServer(func(s *core.Server) { //test delete headers := make(map[string]string) headers["X-Access-Token"] = accessToken url := "/api/v1/developers/apps/" + apiToken //make request res, err := testHTTPRequestWithHeaders("DELETE", url, ``, headers) if err != nil ...
explode_data.jsonl/42224
{ "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, 6435, 2164, 3925, 1155, 353, 8840, 836, 8, 1476, 18185, 5475, 18552, 1141, 353, 2153, 22997, 8, 341, 197, 197, 322, 1944, 3698, 271, 197, 67378, 1669, 1281, 9147, 14032, 30953, 340, 197, 67378, 1183, 55, 12, 6054, 89022, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIndexEditorWriteAfterFlush(t *testing.T) { format := types.Format_Default db, err := dbfactory.MemFactory{}.CreateDB(context.Background(), format, nil, nil) require.NoError(t, err) colColl := schema.NewColCollection( schema.NewColumn("pk", 0, types.IntKind, true), schema.NewColumn("v1", 1, types.IntKin...
explode_data.jsonl/27208
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 899 }
[ 2830, 3393, 1552, 9410, 7985, 6025, 46874, 1155, 353, 8840, 836, 8, 341, 59416, 1669, 4494, 9978, 60336, 198, 20939, 11, 1848, 1669, 2927, 21618, 1321, 336, 4153, 46391, 4021, 3506, 5378, 19047, 1507, 3561, 11, 2092, 11, 2092, 340, 1795...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExtractClosingTag(t *testing.T) { for testName, testCase := range map[string]struct { userData string closingTag userdata.ClosingTag expectError bool expectedUserData string }{ "Succeeds": { userData: "<powershell>\necho foo\n</powershell>", closingTag: userda...
explode_data.jsonl/3809
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 592 }
[ 2830, 3393, 28959, 36294, 5668, 1155, 353, 8840, 836, 8, 341, 2023, 94396, 11, 54452, 1669, 2088, 2415, 14032, 60, 1235, 341, 197, 19060, 1043, 260, 914, 198, 197, 1444, 17831, 5668, 981, 66874, 727, 17831, 5668, 198, 197, 24952, 1454, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewStreamReader(t *testing.T) { ch := make(chan struct{}) r := NewStreamReader(func(w *bufio.Writer) { fmt.Fprintf(w, "Hello, world\n") fmt.Fprintf(w, "Line #2\n") close(ch) }) data, err := ioutil.ReadAll(r) if err != nil { t.Fatalf("unexpected error: %s", err) } expectedData := "Hello, world\n...
explode_data.jsonl/18599
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 249 }
[ 2830, 3393, 3564, 70525, 1155, 353, 8840, 836, 8, 341, 23049, 1669, 1281, 35190, 2036, 37790, 7000, 1669, 1532, 70525, 18552, 3622, 353, 97551, 47838, 8, 341, 197, 11009, 59559, 3622, 11, 330, 9707, 11, 1879, 1699, 1138, 197, 11009, 595...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStdCopyDetectsNotFullyWrittenFrames(t *testing.T) { stdOutBytes := []byte(strings.Repeat("o", startingBufLen)) stdErrBytes := []byte(strings.Repeat("e", startingBufLen)) buffer, err := getSrcBuffer(stdOutBytes, stdErrBytes) if err != nil { t.Fatal(err) } dstOut := &errWriter{n: startingBufLen - 10} w...
explode_data.jsonl/52165
{ "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, 22748, 12106, 57193, 82, 2623, 67386, 35624, 34045, 1155, 353, 8840, 836, 8, 341, 6736, 2662, 7078, 1669, 3056, 3782, 51442, 2817, 10979, 445, 78, 497, 5916, 15064, 11271, 1171, 6736, 7747, 7078, 1669, 3056, 3782, 51442, 2817,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateTaskResults(t *testing.T) { task := &wfv1.DAGTask{Depends: "(task-1 || task-2.Succeeded) && !task-3"} err := ValidateTaskResults(task) assert.NoError(t, err) task = &wfv1.DAGTask{Depends: "((task-1.Succeeded || task-1.Failed) || task-2.Succeeded) && !task-3.Skipped && task-2.Failed || task-6.Succe...
explode_data.jsonl/48533
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 246 }
[ 2830, 3393, 17926, 6262, 9801, 1155, 353, 8840, 836, 8, 341, 49115, 1669, 609, 86, 27890, 16, 909, 1890, 6262, 90, 7839, 1412, 25, 11993, 8202, 12, 16, 1369, 3383, 12, 17, 808, 43805, 8, 1009, 753, 8202, 12, 18, 16707, 9859, 1669, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestStatusCreate(t *testing.T) { defer gock.Off() gock.New("https://api.github.com"). Post("/repos/octocat/hello-world/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"). Reply(201). Type("application/json"). SetHeaders(mockHeaders). File("testdata/status.json") in := &scm.StatusInput{ Desc: "B...
explode_data.jsonl/29870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 400 }
[ 2830, 3393, 2522, 4021, 1155, 353, 8840, 836, 8, 341, 16867, 728, 377, 13, 4596, 2822, 3174, 1176, 7121, 445, 2428, 1110, 2068, 11021, 905, 38609, 197, 197, 4133, 4283, 68354, 59182, 509, 266, 7530, 4791, 30084, 32518, 288, 14, 21, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestInitContainerConfiguration(t *testing.T) { dcName := "dc1" rackName := "rack1" dcRackName := fmt.Sprintf("%s-%s", dcName, rackName) _, cc := helperInitCluster(t, "cassandracluster-2DC.yaml") cc.Spec.ServerVersion = "4.0.1" cc.Spec.Config, _ = json.Marshal(map[string]map[string]interface{}{ "jvm-option...
explode_data.jsonl/54111
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1279 }
[ 2830, 3393, 3803, 4502, 7688, 1155, 353, 8840, 836, 8, 341, 87249, 675, 1669, 330, 7628, 16, 698, 7000, 473, 675, 1669, 330, 71685, 16, 698, 87249, 49, 473, 675, 1669, 8879, 17305, 4430, 82, 11069, 82, 497, 19402, 675, 11, 29659, 67...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExhaustiveAStar(t *testing.T) { g := concrete.NewGraph() nodes := []locatedNode{ {id: 1, x: 0, y: 6}, {id: 2, x: 1, y: 0}, {id: 3, x: 8, y: 7}, {id: 4, x: 16, y: 0}, {id: 5, x: 17, y: 6}, {id: 6, x: 9, y: 8}, } for _, n := range nodes { g.AddNode(n) } edges := []weightedEdge{ {from: g.No...
explode_data.jsonl/34428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 782 }
[ 2830, 3393, 840, 15074, 533, 32, 12699, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 14175, 7121, 11212, 741, 79756, 1669, 3056, 39463, 1955, 515, 197, 197, 61761, 25, 220, 16, 11, 856, 25, 220, 15, 11, 379, 25, 220, 21, 1583, 197, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1