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 TestJobSpecsController_Create_HappyPath(t *testing.T) { t.Parallel() rpcClient, gethClient, _, assertMocksCalled := cltest.NewEthMocksWithStartupAssertions(t) defer assertMocksCalled() app, cleanup := cltest.NewApplication(t, eth.NewClientWith(rpcClient, gethClient), ) defer cleanup() require.NoError(t, ...
explode_data.jsonl/31805
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 750 }
[ 2830, 3393, 12245, 8327, 82, 2051, 34325, 2039, 11144, 1820, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 7000, 3992, 2959, 11, 633, 71, 2959, 11, 8358, 2060, 72577, 20960, 1669, 1185, 1944, 7121, 65390, 11571, 16056, 39076, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestRouterClearTimeouts(t *testing.T) { // Create a timeout manager tm, err := timeout.NewManager( &timer.AdaptiveTimeoutConfig{ InitialTimeout: 3 * time.Second, MinimumTimeout: 3 * time.Second, MaximumTimeout: 5 * time.Minute, TimeoutCoefficient: 1, TimeoutHalflife: 5 * time.Minu...
explode_data.jsonl/76079
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1134 }
[ 2830, 3393, 9523, 14008, 7636, 82, 1155, 353, 8840, 836, 8, 341, 197, 322, 4230, 264, 9632, 6645, 198, 3244, 76, 11, 1848, 1669, 9632, 7121, 2043, 1006, 197, 197, 5, 19278, 17865, 27781, 7636, 2648, 515, 298, 197, 6341, 7636, 25, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTimer(t *testing.T) { MockMode = true timer := NewTimer(5 * time.Second) done := make(chan struct{}) go func() { <-timer.C() done <- struct{}{} }() Elapse(5 * time.Second) <-done }
explode_data.jsonl/68925
{ "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, 10105, 1155, 353, 8840, 836, 8, 341, 9209, 1176, 3636, 284, 830, 198, 51534, 1669, 1532, 10105, 7, 20, 353, 882, 32435, 340, 40495, 1669, 1281, 35190, 2036, 6257, 692, 30680, 2915, 368, 341, 197, 197, 45342, 19278, 727, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHandshakeServerCHACHA20SHA256(t *testing.T) { test := &serverTest{ name: "CHACHA20-SHA256", command: []string{"openssl", "s_client", "-no_ticket", "-ciphersuites", "TLS_CHACHA20_POLY1305_SHA256"}, } runServerTestTLS13(t, test) }
explode_data.jsonl/36331
{ "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, 2314, 29661, 5475, 2149, 11873, 32, 17, 15, 33145, 17, 20, 21, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 609, 4030, 2271, 515, 197, 11609, 25, 262, 330, 2149, 11873, 32, 17, 15, 6222, 17020, 17, 20, 21, 756, 197, 4556...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFloat64Swap(t *testing.T) { if err := quick.Check(func(old, new float64) bool { a := NewFloat64(old) return a.Swap(new) == old && a.Load() == new }, nil); err != nil { t.Fatal(err) } }
explode_data.jsonl/30766
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 88 }
[ 2830, 3393, 5442, 21, 19, 46179, 1155, 353, 8840, 836, 8, 341, 743, 1848, 1669, 3974, 10600, 18552, 21972, 11, 501, 2224, 21, 19, 8, 1807, 341, 197, 11323, 1669, 1532, 5442, 21, 19, 21972, 340, 197, 853, 264, 808, 21726, 1755, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestValidatePipelineWorkspaces_Success(t *testing.T) { tests := []struct { name string workspaces []PipelineWorkspaceDeclaration tasks []PipelineTask }{{ name: "unused pipeline spec workspaces do not cause an error", workspaces: []PipelineWorkspaceDeclaration{{ Name: "foo", }, { Name...
explode_data.jsonl/26539
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 279 }
[ 2830, 3393, 17926, 34656, 6776, 44285, 87161, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 97038, 44285, 3056, 34656, 45981, 24489, 198, 197, 3244, 4604, 414, 3056, 34656, 6262, 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...
2
func TestSchema_Exist(t *testing.T) { var ( serviceId string ) t.Run("register service and add schema", func(t *testing.T) { log.Info("register service") respCreateService, err := datasource.GetMetadataManager().RegisterService(getContext(), &pb.CreateServiceRequest{ Service: &pb.MicroService{ AppId: ...
explode_data.jsonl/49817
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1041 }
[ 2830, 3393, 8632, 62, 25613, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 52934, 764, 914, 198, 197, 692, 3244, 16708, 445, 6343, 2473, 323, 912, 10802, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 6725, 20132, 445, 6343, 2473, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidate1(t *testing.T) { type args struct { kind string app string validExt []string } tests := []struct { name string args args wantErr bool }{ // TODO: Add test cases. } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if err := Validate(tt.args.kind, tt...
explode_data.jsonl/79923
{ "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, 17926, 16, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 197, 15314, 257, 914, 198, 197, 28236, 414, 914, 198, 197, 56322, 6756, 3056, 917, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 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...
2
func Test_findShortestSubArray(t *testing.T) { type args struct { nums []int } tests := []struct { name string args args want int }{ // TODO: Add test cases. { name: "", args: args{ nums: strToIntArray("[1, 2, 2, 3, 1]"), }, want: 2, }, { name: "", args: args{ nums: strToIn...
explode_data.jsonl/70694
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 302 }
[ 2830, 3393, 21814, 12472, 477, 3136, 1857, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 22431, 82, 3056, 396, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 526, 198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildOutboundPolicies(t *testing.T) { assert := tassert.New(t) mockCtrl := gomock.NewController(t) defer mockCtrl.Finish() mockKubeController := k8s.NewMockController(mockCtrl) mockMeshSpec := smi.NewMockMeshSpec(mockCtrl) mockEndpointProvider := endpoint.NewMockProvider(mockCtrl) mc := MeshCatalog{ ...
explode_data.jsonl/69766
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1255 }
[ 2830, 3393, 11066, 2662, 10891, 47, 42038, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 259, 2207, 7121, 1155, 340, 77333, 15001, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 7860, 15001, 991, 18176, 2822, 77333, 42, 3760, 2051, 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...
1
func TestSublimeSnippet(t *testing.T) { want := snip.Snippet{ Name: "lorem", Trigger: "lorem", Description: "HTML - Lorem Ipsum", Body: []string{"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim venia...
explode_data.jsonl/82434
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 3136, 38943, 87852, 1155, 353, 8840, 836, 8, 341, 50780, 1669, 4131, 573, 87066, 21581, 515, 197, 21297, 25, 286, 330, 385, 1826, 756, 197, 197, 17939, 25, 257, 330, 385, 1826, 756, 197, 47414, 25, 330, 5835, 481, 46931, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAssertable_IsNotNil(t *testing.T) { tests := []struct { name string actual interface{} shouldFail bool }{ { name: "should assert nil", actual: nil, shouldFail: true, }, { name: "should assert non-empty string", actual: "non-nil", shouldFail: false, ...
explode_data.jsonl/53646
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 352 }
[ 2830, 3393, 8534, 480, 31879, 96144, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 88814, 257, 3749, 16094, 197, 197, 5445, 19524, 1807, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestPing(t *testing.T) { var expectedPing = "PONG" t.Log("We need to test the PING.") { t.Logf("\tChecking PING for response \"%s\"", expectedPing) { str, msgType := common.Call(client, client.Ping(expectedPing, false, false, false)) if msgType != 2 { t.Errorf("\t\tExpected msgType=2, receiv...
explode_data.jsonl/46194
{ "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, 69883, 1155, 353, 8840, 836, 8, 1476, 2405, 3601, 69883, 284, 330, 47, 7539, 1837, 3244, 5247, 445, 1654, 1184, 311, 1273, 279, 393, 1718, 13053, 197, 515, 197, 3244, 98954, 4921, 83, 40129, 393, 1718, 369, 2033, 32328, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestE2E(t *testing.T) { mux := http.NewServeMux() currentDir, _ := os.Getwd() setUpSpa(mux, currentDir) restRouting := map[string]string{ "/foo": "Foo!", "/bar": "Bar!", } for k, v := range restRouting { path := k body := v mux.HandleFunc(path, func(writer http.ResponseWriter, request *http.Reque...
explode_data.jsonl/44961
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 833 }
[ 2830, 3393, 36, 17, 36, 1155, 353, 8840, 836, 8, 341, 2109, 2200, 1669, 1758, 7121, 60421, 44, 2200, 741, 20121, 6184, 11, 716, 1669, 2643, 2234, 6377, 2822, 8196, 2324, 6406, 64, 1255, 2200, 11, 1482, 6184, 692, 197, 3927, 24701, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLayeredBuild(t *testing.T) { fh := &FakeSTI{ BuildRequest: &api.Config{ BuilderImage: "testimage", }, BuildResult: &api.Result{}, ExecuteError: stierr.NewContainerError("", 1, `/bin/sh: tar: not found`), ExpectedError: true, } builder := newFakeSTI(fh) builder.Build(&api.Config{BuilderImage...
explode_data.jsonl/59435
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 175 }
[ 2830, 3393, 9188, 291, 11066, 1155, 353, 8840, 836, 8, 341, 1166, 71, 1669, 609, 52317, 784, 40, 515, 197, 197, 11066, 1900, 25, 609, 2068, 10753, 515, 298, 197, 3297, 1906, 25, 330, 1944, 1805, 756, 197, 197, 1583, 197, 197, 11066,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLogPartsPerCommitInSync(t *testing.T) { require.Equal(t, 2*partsPerCommitBasic, strings.Count(logFormatWithoutRefs, "%"), "Expected (2 * %0d) %% signs in log format string (%0d fields, %0d %%x00 separators)", partsPerCommitBasic) }
explode_data.jsonl/8511
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 90 }
[ 2830, 3393, 2201, 28921, 3889, 33441, 641, 12154, 1155, 353, 8840, 836, 8, 341, 17957, 12808, 1155, 11, 220, 17, 9, 18252, 3889, 33441, 15944, 11, 9069, 6134, 12531, 4061, 26040, 82807, 11, 5962, 4461, 197, 197, 1, 18896, 320, 17, 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 TestFilteredByEmptyPrefix(t *testing.T) { name := "carotte" ghLabel := &github.Label{ Name: &name, } prefixes := []string{""} assert.True(t, FilteredBy(HasPrefix, prefixes)(ghLabel)) }
explode_data.jsonl/16589
{ "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, 67310, 1359, 3522, 14335, 1155, 353, 8840, 836, 8, 341, 11609, 1669, 330, 6918, 50011, 698, 197, 866, 2476, 1669, 609, 5204, 4679, 515, 197, 21297, 25, 609, 606, 345, 197, 630, 3223, 5060, 288, 1669, 3056, 917, 90, 3014, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewReqMessage(t *testing.T) { m := NewReqMessage(uuid.NewString(), "test", []byte("test")) if m.Id == "" { t.Fatal("expected PubMessage to set id") } if m.Type != ReqMessage { t.Fatalf("expected ReqMessage but got %s", m.Type) } }
explode_data.jsonl/63185
{ "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, 3564, 27234, 2052, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1532, 27234, 2052, 41458, 7121, 703, 1507, 330, 1944, 497, 3056, 3782, 445, 1944, 28075, 743, 296, 6444, 621, 1591, 341, 197, 3244, 26133, 445, 7325, 22611, 2052, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSetCellFormula(t *testing.T) { f, err := OpenFile(filepath.Join("test", "Book1.xlsx")) if !assert.NoError(t, err) { t.FailNow() } f.SetCellFormula("Sheet1", "B19", "SUM(Sheet2!D2,Sheet2!D11)") f.SetCellFormula("Sheet1", "C19", "SUM(Sheet2!D2,Sheet2!D9)") // Test set cell formula with illegal rows num...
explode_data.jsonl/36964
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 418 }
[ 2830, 3393, 1649, 3599, 52676, 1155, 353, 8840, 836, 8, 341, 1166, 11, 1848, 1669, 5264, 1703, 34793, 22363, 445, 1944, 497, 330, 7134, 16, 46838, 5455, 743, 753, 2207, 35699, 1155, 11, 1848, 8, 341, 197, 3244, 57243, 7039, 741, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestBytesToFloat32(t *testing.T) { v := float32(1.23) fmt.Printf("original: %f\n", v) bs := make([]byte, 4) utils.PutFloat32(bs, v) fmt.Printf("bs (from golang): %v\n", bs) v1 := utils.ByteToFloat32(bs) fmt.Printf("v1 (from golang): %v\n", v1) v2 := BigEndianToFloat32(bs) fmt.Printf("v2 (from cpp): %v\n...
explode_data.jsonl/18816
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 164 }
[ 2830, 3393, 7078, 1249, 5442, 18, 17, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 2224, 18, 17, 7, 16, 13, 17, 18, 340, 11009, 19367, 445, 9889, 25, 1018, 69, 1699, 497, 348, 340, 93801, 1669, 1281, 10556, 3782, 11, 220, 19, 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 TestLoadMeta(t *testing.T) { var got FieldListWithMeta want := FieldListWithMeta{ Meta: searchMeta, Fields: searchFieldsWithLang, } doc := &pb.Document{ Field: protoFields, OrderId: proto.Int32(42), } if err := loadDoc(&got, doc, nil); err != nil { t.Fatalf("loadDoc: %v", err) } if !reflect.D...
explode_data.jsonl/27951
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 5879, 12175, 1155, 353, 8840, 836, 8, 341, 2405, 2684, 8601, 852, 2354, 12175, 198, 50780, 1669, 8601, 852, 2354, 12175, 515, 197, 9209, 1915, 25, 256, 2711, 12175, 345, 197, 197, 8941, 25, 2711, 8941, 2354, 26223, 345, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestGetMountRefs(t *testing.T) { tests := []struct { mountPath string expectedRefs []string }{ { mountPath: `c:\windows`, expectedRefs: []string{`c:\windows`}, }, { mountPath: `c:\doesnotexist`, expectedRefs: []string{}, }, } fm := &FakeMounter{MountPoints: []MountPoint{}} fo...
explode_data.jsonl/48683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 243 }
[ 2830, 3393, 1949, 16284, 82807, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 2109, 629, 1820, 262, 914, 198, 197, 42400, 82807, 3056, 917, 198, 197, 59403, 197, 197, 515, 298, 2109, 629, 1820, 25, 262, 1565, 66, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmbyHelper_GetRecentlyAddVideoList(t *testing.T) { //embyConfig := settings.NewEmbySettings() //embyConfig.Enable = true //embyConfig.AddressUrl = "http://192.168.50.252:8096" //embyConfig.APIKey = "1" //embyConfig.SkipWatched = false //embyConfig.MaxRequestVideoNumber = 1000 //embyConfig.MoviePathsMap...
explode_data.jsonl/48284
{ "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, 2269, 1694, 5511, 13614, 45137, 2212, 10724, 852, 1155, 353, 8840, 836, 8, 1476, 197, 322, 336, 1694, 2648, 1669, 5003, 7121, 2269, 1694, 6086, 741, 197, 322, 336, 1694, 2648, 32287, 284, 830, 198, 197, 322, 336, 1694, 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...
1
func TestJoinTeam(t *testing.T) { th := Setup().InitBasic() defer th.TearDown() th.CheckCommand(t, "team", "add", th.BasicTeam.Name, th.BasicUser.Email) profiles := th.SystemAdminClient.Must(th.SystemAdminClient.GetUsersInTeam(th.BasicTeam.Id, 0, 1000, "")).([]*model.User) found := false for _, user := range ...
explode_data.jsonl/65273
{ "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, 12292, 14597, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1005, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 70479, 10600, 4062, 1155, 11, 330, 9196, 497, 330, 718, 497, 270, 48868, 14597, 2967, 11, 270, 48868, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Define_Response(t *testing.T) { classificationID := base.NewID("classificationID") testAuxiliaryResponse := newAuxiliaryResponse(classificationID, nil) require.Equal(t, auxiliaryResponse{Success: true, Error: nil, ClassificationID: classificationID}, testAuxiliaryResponse) require.Equal(t, true, testAux...
explode_data.jsonl/69543
{ "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, 88411, 482, 65873, 1155, 353, 8840, 836, 8, 1476, 15487, 2404, 915, 1669, 2331, 7121, 915, 445, 65381, 915, 5130, 18185, 55147, 34446, 2582, 1669, 501, 55147, 34446, 2582, 21956, 2404, 915, 11, 2092, 340, 17957, 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 TestRunnerWithScenarios(t *testing.T) { scenariosPath := filepath.Join("test", "e2e", "testdata", "scenarios") runner, err := NewRunner(WithScenarios(scenariosPath)) if err != nil { t.Fatal(err) } if len(runner.scenarioFiles) == 0 { t.Fatal("failed to set scenario files") } for _, file := range runner.s...
explode_data.jsonl/56026
{ "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, 19486, 2354, 3326, 60494, 1155, 353, 8840, 836, 8, 341, 29928, 60494, 1820, 1669, 26054, 22363, 445, 1944, 497, 330, 68, 17, 68, 497, 330, 92425, 497, 330, 2388, 60494, 1138, 197, 41736, 11, 1848, 1669, 1532, 19486, 7, 235...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNamespaced(t *testing.T) { uu := []struct { p, ns, n string }{ {"fred/blee", "fred", "blee"}, {"blee", "", "blee"}, } for _, u := range uu { ns, n := client.Namespaced(u.p) assert.Equal(t, u.ns, ns) assert.Equal(t, u.n, n) } }
explode_data.jsonl/41754
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 127 }
[ 2830, 3393, 7980, 68552, 1155, 353, 8840, 836, 8, 341, 10676, 84, 1669, 3056, 1235, 341, 197, 3223, 11, 12268, 11, 308, 914, 198, 197, 59403, 197, 197, 4913, 27993, 14, 891, 68, 497, 330, 27993, 497, 330, 891, 68, 7115, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func Test_loadControllerConfig(t *testing.T) { t.Parallel() for _, tc := range []struct { name string configData map[string]string expected bool }{ { "MaintenanceModeEnabled", map[string]string{ "maintenanceMode": "true", }, true, }, { "MaintenanceModeDisabled", map[string]...
explode_data.jsonl/8491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 378 }
[ 2830, 3393, 12411, 2051, 2648, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 2023, 8358, 17130, 1669, 2088, 3056, 1235, 341, 197, 11609, 981, 914, 198, 197, 25873, 1043, 2415, 14032, 30953, 198, 197, 42400, 256, 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...
1
func TestValidateUpstreamHealthCheck(t *testing.T) { hc := &v1.HealthCheck{ Enable: true, Path: "/healthz", Interval: "4s", Jitter: "2s", Fails: 3, Passes: 2, Port: 8080, TLS: &v1.UpstreamTLS{ Enable: true, }, ConnectTimeout: "1s", ReadTimeout: "1s", SendTimeout: "1s",...
explode_data.jsonl/65870
{ "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, 17926, 2324, 4027, 14542, 3973, 1155, 353, 8840, 836, 8, 341, 9598, 66, 1669, 609, 85, 16, 74980, 3973, 515, 197, 197, 11084, 25, 256, 830, 345, 197, 69640, 25, 257, 3521, 12120, 89, 756, 197, 197, 10256, 25, 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 TestTrackAfterRevoke(t *testing.T) { tc1 := SetupEngineTest(t, "rev") defer tc1.Cleanup() // We need two devices. Use a paperkey to sign into the second device. // Sign up on tc1: u := CreateAndSignupFakeUserGPG(tc1, "pgp") t.Logf("create a paperkey") beng := NewPaperKey(tc1.G) ctx := &Context{ LogUI:...
explode_data.jsonl/40407
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 665 }
[ 2830, 3393, 15667, 6025, 693, 7621, 1155, 353, 8840, 836, 8, 341, 78255, 16, 1669, 18626, 4571, 2271, 1155, 11, 330, 7282, 1138, 16867, 17130, 16, 727, 60639, 2822, 197, 322, 1205, 1184, 1378, 7611, 13, 5443, 264, 5567, 792, 311, 1841...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLocalTemporaryTablePointGet(t *testing.T) { store, clean := realtikvtest.CreateMockStoreAndSetup(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("create temporary table tmp1 (id int primary key auto_increment, u int unique, v int)") tk.MustExec("insert into tmp1 v...
explode_data.jsonl/5727
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 763 }
[ 2830, 3393, 7319, 59362, 2556, 2609, 1949, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1931, 83, 1579, 85, 1944, 7251, 11571, 6093, 3036, 21821, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 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 TestInvalidFactoryArgs(t *testing.T) { handler := utiltesting.FakeHandler{ StatusCode: 500, ResponseBody: "", T: t, } server := httptest.NewServer(&handler) defer server.Close() client := clientset.NewForConfigOrDie(&restclient.Config{Host: server.URL, ContentConfig: restclient.ContentConfi...
explode_data.jsonl/13328
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 638 }
[ 2830, 3393, 7928, 4153, 4117, 1155, 353, 8840, 836, 8, 341, 53326, 1669, 4094, 8840, 991, 726, 3050, 515, 197, 197, 15872, 25, 256, 220, 20, 15, 15, 345, 197, 197, 29637, 25, 8324, 197, 10261, 25, 310, 259, 345, 197, 532, 41057, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormIntRange(t *testing.T) { rnd := New() min, max := 0, 0 mean, dev := 100, 50 for i := 0; i < 100; i++ { v := rnd.NormIntRange(mean, dev) println(v) if v < min { min = v } if v > max { max = v } } println(min, max) println(mean-min, max-mean) }
explode_data.jsonl/10192
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 138 }
[ 2830, 3393, 24993, 1072, 6046, 1155, 353, 8840, 836, 8, 341, 7000, 303, 1669, 1532, 741, 25320, 11, 1932, 1669, 220, 15, 11, 220, 15, 198, 2109, 5307, 11, 3483, 1669, 220, 16, 15, 15, 11, 220, 20, 15, 198, 2023, 600, 1669, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestKeepaliveClientResponse(t *testing.T) { t.Parallel() // set up GRPCServer instance kap := &comm.KeepaliveOptions{ ServerInterval: 1 * time.Second, ServerTimeout: 1 * time.Second, } testAddress := "localhost:9401" srv, err := comm.NewGRPCServer(testAddress, comm.ServerConfig{KaOpts: kap}) assert.NoE...
explode_data.jsonl/38633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 382 }
[ 2830, 3393, 19434, 50961, 2959, 2582, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 322, 738, 705, 14773, 4872, 5475, 2867, 198, 16463, 391, 1669, 609, 3621, 13, 19434, 50961, 3798, 515, 197, 92075, 10256, 25, 220, 16, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBigIntToBytes(t *testing.T) { by := byte(0x01) sz := 4 bigInt := big.NewInt(int64(by)) expected := make([]byte, sz) expected[sz-1] = by actual := bigIntToBytes(bigInt, sz) require.Equal(t, expected, actual) }
explode_data.jsonl/56394
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 98 }
[ 2830, 3393, 87474, 1249, 7078, 1155, 353, 8840, 836, 8, 341, 197, 1694, 1669, 4922, 7, 15, 87, 15, 16, 340, 1903, 89, 1669, 220, 19, 198, 2233, 343, 1072, 1669, 2409, 7121, 1072, 1548, 21, 19, 32028, 1171, 42400, 1669, 1281, 10556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTokenRequest(t *testing.T) { ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { if r.URL.String() != "/token" { t.Errorf("authenticate client request URL = %q; want %q", r.URL, "/token") } headerAuth := r.Header.Get("Authorization") if headerAuth != "Basic Q0xJ...
explode_data.jsonl/19413
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 680 }
[ 2830, 3393, 3323, 1900, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 19886, 89164, 18552, 3622, 1758, 37508, 11, 435, 353, 1254, 9659, 8, 341, 197, 743, 435, 20893, 6431, 368, 961, 3521, 5839, 1, 341, 298, 3244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7
func TestFreeingLargeNumberOfPages(t *testing.T) { data := core.NewMemoryRws() subject, err := core.NewPageStorage(data, noOpSync) assertNoError(t, err) err = subject.InitialiseDb() assertNoError(t, err) var toRelease []int // write a 1-page document many times for i := 0; i < 3000; i++ { // a single free-pa...
explode_data.jsonl/28109
{ "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, 10940, 287, 34253, 40619, 17713, 1155, 353, 8840, 836, 8, 341, 8924, 1669, 6200, 7121, 10642, 49, 8915, 741, 28624, 583, 11, 1848, 1669, 6200, 7121, 2665, 5793, 2592, 11, 902, 7125, 12154, 340, 6948, 2753, 1454, 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...
6
func TestFloat64SetIncr(t *testing.T) { z := NewFloat64() _, ok := z.Score("t") assert.False(t, ok) // test first insert s, ok := z.IncrBy(1, "t") assert.False(t, ok) assert.Equal(t, 1.0, s) // test regular incr s, ok = z.IncrBy(2, "t") assert.True(t, ok) assert.Equal(t, 3.0, s) }
explode_data.jsonl/24989
{ "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, 5442, 21, 19, 1649, 641, 5082, 1155, 353, 8840, 836, 8, 341, 20832, 1669, 1532, 5442, 21, 19, 741, 197, 6878, 5394, 1669, 1147, 82080, 445, 83, 1138, 6948, 50757, 1155, 11, 5394, 692, 197, 322, 1273, 1156, 5656, 198, 190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptySelectWhere(t *testing.T) { c := newQueryConverter(nil, nil) query, sorters, err := c.ConvertWhereOrderBy("") assert.NoError(t, err) assert.Nil(t, query) assert.Nil(t, sorters) query, sorters, err = c.ConvertWhereOrderBy("order by Id desc") assert.NoError(t, err) assert.Nil(t, query) assert.Len...
explode_data.jsonl/1321
{ "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, 3522, 3379, 9064, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 501, 2859, 14920, 27907, 11, 2092, 692, 27274, 11, 3378, 388, 11, 1848, 1669, 272, 36179, 9064, 34605, 31764, 6948, 35699, 1155, 11, 1848, 340, 6948, 59678, 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 TestVariables_ListsAndNullability_AllowsNonNullListsOfNonNulsToContainValues(t *testing.T) { doc := ` query q($input: [String!]!) { nnListNN(input: $input) } ` params := map[string]interface{}{ "input": []interface{}{"A"}, } expected := &graphql.Result{ Data: map[string]interface...
explode_data.jsonl/6462
{ "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, 22678, 27104, 82, 3036, 3280, 2897, 53629, 4241, 16834, 37848, 2124, 8121, 45, 14295, 1249, 46522, 6227, 1155, 353, 8840, 836, 8, 341, 59536, 1669, 22074, 286, 3239, 2804, 699, 1355, 25, 508, 703, 68034, 16315, 341, 688, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRedeploy(t *testing.T) { scc := new(LifeCycleSysCC) stub := shim.NewMockStub("lscc", scc) if res := stub.MockInit("1", nil); res.Status != shim.OK { fmt.Println("Init failed", string(res.Message)) t.FailNow() } cds, err := constructDeploymentSpec("example02", "github.com/hyperledger/fabric/examples/...
explode_data.jsonl/9384
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 486 }
[ 2830, 3393, 6033, 747, 1989, 1155, 353, 8840, 836, 8, 341, 1903, 638, 1669, 501, 4957, 1612, 44820, 32792, 3706, 340, 18388, 392, 1669, 62132, 7121, 11571, 33838, 445, 4730, 638, 497, 274, 638, 692, 743, 592, 1669, 13633, 24664, 3803, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMaxBlockGasLimits(t *testing.T) { gasGranted := uint64(10) ante := func(ctx sdk.Context, tx sdk.Tx, simulate bool) (sdk.Context, error) { count := tx.(txTest).Counter ctx.GasMeter().ConsumeGas(uint64(count), "counter-ante") return ctx, nil } txHandlerOpt := func(bapp *baseapp.BaseApp) { legacyRou...
explode_data.jsonl/30043
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1399 }
[ 2830, 3393, 5974, 4713, 58728, 94588, 1155, 353, 8840, 836, 8, 341, 3174, 300, 55481, 1669, 2622, 21, 19, 7, 16, 15, 340, 197, 4942, 1669, 2915, 7502, 45402, 9328, 11, 9854, 45402, 81362, 11, 37453, 1807, 8, 320, 51295, 9328, 11, 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
func TestStatefulSet_IsCorrectlyConfigured(t *testing.T) { _ = os.Setenv(construct.MongodbRepoUrl, "repo") _ = os.Setenv(construct.MongodbImageEnv, "mongo") mdb := newTestReplicaSet() mgr := client.NewManager(&mdb) r := NewReconciler(mgr) res, err := r.Reconcile(context.TODO(), reconcile.Request{NamespacedName: ...
explode_data.jsonl/80674
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 553 }
[ 2830, 3393, 1397, 1262, 1649, 31879, 33092, 398, 2648, 3073, 1155, 353, 8840, 836, 8, 341, 197, 62, 284, 2643, 4202, 3160, 7, 7596, 1321, 21225, 25243, 2864, 11, 330, 23476, 1138, 197, 62, 284, 2643, 4202, 3160, 7, 7596, 1321, 21225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestList(t *testing.T) { gtest.C(t, func(t *gtest.T) { l := New() checkListPointers(t, l, []*Element{}) // Single element list e := l.PushFront("a") checkListPointers(t, l, []*Element{e}) l.MoveToFront(e) checkListPointers(t, l, []*Element{e}) l.MoveToBack(e) checkListPointers(t, l, []*Element{...
explode_data.jsonl/30886
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1091 }
[ 2830, 3393, 852, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 8810, 1669, 1532, 741, 197, 25157, 852, 2609, 388, 1155, 11, 326, 11, 29838, 1691, 6257, 692, 197, 197, 322, 11327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStorageDirDetectionWithOldVersions(t *testing.T) { as := assert.New(t) rwLayer, err := getRwLayerID("abcd", "/", aufsStorageDriver, []int{1, 9, 0}) as.Nil(err) as.Equal(rwLayer, "abcd") }
explode_data.jsonl/29968
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 85 }
[ 2830, 3393, 5793, 6184, 54817, 2354, 18284, 69015, 1155, 353, 8840, 836, 8, 341, 60451, 1669, 2060, 7121, 1155, 340, 7000, 86, 9188, 11, 1848, 1669, 633, 49, 86, 9188, 915, 445, 68644, 497, 64657, 7219, 82, 5793, 11349, 11, 3056, 396,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCreatePostEphemeral(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() Client := th.SystemAdminClient ephemeralPost := &model.PostEphemeral{ UserID: th.BasicUser2.Id, Post: &model.Post{ChannelId: th.BasicChannel.Id, Message: "a" + model.NewId() + "a", Props: model.StringInterface{model.P...
explode_data.jsonl/5236
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 376 }
[ 2830, 3393, 4021, 4133, 36, 59941, 3253, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 741, 71724, 1669, 270, 16620, 7210, 2959, 271, 197, 23544, 336, 3253, 4133, 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 TestRunStop(t *testing.T) { stopChan := make(chan struct{}) mJob := &mock.Job{ RunFunc: func(jobData map[string]interface{}) (job.Return, error) { t.Log("mock job start", time.Now()) <-stopChan defer t.Log("mock job return", time.Now()) return job.Return{State: proto.STATE_FAIL}, nil }, StopFun...
explode_data.jsonl/72731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 574 }
[ 2830, 3393, 6727, 10674, 1155, 353, 8840, 836, 8, 341, 62644, 46019, 1669, 1281, 35190, 2036, 37790, 2109, 12245, 1669, 609, 16712, 45293, 515, 197, 85952, 9626, 25, 2915, 28329, 1043, 2415, 14032, 31344, 28875, 320, 8799, 46350, 11, 1465...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetAggregatedTradesErrors(t *testing.T) { t.Parallel() start, err := time.Parse(time.RFC3339, "2020-01-02T15:04:05Z") if err != nil { t.Fatal(err) } tests := []struct { name string args *AggregatedTradeRequestParams }{ { name: "get recent trades does not support custom limit", args: &Aggreg...
explode_data.jsonl/76664
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 514 }
[ 2830, 3393, 1949, 9042, 93040, 1282, 3452, 13877, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 21375, 11, 1848, 1669, 882, 8937, 9730, 2013, 6754, 18, 18, 18, 24, 11, 330, 17, 15, 17, 15, 12, 15, 16, 12, 15, 17, 51, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestDebugCallLarge(t *testing.T) { g, after := startDebugCallWorker(t) defer after() // Inject a call with a large call frame. const N = 128 var args struct { in [N]int out [N]int } fn := func(in [N]int) (out [N]int) { for i := range in { out[i] = in[i] + 1 } return } var want [N]int for i...
explode_data.jsonl/9337
{ "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, 7939, 7220, 34253, 1155, 353, 8840, 836, 8, 341, 3174, 11, 1283, 1669, 1191, 7939, 7220, 21936, 1155, 340, 16867, 1283, 2822, 197, 322, 21843, 264, 1618, 448, 264, 3460, 1618, 4034, 624, 4777, 451, 284, 220, 16, 17, 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...
2
func TestGetPublicIp(t *testing.T) { type args struct { client *http.Client } tests := []struct { name string args args want net.IP }{ {"Should parse the IP from the body", args{mockHTTPClient(200, "200 OK", "1.1.1.1")}, net.ParseIP("1.1.1.1")}, {"Should return nil if a non valid IP is returned", args{m...
explode_data.jsonl/72052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 291 }
[ 2830, 3393, 1949, 12676, 23378, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 25291, 353, 1254, 11716, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 4179, 46917, 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 TestSupportsDTypeWithFType0XFS(t *testing.T) { testSupportsDType(t, false, "mkfs.xfs", "-m", "crc=0", "-n", "ftype=0") }
explode_data.jsonl/24928
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 59 }
[ 2830, 3393, 7916, 82, 35, 929, 2354, 37, 929, 15, 55, 8485, 1155, 353, 8840, 836, 8, 341, 18185, 7916, 82, 35, 929, 1155, 11, 895, 11, 330, 24452, 3848, 1993, 3848, 497, 6523, 76, 497, 330, 66083, 28, 15, 497, 6523, 77, 497, 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
func TestIsInRange(t *testing.T) { goodValues := []struct { value int min int max int }{{1, 0, 10}, {5, 5, 20}, {25, 10, 25}} for _, val := range goodValues { if msgs := IsInRange(val.value, val.min, val.max); len(msgs) > 0 { t.Errorf("expected no errors for %#v, but got %v", val, msgs) } } badVa...
explode_data.jsonl/11823
{ "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, 3872, 76059, 1155, 353, 8840, 836, 8, 341, 3174, 1386, 6227, 1669, 3056, 1235, 341, 197, 16309, 526, 198, 197, 25320, 256, 526, 198, 197, 22543, 256, 526, 198, 197, 92, 2979, 16, 11, 220, 15, 11, 220, 16, 15, 2137, 314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSendAllDataUpdateGoesToAllStreams(t *testing.T) { sp := &mockStreamProvider{credentialOfDesiredType: config.SDKKey("")} store := makeMockStore(nil, nil) es := NewEnvStreams([]StreamProvider{sp}, store, 0, ldlog.NewDisabledLoggers()) defer es.Close() sdkKey1, sdkKey2, sdkKey3 := config.SDKKey("sdk-key1")...
explode_data.jsonl/69848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 343 }
[ 2830, 3393, 11505, 2403, 1043, 4289, 38, 7072, 1249, 2403, 73576, 1155, 353, 8840, 836, 8, 341, 41378, 1669, 609, 16712, 3027, 5179, 90, 66799, 2124, 4896, 2690, 929, 25, 2193, 46822, 1592, 39047, 630, 57279, 1669, 1281, 11571, 6093, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStub_Handling(t *testing.T) { f := Setup() defer f.Stop() bindingCalled := make(chan bool) startStub(f.App, StubSpec{ Bindings: tk.MapBindings{ term.K('a'): func(tk.Widget) { bindingCalled <- true }}, }) f.TTY.Inject(term.K('a')) select { case <-bindingCalled: // OK case <-time.After(time.Sec...
explode_data.jsonl/1933
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 160 }
[ 2830, 3393, 33838, 2039, 437, 2718, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 18626, 741, 16867, 282, 30213, 2822, 2233, 3961, 20960, 1669, 1281, 35190, 1807, 340, 21375, 33838, 955, 5105, 11, 66611, 8327, 515, 197, 197, 52843, 25, 1716...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNextFunctionReturnDefer(t *testing.T) { var testcases []nextTest ver, _ := goversion.Parse(runtime.Version()) if ver.Major < 0 || ver.AfterOrEqual(goversion.GoVersion{Major: 1, Minor: 9, Rev: -1}) { testcases = []nextTest{ {5, 6}, {6, 9}, {9, 10}, } } else { testcases = []nextTest{ {5, ...
explode_data.jsonl/56209
{ "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, 5847, 5152, 5598, 1912, 802, 1155, 353, 8840, 836, 8, 341, 2405, 1273, 23910, 3056, 3600, 2271, 271, 197, 423, 11, 716, 1669, 728, 4366, 8937, 89467, 35842, 12367, 743, 2739, 1321, 3035, 366, 220, 15, 1369, 2739, 36892, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func Test_Resource_ServiceAccount_GetDesiredState(t *testing.T) { testCases := []struct { Obj interface{} ExpectedName string }{ { Obj: &v1alpha1.KVMConfig{ Spec: v1alpha1.KVMConfigSpec{ Cluster: v1alpha1.Cluster{ ID: "al9qy", }, }, }, ExpectedName: "al9qy", }, { ...
explode_data.jsonl/8026
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 518 }
[ 2830, 3393, 86346, 52548, 7365, 13614, 4896, 2690, 1397, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 5261, 688, 3749, 16094, 197, 197, 18896, 675, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 5261, 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...
5
func TestPoolCopyParsedDataUpdateFull(t *testing.T) { module := `package test p = data.a ` data := []byte(`{"a": 123}`) poolSize := 4 testPool := initPoolWithData(t, uint32(poolSize), module, "test/p", data) updated := []byte(`{"a": {"x": 123, "y": "bar"}}`) err := testPool.SetPolicyData(testPool.Policy(), ...
explode_data.jsonl/60243
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 320 }
[ 2830, 3393, 10551, 12106, 82959, 1043, 4289, 9432, 1155, 353, 8840, 836, 8, 341, 54020, 1669, 1565, 1722, 1273, 17642, 3223, 284, 821, 5849, 198, 197, 3989, 8924, 1669, 3056, 3782, 5809, 4913, 64, 788, 220, 16, 17, 18, 5541, 692, 8527...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetReplicaCount(t *testing.T) { tests := map[string]struct { expectedOutput string Volume VolumeInfo }{ "Fetching ReplicaCount": { Volume: VolumeInfo{ Volume: v1alpha1.CASVolume{ ObjectMeta: metav1.ObjectMeta{ Annotations: map[string]string{}, }, Spec: v1alpha1.CASVo...
explode_data.jsonl/78052
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 673 }
[ 2830, 3393, 1949, 18327, 15317, 2507, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 42400, 5097, 914, 198, 197, 17446, 4661, 260, 20265, 1731, 198, 197, 59403, 197, 197, 1, 52416, 94036, 2507, 788, 341, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAutomationWatch_Run(t *testing.T) { ctrl := gomock.NewController(t) mockStore := mocks.NewMockAutomationStatusGetter(ctrl) defer ctrl.Finish() expected := fixture.AutomationStatus() opts := &WatchOpts{ store: mockStore, } mockStore. EXPECT(). GetAutomationStatus(opts.ProjectID). Return(expect...
explode_data.jsonl/17096
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 98856, 14247, 84158, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 77333, 6093, 1669, 68909, 7121, 11571, 98856, 2522, 31485, 62100, 340, 16867, 23743, 991, 18176, 2822, 42400, 1669, 12507, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestClimbStairs(t *testing.T) { n1 := 2 r1 := 2 n2 := 3 r2 := 3 n3 := 7 r3 := 21 resu1 := climbStairs(n1) resu2 := climbStairs(n2) resu3 := climbStairs(n3) if resu1 != r1 || resu2 != r2 || resu3 != r3 { t.Fail() } }
explode_data.jsonl/8853
{ "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, 34, 4659, 65, 623, 4720, 1155, 353, 8840, 836, 8, 341, 9038, 16, 1669, 220, 17, 198, 7000, 16, 1669, 220, 17, 198, 9038, 17, 1669, 220, 18, 198, 7000, 17, 1669, 220, 18, 198, 9038, 18, 1669, 220, 22, 198, 7000, 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...
4
func TestStream_PulsarMsgStream_InsertRepackFunc(t *testing.T) { pulsarAddress, _ := Params.Load("_PulsarAddress") c1, c2 := funcutil.RandomString(8), funcutil.RandomString(8) producerChannels := []string{c1, c2} consumerChannels := []string{c1, c2} consumerSubName := funcutil.RandomString(8) baseMsg := BaseMsg{ ...
explode_data.jsonl/55293
{ "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, 3027, 1088, 14295, 277, 6611, 3027, 76417, 693, 4748, 9626, 1155, 353, 8840, 836, 8, 341, 3223, 14295, 277, 4286, 11, 716, 1669, 34352, 13969, 16975, 47, 14295, 277, 4286, 1138, 1444, 16, 11, 272, 17, 1669, 2915, 1314, 267...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCommittee(t *testing.T) { val1, _ := validator.GenerateTestValidator(0) val2, _ := validator.GenerateTestValidator(1) val3, _ := validator.GenerateTestValidator(2) val4, _ := validator.GenerateTestValidator(3) committee, err := NewCommittee([]*validator.Validator{val1, val2, val3, val4}, 4, val1.Address(...
explode_data.jsonl/35323
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 159 }
[ 2830, 3393, 33441, 6547, 1155, 353, 8840, 836, 8, 341, 19302, 16, 11, 716, 1669, 22935, 57582, 2271, 14256, 7, 15, 340, 19302, 17, 11, 716, 1669, 22935, 57582, 2271, 14256, 7, 16, 340, 19302, 18, 11, 716, 1669, 22935, 57582, 2271, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseOrdinal(t *testing.T) { type ordinalTest struct { // fields exported for the comparator Input, Kind string Ordinal int HasOrdinal bool } tests := []ordinalTest{ {"/kythe/edge/defines", "/kythe/edge/defines", 0, false}, {"/kythe/edge/kind.here", "/kythe/edge/kind.here", 0, false}, {"/ky...
explode_data.jsonl/25933
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 429 }
[ 2830, 3393, 14463, 34779, 1155, 353, 8840, 836, 8, 341, 13158, 67948, 2271, 2036, 314, 442, 5043, 34890, 369, 279, 52040, 198, 197, 66588, 11, 16840, 914, 198, 197, 197, 34779, 257, 526, 198, 197, 197, 10281, 34779, 220, 1807, 198, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestRamStoreCRUD(t *testing.T) { key := "pod1" testCases := []struct { // The operations that will be executed on the storage operations func(*store) // The object expected to be got by the key expected runtime.Object }{ { operations: func(store *store) { store.Create(&v1.Pod{ObjectMeta: metav1...
explode_data.jsonl/65623
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 648 }
[ 2830, 3393, 63848, 6093, 8973, 4656, 1155, 353, 8840, 836, 8, 341, 23634, 1669, 330, 39073, 16, 698, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 322, 576, 7525, 429, 686, 387, 15695, 389, 279, 5819, 198, 197, 197, 38163, 2915, 4071...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIngressCheckCache(t *testing.T) { // Apply denial rule to istio-ingress, so that only request with ["x-user"] could go through. // This is to make the test focus on ingress check cache. t.Logf("block request through ingress if x-user header is john") if err := applyMixerRule(ingressDenialRule); err != nil ...
explode_data.jsonl/81439
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 533 }
[ 2830, 3393, 641, 2483, 3973, 8233, 1155, 353, 8840, 836, 8, 341, 197, 322, 20552, 33913, 5912, 311, 5999, 815, 83905, 673, 11, 773, 429, 1172, 1681, 448, 4383, 87, 8694, 1341, 1410, 728, 1526, 624, 197, 322, 1096, 374, 311, 1281, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEntryAddUntimedNoPipelinesInMetadata(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() nowNanos := time.Now().UnixNano() inputMetadatas := metadata.StagedMetadatas{ metadata.StagedMetadata{ CutoverNanos: nowNanos - 100, Tombstoned: false, }, } e, _, now := testEntry(ctrl, t...
explode_data.jsonl/24212
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 189 }
[ 2830, 3393, 5874, 2212, 20250, 75485, 2753, 47, 93997, 641, 14610, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 80922, 45, 43605, 1669, 882, 13244, 1005, 55832, 83819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestArkResourcesExist(t *testing.T) { var ( fakeDiscoveryHelper = &arktest.FakeDiscoveryHelper{} server = &server{ logger: arktest.NewLogger(), discoveryHelper: fakeDiscoveryHelper, } ) // Ark API group doesn't exist in discovery: should error fakeDiscoveryHelper.ResourceList...
explode_data.jsonl/40906
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 492 }
[ 2830, 3393, 90788, 11277, 25613, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 1166, 726, 67400, 5511, 284, 609, 838, 1944, 991, 726, 67400, 5511, 16094, 197, 41057, 1060, 284, 609, 4030, 515, 298, 17060, 25, 688, 55217, 1944, 7121, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestPutFileToExistingFileWithoutForceReturnsErr(t *testing.T) { beforeTest(t) conn := _getConnection(t) defer conn.Close() client := agaveproto.NewSftpRelayClient(conn) // create a temp file to put tmpTestFilePath, err := _createTempFile("", ".bin") if err != nil { assert.FailNowf(t, err.Error(), "Unab...
explode_data.jsonl/32557
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 502 }
[ 2830, 3393, 19103, 1703, 1249, 53067, 1703, 26040, 18573, 16446, 7747, 1155, 353, 8840, 836, 8, 341, 63234, 2271, 1155, 692, 32917, 1669, 716, 52414, 1155, 340, 16867, 4534, 10421, 2822, 25291, 1669, 933, 523, 15110, 7121, 50, 25068, 6740...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorizationRequest_String(t *testing.T) { v := AuthorizationRequest{ Note: String(""), NoteURL: String(""), ClientID: String(""), ClientSecret: String(""), Fingerprint: String(""), } want := `github.AuthorizationRequest{Note:"", NoteURL:"", ClientID:"", ClientSecret:"", Fingerp...
explode_data.jsonl/33219
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 162 }
[ 2830, 3393, 18124, 1900, 31777, 1155, 353, 8840, 836, 8, 341, 5195, 1669, 30562, 1900, 515, 197, 197, 9112, 25, 260, 923, 445, 4461, 197, 197, 9112, 3144, 25, 414, 923, 445, 4461, 197, 71724, 915, 25, 257, 923, 445, 4461, 197, 71724...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckPointSimple(t *testing.T) { setup() assert := require.New(t) r := strings.NewReader(`2021-01-14T12:16:54.579+0800 INFO CheckPoint {"host": "172.16.5.140", "port": "22", "user": "tidb", "cmd": "test cmd", "stdout": "success", "stderr": ""}`) c, err := NewCheckPoint(r) assert.Nil(err) ct...
explode_data.jsonl/27335
{ "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, 3973, 2609, 16374, 1155, 353, 8840, 836, 8, 341, 84571, 2822, 6948, 1669, 1373, 7121, 1155, 340, 7000, 1669, 9069, 68587, 5809, 17, 15, 17, 16, 12, 15, 16, 12, 16, 19, 51, 16, 17, 25, 16, 21, 25, 20, 19, 13, 20, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestCounter(t *testing.T) { counter := 0 for i := 0; i < 5000; i++ { go func() { counter++ }() } time.Sleep(1 * time.Second) t.Logf("counter = %d", counter) }
explode_data.jsonl/34245
{ "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, 14099, 1155, 353, 8840, 836, 8, 341, 58261, 1669, 220, 15, 271, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 20, 15, 15, 15, 26, 600, 1027, 341, 197, 30680, 2915, 368, 341, 298, 58261, 22940, 197, 197, 69826, 197, 532,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
1
func TestSgpd(t *testing.T) { rollEntry := &RollSampleGroupEntry{RollDistance: -1} rapEntry := &RapSampleGroupEntry{NumLeadingSamplesKnown: 1, NumLeadingSamples: 12} alstEntry := &AlstSampleGroupEntry{RollCount: 2, FirstOutputSample: 1, SampleOffset: []uint32{7000, 1234}} unknownEntry := &UnknownSampleGroupEntry{N...
explode_data.jsonl/14189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 342 }
[ 2830, 3393, 50, 70, 15360, 1155, 353, 8840, 836, 8, 1476, 197, 1100, 5874, 1669, 609, 32355, 17571, 2808, 5874, 90, 32355, 14778, 25, 481, 16, 532, 197, 4611, 5874, 1669, 609, 49, 391, 17571, 2808, 5874, 90, 4651, 69750, 39571, 48206,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParallelSender(t *testing.T) { defer leaktest.AfterTest(t)() s, db := startNoSplitMergeServer(t) defer s.Stopper().Stop(context.TODO()) ctx := context.TODO() // Split into multiple ranges. splitKeys := []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j"} for _, key := range splitKeys { if err :...
explode_data.jsonl/36461
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 561 }
[ 2830, 3393, 16547, 20381, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 1903, 11, 2927, 1669, 1191, 2753, 20193, 52096, 5475, 1155, 340, 16867, 274, 7758, 18487, 1005, 10674, 5378, 90988, 2398, 20985, 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 TestOpAdd(t *testing.T) { assert := assert.New(t) jl := NewEmpty() AddOpAdd(jl) TestCases{ {Logic: `{"+":[]}`, Data: `null`, Result: float64(0)}, {Logic: `{"+":["1"]}`, Data: `null`, Result: float64(1)}, {Logic: `{"+":[1,"-2",33]}`, Data: `null`, Result: float64(32)}, {Logic: `{"+":["a"]}`, Data: `null...
explode_data.jsonl/43991
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 490 }
[ 2830, 3393, 7125, 2212, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 12428, 75, 1669, 1532, 3522, 741, 37972, 7125, 2212, 3325, 75, 340, 73866, 37302, 515, 197, 197, 90, 26751, 25, 1565, 4913, 80479, 1294, 28350, 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 TestConfig_getOptionsFromConfig(t *testing.T) { type fields struct { ExporterSettings configmodels.ExporterSettings AccessToken string Realm string IngestURL string APIURL string Timeout time.Duration Headers map[s...
explode_data.jsonl/60396
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1805 }
[ 2830, 3393, 2648, 3062, 3798, 3830, 2648, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 197, 88025, 6086, 414, 2193, 6507, 81077, 261, 6086, 198, 197, 197, 37649, 1843, 914, 198, 197, 197, 64290, 338, 914, 198, 197, 70167...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddPadding( t *testing.T ) { // input-result data items dataItems := []TestDataItem{ { []byte("YELLOW SUBMARINE"),20,[]byte("YELLOW SUBMARINE\x04\x04\x04\x04")}, { []byte("YELLOW SUBMARINE"),15,[]byte("YELLOW SUBMARINE\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04\x04")}, { []byte("YELLOW SUBMAR...
explode_data.jsonl/2428
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 414 }
[ 2830, 3393, 2212, 21616, 7, 259, 353, 8840, 836, 873, 1476, 197, 322, 1946, 53838, 821, 3589, 198, 8924, 4353, 1669, 3056, 83920, 1234, 515, 197, 197, 90, 3056, 3782, 445, 97029, 16140, 60661, 3981, 3975, 17, 15, 11, 1294, 3782, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestMigrateAuthToSAML(t *testing.T) { th := Setup(t).InitBasic() defer th.TearDown() resp, err := th.Client.MigrateAuthToSaml("email", map[string]string{"1": "a"}, true) require.Error(t, err) CheckForbiddenStatus(t, resp) th.TestForSystemAdminAndLocal(t, func(t *testing.T, client *model.Client4) { resp, ...
explode_data.jsonl/47569
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 180 }
[ 2830, 3393, 44, 34479, 5087, 1249, 50, 31102, 1155, 353, 8840, 836, 8, 341, 70479, 1669, 18626, 1155, 568, 3803, 15944, 741, 16867, 270, 836, 682, 4454, 2822, 34653, 11, 1848, 1669, 270, 11716, 1321, 34479, 5087, 1249, 50, 9467, 445, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseCloudTrailValidationMessage(t *testing.T) { notification := "CloudTrail validation message." s3Objects, err := ParseNotification(notification) require.NoError(t, err) require.Equal(t, 0, len(s3Objects)) }
explode_data.jsonl/14770
{ "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, 14463, 16055, 74096, 13799, 2052, 1155, 353, 8840, 836, 8, 341, 197, 18553, 1669, 330, 16055, 74096, 10519, 1943, 2217, 1903, 18, 11543, 11, 1848, 1669, 14775, 11196, 54880, 340, 17957, 35699, 1155, 11, 1848, 340, 17957, 12808...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIterateRange(t *testing.T) { type record struct { key string value string } records := []record{ {"abc", "123"}, {"low", "high"}, {"fan", "456"}, {"foo", "a"}, {"foobaz", "c"}, {"good", "bye"}, {"foobang", "d"}, {"foobar", "b"}, {"food", "e"}, {"foml", "f"}, } keys := make([]str...
explode_data.jsonl/5015
{ "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, 8537, 349, 6046, 1155, 353, 8840, 836, 8, 341, 13158, 3255, 2036, 341, 197, 23634, 256, 914, 198, 197, 16309, 914, 198, 197, 630, 197, 26203, 1669, 3056, 8548, 515, 197, 197, 4913, 13683, 497, 330, 16, 17, 18, 7115, 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 TestJobDoubleSubmit(t *testing.T) { withRepository(func(r *RedisJobRepository) { job1 := addTestJobWithClientId(t, r, "queue1", "my-job-1") job2 := addTestJobWithClientId(t, r, "queue1", "my-job-1") assert.Equal(t, job1.Id, job2.Id) }) }
explode_data.jsonl/32034
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 12245, 7378, 8890, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 18552, 2601, 353, 48137, 12245, 4624, 8, 341, 197, 68577, 16, 1669, 912, 2271, 12245, 2354, 94116, 1155, 11, 435, 11, 330, 4584, 16, 497, 330, 2408, 69948, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestTypeFieldOutOfRangePanic(t *testing.T) { typ := TypeOf(struct{ X int }{10}) testIndices := [...]struct { i int mustPanic bool }{ 0: {-2, true}, 1: {0, false}, 2: {1, true}, 3: {1 << 10, true}, } for i, tt := range testIndices { recoveredErr := fieldIndexRecover(typ, tt.i) if tt.mus...
explode_data.jsonl/29628
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 260 }
[ 2830, 3393, 929, 1877, 46608, 47, 31270, 1155, 353, 8840, 836, 8, 341, 25314, 1669, 3990, 2124, 6163, 90, 1599, 526, 335, 90, 16, 15, 3518, 18185, 31941, 1669, 48179, 1235, 341, 197, 8230, 260, 526, 198, 197, 2109, 590, 47, 31270, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsNetworkStatsError(t *testing.T) { isNetStatsErr := isNetworkStatsError(fmt.Errorf("no such file or directory")) if isNetStatsErr { // Expect it to not be a net stats error t.Error("Error incorrectly reported as network stats error") } isNetStatsErr = isNetworkStatsError(fmt.Errorf("open /sys/class/n...
explode_data.jsonl/398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 172 }
[ 2830, 3393, 3872, 12320, 16635, 1454, 1155, 353, 8840, 836, 8, 341, 19907, 6954, 16635, 7747, 1669, 374, 12320, 16635, 1454, 28197, 13080, 445, 2152, 1741, 1034, 476, 6220, 5455, 743, 374, 6954, 16635, 7747, 341, 197, 197, 322, 32085, 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...
3
func TestFixedBackoff(t *testing.T) { if backoff, _ := NewFixedBackoff(12); backoff.delayMillis != 12 || backoff.NextDelayMillis(31) != 12 { t.FailNow() } if backoff, err := NewFixedBackoff(-1); err == nil || backoff != nil { t.FailNow() } }
explode_data.jsonl/26473
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 99 }
[ 2830, 3393, 13520, 3707, 1847, 1155, 353, 8840, 836, 8, 341, 743, 1182, 1847, 11, 716, 1669, 1532, 13520, 3707, 1847, 7, 16, 17, 1215, 1182, 1847, 40620, 17897, 961, 220, 16, 17, 1369, 1182, 1847, 18501, 20039, 17897, 7, 18, 16, 8, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestUpdateChainIdVersion(t *testing.T) { g := GetMainNetGenesis() b := g.Block().GetHeader().GetChainID() cid0 := new(ChainID) cid0.Read(b) if cid0.Version != 0 { t.Errorf("version mismatch: 0 expected, but got %d", cid0.Version) t.Log(cid0.ToJSON()) } updatedCID := MakeChainId(b, 0) if !bytes.Equal(b,...
explode_data.jsonl/47848
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 251 }
[ 2830, 3393, 4289, 18837, 764, 5637, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 2126, 6202, 6954, 84652, 741, 2233, 1669, 342, 28477, 1005, 1949, 4047, 1005, 1949, 18837, 915, 741, 1444, 307, 15, 1669, 501, 7, 18837, 915, 340, 1444, 307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestBuildConfigWithSecrets(t *testing.T) { url, err := git.Parse("https://github.com/openshift/origin.git") if err != nil { t.Fatalf("unexpected error: %v", err) } source := &SourceRef{URL: url, Secrets: []buildv1.SecretBuildSource{ {Secret: corev1.LocalObjectReference{Name: "foo"}, DestinationDir: "/var"}...
explode_data.jsonl/17581
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 241 }
[ 2830, 3393, 11066, 2648, 2354, 19773, 82, 1155, 353, 8840, 836, 8, 341, 19320, 11, 1848, 1669, 16345, 8937, 445, 2428, 1110, 5204, 905, 14, 24175, 47833, 14, 8611, 32799, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 445, 53859, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContext2Plan_outputContainsTargetedResource(t *testing.T) { m := testModule(t, "plan-untargeted-resource-output") p := testProvider("aws") p.DiffFn = testDiffFn ctx := testContext2(t, &ContextOpts{ Config: m, ProviderResolver: providers.ResolverFixed( map[string]providers.Factory{ "aws": testPro...
explode_data.jsonl/28709
{ "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, 1972, 17, 20485, 7645, 23805, 6397, 291, 4783, 1155, 353, 8840, 836, 8, 341, 2109, 1669, 1273, 3332, 1155, 11, 330, 10393, 12, 3850, 1284, 291, 74790, 59524, 1138, 3223, 1669, 1273, 5179, 445, 8635, 1138, 3223, 98063, 24911,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReceivePostingIsFull(t *testing.T) { const bufferSize = 1500 c := newTestContext(t, 20000, bufferSize, localLinkAddr) defer c.cleanup() // Complete first posted buffer before flushing it from the tx pipe. first := queue.DecodeRxBufferHeader(pollPull(t, &c.rxq.tx, time.After(time.Second), "Timeout waiting...
explode_data.jsonl/4240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 525 }
[ 2830, 3393, 14742, 81652, 3872, 9432, 1155, 353, 8840, 836, 8, 341, 4777, 65158, 284, 220, 16, 20, 15, 15, 198, 1444, 1669, 501, 2271, 1972, 1155, 11, 220, 17, 15, 15, 15, 15, 11, 65158, 11, 2205, 3939, 13986, 340, 16867, 272, 876...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetTimestamp(t *testing.T) { now := time.Now() cases := []struct{ in, expected string }{ {"0", "-62167305600"}, // 0 gets parsed year 0 // Partial RFC3339 strings get parsed with second precision {"2006-01-02T15:04:05.999999999+07:00", "1136189045"}, {"2006-01-02T15:04:05.999999999Z", "1136214245"},...
explode_data.jsonl/4179
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 505 }
[ 2830, 3393, 1949, 20812, 1155, 353, 8840, 836, 8, 341, 80922, 1669, 882, 13244, 741, 1444, 2264, 1669, 3056, 1235, 90, 304, 11, 3601, 914, 335, 515, 197, 197, 4913, 15, 497, 6523, 21, 17, 16, 21, 22, 18, 15, 20, 21, 15, 15, 1434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReplaceObjxMap(t *testing.T) { v := &Value{data: [](Map){(Map)(New(1)), (Map)(New(1)), (Map)(New(1)), (Map)(New(1)), (Map)(New(1)), (Map)(New(1))}} rawArr := v.MustObjxMapSlice() replaced := v.ReplaceObjxMap(func(index int, val Map) Map { if index < len(rawArr)-1 { return rawArr[index+1] } retur...
explode_data.jsonl/23398
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 327 }
[ 2830, 3393, 23107, 5261, 87, 2227, 1155, 353, 8840, 836, 8, 1476, 5195, 1669, 609, 1130, 90, 691, 25, 39444, 2227, 6098, 7, 2227, 2376, 3564, 7, 16, 5731, 320, 2227, 2376, 3564, 7, 16, 5731, 320, 2227, 2376, 3564, 7, 16, 5731, 320...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStream_GetDepth(t *testing.T) { t.Run("test", func(t *testing.T) { assert := base.NewAssert(t) for i := 0; i < 1000; i++ { v := NewStream() depth := uint16(i) v.SetDepth(depth) assert(v.GetDepth()).Equals(depth) v.Release() } }) }
explode_data.jsonl/21180
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 124 }
[ 2830, 3393, 3027, 13614, 19776, 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, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 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, 1, 1, 1...
2
func TestSave(t *testing.T) { testCases := []saveTestCase{ saveTestCase{ name: "Save config", config: &latest.Config{ Version: "latest", Default: "myDefault", }, expectedConfigFile: latest.Config{ Version: "latest", Default: "myDefault", }, }, } dir, err := ioutil.TempDir("", "tes...
explode_data.jsonl/54492
{ "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, 8784, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 6628, 16458, 515, 197, 49230, 16458, 515, 298, 11609, 25, 330, 8784, 2193, 756, 298, 25873, 25, 609, 19350, 10753, 515, 571, 77847, 25, 330, 19350, 756, 571, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBaseNotifier(t *testing.T) { Convey("default constructor for notifiers", t, func() { bJSON := simplejson.New() model := &models.AlertNotification{ Uid: "1", Name: "name", Type: "email", Settings: bJSON, } Convey("can parse false value", func() { bJSON.Set("uploadImage", f...
explode_data.jsonl/58804
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 333 }
[ 2830, 3393, 3978, 64729, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 2258, 4692, 369, 537, 11836, 497, 259, 11, 2915, 368, 341, 197, 2233, 5370, 1669, 4285, 2236, 7121, 2822, 197, 19727, 1669, 609, 6507, 40143, 11196, 515, 298, 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 TestKernelArgumentsValidate(t *testing.T) { tests := []struct { in KernelArguments out string }{ // Ensure that ValidateWithContext prevents duplicate entries // in ShouldExist & ShouldNotExist { KernelArguments{ ShouldExist: []KernelArgument{ "foo", "bar", }, ShouldNotExist: ...
explode_data.jsonl/69743
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 276 }
[ 2830, 3393, 26343, 19139, 17926, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 17430, 220, 36603, 19139, 198, 197, 13967, 914, 198, 197, 59403, 197, 197, 322, 29279, 429, 23282, 91101, 27934, 22513, 10695, 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...
3
func TestServer_resultsURL(t *testing.T) { type fields struct { cert string privkey string jobs chan Job results chan result url string resultsDir string prefix string } tests := []struct { name string fields fields want string }{ {"ok", fields{resultsDir: "/re...
explode_data.jsonl/63409
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 402 }
[ 2830, 3393, 5475, 13576, 3144, 1155, 353, 8840, 836, 8, 341, 13158, 5043, 2036, 341, 197, 1444, 529, 981, 914, 198, 197, 71170, 792, 262, 914, 198, 197, 12428, 5481, 981, 26023, 12011, 198, 197, 55497, 262, 26023, 1102, 198, 197, 1932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsNull(t *testing.T) { t.Parallel() resource.Require(t, resource.UnitTest) wiTbl := workitem.WorkItemStorage{}.TableName() expect(t, c.IsNull("system.assignees"), `(`+workitem.Column(wiTbl, "fields")+`->>'system.assignees' IS NULL)`, []interface{}{}, nil) expect(t, c.IsNull("ID"), `(`+workitem.Column(wiTb...
explode_data.jsonl/36708
{ "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, 98593, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50346, 81288, 1155, 11, 5101, 25159, 2271, 340, 6692, 83589, 2024, 1669, 975, 1203, 28748, 1234, 5793, 46391, 33227, 741, 24952, 1155, 11, 272, 66275, 445, 8948, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandshakeClientX25519(t *testing.T) { config := testConfig.Clone() config.CurvePreferences = []CurveID{X25519} test := &clientTest{ name: "X25519-ECDHE", args: []string{"-cipher", "ECDHE-RSA-AES128-GCM-SHA256", "-curves", "X25519"}, config: config, } runClientTestTLS12(t, test) runClientTestT...
explode_data.jsonl/27700
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 145 }
[ 2830, 3393, 2314, 29661, 2959, 55, 17, 20, 20, 16, 24, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 1273, 2648, 64463, 741, 25873, 727, 73047, 14306, 284, 3056, 31325, 915, 90, 55, 17, 20, 20, 16, 24, 630, 18185, 1669, 609, 2972, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_cmpl(t *testing.T) { tt(t, func() { vm := New() test := func(src string, expect ...interface{}) { program, err := parser.ParseFile(nil, "", src, 0) is(err, nil) { program := cmpl_parse(program) value := vm.runtime.cmpl_evaluate_nodeProgram(program, false) if len(expect) > 0 { i...
explode_data.jsonl/9317
{ "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, 43619, 500, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1155, 11, 2915, 368, 341, 197, 54879, 1669, 1532, 2822, 197, 18185, 1669, 2915, 14705, 914, 11, 1720, 2503, 4970, 28875, 341, 298, 197, 14906, 11, 1848, 1669, 6729, 8937,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetUserWithWallet_ExistingUser(t *testing.T) { setupTest() srv := test.RandServerAddress(t) rt := sdkrouter.New(map[string]string{"a": srv}) url, cleanup := dummyAPI(srv) defer cleanup() u, err := GetUserWithSDKServer(rt, url, "abc", "") assert.NoError(t, err) assert.NotNil(t, u) assert.EqualValues(t...
explode_data.jsonl/1632
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 179 }
[ 2830, 3393, 1949, 1474, 2354, 38259, 62, 53067, 1474, 1155, 353, 8840, 836, 8, 341, 84571, 2271, 741, 1903, 10553, 1669, 1273, 2013, 437, 5475, 4286, 1155, 340, 55060, 1669, 45402, 9937, 7121, 9147, 14032, 30953, 4913, 64, 788, 43578, 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 TestInteropTLS(t *testing.T) { a := assertions.New(t) config := &component.Config{ ServiceBase: config.ServiceBase{ TLS: tlsconfig.Config{ ServerAuth: tlsconfig.ServerAuth{ Certificate: "testdata/servercert.pem", Key: "testdata/serverkey.pem", }, Client: tlsconfig.Client{ ...
explode_data.jsonl/64333
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1263 }
[ 2830, 3393, 94000, 45439, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 54836, 7121, 1155, 692, 25873, 1669, 609, 8571, 10753, 515, 197, 91619, 3978, 25, 2193, 13860, 3978, 515, 298, 10261, 7268, 25, 55026, 1676, 10753, 515, 571, 92075, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestGenerateProgram(t *testing.T) { t.Parallel() test.TestProgramCodegen(t, test.ProgramCodegenOptions{ Language: "go", Extension: "go", OutputFile: "main.go", Check: func(t *testing.T, path string, dependencies codegen.StringSet) { Check(t, path, dependencies, "../../../../../../../sdk") ...
explode_data.jsonl/61959
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 167 }
[ 2830, 3393, 31115, 10690, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18185, 8787, 10690, 2078, 4370, 1155, 345, 197, 18185, 80254, 2078, 4370, 3798, 515, 298, 197, 13806, 25, 256, 330, 3346, 756, 298, 197, 12049, 25, 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