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 TestClient_CompileSpj(t *testing.T) { cSpjSrc := ` #include <stdio.h> int main(){ return 1; } ` resp, err := client.CompileSpj(cSpjSrc, "2", CLangSPJCompile) if err != nil { t.Errorf("unexpected error. error: %+v", err) return } if resp.Err() != nil { t.Errorf("unexpected error. error: %+v", resp.Er...
explode_data.jsonl/24785
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 2959, 16946, 12192, 6406, 73, 1155, 353, 8840, 836, 8, 341, 1444, 6406, 73, 20360, 1669, 22074, 1067, 366, 10345, 860, 397, 396, 1887, 3032, 262, 470, 220, 16, 280, 532, 3989, 34653, 11, 1848, 1669, 2943, 89323, 6406, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue19596(t *testing.T) { store, clean := testkit.CreateMockStore(t) defer clean() tk := testkit.NewTestKit(t, store) tk.MustExec("use test") tk.MustExec("drop table if exists t;") tk.MustExec("create table t (a int) partition by range(a) (PARTITION p0 VALUES LESS THAN (10));") tk.MustGetErrMsg("alter...
explode_data.jsonl/65548
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 42006, 16, 24, 20, 24, 21, 1155, 353, 8840, 836, 8, 341, 57279, 11, 4240, 1669, 1273, 8226, 7251, 11571, 6093, 1155, 340, 16867, 4240, 2822, 3244, 74, 1669, 1273, 8226, 7121, 2271, 7695, 1155, 11, 3553, 340, 3244, 74, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestInternalTracesToZipkinSpansAndBack(t *testing.T) { rscSpans, err := goldendataset.GenerateResourceSpans( "../../../internal/goldendataset/testdata/generated_pict_pairs_traces.txt", "../../../internal/goldendataset/testdata/generated_pict_pairs_spans.txt", io.Reader(rand.New(rand.NewSource(2004)))) asse...
explode_data.jsonl/40142
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 338 }
[ 2830, 3393, 11569, 1282, 2434, 1249, 31047, 7989, 6406, 596, 3036, 3707, 1155, 353, 8840, 836, 8, 341, 7000, 2388, 6406, 596, 11, 1848, 1669, 6623, 408, 8369, 57582, 4783, 6406, 596, 1006, 197, 197, 1, 26744, 10481, 4846, 813, 408, 83...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReceiveTicket_InvalidSenderNonce(t *testing.T) { sender, b, v, ts, faceValue, winProb, sig := newRecipientFixtureOrFatal(t) r := newRecipientOrFatal(t, RandAddress(), b, v, ts, faceValue, winProb) params := r.TicketParams(sender) // Test invalid senderNonce // Receive senderNonce = 0 ticket0 := newTicke...
explode_data.jsonl/44760
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 522 }
[ 2830, 3393, 14742, 34058, 62, 7928, 20381, 90528, 1155, 353, 8840, 836, 8, 341, 1903, 1659, 11, 293, 11, 348, 11, 10591, 11, 3579, 1130, 11, 3164, 36980, 11, 8366, 1669, 501, 74432, 18930, 2195, 62396, 1155, 340, 7000, 1669, 501, 7443...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestClientOptions(t *testing.T) { client := dc() client.SetContentLength(true) assertEqual(t, client.setContentLength, true) client.SetHostURL("http://httpbin.org") assertEqual(t, "http://httpbin.org", client.HostURL) client.SetHeader(hdrContentTypeKey, "application/json; charset=utf-8") client.SetHeaders...
explode_data.jsonl/39351
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1307 }
[ 2830, 3393, 2959, 3798, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 19402, 741, 25291, 4202, 2762, 4373, 3715, 340, 6948, 2993, 1155, 11, 2943, 45193, 4373, 11, 830, 692, 25291, 4202, 9296, 3144, 445, 1254, 1110, 1254, 6863, 2659, 1138, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestFlagCompletionWorksRootCommandAddedAfterFlags(t *testing.T) { rootCmd := &Command{Use: "root", Run: emptyRun} childCmd := &Command{ Use: "child", Run: emptyRun, ValidArgsFunction: func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) { return []string{"--validarg", "tes...
explode_data.jsonl/43759
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 421 }
[ 2830, 3393, 12135, 33190, 37683, 8439, 4062, 19337, 6025, 9195, 1155, 353, 8840, 836, 8, 341, 33698, 15613, 1669, 609, 4062, 90, 10253, 25, 330, 2888, 497, 6452, 25, 4287, 6727, 532, 58391, 15613, 1669, 609, 4062, 515, 197, 95023, 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 TestPaginatedBase_First(t *testing.T) { b := PaginatedBase{ getFunc: func(parameters APIRequestParameters) (Paginated, error) { assert.Equal(t, 1, parameters.Pagination.Page) return &PaginatedBase{ parameters: parameters, }, nil }, } firstPage, err := b.First() assert.Nil(t, err) assert.Eq...
explode_data.jsonl/44633
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 143 }
[ 2830, 3393, 47712, 15479, 3978, 79790, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 42355, 15479, 3978, 515, 197, 10366, 9626, 25, 2915, 37959, 5333, 1900, 9706, 8, 320, 47712, 15479, 11, 1465, 8, 341, 298, 6948, 12808, 1155, 11, 220, 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 TestBuildUpstreamName(t *testing.T) { invalidType := &ingress.Ingress{} expected := "" actual := buildUpstreamName(invalidType) if expected != actual { t.Errorf("Expected '%v' but returned '%v'", expected, actual) } defaultBackend := "upstream-name" defaultHost := "example.com" for k, tc := range tmpl...
explode_data.jsonl/80596
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 471 }
[ 2830, 3393, 11066, 2324, 4027, 675, 1155, 353, 8840, 836, 8, 341, 197, 11808, 929, 1669, 609, 287, 673, 5337, 2483, 16094, 42400, 1669, 8389, 88814, 1669, 1936, 2324, 4027, 675, 5900, 1891, 929, 692, 743, 3601, 961, 5042, 341, 197, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func Test_GetConfig(t *testing.T) { for _, input := range getConfigTestCases() { if len(input.CommandLineFlags) > 0 { os.Args = input.CommandLineFlags } config := &Config{} if input.ConfigPath == "" { conf, err := GetConfig() if !assert.Nil(t, err, "Error getting config: '%v' in test '%v'", err, inp...
explode_data.jsonl/63313
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 519 }
[ 2830, 3393, 13614, 2648, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 1946, 1669, 2088, 66763, 2271, 37302, 368, 1476, 197, 743, 2422, 5384, 12714, 2460, 9195, 8, 861, 220, 15, 341, 298, 25078, 51015, 284, 1946, 12714, 2460, 9195, 198, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestConfirmConfigJSON(t *testing.T) { var result interface{} testConfirmJSON, err := common.ReadFile(ConfigTestFile) if err != nil { t.Errorf("Test failed. testConfirmJSON: %s", err) } err = ConfirmConfigJSON(testConfirmJSON, &result) if err != nil || result == nil { t.Errorf("Test failed. testConfirmJS...
explode_data.jsonl/11027
{ "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, 16728, 2648, 5370, 1155, 353, 8840, 836, 8, 341, 2405, 1102, 3749, 16094, 18185, 16728, 5370, 11, 1848, 1669, 4185, 78976, 33687, 2271, 1703, 340, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 2271, 4641, 13, 1273, 16728...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEnvForRollout(t *testing.T) { testCases := []struct { name string rollout argo.Rollout expected string }{ { name: "should return default env", rollout: argo.Rollout{Spec: argo.RolloutSpec{Template: corev1.PodTemplateSpec{ObjectMeta: v1.ObjectMeta{Labels: map[string]string{}}}}}, ...
explode_data.jsonl/73042
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 814 }
[ 2830, 3393, 1949, 14359, 2461, 32355, 411, 1155, 353, 8840, 836, 8, 1476, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 197, 1100, 411, 220, 1392, 78, 71212, 411, 198, 197, 42400, 914, 198, 197, 59403, 197, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAes256CbcEncryptAndDecryptWithPadding(t *testing.T) { tests := []struct { inputDataPlaintext []byte inputDataKeyEncrypt []byte inputDataKeyDecrypt []byte expectedErrEncrypting bool expectedErrDecrypting bool onErrorStr string }{ { []byte{0x68, 0x65, 0x6C, 0x6C, 0x6F, 0x20, ...
explode_data.jsonl/61146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1151 }
[ 2830, 3393, 32, 288, 17, 20, 21, 34, 8904, 61520, 3036, 89660, 2354, 21616, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 22427, 1043, 2120, 1641, 427, 262, 3056, 3782, 198, 197, 22427, 1043, 1592, 61520, 256, 3056,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUseRedundancyWhenSpecified(t *testing.T) { cluster := &logging.ClusterLogging{ Spec: logging.ClusterLoggingSpec{ LogStore: &logging.LogStoreSpec{ Type: "elasticsearch", ElasticsearchSpec: logging.ElasticsearchSpec{ RedundancyPolicy: elasticsearch.SingleRedundancy, }, }, }, } cr :=...
explode_data.jsonl/72375
{ "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, 10253, 6033, 1241, 6572, 4498, 8327, 1870, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 609, 25263, 72883, 34575, 515, 197, 7568, 992, 25, 8392, 72883, 34575, 8327, 515, 298, 24201, 6093, 25, 609, 25263, 5247, 6093, 8327,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestSanitizeMetricName(t *testing.T) { tsts := map[string]string{ "cluster_stats_messages_auth-req_received": "cluster_stats_messages_auth_req_received", "cluster_stats_messages_auth_req_received": "cluster_stats_messages_auth_req_received", } for m, want := range tsts { if got := sanitizeMetricName(m); ...
explode_data.jsonl/46999
{ "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, 23729, 26310, 54310, 675, 1155, 353, 8840, 836, 8, 341, 3244, 36279, 1669, 2415, 14032, 30953, 515, 197, 197, 1, 18855, 15381, 23428, 14014, 12, 2958, 40783, 788, 330, 18855, 15381, 23428, 14014, 17644, 40783, 756, 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...
3
func TestImportMetaCommonJS(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/entry.js": ` console.log(import.meta.url, import.meta.path) `, }, entryPaths: []string{"/entry.js"}, options: config.Options{ Mode: config.ModeBundle, OutputFormat: config.F...
explode_data.jsonl/38555
{ "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, 11511, 12175, 10839, 12545, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 4085, 2857, 788, 22074, 571, 12160, 1665, 83886, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContextDialer(t *testing.T) { ctx := context.Background() cachedDialer := dialer.NewCachedDialer() ctx = dialer.ContextWithDialer(ctx, cachedDialer) cachedDialer2 := dialer.ContextDialer(context.Background()) test.That(t, cachedDialer2, test.ShouldBeNil) cachedDialer2 = dialer.ContextDialer(ctx) test.Th...
explode_data.jsonl/35830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 136 }
[ 2830, 3393, 1972, 35, 530, 261, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 3854, 35, 530, 261, 1669, 27860, 261, 7121, 70293, 35, 530, 261, 741, 20985, 284, 27860, 261, 9328, 2354, 35, 530, 261, 7502, 11, 205...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestChannelConfigName_directMatching(t *testing.T) { testMatchingConfigChannel(t, "ch1", "sampleachannel") testMatchingConfigChannel(t, "ch1", "samplebchannel") testMatchingConfigChannel(t, "ch1", "samplecchannel") testMatchingConfigChannel(t, "ch1", "samplechannel") testNonMatchingConfigChannel(t, "ch1", "m...
explode_data.jsonl/34079
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 132 }
[ 2830, 3393, 9629, 2648, 675, 32871, 64430, 1155, 353, 8840, 836, 8, 341, 18185, 64430, 2648, 9629, 1155, 11, 330, 331, 16, 497, 330, 13611, 610, 2594, 1138, 18185, 64430, 2648, 9629, 1155, 11, 330, 331, 16, 497, 330, 13611, 65, 10119,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddingWorkflowDefaultComplex(t *testing.T) { cancel, controller := newControllerWithComplexDefaults() defer cancel() workflow := unmarshalWF(testDefaultWf) var ten int32 = 10 assert.Equal(t, workflow.Spec.Entrypoint, "whalesay") assert.Nil(t, workflow.Spec.TTLStrategy) assert.Contains(t, workflow.Labels...
explode_data.jsonl/2862
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 288 }
[ 2830, 3393, 32308, 62768, 3675, 31137, 1155, 353, 8840, 836, 8, 341, 84441, 11, 6461, 1669, 501, 2051, 2354, 31137, 16273, 741, 16867, 9121, 741, 197, 56249, 1669, 650, 27121, 32131, 8623, 3675, 54, 69, 340, 2405, 5779, 526, 18, 17, 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 TestKeeperDB_SetLastRunHeightForUpkeepOnJob(t *testing.T) { t.Parallel() store, orm, cleanup := setupKeeperDB(t) defer cleanup() ethKeyStore := cltest.NewKeyStore(t, store.DB).Eth() registry, j := cltest.MustInsertKeeperRegistry(t, store, ethKeyStore) upkeep := cltest.MustInsertUpkeepForRegistry(t, store, r...
explode_data.jsonl/27015
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 212 }
[ 2830, 3393, 77233, 3506, 14812, 5842, 6727, 3640, 2461, 2324, 13096, 1925, 12245, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 57279, 11, 67602, 11, 21290, 1669, 6505, 77233, 3506, 1155, 340, 16867, 21290, 741, 197, 769, 1592, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIgnoreUnsyncedCaptures(t *testing.T) { t.Parallel() ctx := cdcContext.NewBackendContext4Test(false) communicator := NewMockScheduleDispatcherCommunicator() dispatcher := NewBaseScheduleDispatcher("cf-1", communicator, 1000) dispatcher.captureStatus = map[model.CaptureID]*captureStatus{ "capture-1": { ...
explode_data.jsonl/28509
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 580 }
[ 2830, 3393, 12497, 1806, 12996, 291, 40536, 1413, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 20985, 1669, 272, 7628, 1972, 7121, 29699, 1972, 19, 2271, 3576, 340, 197, 25579, 850, 1669, 1532, 11571, 32210, 21839, 80923, 850, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestObjectList(t *testing.T) { s := RunBasicJetStreamServer() defer shutdown(s) nc, js := jsClient(t, s) defer nc.Close() root, err := js.CreateObjectStore(&nats.ObjectStoreConfig{Bucket: "ROOT"}) expectOk(t, err) put := func(name, value string) { _, err = root.PutString(name, value) expectOk(t, err)...
explode_data.jsonl/75499
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 491 }
[ 2830, 3393, 1190, 852, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6452, 15944, 35641, 3027, 5475, 741, 16867, 23766, 1141, 692, 197, 1016, 11, 6994, 1669, 6994, 2959, 1155, 11, 274, 340, 16867, 25126, 10421, 2822, 33698, 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...
1
func TestSignalBeginHandlingTwiceError(t *testing.T) { defer goroutinechecker.New(t)() logger, _ := testlogger.NewTestLogger(t, log.Warn) err := signal.BeginSignalHandling(logger, nil) require.NoError(t, err, "unexpected error starting signal handling") defer signal.StopSignalHandling() err = signal.BeginSigna...
explode_data.jsonl/73534
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 157 }
[ 2830, 3393, 26810, 11135, 38606, 22816, 558, 1454, 1155, 353, 8840, 836, 8, 341, 16867, 45198, 14159, 69955, 7121, 1155, 8, 2822, 17060, 11, 716, 1669, 1273, 9786, 7121, 2271, 7395, 1155, 11, 1487, 68465, 692, 9859, 1669, 8286, 28467, 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 TestGetMimeType(t *testing.T) { tests := []struct { name string path string lang string expected string }{ {name: "TestGetMimeType_1", path: "text.txt", lang: "", expected: "text/plain"}, {name: "TestGetMimeType_2", path: "file.go", lang: "Go", expected: "text/x-go"}, {name: "TestGetMim...
explode_data.jsonl/20382
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 239 }
[ 2830, 3393, 1949, 97081, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 26781, 257, 914, 198, 197, 197, 5205, 257, 914, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 47006, 25, 330, 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...
2
func TestForwardAccessTokenUpstream(t *testing.T) { patTest, err := NewPassAccessTokenTest(PassAccessTokenTestOptions{ PassAccessToken: true, ValidToken: true, }) if err != nil { t.Fatal(err) } t.Cleanup(patTest.Close) // A successful validation will redirect and set the auth cookie. code, cookie := ...
explode_data.jsonl/36387
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 25925, 37649, 2324, 4027, 1155, 353, 8840, 836, 8, 341, 3223, 266, 2271, 11, 1848, 1669, 1532, 12187, 37649, 2271, 5304, 395, 37649, 2271, 3798, 515, 197, 10025, 395, 37649, 25, 830, 345, 197, 197, 4088, 3323, 25, 414, 830...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetMany48(t *testing.T) { jsonStr := `{"bar": {"id": 99, "xyz": "my xyz"}, "foo": {"myfoo": [605]}}` paths := []string{"foo.myfoo", "bar.id", "bar.xyz", "bar.abc"} expected := []string{"[605]", "99", "my xyz", ""} results := GetMany(jsonStr, paths...) if len(expected) != len(results) { t.Fatalf("expecte...
explode_data.jsonl/43446
{ "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, 1949, 8441, 19, 23, 1155, 353, 8840, 836, 8, 341, 30847, 2580, 1669, 1565, 4913, 2257, 788, 5212, 307, 788, 220, 24, 24, 11, 330, 28854, 788, 330, 2408, 40511, 14345, 330, 7975, 788, 5212, 2408, 7975, 788, 508, 21, 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...
4
func TestVectorizer_normalizeWeights(t *testing.T) { tests := []struct { name string weights []float32 }{ { name: "normalize example 1", weights: []float32{200, 100, 0.1}, }, { name: "normalize example 2", weights: []float32{300.22, 0.7, 17, 54}, }, { name: "normalize example ...
explode_data.jsonl/34753
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 95111, 80807, 55630, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 197, 13327, 3056, 3649, 18, 17, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 262, 330, 30590, 3110, 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...
2
func TestContainerWaitError(t *testing.T) { client := &Client{ client: newMockClient(errorMock(http.StatusInternalServerError, "Server error")), } resultC, errC := client.ContainerWait(context.Background(), "nothing", "") select { case result := <-resultC: t.Fatalf("expected to not get a wait result, got %d", ...
explode_data.jsonl/66422
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 171 }
[ 2830, 3393, 4502, 14190, 1454, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 609, 2959, 515, 197, 25291, 25, 501, 11571, 2959, 6390, 11571, 19886, 66760, 11, 330, 5475, 1465, 30154, 197, 532, 9559, 34, 11, 1848, 34, 1669, 2943, 33672, 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...
4
func TestImportMIOSOE(t *testing.T) { testtype.SkipUnlessTestType(t, testtype.IntegrationTestType) if err := generateTestData(); err != nil { t.Fatalf("Could not generate test data: %v", err) } client, err := testutil.GetBareSession() if err != nil { t.Fatalf("No server available") } database := client.Dat...
explode_data.jsonl/78463
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 845 }
[ 2830, 3393, 11511, 9773, 3126, 52865, 1155, 353, 8840, 836, 8, 341, 18185, 1313, 57776, 35587, 2271, 929, 1155, 11, 1273, 1313, 7371, 17376, 2271, 929, 692, 743, 1848, 1669, 6923, 83920, 2129, 1848, 961, 2092, 341, 197, 3244, 30762, 445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetImportPathFromFullPath(t *testing.T) { cases := []struct { name string prefixes []string path string expectedPath string }{ { name: "no prefixes", path: "foobar", expectedPath: "foobar", }, { name: "simple prefixes", prefixes: []string{ ...
explode_data.jsonl/51106
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 389 }
[ 2830, 3393, 1949, 11511, 1820, 3830, 73220, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 3223, 5060, 288, 257, 3056, 917, 198, 197, 26781, 260, 914, 198, 197, 42400, 1820, 914, 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 TestGetRepoDigestAndTag(t *testing.T) { digest := imagedigest.Digest("sha256:e6693c20186f837fc393390135d8a598a96a833917917789d63766cab6c59582") for desc, test := range map[string]struct { ref string schema1 bool expectedRepoDigest string expectedRepoTag string }{ "repo tag...
explode_data.jsonl/8823
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 787 }
[ 2830, 3393, 1949, 25243, 45217, 3036, 5668, 1155, 353, 8840, 836, 8, 341, 2698, 15153, 1669, 732, 3279, 15153, 909, 15153, 445, 15247, 17, 20, 21, 55976, 21, 21, 24, 18, 66, 17, 15, 16, 23, 21, 69, 23, 18, 22, 8316, 18, 24, 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 TestNorm(t *testing.T) { assert := assert.New(t) g := NewGraph() x := NewMatrix(g, Float64, WithShape(3, 3)) norm, err := Norm(x, 0, 2) if err != nil { t.Error(err) return } m := NewLispMachine(g, ExecuteFwdOnly()) defer m.Close() xT := tensor.New(tensor.WithShape(3, 3), tensor.WithBacking(tensor.Ran...
explode_data.jsonl/62430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 226 }
[ 2830, 3393, 24993, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 3174, 1669, 1532, 11212, 741, 10225, 1669, 1532, 6689, 3268, 11, 13001, 21, 19, 11, 3085, 12301, 7, 18, 11, 220, 18, 1171, 9038, 493, 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...
2
func TestClustersPeers(t *testing.T) { ctx := context.Background() clusters, mock := createClusters(t) defer shutdownClusters(t, clusters, mock) delay() j := rand.Intn(nClusters) // choose a random cluster peer peers := clusters[j].Peers(ctx) if len(peers) != nClusters { t.Fatal("expected as many peers as c...
explode_data.jsonl/66601
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 394 }
[ 2830, 3393, 94992, 10197, 388, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 39407, 14605, 11, 7860, 1669, 1855, 94992, 1155, 340, 16867, 23766, 94992, 1155, 11, 26968, 11, 7860, 692, 55174, 2822, 12428, 1669, 10382, 7371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReadRecord(t *testing.T) { var buf bytes.Buffer err := binary.Write(&buf, internal.NativeEndian, &perfEventHeader{}) if err != nil { t.Fatal(err) } var rec Record err = readRecord(&buf, &rec, make([]byte, perfEventHeaderSize)) if !IsUnknownEvent(err) { t.Error("readRecord should return unknown eve...
explode_data.jsonl/18696
{ "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, 4418, 6471, 1155, 353, 8840, 836, 8, 341, 2405, 6607, 5820, 22622, 271, 9859, 1669, 7868, 4073, 2099, 5909, 11, 5306, 68624, 43231, 11, 609, 59545, 1556, 4047, 37790, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDeleteWithTable(t *testing.T) { type UserWithDelete struct { gorm.Model Name string } DB.Table("deleted_users").Migrator().DropTable(UserWithDelete{}) DB.Table("deleted_users").AutoMigrate(UserWithDelete{}) user := UserWithDelete{Name: "delete1"} DB.Table("deleted_users").Create(&user) var result...
explode_data.jsonl/31678
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 499 }
[ 2830, 3393, 6435, 2354, 2556, 1155, 353, 8840, 836, 8, 341, 13158, 2657, 2354, 6435, 2036, 341, 197, 3174, 493, 5659, 198, 197, 21297, 914, 198, 197, 630, 45409, 18257, 445, 26521, 16348, 1827, 44, 5233, 850, 1005, 19871, 2556, 13087, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReversiAnz19(t *testing.T) { r := NewReversiAnz() r.SetEdgeSideOtherCnt(1) if r.GetEdgeSideOtherCnt() != 1 { t.Errorf("NG") } }
explode_data.jsonl/23042
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 70 }
[ 2830, 3393, 693, 3004, 72, 2082, 89, 16, 24, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1532, 693, 3004, 72, 2082, 89, 741, 7000, 4202, 11656, 16384, 11409, 33747, 7, 16, 340, 743, 435, 2234, 11656, 16384, 11409, 33747, 368, 961, 220...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestKeylessMerge(t *testing.T) { tests := []struct { name string setup []testCommand expected tupleSet }{ { name: "fast-forward merge", setup: []testCommand{ {cmd.SqlCmd{}, []string{"-q", "insert into noKey values (1,2),(1,2);"}}, {cmd.CommitCmd{}, []string{"-am", "added rows"}}, ...
explode_data.jsonl/82495
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1539 }
[ 2830, 3393, 1592, 1717, 52096, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 84571, 262, 3056, 1944, 4062, 198, 197, 42400, 14405, 1649, 198, 197, 59403, 197, 197, 515, 298, 11609, 25, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetEnvironment(t *testing.T) { testCases := []struct { testName string cassetteName string shouldFail bool errorChecker func(error) (bool, error) envTestData }{ { testName: "Basic", cassetteName: "getenvironments", envTestData: envTestData{ envName: "run", cpu: &quo...
explode_data.jsonl/41269
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1485 }
[ 2830, 3393, 1949, 12723, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 18185, 675, 257, 914, 198, 197, 1444, 395, 6535, 675, 914, 198, 197, 197, 5445, 19524, 256, 1807, 198, 197, 18290, 35188, 2915, 6390, 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...
1
func TestPullRequestDecorator_CommentQualityGate_CheckErrorOnParseTemplate(t *testing.T) { wantError := errors.New("failure") mockEngine := &mocks.MockEngine{ GetQualityReportTemplateMock: func(a ...interface{}) string { return "fake template" }, ProcessTemplateMock: func(template string, dataSource interfa...
explode_data.jsonl/5654
{ "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, 36068, 1900, 47951, 16946, 478, 33074, 42318, 28188, 1454, 1925, 14463, 7275, 1155, 353, 8840, 836, 8, 341, 50780, 1454, 1669, 5975, 7121, 445, 28939, 5130, 77333, 4571, 1669, 609, 16712, 82, 24664, 4571, 515, 197, 37654, 3307...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCancelAllOrders(t *testing.T) { t.Parallel() _, err := b.CancelAllOrders() if err == nil { t.Error("Test Failed - CancelAllOrders() error") } }
explode_data.jsonl/79949
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 65 }
[ 2830, 3393, 9269, 2403, 24898, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 6878, 1848, 1669, 293, 36491, 2403, 24898, 741, 743, 1848, 621, 2092, 341, 197, 3244, 6141, 445, 2271, 21379, 481, 23542, 2403, 24898, 368, 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 ]
2
func TestGetFeeds2(t *testing.T) { // test with an organization user assert.NoError(t, PrepareTestDatabase()) org := AssertExistsAndLoadBean(t, &User{ID: 3}).(*User) const userID = 2 // user2 is an owner of the organization actions, err := GetFeeds(GetFeedsOptions{ RequestedUser: org, RequestingUserID: use...
explode_data.jsonl/74215
{ "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, 1949, 6123, 6767, 17, 1155, 353, 8840, 836, 8, 341, 197, 322, 1273, 448, 458, 7321, 1196, 198, 6948, 35699, 1155, 11, 31166, 2271, 5988, 2398, 87625, 1669, 5319, 15575, 3036, 5879, 10437, 1155, 11, 609, 1474, 90, 915, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestChunkedEncode(t *testing.T) { input := make([]uint32, 275, 275+32) for idx := range input { input[idx] = rand.Uint32() } want := turbopfor.P4nenc256v32(input) var got []byte for len(input) >= 256 { tmp := make([]byte, turbopfor.Size(input)) n := turbopfor.P4enc256v32(input, tmp) got = append(got...
explode_data.jsonl/42861
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 218 }
[ 2830, 3393, 28304, 291, 32535, 1155, 353, 8840, 836, 8, 341, 22427, 1669, 1281, 10556, 2496, 18, 17, 11, 220, 17, 22, 20, 11, 220, 17, 22, 20, 10, 18, 17, 340, 2023, 7187, 1669, 2088, 1946, 341, 197, 22427, 11597, 60, 284, 10382, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_karmicLesson(t *testing.T) { type args struct { name string numberSystem NumberSystem } tests := []struct { name string args args want KarmicLessonResults }{ {"Alphabet", args{"abcdefghijklmnopqrstuvwxyz", Pythagorean}, KarmicLessonResults{ Numbers: []int{}, }}, {"Only One Lette...
explode_data.jsonl/23369
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 319 }
[ 2830, 3393, 4698, 2178, 292, 70404, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 11609, 260, 914, 198, 197, 57135, 2320, 5624, 2320, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 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 TestInto(t *testing.T) { s := New(FromStrings([]string{"1", "2", "3"})) ints := &iterInts{nil, -1} s.Into(ints, func(v interface{}) (interface{}, error) { return strconv.Atoi(v.(string)) }) if ints.data[0] != 1 || ints.data[1] != 2 || ints.data[2] != 3 { t.Errorf("Into conversion is invalid, got: %+v, wa...
explode_data.jsonl/56145
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 309 }
[ 2830, 3393, 26591, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 1532, 7, 3830, 20859, 10556, 917, 4913, 16, 497, 330, 17, 497, 330, 18, 9207, 1171, 2084, 82, 1669, 609, 2015, 1072, 82, 90, 8385, 11, 481, 16, 532, 1903, 7371, 78, 1548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPipeline(t *testing.T) { outputter := &testOutputter{} p, err := New(&testRuleGetter{ rules: map[string]*LiveChannelRule{ "stream/test/xxx": { Converter: &testConverter{"", data.NewFrame("test")}, Processor: &testProcessor{}, Outputter: outputter, }, }, }) require.NoError(t, err) ok,...
explode_data.jsonl/74534
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 205 }
[ 2830, 3393, 34656, 1155, 353, 8840, 836, 8, 341, 21170, 465, 1669, 609, 1944, 5097, 465, 16094, 3223, 11, 1848, 1669, 1532, 2099, 1944, 11337, 31485, 515, 197, 7000, 2425, 25, 2415, 14032, 8465, 20324, 9629, 11337, 515, 298, 197, 1, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSTDLib(t *testing.T) { rand.Seed(1) seed := make([]byte, ed25519.SeedSize) for i := 0; i < 1000; i++ { rand.Read(seed) pub, priv, _ := ed25519.GenerateKey(bytes.NewReader(seed)) pubExpected, privExpected, _ := std.GenerateKey(bytes.NewReader(seed)) assert.EqualValuesf(t, privExpected, priv, "differe...
explode_data.jsonl/55570
{ "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, 28486, 9194, 1155, 353, 8840, 836, 8, 341, 7000, 437, 5732, 291, 7, 16, 340, 197, 22602, 1669, 1281, 10556, 3782, 11, 1578, 17, 20, 20, 16, 24, 5732, 291, 1695, 340, 2023, 600, 1669, 220, 15, 26, 600, 366, 220, 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...
2
func TestCephClusterMonTimeout(t *testing.T) { // cases for testing cases := []struct { label string platform v1.PlatformType }{ { label: "case 1", // when the platform is not identified platform: v1.NonePlatformType, }, { label: "case 2", // when platform is IBMCloudPlatformType platf...
explode_data.jsonl/16365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 526 }
[ 2830, 3393, 34, 23544, 28678, 11095, 7636, 1155, 353, 8840, 836, 8, 341, 197, 322, 5048, 369, 7497, 198, 1444, 2264, 1669, 3056, 1235, 341, 197, 29277, 262, 914, 198, 197, 197, 15734, 348, 16, 51227, 929, 198, 197, 59403, 197, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRequestReference(t *testing.T) { firstMember := createMember(t) secondMember := createMember(t) amount := "10" _, ref, err := makeSignedRequest(firstMember, "member.transfer", map[string]interface{}{"amount": amount, "toMemberReference": secondMember.Ref}) require.NoError(t, err) require.NotEqual(t, "",...
explode_data.jsonl/26360
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 140 }
[ 2830, 3393, 1900, 8856, 1155, 353, 8840, 836, 8, 341, 42190, 9366, 1669, 1855, 9366, 1155, 340, 197, 5569, 9366, 1669, 1855, 9366, 1155, 340, 197, 6045, 1669, 330, 16, 15, 1837, 197, 6878, 2053, 11, 1848, 1669, 1281, 49312, 1900, 1798...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDatetimeType(t *testing.T) { testCases := []testCase{ {sql: "create table tbl1 (a datetime);"}, {sql: "insert into tbl1 values ('2018-04-28 10:21:15'), ('2017-04-28 03:05:01'), (20250716163958), (20211203145633), (null);"}, {sql: "create table tbl2 (a datetime);"}, {sql: "insert into tbl2 values ('201...
explode_data.jsonl/69834
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1004 }
[ 2830, 3393, 94191, 929, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 66194, 515, 197, 197, 90, 3544, 25, 330, 3182, 1965, 21173, 16, 320, 64, 8874, 1215, 7115, 197, 197, 90, 3544, 25, 330, 4208, 1119, 21173, 16, 2750, 431...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_spatialMatch(t *testing.T) { s := spatialMatch{ graphs: defaultGraphs, } // doesn't match 1- and 2-character spatial patterns assert.Empty(t, s.Matches("")) assert.Empty(t, s.Matches("/")) assert.Empty(t, s.Matches("qw")) assert.Empty(t, s.Matches("*/")) // for testing, make a subgraph that contain...
explode_data.jsonl/20849
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 932 }
[ 2830, 3393, 643, 32414, 8331, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 27979, 8331, 515, 197, 66616, 82, 25, 1638, 11212, 82, 345, 197, 532, 197, 322, 3171, 944, 2432, 220, 16, 12, 323, 220, 17, 79225, 27979, 12624, 198, 6948, 1118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_DrawingObjects_GetDocumentDrawingObjectOleData(t *testing.T) { config := ReadConfiguration(t) client, ctx := PrepareTest(t, config) remoteDataFolder := remoteBaseTestDataFolder + "/DocumentElements/DrawingObjectss" localDrawingFile := "DocumentElements/DrawingObjects/sample_EmbeddedOLE.docx" ...
explode_data.jsonl/60053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 281 }
[ 2830, 3393, 1557, 1696, 11543, 13614, 7524, 37437, 1190, 46, 273, 1043, 1155, 353, 8840, 836, 8, 341, 262, 2193, 1669, 4457, 7688, 1155, 340, 262, 2943, 11, 5635, 1669, 31166, 2271, 1155, 11, 2193, 340, 262, 8699, 1043, 13682, 1669, 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 TestPrune(t *testing.T) { ensureTestIndices() testTimeSeriesIndex.Prune(testES) got := getExistingTestIndices() expect := testIndices[:9] if diff := deep.Equal(got, expect); diff != nil { t.Fatalf("\ndiff: %+v\n", diff) } }
explode_data.jsonl/60464
{ "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, 3533, 2886, 1155, 353, 8840, 836, 8, 341, 197, 27289, 2271, 31941, 741, 18185, 1462, 25544, 1552, 17947, 2886, 8623, 1570, 340, 3174, 354, 1669, 633, 53067, 2271, 31941, 741, 24952, 1669, 1273, 31941, 3447, 24, 921, 743, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResourceMetrics_Resource(t *testing.T) { ms := NewResourceMetrics() ms.InitEmpty() assert.EqualValues(t, true, ms.Resource().IsNil()) ms.Resource().InitEmpty() assert.EqualValues(t, false, ms.Resource().IsNil()) fillTestResource(ms.Resource()) assert.EqualValues(t, generateTestResource(), ms.Resource())...
explode_data.jsonl/19495
{ "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, 4783, 27328, 86346, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 4783, 27328, 741, 47691, 26849, 3522, 741, 6948, 12808, 6227, 1155, 11, 830, 11, 9829, 20766, 1005, 3872, 19064, 2398, 47691, 20766, 1005, 3803, 3522, 741, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_CacheContents(t *testing.T) { g := gomega.NewGomegaWithT(t) nsGVK := schema.GroupVersionKind{ Group: "", Version: "v1", Kind: "Namespace", } configMapGVK := schema.GroupVersionKind{ Group: "", Version: "v1", Kind: "ConfigMap", } instance := configFor([]schema.GroupVersionKind...
explode_data.jsonl/66490
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1547 }
[ 2830, 3393, 2648, 920, 1777, 14803, 1155, 353, 8840, 836, 8, 341, 3174, 1669, 342, 32696, 7121, 38, 32696, 2354, 51, 1155, 340, 84041, 39718, 42, 1669, 10802, 5407, 5637, 10629, 515, 197, 197, 2808, 25, 256, 8324, 197, 77847, 25, 330,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSubscribeIgnoring(t *testing.T) { cache := newSyncMapCache(t) defer closeCache(t, cache) // create a subscription s, err := cache.NewSubscription("ITB-1101") if err != nil { t.Fatalf("failed to create subscription: %s", err) } defer s.Stop() // set something on the cache that *doesn't* match our pr...
explode_data.jsonl/35589
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 332 }
[ 2830, 3393, 28573, 87743, 1155, 353, 8840, 836, 8, 341, 52680, 1669, 501, 12154, 2227, 8233, 1155, 340, 16867, 3265, 8233, 1155, 11, 6500, 692, 197, 322, 1855, 264, 15142, 198, 1903, 11, 1848, 1669, 6500, 7121, 33402, 445, 952, 33, 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...
7
func TestDay11GetDims(t *testing.T) { d := &Day11{} grid := `1234567 1234567 1234567 1234567` rows, cols := d.getDims(grid) assert.Equal(t, 4, rows) assert.Equal(t, 7, cols) }
explode_data.jsonl/48598
{ "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, 10159, 16, 16, 1949, 87117, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 609, 10159, 16, 16, 16094, 49018, 1669, 1565, 16, 17, 18, 19, 20, 21, 22, 198, 16, 17, 18, 19, 20, 21, 22, 198, 16, 17, 18, 19, 20, 21, 22, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestOracle(t *testing.T) { switch runtime.GOOS { case "windows": t.Skipf("skipping test on %q (no /usr/bin/diff)", runtime.GOOS) } for _, filename := range []string{ "testdata/src/main/calls.go", "testdata/src/main/callgraph.go", "testdata/src/main/callgraph2.go", "testdata/src/main/describe.go", ...
explode_data.jsonl/19470
{ "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, 48663, 1155, 353, 8840, 836, 8, 341, 8961, 15592, 97574, 3126, 341, 2722, 330, 27077, 4660, 197, 3244, 57776, 69, 445, 4886, 5654, 1273, 389, 1018, 80, 320, 2152, 608, 7063, 8749, 3446, 3092, 11583, 15592, 97574, 3126, 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...
8
func TestJetStreamStreamAndConsumerDescription(t *testing.T) { s := RunBasicJetStreamServer() defer s.Shutdown() if config := s.JetStreamConfig(); config != nil { defer os.RemoveAll(config.StoreDir) } nc, err := nats.Connect(s.ClientURL()) if err != nil { t.Fatalf("Unexpected error: %v", err) } defer nc.C...
explode_data.jsonl/29193
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 437 }
[ 2830, 3393, 35641, 3027, 3027, 3036, 29968, 5009, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 6452, 15944, 35641, 3027, 5475, 741, 16867, 274, 10849, 18452, 2822, 743, 2193, 1669, 274, 3503, 295, 3027, 2648, 2129, 2193, 961, 2092, 341, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
8
func TestSyncReplicaSetDoesNothing(t *testing.T) { client := clientset.NewForConfigOrDie(&restclient.Config{Host: "", ContentConfig: restclient.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}}) fakePodControl := controller.FakePodControl{} manager := NewReplicaSetController(client, controller.NoResyncPer...
explode_data.jsonl/10039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 257 }
[ 2830, 3393, 12154, 18327, 15317, 1649, 21468, 23780, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 2943, 746, 7121, 2461, 2648, 2195, 18175, 2099, 3927, 2972, 10753, 90, 9296, 25, 7342, 8883, 2648, 25, 2732, 2972, 12614, 2648, 90, 2808, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestValidateAlwaysRunPostsubmit(t *testing.T) { true_ := true testCases := []struct { name string postsubmit Postsubmit errExpected bool }{ { name: "both always_run and run_if_changed set, err", postsubmit: Postsubmit{ AlwaysRun: &true_, RegexpChangeMatcher: RegexpChangeMatcher{ ...
explode_data.jsonl/41034
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 496 }
[ 2830, 3393, 17926, 37095, 6727, 4133, 5955, 1155, 353, 8840, 836, 8, 341, 42808, 62, 1669, 830, 198, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 51172, 5955, 220, 3877, 5955, 198, 197, 9859, 18896, 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 TestStreamCompressionDecompressionParallel(t *testing.T) { // start many goroutines: triggered Cgo stack growth related bugs if os.Getenv("DISABLE_BIG_TESTS") != "" { t.Skip("Big (memory) tests are disabled") } const threads = 500 errChan := make(chan error) for i := 0; i < threads; i++ { go func() { ...
explode_data.jsonl/70459
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 186 }
[ 2830, 3393, 3027, 81411, 4900, 316, 4011, 16547, 1155, 353, 8840, 836, 8, 341, 197, 322, 1191, 1657, 45198, 28628, 25, 22119, 356, 3346, 5611, 6513, 5435, 22551, 198, 743, 2643, 64883, 445, 81148, 62743, 80312, 899, 961, 1591, 341, 197,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_DomainMultiCreateThin(t *testing.T) { client := NewClient("", "", false) templatesResponse, _, err := client.Domain.ListParams(map[string]string{ "template": "true", "status": "ACTIVE", }) require.Nil(t, err, err) if len(templatesResponse.Results) == 0 { t.SkipNow() } randomTemplate := templat...
explode_data.jsonl/12043
{ "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, 1557, 3121, 20358, 4021, 93088, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1532, 2959, 19814, 7342, 895, 692, 197, 15463, 2582, 11, 8358, 1848, 1669, 2943, 20442, 5814, 4870, 9147, 14032, 30953, 515, 197, 197, 1, 4214, 788, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQueryNodes(t *testing.T) { db, mock, err := sqlmock.New() require.NoError(t, err) mock.ExpectQuery(escape("SELECT DISTINCT `users`.`id`, `users`.`age`, `users`.`name`, `users`.`fk1`, `users`.`fk2` FROM `users` WHERE `age` < ? ORDER BY `id` LIMIT 3 OFFSET 4")). WithArgs(40). WillReturnRows(sqlmock.NewRow...
explode_data.jsonl/41713
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 825 }
[ 2830, 3393, 2859, 12288, 1155, 353, 8840, 836, 8, 341, 20939, 11, 7860, 11, 1848, 1669, 5704, 16712, 7121, 741, 17957, 35699, 1155, 11, 1848, 340, 77333, 81893, 2859, 7, 12998, 445, 4858, 59086, 1565, 4218, 28905, 307, 7808, 1565, 4218,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTransactionPoolRepricingKeepsLocals(t *testing.T) { t.Parallel() // Create the pool to test the pricing enforcement with statedb, _ := state.New(common.Hash{}, state.NewDatabase(rawdb.NewMemoryDatabase()), nil) blockchain := &testBlockChain{statedb, 1000000, new(notify.Feed)} pool := NewTxPool(testTxPoo...
explode_data.jsonl/7877
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 687 }
[ 2830, 3393, 8070, 10551, 693, 74370, 6608, 7124, 9152, 1127, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 4230, 279, 7314, 311, 1273, 279, 21219, 13324, 448, 198, 18388, 657, 65, 11, 716, 1669, 1584, 7121, 57802, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRandomBucket(t *testing.T) { for i := 10; i < 100; i += 10 { b := RandomBucket(i) assert.False(t, len(b.Stats) == 0) } }
explode_data.jsonl/33801
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 62 }
[ 2830, 3393, 13999, 36018, 1155, 353, 8840, 836, 8, 341, 2023, 600, 1669, 220, 16, 15, 26, 600, 366, 220, 16, 15, 15, 26, 600, 1421, 220, 16, 15, 341, 197, 2233, 1669, 10612, 36018, 1956, 340, 197, 6948, 50757, 1155, 11, 2422, 1883...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
2
func TestCreateAccountInvalidMnemonic(t *testing.T) { kb := NewInMemory() _, err := kb.CreateAccount( "some_account", "malarkey pair crucial catch public canyon evil outer stage ten gym tornado", "", "", 0, 1) assert.Error(t, err) assert.Equal(t, "Invalid mnemonic", err.Error()) }
explode_data.jsonl/10666
{ "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, 4021, 7365, 7928, 44, 70775, 1155, 353, 8840, 836, 8, 341, 16463, 65, 1669, 1532, 641, 10642, 741, 197, 6878, 1848, 1669, 38653, 7251, 7365, 1006, 197, 197, 1, 14689, 13500, 756, 197, 197, 1, 76, 7934, 792, 6716, 16587, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestQuerier_Label_QueryTimeoutConfigFlag(t *testing.T) { startTime := time.Now().Add(-1 * time.Minute) endTime := time.Now() request := logproto.LabelRequest{ Name: "test", Values: true, Start: &startTime, End: &endTime, } ingesterClient := newQuerierClientMock() ingesterClient.On("Label", mo...
explode_data.jsonl/5416
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 593 }
[ 2830, 3393, 2183, 261, 1268, 53557, 48042, 7636, 2648, 12135, 1155, 353, 8840, 836, 8, 341, 21375, 1462, 1669, 882, 13244, 1005, 2212, 4080, 16, 353, 882, 75770, 340, 6246, 1462, 1669, 882, 13244, 2822, 23555, 1669, 1487, 15110, 4679, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildMaxHeap(t *testing.T) { var heap = []int{0, 10, 5, 20, 4, 3, 1, 15} want := []int{0, 20, 5, 15, 4, 3, 1, 10} buildMaxHeap(&heap, len(heap)-1) if !reflect.DeepEqual(want, heap) { t.Errorf("wanted built heap to be %v got %v", want, heap) } }
explode_data.jsonl/22504
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 122 }
[ 2830, 3393, 11066, 5974, 27909, 1155, 353, 8840, 836, 8, 341, 2405, 17364, 284, 3056, 396, 90, 15, 11, 220, 16, 15, 11, 220, 20, 11, 220, 17, 15, 11, 220, 19, 11, 220, 18, 11, 220, 16, 11, 220, 16, 20, 630, 50780, 1669, 3056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBuildBazelFailInvalidTarget(t *testing.T) { testutil.Run(t, "", func(t *testutil.T) { artifact := &latest_v1.Artifact{ ArtifactType: latest_v1.ArtifactType{ BazelArtifact: &latest_v1.BazelArtifact{ BuildTarget: "//:invalid-target", }, }, } builder := NewArtifactBuilder(nil, &mockConf...
explode_data.jsonl/123
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 199 }
[ 2830, 3393, 11066, 33, 68326, 19524, 7928, 6397, 1155, 353, 8840, 836, 8, 341, 18185, 1314, 16708, 1155, 11, 7342, 2915, 1155, 353, 1944, 1314, 836, 8, 341, 197, 197, 63722, 1669, 609, 19350, 2273, 16, 50064, 20754, 515, 298, 197, 855...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBadAccess(t *testing.T) { if runtime.GOOS != "darwin" || testBackend != "lldb" { t.Skip("not applicable") } runTest(t, "issue2078", func(client *daptest.Client, fixture protest.Fixture) { runDebugSessionWithBPs(t, client, "launch", // Launch func() { client.LaunchRequest("exec", fixture.Path, ...
explode_data.jsonl/17341
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 768 }
[ 2830, 3393, 17082, 6054, 1155, 353, 8840, 836, 8, 341, 743, 15592, 97574, 3126, 961, 330, 98765, 1, 1369, 1273, 29699, 961, 330, 32459, 65, 1, 341, 197, 3244, 57776, 445, 1921, 8415, 1138, 197, 532, 56742, 2271, 1155, 11, 330, 11159, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMetaBackend_configuredUnchanged(t *testing.T) { defer testChdir(t, testFixturePath("backend-unchanged"))() // Setup the meta m := testMetaBackend(t, nil) // Get the backend b, err := m.Backend(&BackendOpts{Init: true}) if err != nil { t.Fatalf("bad: %s", err) } // Check the state s, err := b.Stat...
explode_data.jsonl/34321
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 351 }
[ 2830, 3393, 12175, 29699, 5332, 3073, 1806, 17353, 1155, 353, 8840, 836, 8, 341, 16867, 1273, 1143, 3741, 1155, 11, 1273, 18930, 1820, 445, 20942, 12, 3185, 3726, 2761, 2822, 197, 322, 18626, 279, 8823, 198, 2109, 1669, 1273, 12175, 296...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRFC6962Hasher(t *testing.T) { hasher := DefaultHasher leafHash := hasher.HashLeaf([]byte("L123456")) emptyLeafHash := hasher.HashLeaf([]byte{}) for _, tc := range []struct { desc string got []byte want string }{ // echo -n | sha256sum { desc: "RFC6962 Empty", want: "e3b0c44298fc1c149afb...
explode_data.jsonl/24311
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 667 }
[ 2830, 3393, 64371, 21, 24, 21, 17, 6370, 261, 1155, 353, 8840, 836, 8, 341, 50333, 261, 1669, 7899, 6370, 261, 271, 197, 24153, 6370, 1669, 90819, 15103, 31461, 10556, 3782, 445, 43, 16, 17, 18, 19, 20, 21, 5455, 197, 3194, 31461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNormalColors(t *testing.T) { assert.Equal(t, fabenc.ColorBlack.Normal(), "\x1b[30m") assert.Equal(t, fabenc.ColorRed.Normal(), "\x1b[31m") assert.Equal(t, fabenc.ColorGreen.Normal(), "\x1b[32m") assert.Equal(t, fabenc.ColorYellow.Normal(), "\x1b[33m") assert.Equal(t, fabenc.ColorBlue.Normal(), "\x1b[34m")...
explode_data.jsonl/8421
{ "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, 12206, 13108, 1155, 353, 8840, 836, 8, 341, 6948, 12808, 1155, 11, 9570, 954, 6669, 14417, 33636, 1507, 2917, 87, 16, 65, 58, 18, 15, 76, 1138, 6948, 12808, 1155, 11, 9570, 954, 6669, 6033, 33636, 1507, 2917, 87, 16, 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...
1
func TestListenSynRcvdQueueFull(t *testing.T) { c := context.New(t, defaultMTU) defer c.Cleanup() // Create TCP endpoint. var err tcpip.Error c.EP, err = c.Stack().NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &c.WQ) if err != nil { t.Fatalf("NewEndpoint failed: %s", err) } // Bind to wildcard. if e...
explode_data.jsonl/76009
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1147 }
[ 2830, 3393, 38714, 37134, 49, 13122, 67, 7554, 9432, 1155, 353, 8840, 836, 8, 341, 1444, 1669, 2266, 7121, 1155, 11, 1638, 8505, 52, 340, 16867, 272, 727, 60639, 2822, 197, 322, 4230, 26656, 14887, 624, 2405, 1848, 28051, 573, 6141, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestCanBeExposed(t *testing.T) { factory := NewFactory(NewTestConfigFlags()) tests := []struct { kind schema.GroupKind expectErr bool }{ { kind: api.Kind("ReplicationController"), expectErr: false, }, { kind: api.Kind("Node"), expectErr: true, }, } for _, test := range ...
explode_data.jsonl/7940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 237 }
[ 2830, 3393, 69585, 82941, 1155, 353, 8840, 836, 8, 341, 1166, 2919, 1669, 1532, 4153, 35063, 2271, 2648, 9195, 2398, 78216, 1669, 3056, 1235, 341, 197, 197, 15314, 414, 10802, 5407, 10629, 198, 197, 24952, 7747, 1807, 198, 197, 59403, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestMarshalIdempotency(t *testing.T) { c, err := LoadFile("testdata/conf.good.yml") if err != nil { t.Errorf("Error parsing %s: %s", "testdata/conf.good.yml", err) } marshaled, err := yaml.Marshal(c) if err != nil { t.Fatal("YAML Marshaling failed:", err) } c = new(Config) if err := yaml.Unmarshal(ma...
explode_data.jsonl/72916
{ "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, 55438, 764, 3262, 354, 2251, 1155, 353, 8840, 836, 8, 341, 1444, 11, 1848, 1669, 8893, 1703, 445, 92425, 59241, 59569, 33936, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 13080, 445, 1454, 22314, 1018, 82, 25, 1018, 82, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestRetrieveSysSettingsConfFile(t *testing.T) { ss, err := RetrieveSysSettingsConfFile(db.db) if err != nil && err != sql.ErrNoRows { t.Errorf("Failed to retrieve system settings: %v", err) } t.Logf("\n%v", ss) }
explode_data.jsonl/64630
{ "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, 87665, 32792, 6086, 15578, 1703, 1155, 353, 8840, 836, 8, 341, 34472, 11, 1848, 1669, 31562, 32792, 6086, 15578, 1703, 9791, 7076, 340, 743, 1848, 961, 2092, 1009, 1848, 961, 5704, 27862, 2753, 9024, 341, 197, 3244, 13080, 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 Test_execFrozen_fail(t *testing.T) { address1 := &address.Address{} envHandleUintptr := uintptr(unsafe.Pointer(address1)) jvmsCached, _ = lru.New(1000) ok := execFrozen(opener, 100, envHandleUintptr) assert.Equal(t, false, ok) jvmTestEnv := setupTestEnv() jvmsCached.Add(envHandleUintptr, jvmTestEnv.jvm) ...
explode_data.jsonl/38982
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 169 }
[ 2830, 3393, 18430, 91318, 22121, 1155, 353, 8840, 836, 8, 341, 63202, 16, 1669, 609, 4995, 26979, 16094, 57538, 6999, 21570, 3505, 1669, 38190, 7, 38157, 41275, 15434, 16, 1171, 12428, 85, 1011, 70293, 11, 716, 284, 326, 2672, 7121, 7, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGetWhenMiss(t *testing.T) { // Given expectedErr := errors.New("Unable to find in store") store := &mocksStore.StoreInterface{} store.On("Get", "my-key").Return(nil, expectedErr) codec := New(store) // When value, err := codec.Get("my-key") // Then assert.Equal(t, expectedErr, err) assert.Nil(t, ...
explode_data.jsonl/29039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 280 }
[ 2830, 3393, 1949, 4498, 35312, 1155, 353, 8840, 836, 8, 341, 197, 322, 16246, 198, 42400, 7747, 1669, 5975, 7121, 445, 17075, 311, 1477, 304, 3553, 5130, 57279, 1669, 609, 16712, 82, 6093, 38047, 5051, 16094, 57279, 8071, 445, 1949, 497...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAlgorithmProviders(t *testing.T) { for _, pn := range algorithmProviderNames { p, err := factory.GetAlgorithmProvider(pn) if err != nil { t.Errorf("error retrieving '%s' provider: %v", pn, err) break } if len(p.PriorityFunctionKeys) == 0 { t.Errorf("%s algorithm provider shouldn't have 0 prio...
explode_data.jsonl/2596
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 294 }
[ 2830, 3393, 27847, 37351, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 43050, 1669, 2088, 12111, 5179, 7980, 341, 197, 3223, 11, 1848, 1669, 8633, 2234, 27847, 5179, 1295, 77, 340, 197, 743, 1848, 961, 2092, 341, 298, 3244, 13080, 445, 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...
8
func TestNewBool(t *testing.T) { var intValue1 = math.MaxInt - 1 var intValue2 = math.MinInt + 1 var int8Value1 int8 = math.MaxInt8 - 1 var int8Value2 int8 = math.MinInt8 + 1 var int16Value1 int16 = math.MaxInt16 - 1 var int16Value2 int16 = math.MinInt16 + 1 var int32Value1 int32 = math.MaxInt32 - 1 var int32Va...
explode_data.jsonl/20209
{ "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, 3564, 11233, 1155, 353, 8840, 836, 8, 341, 2405, 53077, 16, 284, 6888, 14535, 1072, 481, 220, 16, 198, 2405, 53077, 17, 284, 6888, 17070, 1072, 488, 220, 16, 198, 2405, 526, 23, 1130, 16, 526, 23, 284, 6888, 14535, 1072,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLocalsParsing(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_LOCALS_CANONICAL) runTerragrunt(t, fmt.Sprintf("terragrunt apply -auto-approve --terragrunt-non-interactive --terragrunt-working-dir %s", TEST_FIXTURE_LOCALS_CANONICAL)) stdout := bytes.Buffer{} stderr := bytes.Buffer{} ...
explode_data.jsonl/10112
{ "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, 9152, 1127, 68839, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 28399, 50, 45600, 711, 15571, 692, 56742, 51402, 68305, 3850, 1155, 11, 8879, 17305, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStore_Close_Internal(t *testing.T) { t.Run("Failure", func(t *testing.T) { store := &store{db: &mockDB{}, close: func(string) {}} err := store.Close() require.EqualError(t, err, "failed to close database client: mockDB Close always fails") }) }
explode_data.jsonl/72585
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 96 }
[ 2830, 3393, 6093, 68185, 37238, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 17507, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 57279, 1669, 609, 4314, 90, 1999, 25, 609, 16712, 3506, 22655, 3265, 25, 2915, 3609, 8, 4687, 630, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGenericArrayScanUnsupported(t *testing.T) { var s string var ss []string var nsa [1]sql.NullString for _, tt := range []struct { src, dest interface{} err string }{ {nil, nil, "destination <nil> is not a pointer to array or slice"}, {nil, true, "destination bool is not a pointer to array or...
explode_data.jsonl/5339
{ "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, 19964, 1857, 26570, 41884, 1155, 353, 8840, 836, 8, 341, 2405, 274, 914, 198, 2405, 10870, 3056, 917, 198, 2405, 308, 9081, 508, 16, 60, 3544, 23979, 703, 271, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 41144, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestProjectOffset(t *testing.T) { t.Parallel() Convey("DistributeOffset forms uniformish distribution", t, func() { testIntervalOf100x := func(d time.Duration) { Convey((100 * d).String(), func() { offsets := make([]time.Duration, 101) for i := 0; i < 101; i++ { project := fmt.Sprintf("projec...
explode_data.jsonl/46978
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 462 }
[ 2830, 3393, 7849, 6446, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 93070, 5617, 445, 35, 80133, 6446, 7586, 13794, 812, 7982, 497, 259, 11, 2915, 368, 1476, 197, 18185, 10256, 2124, 16, 15, 15, 87, 1669, 2915, 1500, 882, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCatalog_ListServiceNodes_ConnectNative(t *testing.T) { t.Parallel() assert := assert.New(t) dir1, s1 := testServer(t) defer os.RemoveAll(dir1) defer s1.Shutdown() codec := rpcClient(t, s1) defer codec.Close() testrpc.WaitForLeader(t, s1.RPC, "dc1") // Register the service args := structs.TestRegis...
explode_data.jsonl/49240
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 329 }
[ 2830, 3393, 41606, 27104, 1860, 12288, 15100, 2321, 20800, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 6948, 1669, 2060, 7121, 1155, 340, 48532, 16, 11, 274, 16, 1669, 1273, 5475, 1155, 340, 16867, 2643, 84427, 14161, 16, 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 TestSpannerInstanceId_instanceUri(t *testing.T) { id := spannerInstanceId{ Project: "project123", Instance: "instance456", } actual := id.instanceUri() expected := "projects/project123/instances/instance456" expectEquals(t, expected, actual) }
explode_data.jsonl/31765
{ "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, 12485, 1194, 65918, 11904, 13899, 1155, 353, 8840, 836, 8, 341, 15710, 1669, 9390, 1194, 65918, 515, 197, 197, 7849, 25, 220, 330, 4987, 16, 17, 18, 756, 197, 197, 2523, 25, 330, 4851, 19, 20, 21, 756, 197, 532, 88814, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestContainerResponse(t *testing.T) { testCases := []struct { healthCheckType string result bool }{ { healthCheckType: "docker", result: false, }, { healthCheckType: "", result: true, }, } for _, tc := range testCases { t.Run(fmt.Sprintf("docker health chec...
explode_data.jsonl/56940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1066 }
[ 2830, 3393, 4502, 2582, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 197, 12120, 3973, 929, 914, 198, 197, 9559, 688, 1807, 198, 197, 59403, 197, 197, 515, 298, 197, 12120, 3973, 929, 25, 330, 28648, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUnitScheduleInfoQueryValidateWrong(t *testing.T) { client := ClientForTestnet() client.SetAutoValidateChecksums(true) scheduleID, err := ScheduleIDFromString("0.0.123-rmkykd") assert.NoError(t, err) scheduleInfo := NewScheduleInfoQuery(). SetScheduleID(scheduleID) err = scheduleInfo._ValidateNetworkO...
explode_data.jsonl/19815
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 163 }
[ 2830, 3393, 4562, 32210, 1731, 2859, 17926, 29185, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 8423, 2461, 2271, 4711, 741, 25291, 4202, 13253, 17926, 73190, 82, 3715, 340, 1903, 8796, 915, 11, 1848, 1669, 23512, 915, 44491, 445, 15, 13,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestApplicationRouterWhenBinding(t *testing.T) { router := createApplicationRouter(ctx, testSettings) for _, verb := range verbs { req, err := http.NewRequest(verb, "/given/rest/assured", bytes.NewBuffer([]byte(`{"assured": true}`))) require.NoError(t, err) resp := httptest.NewRecorder() router.ServeHTT...
explode_data.jsonl/20248
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 4988, 9523, 4498, 15059, 1155, 353, 8840, 836, 8, 341, 67009, 1669, 1855, 4988, 9523, 7502, 11, 1273, 6086, 692, 2023, 8358, 18607, 1669, 2088, 61846, 341, 197, 24395, 11, 1848, 1669, 1758, 75274, 7, 22328, 11, 3521, 41968, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAddCard(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() ctx := context.Background() m := mock.NewMockIO(ctrl) w := mock.NewMockWork(ctrl) srv := service.New(nil, m, w, nil) t.Run("success", func(t *testing.T) { var userID int64 = 42 m. EXPECT(). SaveCard(ctx, gomock.An...
explode_data.jsonl/62172
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 267 }
[ 2830, 3393, 2212, 5770, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 20985, 1669, 2266, 19047, 2822, 2109, 1669, 7860, 7121, 11571, 3810, 62100, 340, 6692, 1669, 7860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExternalProtocol(t *testing.T) { assert := assert.New(t) tp := testProtocol{} ExternalProtocols["test"] = &tp sp, err := ForDataset("test:foo::bar") assert.NoError(err) assert.Equal("test", sp.Protocol) assert.Equal("foo", sp.DatabaseName) cs := sp.NewChunkStore(context.Background()) assert.Equal("f...
explode_data.jsonl/49601
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 331 }
[ 2830, 3393, 25913, 20689, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 73423, 1669, 1273, 20689, 16094, 197, 25913, 12423, 22018, 1183, 1944, 1341, 284, 609, 790, 271, 41378, 11, 1848, 1669, 1752, 33363, 445, 1944, 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 TestGetConsulServiceDetailError(t *testing.T) { ctrl := gomock.NewController(assert.Tracing(t)) defer ctrl.Finish() catalog := newMockCatalogInterface(ctrl) svcname := "test-svc" svctag := "" svcs := []*consulapi.CatalogService{ {Node: "nodeid", Address: "bob", ServicePort: 3}, } catalog.EXPECT().Serv...
explode_data.jsonl/71898
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 206 }
[ 2830, 3393, 1949, 15220, 360, 1860, 10649, 1454, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 75846, 8240, 4527, 1155, 1171, 16867, 23743, 991, 18176, 2822, 1444, 7750, 1669, 501, 11571, 41606, 5051, 62100, 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 TestYamlDecodeRegressions(t *testing.T) { t.Parallel() cleanupTerraformFolder(t, TEST_FIXTURE_REGRESSIONS) tmpEnvPath := copyEnvironment(t, TEST_FIXTURE_REGRESSIONS) rootPath := util.JoinPath(tmpEnvPath, TEST_FIXTURE_REGRESSIONS, "yamldecode") runTerragrunt(t, fmt.Sprintf("terragrunt apply -auto-approve --t...
explode_data.jsonl/10124
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 383 }
[ 2830, 3393, 56, 9467, 32564, 693, 2483, 908, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 60639, 51, 13886, 627, 13682, 1155, 11, 13602, 42635, 41486, 8064, 81663, 50, 340, 20082, 14359, 1820, 1669, 2975, 12723, 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 TestMempool_KeepInvalidTxsInCache(t *testing.T) { app := counter.NewApplication(true) cc := proxy.NewLocalClientCreator(app) wcfg := cfg.DefaultConfig() wcfg.Mempool.KeepInvalidTxsInCache = true mempool, cleanup := newMempoolWithAppAndConfig(cc, wcfg) defer cleanup() // 1. An invalid transaction must remai...
explode_data.jsonl/14611
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 523 }
[ 2830, 3393, 44, 3262, 1749, 62, 19434, 7928, 51, 18561, 641, 8233, 1155, 353, 8840, 836, 8, 341, 28236, 1669, 5546, 7121, 4988, 3715, 340, 63517, 1669, 13291, 7121, 7319, 2959, 31865, 11462, 340, 6692, 14072, 1669, 13286, 13275, 2648, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func Test_collectorResolver_Resolve(t *testing.T) { windowsEnvironmentVariableSystemRoot := goartifacts.ArtifactDefinition{ Name: "WindowsEnvironmentVariableSystemRoot", Doc: `The system root directory path, defined by %SystemRoot%, typically "C:\Windows".`, Sources: []goartifacts.Source{{ Type: "PATH", A...
explode_data.jsonl/53663
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1416 }
[ 2830, 3393, 10211, 27669, 18190, 62, 56808, 1155, 353, 8840, 836, 8, 341, 6692, 1491, 12723, 7827, 2320, 8439, 1669, 728, 471, 26401, 50064, 20754, 10398, 515, 197, 21297, 25, 330, 13164, 12723, 7827, 2320, 8439, 756, 197, 197, 9550, 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...
9
func TestDwrapStartLocation(t *testing.T) { // Tests that the start location of a goroutine is unwrapped in Go 1.17 and later. withTestProcess("goroutinestackprog", t, func(p *proc.Target, fixture protest.Fixture) { setFunctionBreakpoint(p, t, "main.stacktraceme") assertNoError(p.Continue(), t, "Continue()") gs...
explode_data.jsonl/56359
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 312 }
[ 2830, 3393, 35, 10097, 3479, 4707, 1155, 353, 8840, 836, 8, 341, 197, 322, 20150, 429, 279, 1191, 3728, 315, 264, 45198, 14159, 374, 15025, 56289, 304, 5994, 220, 16, 13, 16, 22, 323, 2937, 624, 46948, 2271, 7423, 445, 5628, 411, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestExecutePodCommandMissingInputs(t *testing.T) { tests := []struct { name string item map[string]interface{} podNamespace string podName string hookName string hook *v1.ExecHook }{ { name: "missing item", }, { name: "missing pod namespace", item: map[...
explode_data.jsonl/62114
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 764 }
[ 2830, 3393, 17174, 23527, 4062, 25080, 31946, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 260, 914, 198, 197, 22339, 260, 2415, 14032, 31344, 16094, 197, 3223, 347, 22699, 914, 198, 197, 3223, 347, 675, 414, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInternalStageCreate(t *testing.T) { r := require.New(t) in := map[string]interface{}{ "name": "test_stage", "database": "test_db", "schema": "test_schema", "comment": "great comment", } d := schema.TestResourceDataRaw(t, resources.Stage().Schema, in) r.NotNil(d) WithMockDb(t, func(db *sq...
explode_data.jsonl/59820
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 265 }
[ 2830, 3393, 11569, 19398, 4021, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 1373, 7121, 1155, 692, 17430, 1669, 2415, 14032, 31344, 67066, 197, 197, 31486, 788, 257, 330, 1944, 35238, 756, 197, 197, 1, 12216, 788, 330, 1944, 8685, 756, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNodeModules(t *testing.T) { default_suite.expectBundled(t, bundled{ files: map[string]string{ "/Users/user/project/src/entry.js": ` import fn from 'demo-pkg' console.log(fn()) `, "/Users/user/project/node_modules/demo-pkg/index.js": ` module.exports = function() { return 123 } ...
explode_data.jsonl/38457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 233 }
[ 2830, 3393, 1955, 28201, 1155, 353, 8840, 836, 8, 341, 11940, 57239, 25952, 33, 1241, 832, 1155, 11, 51450, 515, 197, 74075, 25, 2415, 14032, 30953, 515, 298, 197, 3115, 7137, 11739, 40118, 13437, 14, 4085, 2857, 788, 22074, 571, 21918,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandshakeServerSNIGetCertificateError(t *testing.T) { config := *testConfig config.GetCertificate = func(clientHello *ClientHelloInfo) (*Certificate, error) { return nil, fmt.Errorf("Test error in GetCertificate") } test := &serverTest{ name: "SNI", command: []string{"openssl", "s_client"...
explode_data.jsonl/80563
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 183 }
[ 2830, 3393, 2314, 29661, 5475, 18966, 1914, 295, 33202, 1454, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 353, 1944, 2648, 271, 25873, 2234, 33202, 284, 2915, 12805, 9707, 353, 2959, 9707, 1731, 8, 4609, 33202, 11, 1465, 8, 341, 197, 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...
1