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 TestIssueAPIURL(t *testing.T) { assert.NoError(t, unittest.PrepareTestDatabase()) issue := unittest.AssertExistsAndLoadBean(t, &Issue{ID: 1}).(*Issue) err := issue.LoadAttributes() assert.NoError(t, err) assert.Equal(t, "https://try.gitea.io/api/v1/repos/user2/repo1/issues/1", issue.APIURL()) }
explode_data.jsonl/46837
{ "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, 42006, 7082, 3144, 1155, 353, 8840, 836, 8, 341, 6948, 35699, 1155, 11, 19905, 28770, 3380, 2271, 5988, 2398, 197, 11159, 1669, 19905, 11711, 15575, 3036, 5879, 10437, 1155, 11, 609, 42006, 90, 915, 25, 220, 16, 16630, 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 TestGetProvider(t *testing.T) { testCases := []getProviderTestCase{ getProviderTestCase{ name: "Found", providers: []*latest.Provider{ &latest.Provider{ Name: "NotThis", }, &latest.Provider{ Name: "thisOne", }, }, needle: "thisOne", expectedProvider: &latest.Provider{ ...
explode_data.jsonl/54491
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 447 }
[ 2830, 3393, 1949, 5179, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 455, 5179, 16458, 515, 197, 10366, 5179, 16458, 515, 298, 11609, 25, 330, 6650, 756, 298, 197, 47287, 25, 29838, 19350, 36208, 515, 571, 197, 5, 19350, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestAddItemEnclosureLengthMin(t *testing.T) { t.Parallel() // arrange p := podcast.New("title", "link", "description", nil, nil) i := podcast.Item{Title: "title", Description: "desc"} i.AddEnclosure("http://example.com/1.mp3", podcast.MP3, -1) // act added, err := p.AddItem(i) // assert assert.EqualVal...
explode_data.jsonl/73077
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 177 }
[ 2830, 3393, 2212, 1234, 7408, 11653, 4373, 6217, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 197, 322, 30893, 198, 3223, 1669, 17711, 7121, 445, 2102, 497, 330, 2080, 497, 330, 4684, 497, 2092, 11, 2092, 340, 8230, 1669, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSubjectGivenNameTooLong(t *testing.T) { inputPath := "subjectGivenNameToolLong.pem" expected := lint.Error out := test.TestLint("e_subject_given_name_max_length", inputPath) if out.Status != expected { t.Errorf("%s: expected %s, got %s", inputPath, expected, out.Status) } }
explode_data.jsonl/76873
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 105 }
[ 2830, 3393, 13019, 22043, 675, 31246, 6583, 1155, 353, 8840, 836, 8, 341, 22427, 1820, 1669, 330, 11501, 22043, 675, 7740, 6583, 49373, 698, 42400, 1669, 57920, 6141, 198, 13967, 1669, 1273, 8787, 47556, 445, 68, 28834, 57653, 1269, 6345,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLDSWithFilter(t *testing.T) { setup() defer tearDown() addrStr := "127.0.0.1:8079" name := "listener_filter" listenerConfig := baseListenerConfig(addrStr, name) if err := GetListenerAdapterInstance().AddOrUpdateListener(testServerName, listenerConfig); err != nil { t.Fatalf("add a new listener failed %...
explode_data.jsonl/9405
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 487 }
[ 2830, 3393, 43, 5936, 2354, 5632, 1155, 353, 8840, 836, 8, 341, 84571, 741, 16867, 32825, 741, 53183, 2580, 1669, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 25, 23, 15, 22, 24, 698, 11609, 1669, 330, 35039, 8727, 698, 14440, 798, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBlock(t *testing.T) { const ( input = `a({{block "inner" .}}bar({{.}})baz{{end}})b` want = `a(bar(hello)baz)b` overlay = `{{define "inner"}}foo({{.}})bar{{end}}` want2 = `a(foo(goodbye)bar)b` ) tmpl, err := New("outer").Parse(input) if err != nil { t.Fatal(err) } tmpl2, err := Must(tmpl....
explode_data.jsonl/41532
{ "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, 4713, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 22427, 256, 284, 1565, 64, 2306, 90, 4574, 330, 4382, 1, 659, 3417, 2257, 2306, 90, 13, 3417, 8, 42573, 2979, 408, 3417, 8, 65, 3989, 197, 50780, 262, 284, 1565, 64,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserEntityDeleteEXAMPLE1(t *testing.T) { resp, _ := sendDelete("http://localhost:8080/EXAMPLE1/YourAccount&q=Delete", UserEntityDeleteSUCCESS, auth.Header.Get("Authorization")) response := responseToString(resp) compareResults(t, response, HyperText.CustomResponses["success-delete"]) }
explode_data.jsonl/59363
{ "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, 1474, 3030, 6435, 95875, 16, 1155, 353, 8840, 836, 8, 341, 34653, 11, 716, 1669, 3624, 6435, 445, 1254, 1110, 8301, 25, 23, 15, 23, 15, 14, 95875, 16, 14, 7771, 7365, 62735, 28, 6435, 497, 2657, 3030, 6435, 39308, 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 TestUnschedulableNodeDaemonDoesLaunchPod(t *testing.T) { defer utilfeaturetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.TaintNodesByCondition, true)() forEachFeatureGate(t, func(t *testing.T) { forEachStrategy(t, func(t *testing.T, strategy *apps.DaemonSetUpdateStrategy) { se...
explode_data.jsonl/8561
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 933 }
[ 2830, 3393, 1806, 72243, 360, 480, 1955, 89177, 21468, 32067, 23527, 1155, 353, 8840, 836, 8, 341, 16867, 4094, 12753, 8840, 4202, 13859, 42318, 16014, 2271, 1155, 11, 4094, 12753, 13275, 13859, 42318, 11, 4419, 836, 1641, 12288, 1359, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestSummaryDataPoint_ValueAtPercentiles(t *testing.T) { ms := NewSummaryDataPoint() ms.InitEmpty() assert.EqualValues(t, NewSummaryValueAtPercentileSlice(), ms.ValueAtPercentiles()) fillTestSummaryValueAtPercentileSlice(ms.ValueAtPercentiles()) testValValueAtPercentiles := generateTestSummaryValueAtPercentile...
explode_data.jsonl/19580
{ "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, 19237, 1043, 2609, 27867, 1655, 32010, 3658, 1155, 353, 8840, 836, 8, 341, 47691, 1669, 1532, 19237, 1043, 2609, 741, 47691, 26849, 3522, 741, 6948, 12808, 6227, 1155, 11, 1532, 19237, 1130, 1655, 32010, 457, 33236, 1507, 9829...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_TryMergeUnmergeableResponseWithStat(t *testing.T) { mct := newMemcacheTest(defaultConfig) msg1 := textParseNoFail(t, "STAT name value\r\n") msg2 := textParseNoFail(t, "0\r\n") b, err := tryMergeResponses(mct.mc, msg1, msg2) assert.False(t, b) assert.Nil(t, err) }
explode_data.jsonl/15053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 123 }
[ 2830, 3393, 1139, 884, 52096, 1806, 19052, 480, 2582, 2354, 15878, 1155, 353, 8840, 836, 8, 341, 2109, 302, 1669, 501, 18816, 9360, 2271, 18978, 2648, 340, 21169, 16, 1669, 1467, 14463, 2753, 19524, 1155, 11, 330, 22595, 829, 897, 12016...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIsKubectlAvailable(t *testing.T) { defer func() { executeCommandFunc = keptnutils.ExecuteCommand }() executeCommandFunc = func(string, []string) (string, error) { return "true", nil } res, err := IsKubectlAvailable() require.True(t, res) require.NoError(t, err) executeCommandFunc = func(string, []...
explode_data.jsonl/67736
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 185 }
[ 2830, 3393, 3872, 42, 53380, 16485, 1155, 353, 8840, 836, 8, 341, 16867, 2915, 368, 341, 197, 8122, 3068, 4062, 9626, 284, 8604, 77, 6031, 13827, 4062, 198, 197, 69826, 8122, 3068, 4062, 9626, 284, 2915, 3609, 11, 3056, 917, 8, 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...
1
func TestEnclosingFunc(t *testing.T) { var src = `package main var bar = func() {} func foo() error { _ = func() { // ------- } return nil } ` testPos := []struct { offset int funcOffset int }{ {25, 24}, {32, 24}, // var bar = func {} {35, 35}, // func foo() error { {53, 35}, // func foo() er...
explode_data.jsonl/60362
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 398 }
[ 2830, 3393, 7408, 17831, 9626, 1155, 353, 8840, 836, 8, 341, 2405, 2286, 284, 1565, 1722, 1887, 271, 947, 3619, 284, 2915, 368, 10086, 2830, 15229, 368, 1465, 341, 197, 62, 284, 2915, 368, 341, 197, 197, 322, 38607, 197, 532, 853, 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 TestMarshalDirectMultilineString(t *testing.T) { tree := newTree() tree.SetWithOptions("mykey", SetOptions{ Multiline: true, }, "my\x11multiline\nstring\ba\tb\fc\rd\"e\\!") result, err := tree.Marshal() if err != nil { t.Fatal("marshal should not error:", err) } expected := []byte("mykey = \"\"\"\nmy\\u...
explode_data.jsonl/46335
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 221 }
[ 2830, 3393, 55438, 16027, 40404, 26560, 703, 1155, 353, 8840, 836, 8, 341, 51968, 1669, 501, 6533, 741, 51968, 4202, 74238, 445, 2408, 792, 497, 2573, 3798, 515, 197, 9209, 494, 26560, 25, 830, 345, 197, 2137, 330, 2408, 3462, 16, 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...
3
func Test_StrStrMap_Pop(t *testing.T) { gtest.C(t, func(t *gtest.T) { m := gmap.NewStrStrMapFrom(g.MapStrStr{ "k1": "v1", "k2": "v2", }) t.Assert(m.Size(), 2) k1, v1 := m.Pop() t.AssertIN(k1, g.Slice{"k1", "k2"}) t.AssertIN(v1, g.Slice{"v1", "v2"}) t.Assert(m.Size(), 1) k2, v2 := m.Pop() t.Ass...
explode_data.jsonl/36016
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 46171, 2580, 2227, 1088, 453, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 2109, 1669, 342, 2186, 7121, 2580, 2580, 2227, 3830, 3268, 10104, 2580, 2580, 515, 298, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSpheroDriverHalt(t *testing.T) { d := initTestSpheroDriver() d.adaptor().connected = true gobottest.Assert(t, d.Halt(), nil) }
explode_data.jsonl/7290
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 54 }
[ 2830, 3393, 50, 759, 2328, 11349, 39, 3145, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 2930, 2271, 50, 759, 2328, 11349, 741, 2698, 11640, 32657, 1005, 15288, 284, 830, 198, 3174, 674, 1716, 477, 11711, 1155, 11, 294, 3839, 3145, 1507,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAuthorizationWithOnlyDefaultPolicy(t *testing.T) { Convey("Make a new controller", t, func() { const TestRepo = "my-repos/repo" port := test.GetFreePort() baseURL := test.GetBaseURL(port) conf := config.New() conf.HTTP.Port = port conf.HTTP.Auth = &config.AuthConfig{} conf.AccessControl = &conf...
explode_data.jsonl/77698
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2581 }
[ 2830, 3393, 18124, 2354, 7308, 3675, 13825, 1155, 353, 8840, 836, 8, 341, 93070, 5617, 445, 8078, 264, 501, 6461, 497, 259, 11, 2915, 368, 341, 197, 4777, 3393, 25243, 284, 330, 2408, 5504, 966, 10758, 5368, 698, 197, 52257, 1669, 127...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUserEntityUpdateSingleWRONGBODY(t *testing.T) { resp, _ := sendPut("http://localhost:8080/TESTING/YourAccount&q=UpdateSingle", UserEntityUpdateSingleWRONGBODY, auth.Header.Get("Authorization")) response := responseToString(resp) compareResults(t, response, HyperText.CustomResponses["wrong-body"]) }
explode_data.jsonl/59337
{ "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, 1474, 3030, 4289, 10888, 17925, 711, 5381, 21050, 1155, 353, 8840, 836, 8, 341, 34653, 11, 716, 1669, 3624, 19103, 445, 1254, 1110, 8301, 25, 23, 15, 23, 15, 14, 10033, 1718, 14, 7771, 7365, 62735, 28, 4289, 10888, 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 Test_FileWatcher(t *testing.T) { fc := NewFileConfig(testFilename, new(fakeCoder)) err := fc.SaveToFile(fakeCoderText) if err != nil { t.Error("SavetoFile failed ", err) } defer os.Remove(testFilename) err = fc.StartWatcher(watcherhandler) if err != nil { t.Error("Start watcher failed ", err) } time....
explode_data.jsonl/69621
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 420 }
[ 2830, 3393, 34061, 47248, 1155, 353, 8840, 836, 8, 341, 1166, 66, 1669, 1532, 1703, 2648, 8623, 20759, 11, 501, 74138, 35290, 1171, 9859, 1669, 25563, 13599, 41550, 74138, 35290, 1178, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 44...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestShouldNotParseArgon2idHashWithWrongKeyLength(t *testing.T) { hash := "$argon2id$v=19$m=65536,k=50$fvwTFoFjITudo57a$Z4NH/EKkdv6PJ01Ye1twJ61fsmRJujZZn1IXdUOyrJY" passwordHash, err := ParseHash(hash) assert.EqualError(t, err, "Argon2id key length parameter (50) does not match the actual key length (32)") asse...
explode_data.jsonl/40183
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 14996, 2623, 14463, 2735, 263, 17, 307, 6370, 2354, 29185, 1592, 4373, 1155, 353, 8840, 836, 8, 341, 50333, 1669, 5201, 70821, 17, 307, 65020, 28, 16, 24, 53516, 28, 21, 20, 20, 18, 21, 16147, 28, 20, 15, 3, 27890, 86,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOTLPGRPCTraces(t *testing.T) { systemtest.CleanupElasticsearch(t) srv := apmservertest.NewServer(t) ctx, cancel := context.WithCancel(context.Background()) defer cancel() resource, err := resource.Merge(resource.Default(), sdkresource.NewSchemaless( attribute.StringSlice("resource_attribute_array", []s...
explode_data.jsonl/34660
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 597 }
[ 2830, 3393, 1793, 12567, 95993, 1162, 81, 2434, 1155, 353, 8840, 836, 8, 341, 40293, 1944, 727, 60639, 36, 51179, 1836, 1155, 340, 1903, 10553, 1669, 1443, 76, 799, 1621, 477, 7121, 5475, 1155, 340, 20985, 11, 9121, 1669, 2266, 26124, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestUpdate_completed(t *testing.T) { var ( ctx = context.TODO() repository = reltest.New() scores = &scorestest.Service{} service = New(repository, scores) todo = Todo{ID: 1, Title: "Sleep"} changes = rel.NewChangeset(&todo) ) todo.Completed = true repository.ExpectTransact...
explode_data.jsonl/7575
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 272 }
[ 2830, 3393, 4289, 49068, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 20985, 286, 284, 2266, 90988, 741, 197, 17200, 3099, 284, 1351, 1944, 7121, 741, 197, 1903, 7701, 257, 284, 609, 12338, 267, 477, 13860, 16094, 197, 52934, 262, 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 TestStatusToOCIStateSuccessfulWithNoState(t *testing.T) { testContID := "testContID" testPID := 12345 testRootFs := "testRootFs" containerAnnotations := map[string]string{ vcAnnotations.BundlePathKey: tempBundlePath, } cStatus := vc.ContainerStatus{ ID: testContID, PID: testPID, Ro...
explode_data.jsonl/44033
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 275 }
[ 2830, 3393, 2522, 1249, 63983, 1397, 36374, 2354, 2753, 1397, 1155, 353, 8840, 836, 8, 341, 18185, 818, 915, 1669, 330, 1944, 818, 915, 698, 18185, 33751, 1669, 220, 16, 17, 18, 19, 20, 198, 18185, 8439, 48300, 1669, 330, 1944, 8439, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGocloak_UpdateRealmRole(t *testing.T) { t.Parallel() cfg := GetConfig(t) client := NewClientWithDebug(t) token := GetAdminToken(t, client) newRoleName := GetRandomName("Role") _, oldRoleName := CreateRealmRole(t, client) err := client.UpdateRealmRole( token.AccessToken, cfg.GoCloak.Realm, oldRol...
explode_data.jsonl/79546
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 316 }
[ 2830, 3393, 38, 509, 385, 585, 47393, 64290, 9030, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 50286, 1669, 2126, 2648, 1155, 340, 25291, 1669, 1532, 2959, 2354, 7939, 1155, 340, 43947, 1669, 2126, 7210, 3323, 1155, 11, 2943, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProposalReceived_ExecuteOutbound(t *testing.T) { followup, action, err := (&proposalReceived{}).ExecuteOutbound(&metaData{}) require.Contains(t, fmt.Sprintf("%v", err), "is not implemented yet") require.Nil(t, followup) require.Nil(t, action) }
explode_data.jsonl/53002
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 98637, 23260, 83453, 2662, 10891, 1155, 353, 8840, 836, 8, 341, 1166, 1544, 454, 11, 1917, 11, 1848, 1669, 15899, 73874, 23260, 6257, 568, 17174, 2662, 10891, 2099, 5490, 1043, 37790, 17957, 11545, 1155, 11, 8879, 17305, 4430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormat(t *testing.T) { for _, tt := range []struct { s *Sequence in []int out []byte }{ {s: &CUU_, out: []byte{033, '[', 'A'}}, {s: &CUU_, in: []int{-1}, out: []byte{033, '[', 'A'}}, {s: &CUU_, in: []int{42}, out: []byte{033, '[', '4', '2', 'A'}}, {s: &CUU_, in: []int{3, 2}, out: []byte{033,...
explode_data.jsonl/25852
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 313 }
[ 2830, 3393, 4061, 1155, 353, 8840, 836, 8, 341, 2023, 8358, 17853, 1669, 2088, 3056, 1235, 341, 197, 1903, 256, 353, 14076, 198, 197, 17430, 220, 3056, 396, 198, 197, 13967, 3056, 3782, 198, 197, 59403, 197, 197, 84386, 25, 609, 16799...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestInvalidMessage(t *testing.T) { ctx := context.Background() client, err := NewClient(ctx, testMessagingConfig) if err != nil { t.Fatal(err) } for _, tc := range invalidMessages { name, err := client.Send(ctx, tc.req) if err == nil || err.Error() != tc.want { t.Errorf("Send(%s) = (%q, %v); want = (...
explode_data.jsonl/3631
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 154 }
[ 2830, 3393, 7928, 2052, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 25291, 11, 1848, 1669, 1532, 2959, 7502, 11, 1273, 91049, 2648, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 2023, 8358, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestCommonIndent(t *testing.T) { t.Parallel() cases := []struct { l []string r string }{ {[]string{}, ""}, {[]string{" "}, " "}, {[]string{"a "}, ""}, {[]string{" ", " "}, " "}, } for _, c := range cases { got := commonIndent(c.l) if got != c.r { t.Errorf("For %#v, expected %#v, g...
explode_data.jsonl/54053
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 178 }
[ 2830, 3393, 10839, 42729, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1444, 2264, 1669, 3056, 1235, 341, 197, 8810, 3056, 917, 198, 197, 7000, 914, 198, 197, 59403, 197, 197, 90, 1294, 917, 22655, 77496, 197, 197, 90, 1294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStaticJSON(t *testing.T) { jsonStr := `{ "name": {"first": "Tom", "last": "Anderson"} }` assert(t, Get(jsonStr, `"bar"`).Raw == ``) assert(t, Get(jsonStr, `!"bar"`).Raw == `"bar"`) assert(t, Get(jsonStr, `!{"name":{"first":"Tom"}}.{name.first}.first`).Raw == `"Tom"`) assert(t, Get(jsonStr, ...
explode_data.jsonl/43496
{ "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, 11690, 5370, 1155, 353, 8840, 836, 8, 341, 30847, 2580, 1669, 1565, 515, 197, 197, 31486, 788, 5212, 3896, 788, 330, 24732, 497, 330, 4259, 788, 330, 95529, 16707, 197, 31257, 6948, 1155, 11, 2126, 9304, 2580, 345, 197, 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 TestMakeSureToCloseDbConnWhenBeginQueryFails(t *testing.T) { db, tsv := setupTabletServerTest(t, "") defer tsv.StopService() defer db.Close() db.AddRejectedQuery("begin", errors.New("it broke")) target := querypb.Target{TabletType: topodatapb.TabletType_PRIMARY} options := &querypb.ExecuteOptions{} // run...
explode_data.jsonl/79998
{ "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, 8078, 39814, 1249, 7925, 7994, 9701, 4498, 11135, 2859, 37, 6209, 1155, 353, 8840, 836, 8, 341, 20939, 11, 259, 3492, 1669, 6505, 2556, 83, 5475, 2271, 1155, 11, 14676, 16867, 259, 3492, 30213, 1860, 741, 16867, 2927, 10421,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestResolveIPv6(t *testing.T) { b := &resolveBackendWithTracking{ nameToIP: make(map[string][]net.IP), } r := &Resolver{ cache: make(map[string]*cacheRecord), resolve: b.resolve, } testHost := "hostA" expectedIPv4 := net.ParseIP("1.2.3.4") expectedIPv6 := net.ParseIP("::1") b.nameToIP[testHost] = ...
explode_data.jsonl/27870
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 670 }
[ 2830, 3393, 56808, 58056, 21, 1155, 353, 8840, 836, 8, 341, 2233, 1669, 609, 17325, 29699, 2354, 37119, 515, 197, 11609, 1249, 3298, 25, 1281, 9147, 14032, 45725, 4711, 46917, 1326, 197, 532, 7000, 1669, 609, 18190, 515, 197, 52680, 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 TestParseDurationString_ShouldParseDurationString(t *testing.T) { duration, err := ParseDurationString("1h") assert.NoError(t, err) assert.Equal(t, 60*time.Minute, duration) }
explode_data.jsonl/12144
{ "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, 14463, 12945, 703, 36578, 616, 14463, 12945, 703, 1155, 353, 8840, 836, 8, 341, 89300, 11, 1848, 1669, 14775, 12945, 703, 445, 16, 71, 5130, 6948, 35699, 1155, 11, 1848, 340, 6948, 12808, 1155, 11, 220, 21, 15, 77053, 7577...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPopulate(t *testing.T) { ctx := context.Background() client, err := newTestGCSClient() if err != nil { t.Fatal(err) } td, err := ioutil.TempDir(os.TempDir(), "") if err != nil { t.Fatalf("error creating temp dir: %v", err) } defer os.RemoveAll(td) tf := filepath.Join(td, "test.cred") if err := io...
explode_data.jsonl/3875
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1455 }
[ 2830, 3393, 11598, 6334, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 25291, 11, 1848, 1669, 501, 2271, 38, 6412, 2959, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 76373, 11, 1848, 1669, 4314...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseInvalidURL(t *testing.T) { type config struct { ExampleURL url.URL `env:"EXAMPLE_URL_2"` } var cfg config os.Setenv("EXAMPLE_URL_2", "nope://s s/") assert.EqualError(t, Parse(&cfg), "env: parse error on field \"ExampleURL\" of type \"url.URL\": unable to parse URL: parse nope://s s/: invalid charac...
explode_data.jsonl/78799
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 128 }
[ 2830, 3393, 14463, 7928, 3144, 1155, 353, 8840, 836, 8, 341, 13158, 2193, 2036, 341, 197, 197, 13314, 3144, 2515, 20893, 1565, 3160, 2974, 95875, 8000, 62, 17, 8805, 197, 532, 2405, 13286, 2193, 198, 25078, 4202, 3160, 445, 95875, 8000,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetBlockByIndex(t *testing.T) { client := neorpc.NewClient("http://seed2.o3node.org:10332") if client == nil { t.Fail() } index := 2188171 result := client.GetBlockByIndex(index) log.Printf("%+v", result) }
explode_data.jsonl/9990
{ "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, 1949, 4713, 1359, 1552, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 834, 269, 3992, 7121, 2959, 445, 1254, 1110, 22602, 17, 14439, 18, 3509, 2659, 25, 16, 15, 18, 18, 17, 1138, 743, 2943, 621, 2092, 341, 197, 3244, 57243,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLookupRequest(t *testing.T) { t.Parallel() lr := LookupRequest{} // good { msg, err := lr.Read(payload.NewReader(id.Write())) assert.Nil(t, err) _, castOK := msg.(LookupRequest) assert.True(t, castOK) assert.Truef(t, id.Equals(msg.(LookupRequest).ID), "Expected equal %v vs %v", id, msg) } // ...
explode_data.jsonl/15797
{ "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, 34247, 1900, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 8810, 81, 1669, 50311, 1900, 31483, 197, 322, 1661, 198, 197, 515, 197, 21169, 11, 1848, 1669, 27060, 6503, 26772, 68587, 3724, 4073, 12145, 197, 6948, 59678...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTile_GetTilesUntil(t *testing.T) { start := &Tile{X: 1, Y: 1} end := &Tile{X: 8, Y: 8} expected := 7 c := start.GetTilesUntil(end) count := 0 for item := range c { fmt.Println(item) count++ } if count != expected { t.Error(fmt.Sprintf("Got this many %v exptected %v", count, expected)) } }
explode_data.jsonl/39457
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 137 }
[ 2830, 3393, 15628, 13614, 58365, 24493, 1155, 353, 8840, 836, 8, 341, 21375, 1669, 609, 15628, 90, 55, 25, 220, 16, 11, 809, 25, 220, 16, 532, 6246, 1669, 609, 15628, 90, 55, 25, 220, 23, 11, 809, 25, 220, 23, 532, 42400, 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...
3
func TestLayers(t *testing.T) { offset := map[string]int{ "Dockerfile_test_add": 12, "Dockerfile_test_scratch": 3, } for _, dockerfile := range allDockerfiles { t.Run("test_layer_"+dockerfile, func(t *testing.T) { dockerfile := dockerfile t.Parallel() if _, ok := imageBuilder.DockerfilesToIgnore[...
explode_data.jsonl/670
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 330 }
[ 2830, 3393, 40235, 1155, 353, 8840, 836, 8, 341, 40668, 1669, 2415, 14032, 63025, 515, 197, 197, 61428, 13659, 1192, 4452, 2891, 788, 257, 220, 16, 17, 345, 197, 197, 61428, 13659, 1192, 4452, 59728, 754, 788, 220, 18, 345, 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...
2
func TestVersionedTreeHash(t *testing.T) { require := require.New(t) tree := NewMutableTree(db.NewMemDB(), 0) require.Nil(tree.Hash()) tree.Set([]byte("I"), []byte("D")) require.Nil(tree.Hash()) hash1, _, _ := tree.SaveVersion() tree.Set([]byte("I"), []byte("F")) require.EqualValues(hash1, tree.Hash()) has...
explode_data.jsonl/25137
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 222 }
[ 2830, 3393, 5637, 291, 6533, 6370, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 51968, 1669, 1532, 11217, 6533, 9791, 7121, 18816, 3506, 1507, 220, 15, 692, 17957, 59678, 21298, 15103, 2398, 51968, 4202, 10556, 3782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestService_isCorrectlyCreatedAndUpdated(t *testing.T) { mdb := newTestReplicaSet() mgr := client.NewManager(&mdb) r := NewReconciler(mgr) res, err := r.Reconcile(context.TODO(), reconcile.Request{NamespacedName: types.NamespacedName{Namespace: mdb.Namespace, Name: mdb.Name}}) assertReconciliationSuccessful(...
explode_data.jsonl/80677
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 365 }
[ 2830, 3393, 1860, 6892, 33092, 398, 11694, 3036, 16196, 1155, 353, 8840, 836, 8, 341, 2109, 1999, 1669, 501, 2271, 18327, 15317, 1649, 2822, 2109, 901, 1669, 2943, 7121, 2043, 2099, 78127, 340, 7000, 1669, 1532, 693, 40446, 5769, 1255, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHandleVolumeResourceStateChangeNoSave(t *testing.T) { testCases := []struct { Name string KnownStatus resourcestatus.ResourceStatus DesiredKnownStatus resourcestatus.ResourceStatus Err error ChangedKnownStatus resourcestatus.ResourceStatus TaskDesiredStatus api...
explode_data.jsonl/24594
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 725 }
[ 2830, 3393, 6999, 18902, 4783, 1397, 4072, 2753, 8784, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 21297, 2290, 914, 198, 197, 39340, 4169, 2522, 286, 5101, 2829, 20766, 2522, 198, 197, 197, 4896, 2690, 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...
1
func TestSkipBodyDownloadWith400(t *testing.T) { const message = "error should be downloaded" srv, close := mock.NewServer() defer close() srv.SetResponse(mock.WithStatusCode(http.StatusBadRequest), mock.WithBody([]byte(message))) // download policy is automatically added during pipeline construction pl := newTes...
explode_data.jsonl/6867
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 304 }
[ 2830, 3393, 35134, 5444, 11377, 2354, 19, 15, 15, 1155, 353, 8840, 836, 8, 341, 4777, 1943, 284, 330, 841, 1265, 387, 23293, 698, 1903, 10553, 11, 3265, 1669, 7860, 7121, 5475, 741, 16867, 3265, 741, 1903, 10553, 4202, 2582, 30389, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
6
func TestUpdateValidateSets(t *testing.T) { smr, err := MakeSmr(t) if err != nil { t.Error("TestUpdateValidateSets MakeSmr error", "error", err) return } validates := []*cons_base.CandidateInfo{ &cons_base.CandidateInfo{ Address: "dpzuVdosQrF2kmzumhVeFQZa1aYcdgFpN", }, &cons_base.CandidateInfo{ Addr...
explode_data.jsonl/33031
{ "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, 4289, 17926, 30175, 1155, 353, 8840, 836, 8, 341, 1903, 20946, 11, 1848, 1669, 7405, 10673, 81, 1155, 340, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 445, 2271, 4289, 17926, 30175, 7405, 10673, 81, 1465, 497, 330, 841, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAccAwsDmsEndpoint_S3_ExtraConnectionAttributes(t *testing.T) { resourceName := "aws_dms_endpoint.dms_endpoint" randId := acctest.RandString(8) + "-s3" resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: dmsEndpointDest...
explode_data.jsonl/37165
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 346 }
[ 2830, 3393, 14603, 47359, 35, 1011, 27380, 1098, 18, 62, 11612, 4526, 10516, 1155, 353, 8840, 836, 8, 341, 50346, 675, 1669, 330, 8635, 814, 1011, 36699, 950, 1011, 36699, 698, 7000, 437, 764, 1669, 1613, 67880, 2013, 437, 703, 7, 23,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewRollupTargetV2Proto(t *testing.T) { proto := &rulepb.RollupTargetV2{ Pipeline: &pipelinepb.Pipeline{ Ops: []pipelinepb.PipelineOp{ { Type: pipelinepb.PipelineOp_AGGREGATION, Aggregation: &pipelinepb.AggregationOp{ Type: aggregationpb.AggregationType_SUM, }, }, { T...
explode_data.jsonl/8367
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1178 }
[ 2830, 3393, 3564, 32355, 454, 6397, 53, 17, 31549, 1155, 353, 8840, 836, 8, 341, 197, 15110, 1669, 609, 12937, 16650, 71212, 454, 6397, 53, 17, 515, 197, 10025, 8790, 25, 609, 51258, 16650, 1069, 8790, 515, 298, 197, 38904, 25, 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...
1
func TestCreatePatchSetFromPatchesResolver(t *testing.T) { ctx := backend.WithAuthzBypass(context.Background()) dbtesting.SetupGlobalTestDB(t) userID := insertTestUser(t, dbconn.Global, "create-patch-set", false) act := actor.FromUser(userID) ctx = actor.WithActor(ctx, act) t.Run("invalid patch", func(t *testi...
explode_data.jsonl/27598
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2271 }
[ 2830, 3393, 4021, 43622, 1649, 3830, 47, 9118, 18190, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 19163, 26124, 5087, 89, 33, 49911, 5378, 19047, 12367, 20939, 8840, 39820, 11646, 2271, 3506, 1155, 692, 19060, 915, 1669, 5656, 2271, 1474, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_read_int16(t *testing.T) { inputs := []string{`32767`, `-32768`} for _, input := range inputs { t.Run(fmt.Sprintf("%v", input), func(t *testing.T) { should := require.New(t) iter := ParseString(ConfigDefault, input) expected, err := strconv.ParseInt(input, 10, 16) should.Nil(err) should.Equ...
explode_data.jsonl/51189
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 158 }
[ 2830, 3393, 6443, 4042, 16, 21, 1155, 353, 8840, 836, 8, 341, 22427, 82, 1669, 3056, 917, 90, 63, 18, 17, 22, 21, 22, 7808, 93797, 18, 17, 22, 21, 23, 53136, 2023, 8358, 1946, 1669, 2088, 11127, 341, 197, 3244, 16708, 28197, 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 TestFieldsApplied(t *testing.T) { type unit struct { app string cust string stage string } tests := []unit{ {"", "", ""}, {"zapup", "gopher", "test"}, } for _, test := range tests { temp, err := os.CreateTemp("", "zapup-fields-applied-test") require.NoError(t, err, "Unexpected error construc...
explode_data.jsonl/63195
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 632 }
[ 2830, 3393, 8941, 75856, 1155, 353, 8840, 836, 8, 341, 13158, 4982, 2036, 341, 197, 28236, 256, 914, 198, 197, 1444, 590, 220, 914, 198, 197, 91575, 914, 198, 197, 532, 78216, 1669, 3056, 3843, 515, 197, 197, 4913, 497, 7342, 77496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFlowOneResolve(t *testing.T) { workflow, _ := fixture(t, "valid/one-resolve.workflow") assert.Equal(t, "push", workflow.Workflows[0].On.String()) assert.IsType(t, &model.OnEvent{}, workflow.Workflows[0].On) assert.Len(t, workflow.Workflows[0].Resolves[0], 1) assert.Equal(t, "a", workflow.Workflows[0].Reso...
explode_data.jsonl/55672
{ "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, 18878, 3966, 56808, 1155, 353, 8840, 836, 8, 341, 197, 56249, 11, 716, 1669, 12507, 1155, 11, 330, 1891, 14, 603, 11588, 3948, 72774, 1138, 6948, 12808, 1155, 11, 330, 9077, 497, 28288, 28748, 38140, 58, 15, 936, 1925, 643...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_distance(t *testing.T) { testTable := []struct { Name string P1 image.Point P2 image.Point Distance float64 }{ { Name: "identical points have distance 0", P1: image.Point{}, P2: image.Point{}, Distance: 0, }, { Name: "pythagorean triple 3-4-5 ...
explode_data.jsonl/33940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 395 }
[ 2830, 3393, 19464, 1155, 353, 8840, 836, 8, 341, 18185, 2556, 1669, 3056, 1235, 341, 197, 21297, 257, 914, 198, 197, 10025, 16, 981, 2168, 3775, 198, 197, 10025, 17, 981, 2168, 3775, 198, 197, 10957, 3924, 2224, 21, 19, 198, 197, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMysql56SetSlavePositionCommands(t *testing.T) { pos, _ := (&mysql56{}).ParseReplicationPosition("00010203-0405-0607-0809-0a0b0c0d0e0f:1-2") want := []string{ "RESET MASTER", "SET GLOBAL gtid_purged = '00010203-0405-0607-0809-0a0b0c0d0e0f:1-2'", } got, err := (&mysql56{}).SetSlavePositionCommands(pos) ...
explode_data.jsonl/11241
{ "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, 44, 14869, 20, 21, 1649, 95960, 3812, 30479, 1155, 353, 8840, 836, 8, 341, 28164, 11, 716, 1669, 15899, 12272, 20, 21, 6257, 568, 14463, 18327, 1693, 3812, 445, 15, 15, 15, 16, 15, 17, 15, 18, 12, 15, 19, 15, 20, 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...
3
func TestQuery_NewQueryObj(t *testing.T) { qo := newQueryObj("StrKey", "eq", "foo") assert.NotNil(t, qo) assert.Equal(t, "StrKey", qo.fieldName) assert.Equal(t, "eq", qo.op) assert.Equal(t, "foo", qo.valueStr) }
explode_data.jsonl/70146
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 102 }
[ 2830, 3393, 2859, 39582, 2859, 5261, 1155, 353, 8840, 836, 8, 341, 18534, 78, 1669, 501, 2859, 5261, 445, 2580, 1592, 497, 330, 11006, 497, 330, 7975, 1138, 6948, 93882, 1155, 11, 2804, 78, 340, 6948, 12808, 1155, 11, 330, 2580, 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 TestHelp(t *testing.T) { test := its.NewTest(t) defer test.TearDown() test.Run("cli: show info", func() { test.Machine("").Should().Succeed("Usage:", "Create and manage machines running Docker") }) test.Run("cli: show active help", func() { test.Machine("active -h").Should().Succeed("machine active") }...
explode_data.jsonl/23083
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 848 }
[ 2830, 3393, 12689, 1155, 353, 8840, 836, 8, 341, 18185, 1669, 1181, 7121, 2271, 1155, 340, 16867, 1273, 836, 682, 4454, 2822, 18185, 16708, 445, 19521, 25, 1473, 3546, 497, 2915, 368, 341, 197, 18185, 1321, 3814, 80821, 14996, 1005, 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 TestAddCookies(t *testing.T) { req, err := http.NewRequest("GET", "https://www.example.com", nil) require.Nil(t, err) cookies := []*http.Cookie{ { Name: "test1", Value: "val1", Domain: "example.com", }, { Name: "test2", Value: "val2", Domain: "test.com", }, { Name: "test3...
explode_data.jsonl/4333
{ "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, 2212, 50672, 1155, 353, 8840, 836, 8, 341, 24395, 11, 1848, 1669, 1758, 75274, 445, 3806, 497, 330, 2428, 1110, 2136, 7724, 905, 497, 2092, 340, 17957, 59678, 1155, 11, 1848, 692, 197, 44317, 1669, 29838, 1254, 82918, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestAlpha(t *testing.T) { validate := New() s := "abcd" errs := validate.Var(s, "alpha") Equal(t, errs, nil) s = "abc®" errs = validate.Var(s, "alpha") NotEqual(t, errs, nil) AssertError(t, errs, "", "", "", "", "alpha") s = "abc÷" errs = validate.Var(s, "alpha") NotEqual(t, errs, nil) AssertError(...
explode_data.jsonl/77328
{ "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, 19384, 1155, 353, 8840, 836, 8, 1476, 197, 7067, 1669, 1532, 2822, 1903, 1669, 330, 68644, 698, 9859, 82, 1669, 9593, 87968, 1141, 11, 330, 7141, 1138, 197, 2993, 1155, 11, 70817, 11, 2092, 692, 1903, 284, 330, 13683, 1190...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPushImageJSONRegistry(t *testing.T) { r := spawnTestRegistrySession(t) imgData := &ImgData{ ID: "77dbf71da1d00e3fbddc480176eac8994025630c6590d11cfc8fe1209c2a1d20", Checksum: "sha256:1ac330d56e05eef6d438586545ceff7550d3bdcb6b19961f12c5ba714ee1bb37", } err := r.PushImageJSONRegistry(imgData, []byt...
explode_data.jsonl/13104
{ "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, 16644, 1906, 5370, 15603, 1155, 353, 8840, 836, 8, 341, 7000, 1669, 18042, 2271, 15603, 5283, 1155, 340, 39162, 1043, 1669, 609, 13033, 1043, 515, 197, 29580, 25, 981, 330, 22, 22, 1999, 69, 22, 16, 3235, 16, 67, 15, 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 TestScalarBls12377G1Sqrt(t *testing.T) { bls12377G1 := BLS12377G1() nine := bls12377G1.Scalar.New(9) actual, err := nine.Sqrt() require.NoError(t, err) sa, _ := actual.(*ScalarBls12377) expected, err := bls12377G1.Scalar.SetBigInt(bhex("12ab655e9a2ca55660b44d1e5c37b00159aa76fed00000010a117ffffffffffe")) req...
explode_data.jsonl/15754
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 20639, 33, 4730, 16, 17, 18, 22, 22, 38, 16, 50, 8140, 1155, 353, 8840, 836, 8, 341, 96421, 82, 16, 17, 18, 22, 22, 38, 16, 1669, 425, 7268, 16, 17, 18, 22, 22, 38, 16, 741, 9038, 482, 1669, 1501, 82, 16, 17, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestSmImpl_addState(t *testing.T) { sm := &smImpl{ aggMap: map[State]Aggregator{}, validChanges: map[State]map[State]bool{}, } mockAgg := &MockAggregator{} err1 := sm.addState(State(1), mockAgg, State(2)) assert.Nil(t, err1, "should be success") assert.True(t, sm.validChanges[State(1)][State(2)]) ...
explode_data.jsonl/12135
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 238 }
[ 2830, 3393, 10673, 9673, 2891, 1397, 1155, 353, 8840, 836, 8, 341, 72023, 1669, 609, 3563, 9673, 515, 197, 197, 15718, 2227, 25, 981, 2415, 58, 1397, 60, 9042, 58131, 38837, 197, 56322, 11317, 25, 2415, 58, 1397, 60, 2186, 58, 1397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConfig_GetIntValue(t *testing.T) { client := createMockApolloConfig(120) defaultValue := 100000 config := client.GetConfig(testDefaultNamespace) //test default v := config.GetIntValue("joe", defaultValue) Assert(t, defaultValue, Equal(v)) //normal value v = config.GetIntValue("int", defaultValue) ...
explode_data.jsonl/17972
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 153 }
[ 2830, 3393, 2648, 13614, 1072, 1130, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1855, 11571, 95909, 2648, 7, 16, 17, 15, 340, 11940, 1130, 1669, 220, 16, 15, 15, 15, 15, 15, 198, 25873, 1669, 2943, 2234, 2648, 8623, 3675, 22699, 692...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestGOMODCACHEInWorkspace(t *testing.T) { const mod = ` -- a/go.mod -- module a.com go 1.12 -- a/a.go -- package a func _() {} -- a/c/c.go -- package c -- gopath/src/b/b.go -- package b -- gopath/pkg/mod/example.com/go.mod -- module example.com go 1.12 -- gopath/pkg/mod/example.com/main.go -- package main ` W...
explode_data.jsonl/37376
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 308 }
[ 2830, 3393, 38, 1898, 2069, 61736, 641, 45981, 1155, 353, 8840, 836, 8, 341, 4777, 1463, 284, 22074, 313, 264, 25525, 10929, 39514, 4352, 264, 905, 271, 3346, 220, 16, 13, 16, 17, 198, 313, 264, 14186, 18002, 39514, 1722, 264, 271, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestOptions_runWithClient(t *testing.T) { dir, err := ioutil.TempDir(testDir, "tmp") if err != nil { t.Error(err) } defer os.RemoveAll(dir) importSecret := &corev1.Secret{ ObjectMeta: metav1.ObjectMeta{ Name: "test-import", Namespace: "test", }, Data: map[string][]byte{ "crds.yaml": []...
explode_data.jsonl/80079
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1008 }
[ 2830, 3393, 3798, 14007, 2354, 2959, 1155, 353, 8840, 836, 8, 341, 48532, 11, 1848, 1669, 43144, 65009, 6184, 8623, 6184, 11, 330, 5173, 1138, 743, 1848, 961, 2092, 341, 197, 3244, 6141, 3964, 340, 197, 532, 16867, 2643, 84427, 14161, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileOpsCollection_Equal_04(t *testing.T) { sf := make([]string, 5, 10) sf[0] = "../filesfortest/levelfilesfortest/level_0_0_test.txt" sf[1] = "../filesfortest/levelfilesfortest/level_0_1_test.txt" sf[2] = "../filesfortest/levelfilesfortest/level_0_2_test.txt" sf[3] = "../filesfortest/levelfilesfort...
explode_data.jsonl/76451
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 913 }
[ 2830, 3393, 1703, 38904, 6482, 2089, 1751, 62, 15, 19, 1155, 353, 8840, 836, 8, 1476, 220, 13124, 1669, 1281, 10556, 917, 11, 220, 20, 11, 220, 16, 15, 692, 220, 13124, 58, 15, 60, 284, 7005, 7198, 3969, 477, 14, 3449, 490, 3658, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRetriesOfDeletedJobShouldBeZero(t *testing.T) { withRepository(func(r *RedisJobRepository) { testJob := addLeasedJob(t, r, "some-queue", "cluster-1") for i := 0; i < 11; i++ { err := r.AddRetryAttempt(testJob.Id) assert.Nil(t, err) } r.DeleteJobs([]*api.Job{testJob}) retries, err := r.GetNu...
explode_data.jsonl/32067
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 181 }
[ 2830, 3393, 12020, 4019, 2124, 26039, 12245, 14996, 3430, 17999, 1155, 353, 8840, 836, 8, 341, 46948, 4624, 18552, 2601, 353, 48137, 12245, 4624, 8, 341, 197, 18185, 12245, 1669, 912, 2304, 1475, 12245, 1155, 11, 435, 11, 330, 14689, 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...
2
func TestPack(t *testing.T) { var b packet.Buffer b.Init(make([]byte, len(test_simple))) p := MakeTestSimple() err := p.Pack(&b) if err != nil { t.Fatalf("Error packing: %s", err) } if !bytes.Equal(test_simple, b.Buffer()) { t.Fatalf("Raw packet mismatch: %x", b.Buffer()) ...
explode_data.jsonl/3998
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 147 }
[ 2830, 3393, 30684, 1155, 353, 8840, 836, 8, 341, 262, 762, 293, 10151, 22622, 198, 262, 293, 26849, 36944, 10556, 3782, 11, 2422, 8623, 30015, 19235, 262, 281, 1669, 7405, 2271, 16374, 2822, 262, 1848, 1669, 281, 1069, 473, 2099, 65, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestAccUplinkSet_2(t *testing.T) { resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, Steps: []resource.TestStep{ { Config: testAccUplinkSetData, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("oneview_uplink_set....
explode_data.jsonl/20796
{ "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, 14603, 52, 500, 766, 1649, 62, 17, 1155, 353, 8840, 836, 8, 1476, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 4703, 3973, 25, 220, 2915, 368, 314, 1273, 14603, 4703, 3973, 1155, 8, 1153, 197, 197, 37351, 25, 1273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlayerCash(t *testing.T) { t.Parallel() output := &bytes.Buffer{} p := &blackjack.Player{ Name: "Planty", Cash: 101, Hands: []*blackjack.Hand{ { Id: 1, Outcome: blackjack.OutcomeWin, Payout: 1, }, }, } p.OutcomeReport(output) want := "Planty won $1. Cash available: $1...
explode_data.jsonl/5926
{ "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, 4476, 47441, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 21170, 1669, 609, 9651, 22622, 31483, 3223, 1669, 609, 11453, 27134, 23756, 515, 197, 21297, 25, 330, 54647, 88, 756, 197, 6258, 988, 25, 220, 16, 15, 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 Test_IntStrMap_Lock(t *testing.T) { expect := map[int]string{1: "a", 2: "b", 3: "c"} m := gmap.NewIntStrMapFrom(expect) m.LockFunc(func(m map[int]string) { gtest.Assert(m, expect) }) m.RLockFunc(func(m map[int]string) { gtest.Assert(m, expect) }) }
explode_data.jsonl/7643
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 130 }
[ 2830, 3393, 32054, 2580, 2227, 2351, 1176, 1155, 353, 8840, 836, 8, 1476, 24952, 1669, 2415, 18640, 30953, 90, 16, 25, 330, 64, 497, 220, 17, 25, 330, 65, 497, 220, 18, 25, 330, 66, 16707, 2109, 1669, 342, 2186, 7121, 1072, 2580, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRejectFrameOnIdle_RSTStream(t *testing.T) { testRejectRequestWithProtocolError(t, func(st *serverTester) { st.fr.WriteRSTStream(123, ErrCodeCancel) }) }
explode_data.jsonl/71634
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 66 }
[ 2830, 3393, 78413, 4369, 1925, 41370, 64093, 3027, 1155, 353, 8840, 836, 8, 341, 18185, 78413, 1900, 2354, 20689, 1454, 1155, 11, 2915, 5895, 353, 4030, 58699, 8, 341, 197, 18388, 18798, 4073, 49, 784, 3027, 7, 16, 17, 18, 11, 15495, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTxExecutorEmptyPrepare(t *testing.T) { txe, tsv, db := newTestTxExecutor(t) defer db.Close() defer tsv.StopService() txid := newTransaction(tsv, nil) err := txe.Prepare(txid, "aa") require.NoError(t, err) // Nothing should be prepared. require.Empty(t, txe.te.preparedPool.conns, "txe.te.preparedPool.co...
explode_data.jsonl/25159
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 135 }
[ 2830, 3393, 31584, 25255, 3522, 50590, 1155, 353, 8840, 836, 8, 341, 3244, 8371, 11, 259, 3492, 11, 2927, 1669, 501, 2271, 31584, 25255, 1155, 340, 16867, 2927, 10421, 741, 16867, 259, 3492, 30213, 1860, 741, 46237, 307, 1669, 501, 8070...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlankJobURLPrefix(t *testing.T) { testCases := []struct { name string plank Plank prowjob *prowapi.ProwJob expectedJobURLPrefix string }{ { name: "Nil refs returns default JobURLPrefix", plank: Plank{JobURLPrefixConfig...
explode_data.jsonl/41029
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2231 }
[ 2830, 3393, 2120, 1180, 12245, 3144, 14335, 1155, 353, 8840, 836, 8, 341, 18185, 37302, 1669, 3056, 1235, 341, 197, 11609, 338, 914, 198, 197, 72213, 1180, 394, 1818, 1180, 198, 197, 3223, 651, 8799, 1060, 353, 79, 651, 2068, 1069, 65...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestTransformWithPid(t *testing.T) { // An example service service := kobject.ServiceConfig{ ContainerName: "name", Image: "image", Environment: []kobject.EnvVar{kobject.EnvVar{Name: "env", Value: "value"}}, Port: []kobject.Ports{kobject.Ports{HostPort: 123, ContainerPort: 456, Protoco...
explode_data.jsonl/58957
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 506 }
[ 2830, 3393, 8963, 2354, 32339, 1155, 353, 8840, 836, 8, 341, 197, 322, 1527, 3110, 2473, 198, 52934, 1669, 595, 1700, 13860, 2648, 515, 197, 197, 4502, 675, 25, 330, 606, 756, 197, 53397, 25, 260, 330, 1805, 756, 197, 197, 12723, 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 TestIntersection(t *testing.T) { var e1, e2, e3 float32 e := createRandomObject(e1) if v, ok := e.(float32); ok { e1 = v } e = createRandomObject(e2) if v, ok := e.(float32); ok { e2 = v } e = createRandomObject(e3) if v, ok := e.(float32); ok { e3 = v } s1 := New() s1.Add(e1) s1.Add(e2) s2 :...
explode_data.jsonl/35021
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 256 }
[ 2830, 3393, 72927, 1155, 353, 8840, 836, 8, 341, 2405, 384, 16, 11, 384, 17, 11, 384, 18, 2224, 18, 17, 198, 7727, 1669, 1855, 13999, 1190, 2026, 16, 340, 743, 348, 11, 5394, 1669, 384, 12832, 3649, 18, 17, 1215, 5394, 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...
6
func TestAccKeycloakDefaultGroups_updateInPlace(t *testing.T) { realmName := "terraform-" + acctest.RandString(10) allGroupsForTest := []string{ "terraform-group-" + acctest.RandString(10), "terraform-group-" + acctest.RandString(10), "terraform-group-" + acctest.RandString(10), } indexOfRandomGroupToRemove ...
explode_data.jsonl/28423
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 610 }
[ 2830, 3393, 14603, 1592, 88751, 3675, 22173, 8882, 641, 17371, 1155, 353, 8840, 836, 8, 341, 17200, 7673, 675, 1669, 330, 61385, 27651, 488, 1613, 67880, 2013, 437, 703, 7, 16, 15, 692, 50960, 22173, 2461, 2271, 1669, 3056, 917, 515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestConnect(t *testing.T) { type tt struct { dsn string status int err string } tests := testy.NewTable() tests.Add("invalid url", tt{ dsn: "http://%xxx", status: http.StatusBadRequest, err: `parse "?http://%xxx"?: invalid URL escape "%xx"`, }) tests.Add("valid http:// url", tt{ dsn...
explode_data.jsonl/52103
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 495 }
[ 2830, 3393, 14611, 1155, 353, 8840, 836, 8, 341, 13158, 17853, 2036, 341, 197, 2698, 9613, 262, 914, 198, 197, 23847, 526, 198, 197, 9859, 262, 914, 198, 197, 532, 78216, 1669, 1273, 88, 7121, 2556, 741, 78216, 1904, 445, 11808, 2515,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPacketDNSRegression(t *testing.T) { p := gopacket.NewPacket(testPacketDNSRegression, LinkTypeEthernet, testDecodeOptions) if p.ErrorLayer() != nil { t.Error("Failed to decode packet:", p.ErrorLayer().Error()) } checkLayers(p, []gopacket.LayerType{LayerTypeEthernet, LayerTypeIPv4, LayerTypeUDP, LayerTypeD...
explode_data.jsonl/42268
{ "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, 16679, 61088, 45200, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 342, 453, 5709, 7121, 16679, 8623, 16679, 61088, 45200, 11, 5948, 929, 98006, 11, 1273, 32564, 3798, 340, 743, 281, 6141, 9188, 368, 961, 2092, 341, 197, 3244, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestRuleUpdateDeleteWithLimit(t *testing.T) { common.Log.Debug("Entering function: %s", common.GetFunctionName()) sqls := [][]string{ { "UPDATE film SET length = 120 WHERE title = 'abc' LIMIT 1;", }, { "UPDATE film SET length = 120 WHERE title = 'abc';", }, } for _, sql := range sqls[0] { q, er...
explode_data.jsonl/76767
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 380 }
[ 2830, 3393, 11337, 4289, 6435, 2354, 16527, 1155, 353, 8840, 836, 8, 341, 83825, 5247, 20345, 445, 82867, 729, 25, 1018, 82, 497, 4185, 2234, 5152, 675, 2398, 30633, 82, 1669, 52931, 917, 515, 197, 197, 515, 298, 197, 1, 9239, 4531, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseStmtsStopEarly(t *testing.T) { t.Parallel() p := NewParser() inReader, inWriter := io.Pipe() defer inWriter.Close() recv := make(chan bool, 10) errc := make(chan error, 1) go func() { errc <- p.Stmts(inReader, func(s *Stmt) bool { recv <- true return !s.Background }) }() io.WriteString(...
explode_data.jsonl/55128
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 214 }
[ 2830, 3393, 14463, 31063, 82, 10674, 41198, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 3223, 1669, 1532, 6570, 741, 17430, 5062, 11, 304, 6492, 1669, 6399, 1069, 3444, 741, 16867, 304, 6492, 10421, 741, 197, 33977, 1669, 1281...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestBuild_Invalid(t *testing.T) { a := v1alpha1.PipelineTask{Name: "a"} xDependsOnA := v1alpha1.PipelineTask{ Name: "x", Resources: &v1alpha1.PipelineTaskResources{ Inputs: []v1alpha1.PipelineTaskInputResource{{From: []string{"a"}}}, }, } zDependsOnX := v1alpha1.PipelineTask{ Name: "z", Resources:...
explode_data.jsonl/69250
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1428 }
[ 2830, 3393, 11066, 62, 7928, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 348, 16, 7141, 16, 1069, 8790, 6262, 63121, 25, 330, 64, 16707, 10225, 7839, 1412, 1925, 32, 1669, 348, 16, 7141, 16, 1069, 8790, 6262, 515, 197, 21297, 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...
2
func TestTLSCodec_4(t *testing.T) { t.Parallel() l, p, _ := RandomListen("") l0 := NewEventListener(l) l0.AddCodecFactory(func(ctx Context) Codec { c0 := NewTLSServerCodec() c0.RequireClientAuth(true) // server certificates c0.AddCertificate(testCert, testKEY) c0.AddCertificate(demoCert, demoKEY) // cli...
explode_data.jsonl/34692
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 407 }
[ 2830, 3393, 45439, 36913, 62, 19, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 8810, 11, 281, 11, 716, 1669, 10612, 38714, 31764, 8810, 15, 1669, 1532, 7765, 2333, 340, 8810, 15, 1904, 36913, 4153, 18552, 7502, 9608, 8, 67077...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestConvertToTektonParams(t *testing.T) { tc := map[string]struct { params []ParameterValue expectedParams []tektonv1beta1.Param }{ "params": { params: []ParameterValue{ { Name: "array-param", ArrayVal: []string{"array-string1", "array-string2"}, }, { Name: "s...
explode_data.jsonl/46143
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 425 }
[ 2830, 3393, 12012, 1249, 55715, 777, 4870, 1155, 353, 8840, 836, 8, 341, 78255, 1669, 2415, 14032, 60, 1235, 341, 197, 25856, 260, 3056, 89432, 198, 197, 42400, 4870, 3056, 42713, 777, 85, 16, 19127, 16, 9580, 198, 197, 59403, 197, 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 TestAcceptEncoding(t *testing.T) { defer leaktest.AfterTest(t)() s, _, _ := serverutils.StartServer(t, base.TestServerArgs{}) defer s.Stopper().Stop(context.TODO()) client, err := s.GetAuthenticatedHTTPClient() if err != nil { t.Fatal(err) } testData := []struct { acceptEncoding string newReader ...
explode_data.jsonl/70830
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 586 }
[ 2830, 3393, 16646, 14690, 1155, 353, 8840, 836, 8, 341, 16867, 23352, 1944, 36892, 2271, 1155, 8, 741, 1903, 11, 8358, 716, 1669, 3538, 6031, 12101, 5475, 1155, 11, 2331, 8787, 5475, 4117, 37790, 16867, 274, 7758, 18487, 1005, 10674, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestLogServerStart(t *testing.T) { logServerStartTests := []struct { HTTPPort int wantLogPart string }{ { HTTPPort: 80, wantLogPart: "https://", }, { wantLogPart: "http://", }, } for i, test := range logServerStartTests { log := new(logtest.Logger) cfg := Config{ HTTPPort: tes...
explode_data.jsonl/11837
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 289 }
[ 2830, 3393, 2201, 5475, 3479, 1155, 353, 8840, 836, 8, 341, 6725, 5475, 3479, 18200, 1669, 3056, 1235, 341, 197, 197, 9230, 7084, 262, 526, 198, 197, 50780, 2201, 5800, 914, 198, 197, 59403, 197, 197, 515, 298, 197, 9230, 7084, 25, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestActivityService_ListWatchers(t *testing.T) { client, mux, _, teardown := setup() defer teardown() mux.HandleFunc("/repos/o/r/subscribers", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") testFormValues(t, r, values{ "page": "2", }) fmt.Fprint(w, `[{"id":1}]`) }) ctx :=...
explode_data.jsonl/50047
{ "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, 4052, 1860, 27104, 14247, 388, 1155, 353, 8840, 836, 8, 341, 25291, 11, 59807, 11, 8358, 49304, 1669, 6505, 741, 16867, 49304, 2822, 2109, 2200, 63623, 4283, 68354, 20271, 7382, 37885, 46361, 497, 2915, 3622, 1758, 37508, 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 TestRouting_saveHandler(t *testing.T) { defer gock.Off() gock.New("https://test.retailcrm.ru"). Get("/api/credentials"). Reply(200). BodyString(`{"success": true, "credentials": ["/api/integration-modules/{code}", "/api/integration-modules/{code}/edit"]}`) req, err := http.NewRequest("POST", "/save/", ...
explode_data.jsonl/62466
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 283 }
[ 2830, 3393, 24701, 15376, 3050, 1155, 353, 8840, 836, 8, 341, 16867, 728, 377, 13, 4596, 2822, 3174, 1176, 7121, 445, 2428, 1110, 1944, 1327, 14586, 61738, 23581, 38609, 197, 37654, 4283, 2068, 14, 32353, 38609, 197, 197, 20841, 7, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestContainerErrorMsg(t *testing.T) { clients := Setup(t) defer TearDown(clients) test.CleanupOnInterrupt(func() { TearDown(clients) }) // Specify an invalid image path // A valid DockerRepo is still needed, otherwise will get UNAUTHORIZED instead of container missing error imagePath := strings.Join([]strin...
explode_data.jsonl/34051
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 888 }
[ 2830, 3393, 4502, 89035, 1155, 353, 8840, 836, 8, 341, 197, 31869, 1669, 18626, 1155, 340, 16867, 76982, 4454, 9849, 4075, 340, 18185, 727, 60639, 1925, 22528, 18552, 368, 314, 76982, 4454, 9849, 4075, 8, 9568, 197, 322, 47395, 458, 831...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeviantArt_Match(t *testing.T) { deviant := New() tests := []struct { name string url string want string want1 bool }{ { name: "Arbor Vitae", url: "https://www.deviantart.com/bengeigerart/art/Arbor-Vitae-877183179", want: "Arbor-Vitae-877183179", want1: true, }, { name:...
explode_data.jsonl/61975
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 385 }
[ 2830, 3393, 14592, 5372, 9286, 1245, 754, 1155, 353, 8840, 836, 8, 341, 27302, 5372, 1669, 1532, 2822, 78216, 1669, 3056, 1235, 341, 197, 11609, 220, 914, 198, 197, 19320, 256, 914, 198, 197, 50780, 220, 914, 198, 197, 50780, 16, 1807...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFP16BlobFromImage(t *testing.T) { img := NewMatWithSize(100, 100, 5+16) defer img.Close() data := FP16BlobFromImage(img, 1.0, image.Pt(100, 100), 0, false, false) if len(data) != 60000 { t.Errorf("FP16BlobFromImage incorrect length: %v\n", len(data)) } img2 := NewMatWithSize(100, 50, 5+16) defer im...
explode_data.jsonl/31273
{ "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, 11698, 16, 21, 37985, 3830, 1906, 1155, 353, 8840, 836, 8, 341, 39162, 1669, 1532, 11575, 2354, 1695, 7, 16, 15, 15, 11, 220, 16, 15, 15, 11, 220, 20, 10, 16, 21, 340, 16867, 4964, 10421, 2822, 8924, 1669, 33551, 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...
3
func TestUpdatePathsErrors(t *testing.T) { fpu := func(s ...string) FieldPathUpdate { return FieldPathUpdate{Path: s} } ctx := context.Background() c, _ := newMock(t) doc := c.Collection("C").Doc("d") for _, test := range []struct { desc string data []FieldPathUpdate }{ {"no updates", nil}, {"empty", []F...
explode_data.jsonl/15821
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 278 }
[ 2830, 3393, 4289, 26901, 13877, 1155, 353, 8840, 836, 8, 341, 1166, 5584, 1669, 2915, 1141, 2503, 917, 8, 8601, 1820, 4289, 314, 470, 8601, 1820, 4289, 90, 1820, 25, 274, 92, 555, 20985, 1669, 2266, 19047, 741, 1444, 11, 716, 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 TestBindSecurityGroups(t *testing.T) { instanceIds := []string{""} sg := []string{""} args := &BindSecurityGroupsArgs{ InstanceIds: instanceIds, SecurityGroupIds: sg, } err := BBC_CLIENT.BindSecurityGroups(args) ExpectEqual(t.Errorf, err, nil) }
explode_data.jsonl/4066
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 107 }
[ 2830, 3393, 9950, 15352, 22173, 1155, 353, 8840, 836, 8, 341, 56256, 12701, 1669, 3056, 917, 90, 3014, 532, 1903, 70, 1669, 3056, 917, 90, 3014, 532, 31215, 1669, 609, 9950, 15352, 22173, 4117, 515, 197, 197, 2523, 12701, 25, 414, 286...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestHttpPost_Perform(t *testing.T) { t.Parallel() cases := []struct { name string status int want string wantBody string wantErrored bool response string headers http.Header queryParams adapters.QueryParameters body *string }{ { "success", http.StatusO...
explode_data.jsonl/36138
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1329 }
[ 2830, 3393, 23214, 53918, 627, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 286, 914, 198, 197, 23847, 414, 526, 198, 197, 50780, 286, 914, 198, 197, 50780, 5444, 262, 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 TestHybiServerHandshakeHybiBadVersion(t *testing.T) { config := new(Config) handshaker := &hybiServerHandshaker{Config: config} br := bufio.NewReader(strings.NewReader(`GET /chat HTTP/1.1 Host: server.example.com Upgrade: websocket Connection: Upgrade Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ== Sec-WebSocket-Or...
explode_data.jsonl/53439
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 286 }
[ 2830, 3393, 30816, 8221, 5475, 2314, 29661, 30816, 8221, 17082, 5637, 1155, 353, 8840, 836, 8, 341, 25873, 1669, 501, 33687, 340, 9598, 437, 927, 4407, 1669, 609, 8503, 8221, 5475, 2314, 927, 4407, 90, 2648, 25, 2193, 532, 80255, 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...
4
func TestAuthenticateWithWithInvalidRSAKeyReturnsError(t *testing.T) { beforeTest(t) conn := _getConnection(t) defer conn.Close() client := agaveproto.NewSftpRelayClient(conn) systemConfig := _createRemoteSshKeySystemConfig() systemConfig.PrivateKey = "foo" req := &agaveproto.AuthenticationCheckRequest{ Sy...
explode_data.jsonl/32536
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 225 }
[ 2830, 3393, 99087, 2354, 2354, 7928, 73564, 1592, 16446, 1454, 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, 352, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPromptStaleThreshold(t *testing.T) { f := setup(rc( `pipe = (pipe)`, `edit:prompt = { nop (slurp < $pipe); put '> ' }`, `edit:prompt-stale-threshold = `+scaledMsAsSec(50))) defer f.Cleanup() f.TestTTY(t, "???> ", Styles, "+++++", term.DotHere) evals(f.Evaler, `pwclose $pipe`) f.TestTTY(t, "> "...
explode_data.jsonl/46584
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 184 }
[ 2830, 3393, 54615, 623, 1574, 37841, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 6505, 35429, 1006, 197, 197, 63, 13768, 284, 320, 13768, 8, 12892, 197, 197, 63, 3587, 25, 40581, 284, 314, 65026, 320, 3226, 324, 79, 366, 400, 13768, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteRetryAfterReader(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() vmDeleteErr := &retry.Error{ RawError: fmt.Errorf("azure cloud provider throttled for operation %s with reason %q", "VMDelete", "client throttled"), Retriable: true, RetryAfter: getFutureTime(), } armClie...
explode_data.jsonl/16708
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 200 }
[ 2830, 3393, 6435, 51560, 6025, 5062, 1155, 353, 8840, 836, 8, 341, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 2822, 54879, 6435, 7747, 1669, 609, 44848, 6141, 515, 197, 11143, 672, 1454, 25, 256, 8879,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestLastConfig(t *testing.T) { t.Parallel() fabBlock, err := getBlock("./mock/sampleblock.pb") assert.NoError(t, err) block, _ := FromFabricBlock(fabBlock) lastConfig, _ := block.LastConfig() assert.Equal(t, uint64(0), lastConfig) }
explode_data.jsonl/40039
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 95 }
[ 2830, 3393, 5842, 2648, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1166, 370, 4713, 11, 1848, 1669, 633, 4713, 13988, 16712, 69851, 4574, 37916, 1138, 6948, 35699, 1155, 11, 1848, 692, 47996, 11, 716, 1669, 5542, 81731, 4713...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestReader(t *testing.T) { testJSON := `{ "rows": [ { "id": 0, "first name": "tim", "last name": "sehn" }, { "id": 1, "first name": "brian", "last name": "hendriks" } ] }` fs := filesys.EmptyInMemFS("/") require.NoError(t, fs.WriteFile("file.json", []byte(t...
explode_data.jsonl/28012
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 743 }
[ 2830, 3393, 5062, 1155, 353, 8840, 836, 8, 341, 18185, 5370, 1669, 1565, 515, 197, 197, 1, 1811, 788, 2278, 571, 341, 18007, 330, 307, 788, 220, 15, 345, 18007, 330, 3896, 829, 788, 330, 20091, 756, 18007, 330, 4259, 829, 788, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDirFDReadWrite(t *testing.T) { sys := newTestSystem(t, func(creds *auth.Credentials, fs *filesystem) *kernfs.Dentry { return fs.newReadonlyDir(creds, 0755, nil) }) pop := sys.PathOpAtRoot("/") fd, err := sys.vfs.OpenAt(sys.ctx, sys.creds, &pop, &vfs.OpenOptions{}) if err != nil { sys.t.Fatalf("OpenAt...
explode_data.jsonl/19804
{ "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, 6184, 14596, 58610, 1155, 353, 8840, 836, 8, 341, 41709, 1669, 501, 2271, 2320, 1155, 11, 2915, 7, 85734, 353, 3242, 727, 15735, 11, 8619, 353, 41897, 8, 353, 74, 932, 3848, 909, 4085, 341, 197, 853, 8619, 4618, 4418, 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...
1
func TestUploadPack(t *testing.T) { gitalyAddress, _, cleanup := testserver.StartGitalyServer(t) defer cleanup() requests := requesthandlers.BuildAllowedWithGitalyHandlers(t, gitalyAddress) url, cleanup := testserver.StartHttpServer(t, requests) defer cleanup() output := &bytes.Buffer{} input := &bytes.Buffer{...
explode_data.jsonl/9024
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 458 }
[ 2830, 3393, 13844, 30684, 1155, 353, 8840, 836, 8, 341, 3174, 2174, 88, 4286, 11, 8358, 21290, 1669, 1273, 4030, 12101, 38, 2174, 88, 5475, 1155, 340, 16867, 21290, 2822, 23555, 82, 1669, 1681, 55627, 25212, 35382, 2354, 38, 2174, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFormatConnectCommand(t *testing.T) { cluster := "root" tests := []struct { comment string db tlsca.RouteToDatabase command string }{ { comment: "no default user/database are specified", db: tlsca.RouteToDatabase{ ServiceName: "test", Protocol: defaults.ProtocolPostgres, }, ...
explode_data.jsonl/21931
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 549 }
[ 2830, 3393, 4061, 14611, 4062, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 330, 2888, 698, 78216, 1669, 3056, 1235, 341, 197, 96268, 914, 198, 197, 20939, 414, 55026, 924, 58004, 1249, 5988, 198, 197, 45566, 914, 198, 197, 59403, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestParseRemittanceOriginatorReaderParseError(t *testing.T) { var line = "{8300}OICUSTName 111111 Bank ...
explode_data.jsonl/32953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3368 }
[ 2830, 3393, 14463, 6590, 87191, 13298, 850, 5062, 14463, 1454, 1155, 353, 8840, 836, 8, 341, 2405, 1555, 284, 13868, 23, 18, 15, 15, 92, 46, 1317, 8553, 675, 5238, 22335, 220, 16, 16, 16, 16, 16, 16, 6526, 8547, 5238, 18749, 80514, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGetOffers(t *testing.T) { tt := test.Start(t) defer tt.Finish() test.ResetHorizonDB(t, tt.HorizonDB) q := &Q{tt.HorizonSession()} err := insertOffer(q, eurOffer) tt.Assert.NoError(err) err = insertOffer(q, twoEurOffer) tt.Assert.NoError(err) // check removed offers aren't included in GetOffer querie...
explode_data.jsonl/69700
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1601 }
[ 2830, 3393, 1949, 95509, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 1273, 12101, 1155, 340, 16867, 17853, 991, 18176, 741, 18185, 36660, 39601, 16973, 3506, 1155, 11, 17853, 3839, 269, 16973, 3506, 340, 18534, 1669, 609, 48, 90, 5566...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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