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 TestAdoptOrphanRevisions(t *testing.T) { ss1 := newStatefulSetWithLabels(3, "ss1", types.UID("ss1"), map[string]string{"foo": "bar"}) ss1.Status.CollisionCount = new(int32) ss1Rev1, err := history.NewControllerRevision(ss1, parentKind, ss1.Spec.Template.Labels, rawTemplate(&ss1.Spec.Template), 1, ss1.Status.Col...
explode_data.jsonl/18625
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 569 }
[ 2830, 3393, 2589, 2912, 2195, 9943, 693, 40015, 1155, 353, 8840, 836, 8, 341, 34472, 16, 1669, 36848, 1262, 1649, 2354, 23674, 7, 18, 11, 330, 778, 16, 497, 4494, 5255, 915, 445, 778, 16, 3975, 2415, 14032, 30953, 4913, 7975, 788, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
9
func TestDaysWide(t *testing.T) { trans := New() days := trans.WeekdaysWide() for i, day := range days { s := trans.WeekdayWide(time.Weekday(i)) if s != day { t.Errorf("Expected '%s' Got '%s'", day, s) } } tests := []struct { idx int expected string }{ // { // idx: 0, // expected...
explode_data.jsonl/1285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 464 }
[ 2830, 3393, 20557, 60970, 1155, 353, 8840, 836, 8, 1476, 72453, 1669, 1532, 741, 2698, 942, 1669, 1356, 22404, 1225, 13778, 60970, 2822, 2023, 600, 11, 1899, 1669, 2088, 2849, 341, 197, 1903, 1669, 1356, 22404, 1225, 1292, 60970, 9730, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSocketReuse(t *testing.T) { const ( localIP = "192.168.33.10" remoteIP = "172.19.12.13" localPort = 38842 remotePort = 53 sock uintptr = 0xff1234 ) st := makeState(nil, (*logWrapper)(t), time.Hour, time.Hour, 0, time.Hour) lPort, rPort := be16(localPort...
explode_data.jsonl/70818
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 684 }
[ 2830, 3393, 10286, 38081, 1155, 353, 8840, 836, 8, 341, 4777, 2399, 197, 8854, 3298, 310, 284, 330, 16, 24, 17, 13, 16, 21, 23, 13, 18, 18, 13, 16, 15, 698, 197, 197, 18147, 3298, 1843, 284, 330, 16, 22, 17, 13, 16, 24, 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...
3
func TestObjectGetBytes(t *testing.T) { ctx := context.Background() c, rollback := makeConnectionWithObject(t) defer rollback() contents, err := c.ObjectGetBytes(ctx, CONTAINER, OBJECT) if err != nil { t.Fatal(err) } if string(contents) != CONTENTS { t.Error("Contents wrong") } }
explode_data.jsonl/12683
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 111 }
[ 2830, 3393, 1190, 1949, 7078, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 1444, 11, 60414, 1669, 1281, 4526, 2354, 1190, 1155, 340, 16867, 60414, 741, 197, 17610, 11, 1848, 1669, 272, 8348, 1949, 7078, 7502, 11, 16120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestBalancerUnderServerStopInflightLinearizableGetOnRestart(t *testing.T) { tt := []pinTestOpt{ {pinLeader: true, stopPinFirst: true}, {pinLeader: true, stopPinFirst: false}, {pinLeader: false, stopPinFirst: true}, {pinLeader: false, stopPinFirst: false}, } for i := range tt { testBalancerUnderServerS...
explode_data.jsonl/29452
{ "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, 93825, 16250, 5475, 10674, 641, 38390, 31898, 8335, 1949, 1925, 59354, 1155, 353, 8840, 836, 8, 341, 3244, 83, 1669, 3056, 13273, 2271, 21367, 515, 197, 197, 90, 13273, 52621, 25, 830, 11, 2936, 19861, 5338, 25, 830, 1583, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCustomHomeDir(t *testing.T) { var want = "foo" var defaultEnv = os.Getenv("WEDEPLOY_CUSTOM_HOME") if err := os.Setenv("WEDEPLOY_CUSTOM_HOME", "foo"); err != nil { panic(err) } var got = GetHomeDir() if got != want { t.Errorf("Wanted custom home to be %v, got %v instead", want, got) } if err := ...
explode_data.jsonl/59455
{ "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, 10268, 7623, 6184, 1155, 353, 8840, 836, 8, 341, 2405, 1366, 284, 330, 7975, 698, 2405, 1638, 14359, 284, 2643, 64883, 445, 12457, 1150, 71824, 36314, 28466, 5130, 743, 1848, 1669, 2643, 4202, 3160, 445, 12457, 1150, 71824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGet(t *testing.T) { timescale, cleanup := insightsdbtesting.TimescaleDB(t) defer cleanup() now := time.Now().Truncate(time.Microsecond).Round(0) _, err := timescale.Exec(`INSERT INTO insight_view (title, description, unique_id) VALUES ('test title', 'test description', 'unique-1'), ...
explode_data.jsonl/33310
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 3185 }
[ 2830, 3393, 1949, 1155, 353, 8840, 836, 8, 341, 3244, 1733, 2246, 11, 21290, 1669, 25709, 1999, 8840, 836, 1733, 2246, 3506, 1155, 340, 16867, 21290, 741, 80922, 1669, 882, 13244, 1005, 1282, 26900, 9730, 1321, 2754, 5569, 568, 27497, 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...
3
func TestModalPopUp_TappedSecondary(t *testing.T) { label := NewLabel("Hi") pop := NewModalPopUp(label, test.Canvas()) assert.True(t, pop.Visible()) test.TapSecondary(pop) assert.True(t, pop.Visible()) assert.Equal(t, pop, test.Canvas().Overlay()) }
explode_data.jsonl/65222
{ "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, 8080, 11598, 2324, 1139, 5677, 48963, 1155, 353, 8840, 836, 8, 341, 29277, 1669, 1532, 2476, 445, 13048, 1138, 74813, 1669, 1532, 8080, 11598, 2324, 13345, 11, 1273, 54121, 12367, 6948, 32443, 1155, 11, 2420, 11800, 2398, 1818...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStackVal_UnmarshalJSON_GotString(t *testing.T) { var sampleOut struct { Val BoolString `json:"val"` } var sampleIn = []byte(`{"val":"A"}`) json.Unmarshal(sampleIn, &sampleOut) if sampleOut.Val.Flag { t.Error("should be false but got true") } if sampleOut.Val.Value != "A" { t.Errorf("should be 'A...
explode_data.jsonl/31036
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 150 }
[ 2830, 3393, 4336, 2208, 40687, 27121, 5370, 2646, 354, 703, 1155, 353, 8840, 836, 8, 341, 2405, 6077, 2662, 2036, 341, 197, 197, 2208, 12608, 703, 1565, 2236, 2974, 831, 8805, 197, 532, 2405, 6077, 641, 284, 3056, 3782, 5809, 4913, 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...
3
func TestDirMapAdd(t *testing.T) { type add struct { dir string sent bool } for i, test := range []struct { root string in []add want map[string]bool }{ { root: "", in: []add{ {"", true}, }, want: map[string]bool{}, }, { root: "", in: []add{ {"a/b/c", true}, }, wan...
explode_data.jsonl/65769
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 690 }
[ 2830, 3393, 6184, 2227, 2212, 1155, 353, 8840, 836, 8, 341, 13158, 912, 2036, 341, 197, 48532, 220, 914, 198, 197, 1903, 306, 1807, 198, 197, 532, 2023, 600, 11, 1273, 1669, 2088, 3056, 1235, 341, 197, 33698, 914, 198, 197, 17430, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestConn(t *testing.T) { s := smpptest.NewServer() defer s.Close() c, err := Dial(s.Addr(), nil) if err != nil { t.Fatal(err) } defer c.Close() p := pdu.NewBindTransmitter() f := p.Fields() f.Set(pdufield.SystemID, smpptest.DefaultUser) f.Set(pdufield.Password, smpptest.DefaultPasswd) f.Set(pdufield.I...
explode_data.jsonl/44517
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 209 }
[ 2830, 3393, 9701, 1155, 353, 8840, 836, 8, 341, 1903, 1669, 274, 1307, 70334, 7121, 5475, 741, 16867, 274, 10421, 741, 1444, 11, 1848, 1669, 66155, 1141, 93626, 1507, 2092, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestGenName(t *testing.T) { tests := []struct{ name, wfName, wfID, want string }{ {"name", "wfname", "123456789", "name-wfname-123456789"}, {"super-long-name-really-long", "super-long-workflow-name-like-really-really-long", "1", "super-long-name-really-long-super-long-workflow-name-lik-1"}, {"super-long-nam...
explode_data.jsonl/3864
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 408 }
[ 2830, 3393, 9967, 675, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 90, 829, 11, 41248, 675, 11, 41248, 915, 11, 1366, 914, 335, 515, 197, 197, 4913, 606, 497, 330, 86, 23993, 497, 330, 16, 17, 18, 19, 20, 21, 22, 23, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
4
func TestMsgDepositGetSignBytes(t *testing.T) { addr := sdk.AccAddress("addr1") msg := NewMsgDeposit(addr, 0, coinsPos) res := msg.GetSignBytes() expected := `{"type":"cosmos-sdk/MsgDeposit","value":{"amount":[{"amount":"1000","denom":"stake"}],"depositor":"cosmos1v9jxgu33kfsgr5","proposal_id":"0"}}` require.Equa...
explode_data.jsonl/19185
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 131 }
[ 2830, 3393, 6611, 78982, 1949, 7264, 7078, 1155, 353, 8840, 836, 8, 341, 53183, 1669, 45402, 77538, 4286, 445, 6214, 16, 1138, 21169, 1669, 1532, 6611, 78982, 24497, 11, 220, 15, 11, 18762, 4859, 340, 10202, 1669, 3750, 2234, 7264, 7078...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPrivateProtectedClassMethod(t *testing.T) { src := `<? class foo{ final private function bar() {} protected function baz() {} }` expected := &node.Root{ Position: &position.Position{ StartLine: 1, EndLine: 1, StartPos: 4, EndPos: 75, }, Stmts: []node.Node{ &stmt.Class{ Positio...
explode_data.jsonl/65928
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1662 }
[ 2830, 3393, 16787, 66915, 1957, 3523, 1155, 353, 8840, 836, 8, 341, 41144, 1669, 1565, 1316, 536, 15229, 90, 1590, 869, 729, 3619, 368, 4687, 2617, 729, 50247, 368, 4687, 335, 19324, 42400, 1669, 609, 3509, 45345, 515, 197, 197, 3812, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestWriteResponse(t *testing.T) { rw := newResponseWriterMock() v := newTestStruct() err := WriteResponse(rw, http.StatusOK, v) if err != nil { t.Errorf("WriteResponse error %s", err) } }
explode_data.jsonl/41285
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 74 }
[ 2830, 3393, 7985, 2582, 1155, 353, 8840, 836, 8, 341, 7000, 86, 1669, 501, 2582, 6492, 11571, 741, 5195, 1669, 501, 2271, 9422, 741, 9859, 1669, 9645, 2582, 2601, 86, 11, 1758, 52989, 11, 348, 340, 743, 1848, 961, 2092, 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 ]
2
func TestMotorDriverForward(t *testing.T) { d := initTestMotorDriver() d.Forward(100) gobottest.Assert(t, d.CurrentSpeed, uint8(100)) gobottest.Assert(t, d.CurrentDirection, "forward") }
explode_data.jsonl/23137
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 71 }
[ 2830, 3393, 33577, 11349, 25925, 1155, 353, 8840, 836, 8, 341, 2698, 1669, 2930, 2271, 33577, 11349, 741, 2698, 26676, 1606, 7, 16, 15, 15, 340, 3174, 674, 1716, 477, 11711, 1155, 11, 294, 11517, 11056, 11, 2622, 23, 7, 16, 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
func TestGenerateModel_WithMapComplex(t *testing.T) { specDoc, err := loads.Spec("../fixtures/codegen/todolist.models.yml") require.NoError(t, err) definitions := specDoc.Spec().Definitions k := "WithMapComplex" schema := definitions[k] opts := opts() genModel, err := makeGenDefinition(k, "models", schema, spec...
explode_data.jsonl/2509
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 307 }
[ 2830, 3393, 31115, 1712, 62, 2354, 2227, 31137, 1155, 353, 8840, 836, 8, 341, 98100, 9550, 11, 1848, 1669, 20907, 36473, 17409, 45247, 46928, 4370, 5523, 347, 34675, 8235, 33936, 1138, 17957, 35699, 1155, 11, 1848, 692, 7452, 4054, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestNewSearchresult(t *testing.T) { assert := assert.New(t) l1 := "/home/martin/Documents/ModernC.pdf" l2 := "/home/martin/Documents/Go in Action.pdf" q := newSearchresult(l1) assert.Equal(q.name, "ModernC.pdf") assert.Equal(q.fullpath, l1) q2 := newSearchresult(l2) assert.Equal(q2.name, "Go in Action.pdf"...
explode_data.jsonl/33985
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 152 }
[ 2830, 3393, 3564, 5890, 1382, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 340, 8810, 16, 1669, 3521, 5117, 3183, 34845, 54730, 14, 48452, 34, 15995, 698, 8810, 17, 1669, 3521, 5117, 3183, 34845, 54730, 14, 10850, 304, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDWARFiOS(t *testing.T) { // Normally we run TestDWARF on native platform. But on iOS we don't have // go build, so we do this test with a cross build. // Only run this on darwin/amd64, where we can cross build for iOS. if testing.Short() { t.Skip("skipping in short mode") } if runtime.GOARCH != "amd64"...
explode_data.jsonl/26913
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 504 }
[ 2830, 3393, 35, 45458, 22715, 3126, 1155, 353, 8840, 836, 8, 341, 197, 322, 51683, 582, 1598, 3393, 35, 45458, 37, 389, 9867, 5339, 13, 1988, 389, 16048, 582, 1513, 944, 614, 198, 197, 322, 728, 1936, 11, 773, 582, 653, 419, 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 TestCreateLedgerUnsupportedAlgo(t *testing.T) { kb := NewInMemory() _, err := kb.CreateLedger("some_account", Ed25519, "cosmos", 0, 1) assert.Error(t, err) assert.Equal(t, "unsupported signing algo: only secp256k1 is supported", err.Error()) }
explode_data.jsonl/10667
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 94 }
[ 2830, 3393, 4021, 60850, 1389, 41884, 2101, 3346, 1155, 353, 8840, 836, 8, 341, 16463, 65, 1669, 1532, 641, 10642, 741, 197, 6878, 1848, 1669, 38653, 7251, 60850, 1389, 445, 14689, 13500, 497, 3199, 17, 20, 20, 16, 24, 11, 330, 9407, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_parseVersion(t *testing.T) { type args struct { versionString string } tests := []struct { name string args args want string }{ // { // name: "EnterpriseDB 9.6.5.10", // args: args{versionString: "EnterpriseDB 9.6.5.10 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4...
explode_data.jsonl/27593
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 915 }
[ 2830, 3393, 21039, 5637, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 74954, 703, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 914, 198, 197, 31215, 2827, 198, 197, 50780, 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 TestTxnPut(t *testing.T) { ctx := setupTest(t) defer ctx.teardownTest() txn := ctx.dataBroker.NewTxn() Expect(txn).NotTo(BeNil()) txn = txn.Put("key", []byte("data")) Expect(txn).NotTo(BeNil()) err := txn.Commit(context.Background()) Expect(err).ToNot(HaveOccurred()) }
explode_data.jsonl/29440
{ "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, 31584, 77, 19103, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 6505, 2271, 1155, 340, 16867, 5635, 31853, 37496, 2271, 2822, 3244, 42967, 1669, 5635, 2196, 65545, 7121, 31584, 77, 741, 35911, 27301, 77, 568, 2623, 1249, 76860, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFileInfo(t *testing.T) { createTestFile() defer os.Remove("test") script := `if ($file.info("test").size != 4) {throw new Error();}` eng := New() err := eng.Execute(script) if err != nil { t.Fatal(err) } }
explode_data.jsonl/36293
{ "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, 45430, 1155, 353, 8840, 836, 8, 341, 39263, 2271, 1703, 741, 16867, 2643, 13270, 445, 1944, 1138, 86956, 1669, 1565, 333, 1711, 1192, 5391, 445, 1944, 1827, 2141, 961, 220, 19, 8, 314, 7119, 501, 4600, 2129, 31257, 197, 82...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestTracerFinishedSpans(t *testing.T) { mt := newMockTracer() assert.Empty(t, mt.FinishedSpans()) parent := mt.StartSpan("http.request") child := mt.StartSpan("db.query", tracer.ChildOf(parent.Context())) assert.Empty(t, mt.FinishedSpans()) child.Finish() parent.Finish() found := 0 for _, s := range mt.Fi...
explode_data.jsonl/41150
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 220 }
[ 2830, 3393, 1282, 9584, 24890, 6406, 596, 1155, 353, 8840, 836, 8, 341, 2109, 83, 1669, 501, 11571, 1282, 9584, 741, 6948, 11180, 1155, 11, 11965, 991, 24657, 6406, 596, 2398, 24804, 1669, 11965, 12101, 12485, 445, 1254, 8223, 1138, 583...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPlugin(t *testing.T) { plugMgr := volume.VolumePluginMgr{} plugMgr.InitPlugins(ProbeVolumePlugins(volume.VolumeConfig{}), nil /* prober */, volumetest.NewFakeVolumeHost("fake", nil, nil)) plug, err := plugMgr.FindPluginByName("kubernetes.io/host-path") if err != nil { t.Errorf("Can't find the plugin by ...
explode_data.jsonl/66779
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 542 }
[ 2830, 3393, 11546, 1155, 353, 8840, 836, 8, 341, 197, 47474, 25567, 1669, 8123, 79106, 11546, 25567, 16094, 197, 47474, 25567, 26849, 45378, 7, 81426, 18902, 45378, 74706, 79106, 2648, 6257, 701, 2092, 1391, 462, 652, 36572, 62820, 57824, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMerkleTree(t *testing.T) { t.Run("test init", func(t *testing.T) { tree := NewTree(9) values := []int{1, 2, 3, 5, 9} for i, value := range values { actual := len(tree.Nodes[i]) expected := value if actual != expected { t.Errorf("Expected %d, got %d", expected, actual) } } }) t.Run("...
explode_data.jsonl/49825
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1613 }
[ 2830, 3393, 44, 16754, 273, 6533, 1155, 353, 8840, 836, 8, 341, 3244, 16708, 445, 1944, 2930, 497, 2915, 1155, 353, 8840, 836, 8, 341, 197, 51968, 1669, 1532, 6533, 7, 24, 340, 197, 45939, 1669, 3056, 396, 90, 16, 11, 220, 17, 11,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestState_UpdatePrivmsgSelf(t *testing.T) { t.Parallel() st := setupNewState() ev := &irc.Event{ Name: irc.PRIVMSG, Sender: users[0], Args: []string{st.selfUser.Nick(), "msg"}, NetworkInfo: testNetInfo, } u := st.Update(ev) if len(u.Seen) > 0 { t.Error("Expected no one to be se...
explode_data.jsonl/32108
{ "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, 1397, 47393, 32124, 3236, 12092, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 18388, 1669, 6505, 3564, 1397, 741, 74837, 1669, 609, 2437, 6904, 515, 197, 21297, 25, 286, 79923, 65453, 3090, 19575, 345, 197, 7568, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteCommandRunEClosureWithoutName(t *testing.T) { assert := assert.New(t) cli := test.NewMockCLI() cmd := DeleteCommand(cli) require.NoError(t, cmd.Flags().Set("skip-confirm", "t")) out, err := test.RunCmd(cmd, []string{}) assert.Regexp("Usage", out) // usage should print out assert.Error(err) }
explode_data.jsonl/72995
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 115 }
[ 2830, 3393, 6435, 4062, 6727, 7498, 11653, 26040, 675, 1155, 353, 8840, 836, 8, 341, 6948, 1669, 2060, 7121, 1155, 692, 86448, 1669, 1273, 7121, 11571, 63959, 741, 25920, 1669, 10428, 4062, 70249, 340, 17957, 35699, 1155, 11, 5439, 51887,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIniParser(t *testing.T) { parser := &Parser{ FileName: "sample.ini", } sample := `[Local Varaibles] Name=name Title=title Visisbility=show/hide [Navigation Controls] OnNext=node path Help=help file # Test comment` var input interface{} err := parser.Unmarshal([]byte(sample), &input) if...
explode_data.jsonl/45207
{ "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, 43325, 6570, 1155, 353, 8840, 836, 8, 341, 55804, 1669, 609, 6570, 515, 197, 197, 10903, 25, 330, 13611, 34958, 756, 197, 532, 1903, 1516, 1669, 77644, 7319, 647, 5059, 20410, 60, 715, 21297, 39241, 715, 92233, 90507, 715, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMultipleCallReturnStatement(t *testing.T) { p := createParser(`return a(param, "param"), b()`) bvmUtils.Assert(t, isReturnStatement(p), "should detect return statement") parseReturnStatement(p) u := p.scope.Next() bvmUtils.AssertNow(t, u.Type() == ast.ReturnStatement, "wrong return type") r := u.(*ast.R...
explode_data.jsonl/49731
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 292 }
[ 2830, 3393, 32089, 7220, 5598, 8636, 1155, 353, 8840, 836, 8, 341, 3223, 1669, 1855, 6570, 5809, 689, 264, 9743, 11, 330, 903, 3975, 293, 368, 24183, 2233, 7338, 4209, 11711, 1155, 11, 374, 5598, 8636, 1295, 701, 330, 5445, 11140, 470...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_reporting_nonexistant_keys_and_bandmemory(t *testing.T) { pkey := "/badpublickeyfilename" band := "/badbandmemoryfilename" name := "Anonymous" i := true f := false d := false want := "open /badpublickeyfilename/id_ed25519: no such file or directory" if got := Startup(pkey, band, name, i, f, d); got !=...
explode_data.jsonl/74030
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 52376, 21637, 327, 11202, 12631, 8378, 45344, 17269, 1155, 353, 8840, 836, 8, 341, 3223, 792, 1669, 3521, 13855, 888, 792, 8404, 698, 2233, 437, 1669, 3521, 13855, 7053, 17269, 8404, 698, 11609, 1669, 330, 32684, 698, 8230, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestTypes(t *testing.T) { // TODO: auto-fill all fields. table := []interface{}{ &PodList{}, &Pod{}, &ServiceList{}, &Service{}, &ReplicationControllerList{}, &ReplicationController{}, &MinionList{}, &Minion{}, &Status{}, &ServerOpList{}, &ServerOp{}, &ContainerManifestList{}, &Endpoint...
explode_data.jsonl/54711
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 215 }
[ 2830, 3393, 4173, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 25, 3233, 58987, 678, 5043, 624, 26481, 1669, 3056, 4970, 67066, 197, 197, 5, 23527, 852, 38837, 197, 197, 5, 23527, 38837, 197, 197, 5, 1860, 852, 38837, 197, 197, 5, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestClient_Query_errorStatusCode(t *testing.T) { mux := http.NewServeMux() mux.HandleFunc("/graphql", func(w http.ResponseWriter, req *http.Request) { http.Error(w, "important message", http.StatusInternalServerError) }) client := graphql.NewClient("/graphql", &http.Client{Transport: localRoundTripper{handle...
explode_data.jsonl/81196
{ "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, 2959, 48042, 4096, 15872, 1155, 353, 8840, 836, 8, 341, 2109, 2200, 1669, 1758, 7121, 60421, 44, 2200, 741, 2109, 2200, 63623, 4283, 38294, 497, 2915, 3622, 1758, 37508, 11, 4232, 353, 1254, 9659, 8, 341, 197, 28080, 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
func TestUserList(t *testing.T) { options := server.DefaultOptions().WithAuth(true) bs := servertest.NewBufconnServer(options) bs.Start() defer bs.Stop() defer os.RemoveAll(options.Dir) defer os.Remove(".state-") ts := client.NewTokenService().WithTokenFileName("testTokenFile").WithHds(&test.HomedirServiceMoc...
explode_data.jsonl/47416
{ "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, 1474, 852, 1155, 353, 8840, 836, 8, 341, 35500, 1669, 3538, 13275, 3798, 1005, 2354, 5087, 3715, 340, 93801, 1669, 1420, 1621, 477, 7121, 15064, 5148, 5475, 12078, 692, 93801, 12101, 741, 16867, 17065, 30213, 2822, 16867, 2643...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestFmtPercent(t *testing.T) { tests := []struct { num float64 v uint64 expected string }{ // { // num: 15, // v: 0, // expected: "15%", // }, // { // num: 15, // v: 2, // expected: "15.00%", // }, // { // num: 434.45, // v: ...
explode_data.jsonl/1300
{ "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, 93322, 32010, 1155, 353, 8840, 836, 8, 1476, 78216, 1669, 3056, 1235, 341, 197, 22431, 414, 2224, 21, 19, 198, 197, 5195, 286, 2622, 21, 19, 198, 197, 42400, 914, 198, 197, 59403, 197, 197, 322, 341, 197, 197, 322, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestDeleteDeliveryServicesRequiredCapability(t *testing.T) { mockDB, mock, err := sqlmock.New() if err != nil { t.Fatalf(err.Error()) } defer mockDB.Close() db := sqlx.NewDb(mockDB, "sqlmock") defer db.Close() mock.ExpectBegin() mockTenantID(t, mock, 1) mock.ExpectExec("DELETE").WillReturnResult(sqlm...
explode_data.jsonl/42350
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 445 }
[ 2830, 3393, 6435, 38121, 11025, 8164, 63746, 1155, 353, 8840, 836, 8, 341, 77333, 3506, 11, 7860, 11, 1848, 1669, 5704, 16712, 7121, 741, 743, 1848, 961, 2092, 341, 197, 3244, 30762, 3964, 6141, 2398, 197, 532, 16867, 7860, 3506, 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...
6
func TestWindowMeanArrayCursor(t *testing.T) { maxTimestamp := time.Unix(0, math.MaxInt64) testcases := []aggArrayCursorTest{ { name: "no window", every: 0, inputArrays: []*cursors.IntegerArray{ makeIntegerArray( 5, mustParseTime("2010-01-01T00:00:00Z"), time.Minute, func(i int64) int6...
explode_data.jsonl/40971
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1359 }
[ 2830, 3393, 4267, 18783, 1857, 14543, 1155, 353, 8840, 836, 8, 341, 22543, 20812, 1669, 882, 10616, 941, 7, 15, 11, 6888, 14535, 1072, 21, 19, 692, 18185, 23910, 1669, 3056, 15718, 1857, 14543, 2271, 515, 197, 197, 515, 298, 11609, 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 TestGenerateStartupInstance(t *testing.T) { cluster := &v1beta1.PostgresCluster{ ObjectMeta: metav1.ObjectMeta{ Namespace: "ns1", Name: "pg0", }, } set := &v1beta1.PostgresInstanceSetSpec{Name: "hippos"} instanceOne := GenerateStartupInstance(cluster, set) assert.Equal(t, cluster.Namespace, instanceO...
explode_data.jsonl/22348
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 196 }
[ 2830, 3393, 31115, 39076, 2523, 1155, 353, 8840, 836, 8, 341, 197, 18855, 1669, 609, 85, 16, 19127, 16, 23442, 17818, 28678, 515, 197, 23816, 12175, 25, 77520, 16, 80222, 515, 298, 90823, 25, 330, 4412, 16, 497, 3988, 25, 330, 3517, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSimpleContext(t *testing.T) { ctx := context.Background() ctx = NewContext(ctx, "source", "test") l := Log(ctx) if l == nil { t.Errorf("Expected log to be not empty") } l.Debug("hello") }
explode_data.jsonl/23259
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 16374, 1972, 1155, 353, 8840, 836, 8, 1476, 20985, 1669, 2266, 19047, 741, 20985, 284, 1532, 1972, 7502, 11, 330, 2427, 497, 330, 1944, 5130, 8810, 1669, 2835, 7502, 692, 743, 326, 621, 2092, 341, 197, 3244, 13080, 445, 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 ]
2
func TestNilConditionConfig(t *testing.T) { var mappings MapperSettings data := ` - config: - type: config1` config, err := common.NewConfigWithYAML([]byte(data), "") if err != nil { t.Fatal(err) } if err := config.Unpack(&mappings); err != nil { t.Fatal(err) } _, err = NewConfigMapper(mappings, nil, ...
explode_data.jsonl/50997
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 161 }
[ 2830, 3393, 19064, 10547, 2648, 1155, 353, 8840, 836, 8, 341, 2405, 44817, 45734, 6086, 198, 8924, 1669, 22074, 12, 2193, 510, 262, 481, 943, 25, 2193, 16, 3989, 25873, 11, 1848, 1669, 4185, 7121, 2648, 2354, 56, 31102, 10556, 3782, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestLockAndUnlock(t *testing.T) { defer cluster.PanicHandler(t) ctx := context.Background() conn, err := mysql.Connect(ctx, &primaryTabletParams) require.Nil(t, err) defer conn.Close() replicaConn, err := mysql.Connect(ctx, &replicaTabletParams) require.Nil(t, err) defer replicaConn.Close() // first ma...
explode_data.jsonl/42993
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 542 }
[ 2830, 3393, 11989, 3036, 49679, 1155, 353, 8840, 836, 8, 341, 16867, 10652, 1069, 31270, 3050, 1155, 340, 20985, 1669, 2266, 19047, 2822, 32917, 11, 1848, 1669, 10564, 43851, 7502, 11, 609, 6545, 2556, 83, 4870, 340, 17957, 59678, 1155, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestOrgLabelFilter2(t *testing.T) { var jsonBlob = []byte(`{ "clusterName": "terminus-dev", "kind": "MARATHON", "name": "MARATHONFORTERMINUSDEV", "options": { "ADDR": "http://master.mesos/service/marathon", "CPU_SUBSCRIBE_RATIO": "10", "ENABLETAG": "true", "ENABLE_O...
explode_data.jsonl/13837
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 538 }
[ 2830, 3393, 42437, 2476, 5632, 17, 1155, 353, 8840, 836, 8, 341, 2405, 2951, 37985, 284, 3056, 3782, 5809, 515, 262, 330, 18855, 675, 788, 330, 22969, 355, 25758, 756, 262, 330, 15314, 788, 330, 60661, 4827, 711, 756, 262, 330, 606, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_MongoIndexKeys_StatusARM_WhenSerializedToJson_DeserializesAsEqual(t *testing.T) { t.Parallel() parameters := gopter.DefaultTestParameters() parameters.MaxSize = 10 properties := gopter.NewProperties(parameters) properties.Property( "Round trip of MongoIndexKeys_StatusARM via JSON returns original", p...
explode_data.jsonl/9508
{ "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, 1245, 6363, 1552, 8850, 36449, 17911, 62, 4498, 77521, 78967, 98054, 2848, 4756, 2121, 2993, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 67543, 1669, 728, 73137, 13275, 2271, 9706, 741, 67543, 14535, 1695, 284, 220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestMyPoGo_Compare(t *testing.T) { user := &User{ Name: "Calo", Age: 0, Male: true, } dataContext := ast.NewDataContext() err := dataContext.Add("User", user) if err != nil { t.Fatal(err) } err = dataContext.Add("Pogo", &MyPoGo{}) if err != nil { t.Fatal(err) } lib := ast.NewKnowledgeLibrary...
explode_data.jsonl/81841
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 310 }
[ 2830, 3393, 5050, 32904, 10850, 16946, 3380, 1155, 353, 8840, 836, 8, 341, 19060, 1669, 609, 1474, 515, 197, 21297, 25, 330, 8851, 78, 756, 197, 197, 16749, 25, 220, 220, 15, 345, 197, 9209, 1574, 25, 830, 345, 197, 630, 8924, 1972,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestEmptyPrepareProposal(t *testing.T) { const height = 2 ctx, cancel := context.WithCancel(context.Background()) defer cancel() logger := log.NewNopLogger() eventBus := eventbus.NewDefault(logger) require.NoError(t, eventBus.Start(ctx)) app := abcimocks.NewApplication(t) app.On("PrepareProposal", mock....
explode_data.jsonl/49119
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 532 }
[ 2830, 3393, 3522, 50590, 98637, 1155, 353, 8840, 836, 8, 341, 4777, 2608, 284, 220, 17, 198, 20985, 11, 9121, 1669, 2266, 26124, 9269, 5378, 19047, 2398, 16867, 9121, 2822, 17060, 1669, 1487, 7121, 45, 453, 7395, 2822, 28302, 15073, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestExecuteGivesExecError(t *testing.T) { // First, a non-execution error shouldn't be an ExecError. tmpl, err := New("X").Parse("hello") if err != nil { t.Fatal(err) } err = tmpl.Execute(ErrorWriter(0), 0) if err == nil { t.Fatal("expected error; got none") } if err.Error() != alwaysErrorText { t.Er...
explode_data.jsonl/41529
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 341 }
[ 2830, 3393, 17174, 38, 1886, 10216, 1454, 1155, 353, 8840, 836, 8, 341, 197, 322, 5512, 11, 264, 2477, 70721, 1488, 1465, 13133, 944, 387, 458, 10290, 1454, 624, 3244, 54010, 11, 1848, 1669, 1532, 445, 55, 1827, 14463, 445, 14990, 113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestAnalyse(t *testing.T) { ts := httptest.NewServer(clairServerhandler(t)) defer ts.Close() dockerImage := &docker.Image{ Registry: imageRegistry, Name: imageName, Tag: imageTag, FsLayers: []docker.FsLayer{ {layerHash}, {layerHash}, }, Token: imageToken, } c := NewClair(ts.URL) ...
explode_data.jsonl/46300
{ "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, 73307, 325, 1155, 353, 8840, 836, 8, 341, 57441, 1669, 54320, 70334, 7121, 5475, 9849, 1310, 5475, 17905, 1155, 1171, 16867, 10591, 10421, 2822, 2698, 13659, 1906, 1669, 609, 28648, 7528, 515, 197, 197, 15603, 25, 2168, 15603,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDispatchMetricMapShouldDistributeMetrics(t *testing.T) { t.Parallel() r := rand.New(rand.NewSource(time.Now().UnixNano())) numAggregators := r.Intn(5) + 1 factory := newTestFactory() // use a sync channel (perWorkerBufferSize = 0) to force the workers to process events before the context is cancelled h :...
explode_data.jsonl/35888
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 539 }
[ 2830, 3393, 11283, 54310, 2227, 14996, 35, 80133, 27328, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 7000, 1669, 10382, 7121, 37595, 7121, 3608, 9730, 13244, 1005, 55832, 83819, 12145, 22431, 9042, 7998, 2973, 1669, 435, 7371, 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...
5
func TestListImages(t *testing.T) { client := NewClient(APIKey, nil) v, err := client.Image.List() if err != nil { t.Fatal(err) } for _, image := range v.Images { log.Debugf("Kernel: %s, %s, %s", image.Label, image.Status, image.CreateDt) } }
explode_data.jsonl/48888
{ "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, 852, 14228, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 1532, 2959, 48953, 1592, 11, 2092, 692, 5195, 11, 1848, 1669, 2943, 7528, 5814, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 630, 2023, 8358, 2168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIssue3595(t *testing.T) { setParallel(t) defer afterTest(t) const deniedMsg = "sorry, denied." ts := httptest.NewServer(HandlerFunc(func(w ResponseWriter, r *Request) { Error(w, deniedMsg, StatusUnauthorized) })) defer ts.Close() c := ts.Client() res, err := c.Post(ts.URL, "application/octet-stream",...
explode_data.jsonl/14100
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 252 }
[ 2830, 3393, 42006, 18, 20, 24, 20, 1155, 353, 8840, 836, 8, 341, 8196, 16547, 1155, 340, 16867, 1283, 2271, 1155, 340, 4777, 14820, 6611, 284, 330, 67597, 11, 14820, 10040, 57441, 1669, 54320, 70334, 7121, 5475, 7, 3050, 9626, 18552, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestExecuteOnNewTemplate(t *testing.T) { // This is issue 3872. New("Name").Templates() // This is issue 11379. new(Template).Templates() new(Template).Parse("") new(Template).New("abc").Parse("") new(Template).Execute(nil, nil) // returns an error (but does not crash) new(Template).ExecuteT...
explode_data.jsonl/41522
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 142 }
[ 2830, 3393, 17174, 1925, 3564, 7275, 1155, 353, 8840, 836, 8, 341, 197, 322, 1096, 374, 4265, 220, 18, 23, 22, 17, 624, 197, 3564, 445, 675, 1827, 51195, 741, 197, 322, 1096, 374, 4265, 220, 16, 16, 18, 22, 24, 624, 8638, 4140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDeleteNote(t *testing.T) { url := "http://10.0.50.185:8080/V1.0/Note/Delete" method := "POST" UserId := "19b485ca-1c32-4df6-b9be-b24ca1f2f83d" params := `{"Path":"b156f55f-0645-4473-8279-e476c1dd15c3","UpdateTime": "2016-01-02 00:00:00"}` resp, err := HttpRequest(url, method, params, UserId) if err != ni...
explode_data.jsonl/79095
{ "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, 6435, 9112, 1155, 353, 8840, 836, 8, 341, 19320, 1669, 330, 1254, 1110, 16, 15, 13, 15, 13, 20, 15, 13, 16, 23, 20, 25, 23, 15, 23, 15, 27233, 16, 13, 15, 14, 9112, 63675, 698, 42257, 1669, 330, 2946, 698, 197, 135...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestProtocol_HandleRestake(t *testing.T) { require := require.New(t) ctrl := gomock.NewController(t) defer ctrl.Finish() callerAddr := identityset.Address(2) tests := []struct { // creat stake fields caller address.Address amount string afterRestake string initBalance int64 selfstaki...
explode_data.jsonl/64537
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2680 }
[ 2830, 3393, 20689, 42714, 12416, 726, 1155, 353, 8840, 836, 8, 341, 17957, 1669, 1373, 7121, 1155, 340, 84381, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 16867, 23743, 991, 18176, 741, 1444, 13956, 13986, 1669, 9569, 746, 26979, 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...
7
func TestArray_FilterEmpty(t *testing.T) { gtest.C(t, func(t *gtest.T) { array := garray.NewArrayFrom(g.Slice{0, 1, 2, 3, 4, "", g.Slice{}}) t.Assert(array.FilterEmpty(), g.Slice{1, 2, 3, 4}) }) gtest.C(t, func(t *gtest.T) { array := garray.NewArrayFrom(g.Slice{1, 2, 3, 4}) t.Assert(array.FilterEmpty(), g.Sl...
explode_data.jsonl/13921
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 1857, 68935, 3522, 1155, 353, 8840, 836, 8, 341, 3174, 1944, 727, 1155, 11, 2915, 1155, 353, 82038, 836, 8, 341, 197, 11923, 1669, 342, 1653, 7121, 1857, 3830, 3268, 95495, 90, 15, 11, 220, 16, 11, 220, 17, 11, 220, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestAddRemoveBoxes(t *testing.T) { msg := "TestAddRemoveBoxes" inFile := filepath.Join(inDir, "test.pdf") outFile := filepath.Join(outDir, "out.pdf") pb, err := api.PageBoundaries("crop:[0 0 100 100]", pdfcpu.POINTS) if err != nil { t.Fatalf("%s: %v\n", msg, err) } if err := api.AddBoxesFile(inFile, outF...
explode_data.jsonl/37699
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 271 }
[ 2830, 3393, 2212, 13021, 93665, 1155, 353, 8840, 836, 8, 341, 21169, 1669, 330, 2271, 2212, 13021, 93665, 698, 17430, 1703, 1669, 26054, 22363, 5900, 6184, 11, 330, 1944, 15995, 1138, 13967, 1703, 1669, 26054, 22363, 9828, 6184, 11, 330, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestFailureBadTraceIDRefs(t *testing.T) { badRefsESSpan, err := loadESSpanFixture(1) require.NoError(t, err) badRefsESSpan.References = []Reference{ { RefType: "CHILD_OF", TraceID: "ZZBADZZ", SpanID: "1", }, } failingSpanTransformAnyMsg(t, &badRefsESSpan) }
explode_data.jsonl/5149
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 134 }
[ 2830, 3393, 17507, 17082, 6550, 915, 82807, 1155, 353, 8840, 836, 8, 341, 2233, 329, 82807, 9996, 848, 11, 1848, 1669, 2795, 9996, 848, 18930, 7, 16, 340, 17957, 35699, 1155, 11, 1848, 340, 2233, 329, 82807, 9996, 848, 2817, 4901, 284...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCheckVolumeFSResize(t *testing.T) { setCapacity := func(pv *v1.PersistentVolume, pvc *v1.PersistentVolumeClaim, capacity int) { pv.Spec.Capacity = volumeCapacity(capacity) pvc.Spec.Resources.Requests = volumeCapacity(capacity) } testcases := []struct { resize func(*testing.T, *v1.PersistentVolu...
explode_data.jsonl/45759
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2663 }
[ 2830, 3393, 3973, 18902, 8485, 30561, 1155, 353, 8840, 836, 8, 341, 8196, 29392, 1669, 2915, 1295, 85, 353, 85, 16, 61655, 18902, 11, 281, 7362, 353, 85, 16, 61655, 18902, 45544, 11, 8654, 526, 8, 341, 197, 3223, 85, 36473, 78963, 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 TestQueryContext(t *testing.T) { if mysqlHost == "" { t.Skipf("MYSQL_HOST not specified") } db, err := apmsql.Open("mysql", "root:hunter2@tcp("+mysqlHost+")/test_db") require.NoError(t, err) defer db.Close() _, err = db.Exec("CREATE TABLE IF NOT EXISTS foo (bar INT)") require.NoError(t, err) _, spans,...
explode_data.jsonl/34430
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 358 }
[ 2830, 3393, 2859, 1972, 1155, 353, 8840, 836, 8, 341, 743, 10564, 9296, 621, 1591, 341, 197, 3244, 57776, 69, 445, 54063, 17213, 537, 5189, 1138, 197, 630, 20939, 11, 1848, 1669, 1443, 1011, 1470, 12953, 445, 12272, 497, 330, 2888, 69...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestHashMap_parallel(t *testing.T) { max := 10 dur := 2 * time.Second m := &HashMap{} do := func(t *testing.T, max int, d time.Duration, fn func(*testing.T, int)) <-chan error { t.Helper() done := make(chan error) var times int64 // This goroutines will terminate test in case if closure hangs. go fun...
explode_data.jsonl/24438
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1017 }
[ 2830, 3393, 18497, 60625, 1155, 353, 8840, 836, 8, 341, 22543, 1669, 220, 16, 15, 198, 2698, 324, 1669, 220, 17, 353, 882, 32435, 198, 2109, 1669, 609, 18497, 16094, 19935, 1669, 2915, 1155, 353, 8840, 836, 11, 1932, 526, 11, 294, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
5
func TestAccSlbL7session_create(t *testing.T) { resource.Test(t, resource.TestCase{ Providers: testAccProviders, Steps: []resource.TestStep{ { Config: TEST_SLB_L7SESSION_RESOURCE, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("thunder_slb_l7session.l7session", "sampling_enabl...
explode_data.jsonl/16320
{ "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, 14603, 7442, 65, 43, 22, 5920, 8657, 1155, 353, 8840, 836, 8, 341, 50346, 8787, 1155, 11, 5101, 31363, 515, 197, 197, 37351, 25, 1273, 14603, 37351, 345, 197, 197, 33951, 25, 3056, 9233, 8787, 8304, 515, 298, 197, 515, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
1
func TestEnsureHasSource(t *testing.T) { gitLocalDir, err := git.CreateLocalGitDirectory() if err != nil { t.Fatal(err) } defer os.RemoveAll(gitLocalDir) tests := []struct { name string cfg AppConfig components app.ComponentReferences repositories []*app.SourceRepo...
explode_data.jsonl/42186
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1198 }
[ 2830, 3393, 64439, 10281, 3608, 1155, 353, 8840, 836, 8, 341, 90731, 7319, 6184, 11, 1848, 1669, 16345, 7251, 7319, 46562, 9310, 741, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 16867, 2643, 84427, 3268, 275, 7319,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMatch(t *testing.T) { tests := []matchTest{ {"def", "define", true, 0}, {"def", "deefine", true, 1}, {"d", "efine", false, -1}, {"mid", "start mid end", true, 0}, {"谢谢", "CJK谢谢", true, 0}, } for _, m := range tests { matched, distance := liborchid.Match(m.query, m.haystack) assert.Equal( t...
explode_data.jsonl/12901
{ "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, 8331, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 6347, 2271, 515, 197, 197, 4913, 750, 497, 330, 1289, 497, 830, 11, 220, 15, 1583, 197, 197, 4913, 750, 497, 330, 450, 823, 482, 497, 830, 11, 220, 16, 1583, 197, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestClientHTTPSInvalidServerName(t *testing.T) { t.Parallel() sHTTPS := startEchoServerTLS(t, "tcp", "127.0.0.1:") defer sHTTPS.Stop() var c Client for i := 0; i < 10; i++ { _, _, err := c.GetTimeout(nil, "https://"+sHTTPS.Addr(), time.Second) if err == nil { t.Fatalf("expecting TLS error") } } }
explode_data.jsonl/79375
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 144 }
[ 2830, 3393, 2959, 82354, 7928, 5475, 675, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 2822, 1903, 82354, 1669, 1191, 74994, 5475, 45439, 1155, 11, 330, 27161, 497, 330, 16, 17, 22, 13, 15, 13, 15, 13, 16, 34403, 16867, 274, 823...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSortedISOCtrlSliceEmpty(t *testing.T) { // given attrs := make(map[string]*sysl.Attribute) // when actual := getSortedISOCtrlSlice(attrs) // then assert.Equal(t, []string{}, actual) }
explode_data.jsonl/58732
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 80 }
[ 2830, 3393, 51051, 1637, 7612, 9599, 33236, 3522, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 197, 20468, 1669, 1281, 9147, 14032, 8465, 7791, 75, 33775, 692, 197, 322, 979, 198, 88814, 1669, 633, 51051, 1637, 7612, 9599, 33236, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_Unmarshal(t *testing.T) { // given data := ` <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipo...
explode_data.jsonl/40276
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1467 }
[ 2830, 3393, 40687, 27121, 1155, 353, 8840, 836, 8, 341, 197, 322, 2661, 198, 8924, 1669, 22074, 197, 27, 15196, 198, 197, 48460, 4412, 25, 7628, 428, 1254, 1110, 79, 1085, 2659, 97333, 14, 21423, 14, 16, 13, 16, 29555, 197, 48460, 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 TestAuthorize(t *testing.T) { t.Parallel() storageConfig := CreateStorageConfig("Authorize") var err error svc := createDynamoDB() storage := New(svc, storageConfig) err = storage.CreateSchema() assert.Nil(t, err, "%s", err) defer storage.DropSchema() client := &osin.DefaultClient{ Id: "1234", Sec...
explode_data.jsonl/78082
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 663 }
[ 2830, 3393, 37483, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 197, 16172, 2648, 1669, 4230, 5793, 2648, 445, 37483, 1138, 2405, 1848, 1465, 198, 1903, 7362, 1669, 1855, 35, 85608, 3506, 741, 197, 16172, 1669, 1532, 1141, 7362...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseRequest(t *testing.T) { tests := []struct { query string expected string // output from r.String() }{ // valid SRV request {"_http._tcp.webs.mynamespace.svc.inter.webs.test.", "http.tcp..webs.mynamespace.svc"}, // wildcard acceptance {"*.any.*.any.svc.inter.webs.test.", "*.any..*.any.svc"...
explode_data.jsonl/37940
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 439 }
[ 2830, 3393, 14463, 1900, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 27274, 262, 914, 198, 197, 42400, 914, 442, 2550, 504, 435, 6431, 741, 197, 59403, 197, 197, 322, 2697, 20880, 53, 1681, 198, 197, 197, 4913, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestControllerBurstReplicas(t *testing.T) { doTestControllerBurstReplicas(t, 5, 30) doTestControllerBurstReplicas(t, 5, 12) doTestControllerBurstReplicas(t, 3, 2) }
explode_data.jsonl/7979
{ "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, 2051, 33, 32612, 18327, 52210, 1155, 353, 8840, 836, 8, 341, 19935, 2271, 2051, 33, 32612, 18327, 52210, 1155, 11, 220, 20, 11, 220, 18, 15, 340, 19935, 2271, 2051, 33, 32612, 18327, 52210, 1155, 11, 220, 20, 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
func TestProperties_ValidateZones(t *testing.T) { tests := []struct { name string orchestratorRelease string loadBalancerSku string excludeMasterFromStandardLB bool masterProfile *MasterProfile agentProfiles []*AgentPoolProfile expect...
explode_data.jsonl/17882
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 2945 }
[ 2830, 3393, 7903, 62, 17926, 57, 3154, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 664, 914, 198, 197, 197, 21584, 15111, 850, 16077, 260, 914, 198, 197, 49386, 93825, 50, 12133, 1797, 914, 198, 197, 8122, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestRepositoryChildren(t *testing.T) { repo, err := NewRepository("example.com/repo", Insecure) if err != nil { t.Fatal(err) } tag := repo.Tag("foo") if got, want := tag.Scheme(), "http"; got != want { t.Errorf("tag.Scheme(): got %s want %s", got, want) } if got, want := tag.String(), "example.com/repo:...
explode_data.jsonl/39011
{ "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, 4624, 11539, 1155, 353, 8840, 836, 8, 341, 17200, 5368, 11, 1848, 1669, 1532, 4624, 445, 8687, 905, 10758, 5368, 497, 758, 25132, 340, 743, 1848, 961, 2092, 341, 197, 3244, 26133, 3964, 340, 197, 532, 60439, 1669, 15867, 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...
6
func TestVerifyProof(t *testing.T) { seed, _ := SeedFromString("8d019192c24224e2cafccae3a61fb586b14323a6bc8f9e7df1d929333ff993933bea6f5b3af6de0374366c4719e43a1b") pub, _ := crypto.PublicKeyFromString("9a267cac764b1d860f1d587d0d5a61110c0c21bc6a57bdfdb8d4f2941e59fe709a017a32a599a35e81b91255d1b9d500f2427135a97d89a0a9431...
explode_data.jsonl/47751
{ "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, 32627, 31076, 1155, 353, 8840, 836, 8, 341, 197, 22602, 11, 716, 1669, 35822, 44491, 445, 23, 67, 15, 16, 24, 16, 24, 17, 66, 17, 19, 17, 17, 19, 68, 17, 68796, 638, 5918, 18, 64, 21, 16, 10798, 20, 23, 21, 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...
1
func TestCluster_PreviousNode(t *testing.T) { node0 := &Node{ID: "node0"} node1 := &Node{ID: "node1"} node2 := &Node{ID: "node2"} t.Run("OneNode", func(t *testing.T) { c := newCluster() c.addNodeBasicSorted(node0) c.Node = node0 if prev := c.unprotectedPreviousNode(); prev != nil { t.Errorf("expected: ...
explode_data.jsonl/59880
{ "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, 28678, 79561, 2469, 1955, 1155, 353, 8840, 836, 8, 341, 20831, 15, 1669, 609, 1955, 90, 915, 25, 330, 3509, 15, 16707, 20831, 16, 1669, 609, 1955, 90, 915, 25, 330, 3509, 16, 16707, 20831, 17, 1669, 609, 1955, 90, 915, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestDB_View_Error(t *testing.T) { db := MustOpenDB() defer db.MustClose() if err := db.View(func(tx *bolt.Tx) error { return errors.New("xxx") }); err == nil || err.Error() != "xxx" { t.Fatalf("unexpected error: %s", err) } }
explode_data.jsonl/27485
{ "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, 3506, 50711, 28651, 1155, 353, 8840, 836, 8, 341, 20939, 1669, 15465, 5002, 3506, 741, 16867, 2927, 50463, 7925, 2822, 743, 1848, 1669, 2927, 6382, 18552, 27301, 353, 52433, 81362, 8, 1465, 341, 197, 853, 5975, 7121, 445, 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 TestClient_Fstat(t *testing.T) { if !isTestManual { t.Skipf("%s not set", envNameTestManual) } remoteFile := "/etc/hosts" fh, err := testClient.Open(remoteFile) if err != nil { t.Fatal(err) } fa, err := testClient.Fstat(fh) if err != nil { t.Fatal(err) } t.Logf("Fstat %s: %+v", remoteFile, fa) }
explode_data.jsonl/66411
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 149 }
[ 2830, 3393, 2959, 1400, 9878, 1155, 353, 8840, 836, 8, 341, 743, 753, 285, 2271, 52092, 341, 197, 3244, 57776, 69, 4430, 82, 537, 738, 497, 6105, 675, 2271, 52092, 340, 197, 630, 197, 18147, 1703, 1669, 3521, 12107, 14, 44692, 698, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestPathWithinBase(t *testing.T) { tests := []struct { fullPath string basePath string expectedResult bool }{ { fullPath: `c:\tmp\a\b\c`, basePath: `c:\tmp`, expectedResult: true, }, { fullPath: `c:\tmp1`, basePath: `c:\tmp2`, expectedResult: fals...
explode_data.jsonl/48688
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 488 }
[ 2830, 3393, 1820, 41961, 3978, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 94042, 1820, 981, 914, 198, 197, 24195, 1820, 981, 914, 198, 197, 42400, 2077, 1807, 198, 197, 59403, 197, 197, 515, 298, 94042, 1820, 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 TestMain(t *testing.T) { // TODO: Add your test cases. want := []string{ "1 2 1\n", "1 2 4 1\n", "no arbitrage sequence exists\n", } var b bytes.Buffer run(&b) for i := 0; ; i++ { s, err := b.ReadString('\n') if err != nil { break } if s != want[i] { t.Errorf("got %q; want %q", s, want...
explode_data.jsonl/45208
{ "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, 6202, 1155, 353, 8840, 836, 8, 341, 197, 322, 5343, 25, 2691, 697, 1273, 5048, 624, 50780, 1669, 3056, 917, 515, 197, 197, 1, 16, 220, 17, 220, 16, 1699, 756, 197, 197, 1, 16, 220, 17, 220, 19, 220, 16, 1699, 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...
4
func TestIsAPI(t *testing.T) { apiPath := Go.GetAPIPath() if !Go.IsAPI(apiPath) { t.Error("api path root should belong to api path") return } root := "/root" if Go.IsAPI(root) { t.Error("root should not belong to api path") return } }
explode_data.jsonl/153
{ "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, 3872, 7082, 1155, 353, 8840, 836, 8, 341, 54299, 1820, 1669, 5994, 2234, 7082, 1820, 2822, 743, 753, 10850, 4506, 7082, 24827, 1820, 8, 341, 197, 3244, 6141, 445, 2068, 1815, 3704, 1265, 9173, 311, 6330, 1815, 5130, 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...
3
func TestValidTransport(t *testing.T) { a := test_setup.SetupTestEnv(t) r := Event{}.ValidTransport(models.TransportEventSub) a.Equal(true, r) r = Event{}.ValidTransport("noteventsub") a.Equal(false, r) }
explode_data.jsonl/48399
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 86 }
[ 2830, 3393, 4088, 27560, 1155, 353, 8840, 836, 8, 341, 11323, 1669, 1273, 21363, 39820, 2271, 14359, 1155, 692, 7000, 1669, 3665, 46391, 4088, 27560, 20289, 87669, 1556, 3136, 340, 11323, 12808, 3715, 11, 435, 692, 7000, 284, 3665, 46391,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSockOptMark(t *testing.T) { t.Skip("requires CAP_NET_ADMIN") tcpServer := tcp.Server{ MsgProcessor: func(b []byte) []byte { return b }, } dest, err := tcpServer.Start() common.Must(err) defer tcpServer.Close() const mark = 1 dialer := DefaultSystemDialer{} conn, err := dialer.Dial(context.Bac...
explode_data.jsonl/60124
{ "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, 79812, 21367, 8949, 1155, 353, 8840, 836, 8, 341, 3244, 57776, 445, 41375, 26101, 26855, 30460, 5130, 3244, 4672, 5475, 1669, 28051, 22997, 515, 197, 197, 6611, 22946, 25, 2915, 1883, 3056, 3782, 8, 3056, 3782, 341, 298, 853...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewEC2InstanceSubject(t *testing.T) { cases := []struct { name string id string role reach.SubjectRole expectedSubject *reach.Subject expectedError error }{ { name: "valid input with source role", id: "i-abc123", role: reach.SubjectRoleSource, ex...
explode_data.jsonl/72980
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 744 }
[ 2830, 3393, 3564, 7498, 17, 2523, 13019, 1155, 353, 8840, 836, 8, 341, 1444, 2264, 1669, 3056, 1235, 341, 197, 11609, 310, 914, 198, 197, 15710, 1060, 914, 198, 197, 197, 5778, 310, 5545, 57388, 9030, 198, 197, 42400, 13019, 353, 2260...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestMarshlling(t *testing.T) { req := &CreateStorageRequest{} b, e := xml.Marshal(req) Convey("serializing", t, func() { Convey("the error should not be nil", func() { So(e, ShouldBeNil) }) Convey("the serialized xml should have the correct format", func() { So(string(b), ShouldStartWith, "<request>...
explode_data.jsonl/22383
{ "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, 79712, 654, 287, 1155, 353, 8840, 836, 8, 341, 24395, 1669, 609, 4021, 5793, 1900, 16094, 2233, 11, 384, 1669, 8396, 37271, 6881, 340, 93070, 5617, 445, 10182, 4849, 497, 259, 11, 2915, 368, 341, 197, 93070, 5617, 445, 178...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGet(t *testing.T) { client := framework.NewEtcdClient() keysAPI := etcd.NewKeysAPI(client) etcdStorage := etcdstorage.NewEtcdStorage(client, testapi.Default.Codec(), "", false) ctx := context.TODO() framework.WithEtcdKey(func(key string) { testObject := api.ServiceAccount{ObjectMeta: api.ObjectMeta{Name...
explode_data.jsonl/50999
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 369 }
[ 2830, 3393, 1949, 1155, 353, 8840, 836, 8, 341, 25291, 1669, 12626, 7121, 31860, 4385, 2959, 741, 80112, 7082, 1669, 1842, 4385, 7121, 8850, 7082, 12805, 340, 197, 295, 4385, 5793, 1669, 1842, 4385, 16172, 7121, 31860, 4385, 5793, 12805, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestGitCommandDiscardOldFileChanges(t *testing.T) { type scenario struct { testName string gitConfigMockResponses map[string]string commits []*models.Commit commitIndex int fileName string command func(string, ...string) *exec.Cmd ...
explode_data.jsonl/6322
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 962 }
[ 2830, 3393, 46562, 4062, 23477, 567, 18284, 1703, 11317, 1155, 353, 8840, 836, 8, 341, 13158, 15048, 2036, 341, 197, 18185, 675, 2290, 914, 198, 197, 90731, 2648, 11571, 70743, 2415, 14032, 30953, 198, 197, 197, 3621, 1199, 394, 29838, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestIntegerExpressionDIV(t *testing.T) { assertClauseSerialize(t, table1ColInt.DIV(table2ColInt), "(table1.col_int / table2.col_int)") assertClauseSerialize(t, table1ColInt.DIV(Int(11)), "(table1.col_int / $1)", int64(11)) }
explode_data.jsonl/41458
{ "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, 3486, 9595, 38827, 1155, 353, 8840, 836, 8, 341, 6948, 28482, 15680, 1155, 11, 1965, 16, 6127, 1072, 909, 3090, 15761, 17, 6127, 1072, 701, 11993, 2005, 16, 13414, 4042, 608, 1965, 17, 13414, 4042, 19107, 6948, 28482, 15680,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCumProd(t *testing.T) { t.Parallel() s := []float64{3, 4, 1, 7, 5} receiver := make([]float64, len(s)) result := CumProd(receiver, s) truth := []float64{3, 12, 12, 84, 420} areSlicesEqual(t, truth, receiver, "Wrong cumprod mutated with new receiver") areSlicesEqual(t, truth, result, "Wrong cumprod resul...
explode_data.jsonl/1213
{ "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, 85805, 41279, 1155, 353, 8840, 836, 8, 341, 3244, 41288, 7957, 741, 1903, 1669, 3056, 3649, 21, 19, 90, 18, 11, 220, 19, 11, 220, 16, 11, 220, 22, 11, 220, 20, 532, 17200, 12862, 1669, 1281, 10556, 3649, 21, 19, 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 Test_meshCommand(t *testing.T) { ctl := gomock.NewController(t) fakeKtCli := kt.NewMockCliInterface(ctl) mockAction := NewMockActionInterface(ctl) mockAction.EXPECT().Mesh(gomock.Eq("service"), gomock.Any(), gomock.Any()).Return(nil).AnyTimes() cases := []struct { testArgs []string skipFl...
explode_data.jsonl/38233
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 552 }
[ 2830, 3393, 29453, 4062, 1155, 353, 8840, 836, 8, 1476, 197, 12373, 1669, 342, 316, 1176, 7121, 2051, 1155, 340, 1166, 726, 42, 83, 87014, 1669, 18541, 7121, 11571, 87014, 5051, 7, 12373, 340, 77333, 2512, 1669, 1532, 11571, 2512, 5051,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestApp_Info(t *testing.T) { tests := []struct { name string path string id uint32 wantErr error }{ { name: "One", path: filepath.Join(corpus, "one-group-signed.sif"), id: 1, }, { name: "Two", path: filepath.Join(corpus, "one-group-signed.sif"), id: 2, }, { n...
explode_data.jsonl/26372
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 426 }
[ 2830, 3393, 2164, 39624, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 26781, 262, 914, 198, 197, 15710, 414, 2622, 18, 17, 198, 197, 50780, 7747, 1465, 198, 197, 59403, 197, 197, 515, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3
func TestFindProbe(t *testing.T) { fakeProbes := []probe{ { Name: "test1", }, { Name: "good", }, } tests := []struct { name string probeName string wantIndex int }{ { name: "Good case - Found", probeName: "good", wantIndex: 1, }, { name: "Not found", probeName...
explode_data.jsonl/39061
{ "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, 9885, 81426, 1155, 353, 8840, 836, 8, 341, 1166, 726, 1336, 9433, 1669, 3056, 52329, 515, 197, 197, 515, 298, 21297, 25, 330, 1944, 16, 756, 197, 197, 1583, 197, 197, 515, 298, 21297, 25, 330, 18536, 756, 197, 197, 1583,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestCreateFail(t *testing.T) { ctx := context.Background() lastID.Set(0) count.Set(0) p := NewResourcePool(FailFactory, 5, 5, time.Second) defer p.Close() if _, err := p.Get(ctx); err.Error() != "Failed" { t.Errorf("Expecting Failed, received %v", err) } stats := p.StatsJSON() expected := `{"Capacity": ...
explode_data.jsonl/662
{ "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, 4021, 19524, 1155, 353, 8840, 836, 8, 341, 20985, 1669, 2266, 19047, 741, 33096, 915, 4202, 7, 15, 340, 18032, 4202, 7, 15, 340, 3223, 1669, 1532, 4783, 10551, 7832, 604, 4153, 11, 220, 20, 11, 220, 20, 11, 882, 32435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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_determineEncoding(t *testing.T) { type args struct { req *http.Request } tests := []struct { name string args args decode encoding.DecodeFunc encode encoding.EncodeFunc ct string wantErr bool }{ {"success json", args{req: request(t, json.Type, json.TypeCharset)}, json.Decode, ...
explode_data.jsonl/54953
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 880 }
[ 2830, 3393, 814, 24308, 14690, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 24395, 353, 1254, 9659, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 197, 18196, 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 TestScrapeLoopMetadata(t *testing.T) { var ( signal = make(chan struct{}) scraper = &testScraper{} cache = newScrapeCache() ) defer close(signal) ctx, cancel := context.WithCancel(context.Background()) sl := newScrapeLoop(ctx, scraper, nil, nil, nopMutator, nopMutator, func() storage.Appen...
explode_data.jsonl/56121
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 594 }
[ 2830, 3393, 3326, 19842, 14620, 14610, 1155, 353, 8840, 836, 8, 341, 2405, 2399, 197, 81319, 220, 284, 1281, 35190, 2036, 37790, 197, 1903, 86282, 284, 609, 1944, 65508, 3191, 16094, 197, 52680, 256, 284, 501, 3326, 19842, 8233, 741, 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 TestValidateSearchInput(t *testing.T) { type args struct { search string } tests := []struct { name string args args wantErr bool }{ { name: "Should be valid when containing dots", args: args{ search: "k.afk.a", }, wantErr: false, }, { name: "Should be invalid when contai...
explode_data.jsonl/18708
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 713 }
[ 2830, 3393, 17926, 5890, 2505, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 45573, 914, 198, 197, 532, 78216, 1669, 3056, 1235, 341, 197, 11609, 262, 914, 198, 197, 31215, 262, 2827, 198, 197, 50780, 7747, 1807, 198, 197...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
2
func TestLauncherSucceeded(t *testing.T) { f := newFixture(t) startTime := metav1.Now() completionTime := metav1.Now() mpiJob := newMPIJob("test", int32Ptr(64), 1, gpuResourceName, &startTime, &completionTime) f.setUpMPIJob(mpiJob) fmjc := f.newFakeMPIJobController() launcher := fmjc.newLauncher(mpiJob, "kube...
explode_data.jsonl/29952
{ "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, 91176, 50, 43805, 1155, 353, 8840, 836, 8, 341, 1166, 1669, 501, 18930, 1155, 692, 21375, 1462, 1669, 77520, 16, 13244, 741, 32810, 14386, 1462, 1669, 77520, 16, 13244, 2822, 197, 39479, 12245, 1669, 501, 56369, 12245, 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...
2
func TestBuildInfluxDB(t *testing.T) { invalidType := &ingress.Ingress{} expected := "" actual := buildInfluxDB(invalidType) if expected != actual { t.Errorf("Expected '%v' but returned '%v'", expected, actual) } cfg := influxdb.Config{ InfluxDBEnabled: true, InfluxDBServerName: "ok.com", InfluxDBH...
explode_data.jsonl/80602
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 253 }
[ 2830, 3393, 11066, 641, 36706, 3506, 1155, 353, 8840, 836, 8, 341, 197, 11808, 929, 1669, 609, 287, 673, 5337, 2483, 16094, 42400, 1669, 8389, 88814, 1669, 1936, 641, 36706, 3506, 5900, 1891, 929, 692, 743, 3601, 961, 5042, 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...
3
func TestMonotonicSub(t *testing.T) { t1 := Unix(1483228799, 995e6) SetMono(&t1, 123456789012345) t2 := Unix(1483228799, 5e6) SetMono(&t2, 123456789012345+10e6) t3 := Unix(1483228799, 995e6) SetMono(&t3, 123456789012345+1e9) t1w := t1.AddDate(0, 0, 0) if GetMono(&t1w) != 0 { t.Fatalf("AddDate didn't strip ...
explode_data.jsonl/48365
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 1538 }
[ 2830, 3393, 11095, 354, 14011, 3136, 1155, 353, 8840, 836, 8, 341, 3244, 16, 1669, 46995, 7, 16, 19, 23, 18, 17, 17, 23, 22, 24, 24, 11, 220, 24, 24, 20, 68, 21, 340, 22212, 58946, 2099, 83, 16, 11, 220, 16, 17, 18, 19, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestSeedPortfolio(t *testing.T) { newbase := Base{} newbase.AddAddress("someaddress", "LTC", "LTCWALLETTEST", 0.02) portfolio := GetPortfolio() portfolio.SeedPortfolio(newbase) if !portfolio.AddressExists("someaddress") { t.Error("Test Failed - portfolio_test.go - SeedPortfolio error") } }
explode_data.jsonl/33748
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 113 }
[ 2830, 3393, 41471, 66675, 1155, 353, 8840, 836, 8, 341, 8638, 3152, 1669, 5351, 16094, 8638, 3152, 1904, 4286, 445, 14689, 4995, 497, 330, 43, 7749, 497, 330, 43, 7749, 54, 969, 20756, 10033, 497, 220, 15, 13, 15, 17, 340, 197, 2715...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestParseErrors(t *testing.T) { _, err := ParseEvent([]byte("")) ensure.StringContains(t, err.Error(), "failed to recognize event") _, err = ParseEvent([]byte(`{"event": "unknown_event"}`)) ensure.DeepEqual(t, err.Error(), "unsupported event: 'unknown_event'") _, err = ParseEvent([]byte(`{ "event": "accep...
explode_data.jsonl/69097
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 173 }
[ 2830, 3393, 14463, 13877, 1155, 353, 8840, 836, 8, 341, 197, 6878, 1848, 1669, 14775, 1556, 10556, 3782, 73303, 197, 27289, 6431, 23805, 1155, 11, 1848, 6141, 1507, 330, 16091, 311, 15282, 1538, 5130, 197, 6878, 1848, 284, 14775, 1556, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStartAndShutdownWithRequeuingWork(t *testing.T) { tests := []struct { name string minimum int duration time.Duration }{{ name: "no duration", minimum: 100, }, { name: "small duration", minimum: 2, duration: 100 * time.Millisecond, }} for _, test := range tests { t.Run(test....
explode_data.jsonl/45293
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 587 }
[ 2830, 3393, 3479, 3036, 62004, 2354, 693, 591, 7471, 6776, 1155, 353, 8840, 836, 8, 341, 78216, 1669, 3056, 1235, 341, 197, 11609, 257, 914, 198, 197, 25320, 3295, 220, 526, 198, 197, 89300, 882, 33795, 198, 197, 15170, 515, 197, 1160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestNewPRMRemapIdentity(t *testing.T) { const testPrefix = "example.com/docker-library" const testSignedPrefix = "docker.io/library" // Success _prm, err := NewPRMRemapIdentity(testPrefix, testSignedPrefix) require.NoError(t, err) prm, ok := _prm.(*prmRemapIdentity) require.True(t, ok) assert.Equal(t, &pr...
explode_data.jsonl/36522
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 354 }
[ 2830, 3393, 3564, 6480, 44, 6590, 391, 18558, 1155, 353, 8840, 836, 8, 341, 4777, 1273, 14335, 284, 330, 8687, 905, 61764, 52421, 698, 4777, 1273, 49312, 14335, 284, 330, 28648, 4245, 45446, 1837, 197, 322, 13047, 198, 197, 5294, 76, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 TestStripQueryString(t *testing.T) { type args struct { path string } tests := map[string]struct { args args expectedPath string expectedErr error }{ "query string 1": { args: args{ path: "foo?bar=value1&baz=value2", }, expectedPath: "foo", }, "query string 2": { args: ar...
explode_data.jsonl/52414
{ "file_path": "/home/dung/Study/Code/Cross_test_gen/training_dataset/dedup_data/clean_data_go/data/explode_data.jsonl", "token_count": 481 }
[ 2830, 3393, 5901, 67001, 1155, 353, 8840, 836, 8, 341, 13158, 2827, 2036, 341, 197, 26781, 914, 198, 197, 532, 78216, 1669, 2415, 14032, 60, 1235, 341, 197, 31215, 260, 2827, 198, 197, 42400, 1820, 914, 198, 197, 42400, 7747, 220, 146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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